/* tariffs.php — публичный каталог тарифов (не админка) */

:root {
    --tf-bg: #070b12;
    --tf-border: rgba(148, 163, 184, 0.12);
    --tf-text: #f1f5f9;
    --tf-muted: #94a3b8;
    --tf-cyan: #22d3ee;
    --tf-indigo: #818cf8;
    --tf-violet: #a78bfa;
    --tf-emerald: #34d399;
    --tf-rose: #fb7185;
    --tf-amber: #fb923c;
    --tf-gradient: linear-gradient(135deg, #0ea5e9 0%, #6366f1 45%, #a855f7 100%);
    --tf-glow: radial-gradient(ellipse 100% 70% at 50% -25%, rgba(34, 211, 238, 0.2), transparent 50%);
    --tf-glow-violet: radial-gradient(ellipse 60% 40% at 80% 20%, rgba(167, 139, 250, 0.12), transparent);
    --tf-shadow-hover: 0 28px 56px -20px rgba(0, 0, 0, 0.5), 0 0 40px -16px rgba(34, 211, 238, 0.14);
    --tf-ease: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body.tariffs-page {
    font-family: 'Manrope', var(--bs-body-font-family), sans-serif;
    background: var(--tf-bg) !important;
    color: var(--tf-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.tariffs-page .bg-pattern {
    position: fixed;
    inset: 0;
    background: var(--tf-glow-violet), var(--tf-glow), linear-gradient(180deg, #070b12 0%, #0f172a 45%, #0a0e17 100%);
    z-index: -2;
}

.tariffs-page .bg-pattern::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(34, 211, 238, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.028) 1px, transparent 1px);
    background-size: 56px 56px;
    z-index: -1;
}

.tariffs-page .container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.tariffs-page main {
    flex: 1;
}

.tf-hero {
    padding: 56px 0 28px;
    text-align: center;
}

.tf-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    margin-bottom: 1.1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tf-cyan);
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.22);
}

.tf-hero h1 {
    font-size: clamp(2.15rem, 5vw, 3.35rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 16px;
    letter-spacing: -0.03em;
    color: #fff;
}

.tf-hero h1 span {
    background: var(--tf-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tf-hero-lead {
    font-size: 1.08rem;
    color: var(--tf-muted);
    max-width: 640px;
    margin: 0 auto 10px;
    line-height: 1.6;
}

.tf-hero-pay {
    font-size: 0.92rem;
    color: #64748b;
    margin: 0 auto 1.35rem;
}

.tf-hero-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 1.35rem;
}

.tf-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.55);
    color: var(--tf-muted);
    text-decoration: none;
    transition: border-color var(--tf-ease), color var(--tf-ease), background var(--tf-ease), transform var(--tf-ease);
}

.tf-chip:hover {
    color: #e2e8f0;
    border-color: rgba(34, 211, 238, 0.35);
    background: rgba(15, 23, 42, 0.85);
}

.tf-chip i {
    color: var(--tf-cyan);
    font-size: 0.82rem;
}

.tf-chip b {
    min-width: 1.35rem;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #0f172a;
    background: var(--tf-cyan);
    text-align: center;
}

.tf-chip--amz i { color: var(--tf-emerald); }
.tf-chip--amz b { background: var(--tf-emerald); }
.tf-chip--cel i { color: var(--tf-amber); }
.tf-chip--cel b { background: var(--tf-amber); color: #0f172a; }
.tf-chip--rw i { color: var(--tf-indigo); }
.tf-chip--rw b { background: var(--tf-indigo); color: #0f172a; }
.tf-chip--bundle i { color: var(--tf-violet); }
.tf-chip--bundle b { background: var(--tf-violet); color: #0f172a; }

.tf-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.tf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform var(--tf-ease), box-shadow var(--tf-ease), background var(--tf-ease), border-color var(--tf-ease), color var(--tf-ease);
}

.tf-btn:hover {
    transform: translateY(-1px);
}

.tf-btn-primary {
    color: #fff;
    background: var(--tf-gradient);
    box-shadow: 0 10px 28px -12px rgba(14, 165, 233, 0.7);
}

.tf-btn-primary:hover {
    color: #fff;
    box-shadow: 0 14px 32px -12px rgba(99, 102, 241, 0.65);
}

.tf-btn-ghost {
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(148, 163, 184, 0.22);
}

.tf-btn-ghost:hover {
    color: #fff;
    border-color: rgba(34, 211, 238, 0.4);
}

.tf-how {
    padding: 8px 0 36px;
}

.tf-how-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.tf-how-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 100%;
    padding: 1.15rem 1.15rem 1.1rem;
    border-radius: 18px;
    background: linear-gradient(155deg, rgba(15, 23, 42, 0.72) 0%, rgba(30, 41, 59, 0.35) 100%);
    border: 1px solid var(--tf-border);
}

.tf-how-num {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(34, 211, 238, 0.2);
}

.tf-how-ico {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.3rem;
    color: #fff;
    background: var(--tf-gradient);
    font-size: 1rem;
}

.tf-how-card strong {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.tf-how-card span:last-child {
    color: var(--tf-muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.tf-jump-wrap {
    position: sticky;
    top: 64px;
    z-index: 30;
    padding: 8px 0 10px;
    margin-bottom: 8px;
    background: linear-gradient(180deg, rgba(7, 11, 18, 0.92) 0%, rgba(7, 11, 18, 0.72) 70%, transparent 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.tf-jump {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.tf-jump a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 650;
    color: #cbd5e1;
    text-decoration: none;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.18);
    transition: border-color var(--tf-ease), color var(--tf-ease), background var(--tf-ease);
}

.tf-jump a:hover,
.tf-jump a:focus-visible {
    color: #fff;
    border-color: rgba(34, 211, 238, 0.4);
    background: rgba(15, 23, 42, 0.95);
}

.tf-jump a i { color: var(--tf-cyan); }
.tf-jump a.is-amz i { color: var(--tf-emerald); }
.tf-jump a.is-cel i { color: var(--tf-amber); }
.tf-jump a.is-rw i { color: var(--tf-indigo); }
.tf-jump a.is-bundle i { color: var(--tf-violet); }

.tf-jump a em {
    font-style: normal;
    min-width: 1.2rem;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #0f172a;
    background: #e2e8f0;
    text-align: center;
}

.tf-section {
    padding: 28px 0 12px;
    scroll-margin-top: 108px;
}

.tf-sec-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.tf-sec-ico {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--tf-gradient);
    font-size: 1.15rem;
    box-shadow: 0 10px 24px -12px rgba(14, 165, 233, 0.55);
}

.tf-sec-ico.is-amz {
    background: linear-gradient(135deg, #10b981, #0ea5e9);
}

.tf-sec-ico.is-cel {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.tf-sec-ico.is-rw {
    background: linear-gradient(135deg, #6366f1, #a855f7);
}

.tf-sec-ico.is-bundle {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.tf-sec-head h2 {
    margin: 0 0 4px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

.tf-sec-head p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--tf-muted);
    line-height: 1.45;
}

.tf-sec-count {
    margin-left: auto;
    flex-shrink: 0;
    min-width: 2rem;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.16);
    text-align: center;
}

.tf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 18px;
}

.tf-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.25rem 1.2rem 1.15rem;
    border-radius: 20px;
    background: linear-gradient(155deg, rgba(15, 23, 42, 0.78) 0%, rgba(30, 41, 59, 0.38) 100%);
    border: 1px solid var(--tf-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    transition: transform var(--tf-ease), border-color var(--tf-ease), box-shadow var(--tf-ease);
}

.tf-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.32);
    box-shadow: var(--tf-shadow-hover);
}

.tf-card.is-amz:hover { border-color: rgba(52, 211, 153, 0.38); }
.tf-card.is-cel:hover { border-color: rgba(251, 146, 60, 0.42); }
.tf-card.is-rw:hover { border-color: rgba(129, 140, 248, 0.42); }
.tf-card.is-bundle:hover { border-color: rgba(167, 139, 250, 0.42); }

.tf-card.is-deal {
    border-color: rgba(34, 211, 238, 0.38);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.12), 0 12px 36px rgba(0, 0, 0, 0.22);
}

.tf-card.is-sold {
    opacity: 0.72;
}

.tf-card.is-sold:hover {
    transform: none;
}

.tf-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.tf-card__ico {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.85), rgba(99, 102, 241, 0.75));
    font-size: 1.05rem;
}

.tf-card.is-amz .tf-card__ico {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(14, 165, 233, 0.7));
}

.tf-card.is-cel .tf-card__ico {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(234, 88, 12, 0.8));
}

.tf-card.is-rw .tf-card__ico {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(168, 85, 247, 0.75));
}

.tf-card.is-bundle .tf-card__ico {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(236, 72, 153, 0.7));
}

.tf-card__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.tf-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.02em;
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.tf-badge--deal {
    color: #083344;
    background: linear-gradient(135deg, #67e8f9, #34d399);
    border-color: transparent;
}

.tf-badge--stock {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.28);
}

.tf-badge--out {
    color: var(--tf-rose);
    background: rgba(251, 113, 133, 0.12);
    border-color: rgba(251, 113, 133, 0.28);
}

.tf-card__name {
    margin: 0 0 10px;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.3;
}

.tf-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
    margin-bottom: 2px;
}

.tf-card__price strong {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--tf-cyan);
    line-height: 1.1;
}

.tf-card.is-amz .tf-card__price strong { color: var(--tf-emerald); }
.tf-card.is-cel .tf-card__price strong { color: var(--tf-amber); }
.tf-card.is-rw .tf-card__price strong { color: var(--tf-indigo); }
.tf-card.is-bundle .tf-card__price strong { color: var(--tf-violet); }

.tf-card__period {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--tf-muted);
}

.tf-card__meta {
    margin: 0 0 12px;
    font-size: 0.78rem;
    color: #64748b;
}

.tf-card__feats {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.tf-card__feats li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.86rem;
    color: #cbd5e1;
    line-height: 1.4;
}

.tf-card__feats i {
    width: 1.05rem;
    margin-top: 2px;
    flex-shrink: 0;
    color: var(--tf-cyan);
    font-size: 0.82rem;
    text-align: center;
}

.tf-card.is-amz .tf-card__feats i { color: var(--tf-emerald); }
.tf-card.is-cel .tf-card__feats i { color: var(--tf-amber); }
.tf-card.is-rw .tf-card__feats i { color: var(--tf-indigo); }
.tf-card.is-bundle .tf-card__feats i { color: var(--tf-violet); }

.tf-card__desc {
    margin: 0 0 16px;
    font-size: 0.84rem;
    color: var(--tf-muted);
    line-height: 1.5;
    flex: 1;
}

.tf-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: auto;
    padding: 11px 16px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 750;
    text-decoration: none;
    color: #fff;
    background: var(--tf-gradient);
    border: 0;
    box-shadow: 0 8px 22px -12px rgba(14, 165, 233, 0.7);
    transition: transform var(--tf-ease), box-shadow var(--tf-ease), filter var(--tf-ease);
}

.tf-card__btn:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px -12px rgba(99, 102, 241, 0.7);
}

.tf-card.is-amz .tf-card__btn {
    background: linear-gradient(135deg, #10b981, #0ea5e9);
}

.tf-card.is-cel .tf-card__btn {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.tf-card.is-rw .tf-card__btn,
.tf-card.is-bundle .tf-card__btn {
    background: linear-gradient(135deg, #6366f1, #a855f7);
}

.tf-card__btn.is-disabled,
.tf-card__btn[aria-disabled="true"] {
    pointer-events: none;
    background: #334155;
    box-shadow: none;
    color: #94a3b8;
}

.tf-empty {
    text-align: center;
    padding: 56px 20px 72px;
}

.tf-empty__ico {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tf-cyan);
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    font-size: 1.5rem;
}

.tf-empty p {
    margin: 0 0 18px;
    color: var(--tf-muted);
    font-size: 1.02rem;
}

.tf-help {
    padding: 28px 0 56px;
}

.tf-help-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 20px;
    padding: 1.2rem 1.3rem;
    border-radius: 18px;
    background: linear-gradient(155deg, rgba(15, 23, 42, 0.7) 0%, rgba(30, 41, 59, 0.35) 100%);
    border: 1px solid var(--tf-border);
}

.tf-help-card p {
    margin: 0;
    flex: 1 1 240px;
    color: var(--tf-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.tf-help-card p strong {
    color: #fff;
    font-weight: 750;
}

.tf-help-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 768px) {
    .tf-hero {
        padding: 36px 0 20px;
    }

    .tf-how-grid {
        grid-template-columns: 1fr;
    }

    .tf-jump-wrap {
        top: 56px;
    }

    .tf-section {
        scroll-margin-top: 128px;
    }

    .tf-sec-head {
        flex-wrap: wrap;
    }

    .tf-sec-count {
        margin-left: 0;
    }

    .tf-grid {
        grid-template-columns: 1fr;
    }
}
