/* static/payments/css/public-subscription.css */

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.plan-card {
    background: white;
    border-radius: 20px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    max-width: 400px;
    margin: 0 auto;
    display: flex;                /* ← добавить */
    flex-direction: column;       /* ← добавить */
    height: 100%;                 /* ← добавить */
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.plan-card h3 {
    font-size: 23px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.price {
    margin-bottom: 10px;
}

.discount-info {
    margin-bottom: 8px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 16px;
    margin-right: 10px;
}

.current-price {
    font-size: 28px;
    font-weight: 800;
    color: #4246b1;
}

.discount-badge {
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.description {
    color: #6c757d;
    margin-bottom: 10px;
    font-size: 14px;
}

.features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
    flex: 1;                      /* ← добавить */
}

.features li {
    padding: 5px 0;
    color: #495057;
    font-size: 14px;
}

.features li i {
    color: #28a745;
    margin-right: 10px;
}

.btn-subscribe {
    width: 100%;
    padding: 12px;
    background: linear-gradient(to bottom right, #393eb4 60%, #a439b4 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin-top: auto;
    margin-bottom: 5px;
}

.btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(57, 62, 180, 0.3);
    background: linear-gradient(to bottom right, #393eb4 50%, #a439b4 100%);
    color: white;
    text-decoration: none;
}

.subscription-title {
    font-size: 36px;
    font-weight: 600;
    font-family: 'Inter', 'Segoe UI', 'Arial', sans-serif;
    color: #000000bd;
    text-align: center;
    letter-spacing: -0.3px;
    margin-top: -20px;
    margin-bottom: 20px;
    padding: 20px;
}

.price .free-price {
    font-size: 28px;
    font-weight: 800;
    color: #4246b1;
    margin-top: 10px;
}

.plan-card.current-plan {
    border-color: #4246b1;
    box-shadow: 0 10px 30px rgba(57, 62, 180, 0.25);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .subscription-title {
        font-size: 30px;
        margin-bottom: -30px;
    }

    .plans-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 5px;
    }
    
    .plan-card {
        padding: 20px;
    }
    
    .plan-card h3 {
        font-size: 20px;
    }
    
    .current-price {
        font-size: 28px;
    }
    
    .discount-badge {
        font-size: 11px;
        padding: 2px 6px;
    }
    
    .btn-subscribe {
        padding: 12px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .plan-card {
        padding: 15px;
    }
    
    .plan-card h3 {
        font-size: 18px;
    }
    
    .current-price {
        font-size: 24px;
    }
    
    .btn-subscribe {
        padding: 10px;
        font-size: 14px;
    }
}