/* ============================================
   PRICING SECTION
   ============================================ */

.pricing-section {
    padding: 80px 0 80px 0;   /* больше сверху, чтобы бейдж не обрезался */
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    position: relative;
}

.pricing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.08), transparent 70%);
    pointer-events: none;
}

.pricing-section .container {
    position: relative;
    z-index: 1;
}

.pricing-section h1 {
    background: linear-gradient(135deg, #1a1a1a 0%, #4b5563 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

/* ============================================
   PRICING CARD
   ============================================ */

.pricing-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 28px 36px;   /* больше сверху — для бейджа */
    height: 100%;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    overflow: visible;   /* ВАЖНО: чтобы бейдж не обрезался */
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 24px 24px 0 0;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border-color: rgba(99, 102, 241, 0.2);
}

.pricing-card:hover::before {
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
}

/* ============================================
   POPULAR CARD
   ============================================ */

.pricing-card.popular {
    background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.18);
    transform: scale(1.03);
}

.pricing-card.popular::before {
    background: linear-gradient(90deg, #8b5cf6, #ec4899, #8b5cf6);
    height: 5px;
}

.pricing-card.popular:hover {
    transform: scale(1.03) translateY(-8px);
    box-shadow: 0 24px 60px rgba(139, 92, 246, 0.28);
}

/* ============================================
   POPULAR BADGE
   ============================================ */

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: white;
    padding: 7px 22px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    z-index: 3;
    white-space: nowrap;
}

/* ============================================
   PRICING HEADER
   ============================================ */

.pricing-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px dashed #e5e7eb;
}

.pricing-card.popular .pricing-header {
    border-bottom-color: rgba(139, 92, 246, 0.2);
}

.pricing-header h3 {
    font-size: 22px;
    color: #1a1a1a;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Цвет цены — СИНИЙ */
.price {
    font-size: 52px;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 8px 0 4px;
    line-height: 1;
    letter-spacing: -0.03em;
}

.pricing-card.popular .price {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-period {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

/* ============================================
   FEATURES
   ============================================ */

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    flex-grow: 1;
}

.pricing-features li {
    padding: 9px 0;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #374151;
    line-height: 1.5;
}

.pricing-features li.included i {
    color: #10b981;
    font-size: 14px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 1px;
}

.pricing-features li.excluded {
    color: #9ca3af;
}

.pricing-features li.excluded i {
    color: #ef4444;
    font-size: 14px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ============================================
   BUTTONS — ЗЕЛЁНЫЙ
   ============================================ */

.btn-pricing {
    padding: 14px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    letter-spacing: 0.2px;
}

.btn-pricing:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.btn-pricing:active {
    transform: translateY(0);
}

/* Кнопка в popular — фиолетово-розовая */
.pricing-card.popular .btn-pricing {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

.pricing-card.popular .btn-pricing:hover {
    background: linear-gradient(135deg, #a78bfa 0%, #f472b6 100%);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.45);
}

/* ============================================
   DESCRIPTION BLOCK
   ============================================ */

.pricing-description {
    background: white;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(135deg, #6366f1, #8b5cf6);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.pricing-description.flash {
    animation: flash 0.6s ease;
}

@keyframes flash {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 0 30px 10px rgba(99, 102, 241, 0.2); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.pricing-description h3 {
    font-size: 26px;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.pricing-description .plan-price {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.pricing-description .plan-description {
    font-size: 15px;
    color: #4b5563;
    margin-bottom: 20px;
    line-height: 1.7;
}

.pricing-description .plan-features {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
}

.pricing-description .plan-features li {
    font-size: 14px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-description .plan-features li i {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 10px;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

@media (max-width: 992px) {
    .pricing-section {
        padding: 60px 0 60px 0;
    }

    .pricing-card {
        padding: 36px 24px 30px;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-card.popular:hover {
        transform: translateY(-8px);
    }

    .price {
        font-size: 44px;
    }

    .pricing-description {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .pricing-section {
        padding: 50px 0 40px 0;
    }

    .pricing-card {
        padding: 32px 22px 28px;
        margin-bottom: 24px;
    }

    .pricing-card.popular {
        transform: scale(1);
        margin-top: 24px;
        margin-bottom: 24px;
    }

    .price {
        font-size: 40px;
    }

    .pricing-header h3 {
        font-size: 20px;
    }

    .pricing-features li {
        font-size: 13px;
        padding: 8px 0;
    }

    .pricing-description {
        padding: 24px;
        margin-top: 20px;
    }

    .pricing-description h3 {
        font-size: 22px;
    }

    .pricing-description .plan-price {
        font-size: 20px;
    }

    .pricing-description .plan-features {
        flex-direction: column;
        gap: 8px;
    }

    .popular-badge {
        font-size: 11px;
        padding: 6px 18px;
    }
}

@media (max-width: 480px) {
    .pricing-card {
        padding: 30px 18px 24px;
        border-radius: 18px;
    }

    .price {
        font-size: 36px;
    }

    .btn-pricing {
        padding: 12px;
        font-size: 14px;
    }

    .popular-badge {
        font-size: 10px;
        padding: 5px 14px;
    }

    .pricing-description {
        padding: 20px;
        border-radius: 16px;
    }
}