/* ===== СЕКЦИЯ: СТОИМОСТЬ ===== */
.pricing-section {
    padding: 50px 0 60px;
}

.pricing-section .container {
    max-width: 1300px;
}

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

.pricing-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 32px 28px 28px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
}

/* ===== БЕСПЛАТНО ===== */
.pricing-card.free {
    border-color: rgba(34, 197, 94, 0.08);
}

.pricing-card.free:hover {
    border-color: rgba(34, 197, 94, 0.2);
    background: rgba(34, 197, 94, 0.02);
}

/* ===== ЛАЙТ (paid) ===== */
.pricing-card.paid {
    border-color: rgba(251, 191, 36, 0.12);
    background: rgba(251, 191, 36, 0.02);
}

.pricing-card.paid:hover {
    border-color: rgba(251, 191, 36, 0.25);
    background: rgba(251, 191, 36, 0.04);
}

/* ===== РАЗОВЫЙ (single) ===== */
.pricing-card.single {
    border-color: rgba(59, 130, 246, 0.12);
    background: rgba(59, 130, 246, 0.02);
}

.pricing-card.single:hover {
    border-color: rgba(59, 130, 246, 0.25);
    background: rgba(59, 130, 246, 0.04);
}

/* ===== API ===== */
.pricing-card.api {
    border-color: rgba(168, 85, 247, 0.12);
    background: rgba(168, 85, 247, 0.02);
}

.pricing-card.api:hover {
    border-color: rgba(168, 85, 247, 0.25);
    background: rgba(168, 85, 247, 0.04);
}

/* ===== BADGE ===== */
.pricing-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    align-self: flex-start;
}

.pricing-card.free .pricing-badge {
    background: rgba(34, 197, 94, 0.08);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.1);
}

.pricing-card.paid .pricing-badge {
    background: rgba(251, 191, 36, 0.08);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.1);
}

.pricing-card.single .pricing-badge {
    background: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.pricing-card.api .pricing-badge {
    background: rgba(168, 85, 247, 0.08);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.1);
}

/* ===== ЦЕНА ===== */
.pricing-price {
    font-family: 'Fira Code', monospace;
    font-size: 2.4rem;
    font-weight: 700;
    color: #eaeef5;
    line-height: 1;
}

.pricing-sub {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #4a536b;
    margin-bottom: 16px;
    margin-top: 10px;
}

/* ===== СКИДКА / СТАРАЯ ЦЕНА / ТАЙМЕР ===== */
.pricing-discount {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    z-index: 1;
}

.pricing-old {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #8a94a6;
    text-decoration: line-through;
    margin-top: 4px;
}

.pricing-timer {
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    color: #fbbf24;
    margin-top: 8px;
    margin-bottom: 8px;
    background: rgba(251, 191, 36, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid rgba(251, 191, 36, 0.15);
}

/* ===== ФИЧИ ===== */
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    flex: 1;
    font-size: 0.75rem;
    font-family: 'Fira Code', monospace;
    color: #eaeef5;
}

.pricing-features li {
    font-size: 0.8rem;
    color: #8aa89a;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Fira Code', monospace;
    line-height: 1.5;
}

.pricing-features li i {
    font-size: 0.65rem;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.pricing-features li i.fa-check-circle {
    color: #22c55e;
}

.pricing-features li i.fa-times-circle {
    color: #4a536b;
}

.pricing-features li.muted {
    color: #4a536b;
}

.pricing-features li strong {
    color: #eaeef5;
    font-weight: 600;
}

/* ===== КНОПКА ===== */
.pricing-btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
}

.pricing-btn.primary {
    background: #22c55e;
    color: #0a120e;
}

.pricing-btn.primary:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.2);
}

.pricing-btn.secondary {
    background: rgba(74, 83, 107, 0.08);
    color: #4a536b;
    border: 1px solid rgba(74, 83, 107, 0.1);
    cursor: default;
}

/* ===== SECURITY ===== */
.pricing-security {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: #4a536b;
    flex-wrap: wrap;
}

.pricing-security span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pricing-security i {
    color: #22c55e;
    font-size: 0.5rem;
}

/* ===== СВЕТЛАЯ ТЕМА ===== */
body.light-theme .pricing-card.free {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .pricing-card.free:hover {
    background: rgba(255, 255, 255, 0.7);
}

body.light-theme .pricing-card.paid {
    background: rgba(251, 191, 36, 0.04);
    border-color: rgba(251, 191, 36, 0.15);
}

body.light-theme .pricing-card.paid:hover {
    background: rgba(251, 191, 36, 0.08);
}

body.light-theme .pricing-card.single {
    background: rgba(59, 130, 246, 0.04);
    border-color: rgba(59, 130, 246, 0.15);
}

body.light-theme .pricing-card.single:hover {
    background: rgba(59, 130, 246, 0.08);
}

body.light-theme .pricing-card.api {
    background: rgba(168, 85, 247, 0.04);
    border-color: rgba(168, 85, 247, 0.15);
}

body.light-theme .pricing-card.api:hover {
    background: rgba(168, 85, 247, 0.08);
}

body.light-theme .pricing-price {
    color: #1a1a2e;
}

body.light-theme .pricing-features li {
    color: #4a4a6a;
}

body.light-theme .pricing-features li.muted {
    color: #8a8aaa;
}

body.light-theme .pricing-features li strong {
    color: #1a1a2e;
}

body.light-theme .pricing-card.free .pricing-badge {
    background: rgba(34, 197, 94, 0.06);
    color: #1a7a3a;
}

body.light-theme .pricing-card.paid .pricing-badge {
    background: rgba(251, 191, 36, 0.08);
    color: #a07020;
}

body.light-theme .pricing-card.single .pricing-badge {
    background: rgba(59, 130, 246, 0.08);
    color: #1e40af;
}

body.light-theme .pricing-card.api .pricing-badge {
    background: rgba(168, 85, 247, 0.08);
    color: #7c3aed;
}

body.light-theme .pricing-old {
    color: #8a8aaa;
}

body.light-theme .pricing-timer {
    color: #a07020;
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.25);
}

body.light-theme .pricing-btn.primary {
    background: #1a7a3a;
    color: #ffffff;
}

body.light-theme .pricing-btn.primary:hover {
    background: #166a32;
}

body.light-theme .pricing-btn.secondary {
    background: rgba(0, 0, 0, 0.04);
    color: #8a8aaa;
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .pricing-security {
    border-top-color: rgba(0, 0, 0, 0.06);
    color: #8a8aaa;
}

body.light-theme .pricing-security i {
    color: #1a7a3a;
}

/* ===== АДАПТИВ ===== */

/* 4 колонки на широком → уменьшаем шрифт цены */
@media (max-width: 1400px) {
    .pricing-price {
        font-size: 2rem;
    }
}

/* 2 колонки */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
        gap: 20px;
        padding: 0 24px;
    }

    .pricing-price {
        font-size: 2.4rem;
    }
}

/* 1 колонка */
@media (max-width: 640px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 20px;
        padding: 0 24px;
    }

    .pricing-card {
        padding: 24px 20px;
    }

    .pricing-price {
        font-size: 2rem;
    }

    .pricing-security {
        gap: 12px;
        font-size: 0.45rem;
    }
}

@media (max-width: 400px) {
    .pricing-card {
        padding: 20px 16px;
    }
}