/* ============================================
   SUBSCRIPTIONS PAGE - Страница абонементов
   ============================================ */

.subscriptions-page {
    padding: 3rem 0 4rem;
    background: linear-gradient(135deg, #F0F7FC 0%, #E8E6FF 100%);
    min-height: calc(100vh - 200px);
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 2rem 0 3rem;
}

.page-header .handwritten {
    display: inline-block;
    font-family: 'Comfortaa', cursive;
    font-size: 1rem;
    color: #4A90E2;
    margin-bottom: 0.75rem;
}

.page-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    color: #263238;
    font-weight: 700;
}

.page-header .page-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.125rem);
    color: #78909C;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Subscription Plans */
.subscription-plans {
    padding: 0 0 3rem;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
    max-width: 1200px;
    margin: 0 auto;
}

/* Plan Card */
.plan-card {
    background: #fff;
    border-radius: 1.5rem;
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2rem);
    border: 2px solid #E8F4FD;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(74, 144, 226, 0.15);
    border-color: #4A90E2;
}

.plan-card.featured {
    border-color: #FFA726;
    box-shadow: 0 8px 24px rgba(255, 167, 38, 0.2);
    background: linear-gradient(135deg, #FFFBF0 0%, #FFF8E1 100%);
}

.plan-card.featured:hover {
    box-shadow: 0 12px 32px rgba(255, 167, 38, 0.3);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFA726 0%, #FF7043 100%);
    color: #fff;
    padding: 0.4rem 1.25rem;
    border-radius: 2rem;
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    font-weight: 600;
    font-family: 'Comfortaa', cursive;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(255, 167, 38, 0.3);
}

.plan-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.plan-header h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
    color: #263238;
    font-weight: 700;
}

.plan-description {
    color: #78909C;
    margin: 0;
    font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
    line-height: 1.5;
}

.plan-price {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: clamp(1.25rem, 3vw, 2rem) 1rem;
    background: linear-gradient(135deg, #F0F7FC 0%, #E8E6FF 100%);
    border-radius: 1.25rem;
}

.price-amount {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, #4A90E2 0%, #6C63FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.price-currency {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: #78909C;
    margin-left: 0.25rem;
}

.price-note {
    display: block;
    font-size: clamp(0.8125rem, 1.5vw, 0.875rem);
    color: #66BB6A;
    margin-top: 0.5rem;
    font-weight: 600;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
}

.plan-features li {
    padding: 0.875rem 0;
    border-bottom: 1px solid #E8F4FD;
    color: #263238;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    line-height: 1.5;
}

.plan-features li:last-child {
    border-bottom: none;
}

.btn-block {
    width: 100%;
    text-align: center;
    margin-top: auto;
}

.purchase-btn {
    width: 100%;
    padding: clamp(0.875rem, 2vw, 1.125rem) 1.5rem;
    font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
    font-weight: 600;
    transition: all 0.3s ease;
}

.purchase-btn:hover {
    transform: scale(1.02);
}

/* Benefits Section */
.subscription-benefits {
    padding: 3rem 0;
    background: #fff;
}

.subscription-benefits .container {
    max-width: 1200px;
}

.subscription-benefits h2 {
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 2.5rem;
    color: #263238;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
}

.benefit-item {
    text-align: center;
    padding: clamp(1.5rem, 3vw, 2rem);
    background: linear-gradient(135deg, #F0F7FC 0%, #E8E6FF 100%);
    border-radius: 1.25rem;
    border: 2px solid #E8F4FD;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(74, 144, 226, 0.1);
    border-color: #4A90E2;
}

.benefit-icon {
    font-size: clamp(2.5rem, 5vw, 3rem);
    margin-bottom: 1rem;
    display: block;
}

.benefit-item h3 {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    margin-bottom: 0.75rem;
    color: #263238;
    font-weight: 600;
}

.benefit-item p {
    color: #78909C;
    margin: 0;
    font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
    line-height: 1.6;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 1.5rem;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    right: 1.25rem;
    top: 1.25rem;
    width: 32px;
    height: 32px;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #999;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
}

.modal-close:hover {
    color: #fff;
    background: #EF5350;
    transform: rotate(90deg);
}

.modal-content h2 {
    margin: 0 0 1.5rem 0;
    padding-right: 2.5rem;
    color: #263238;
    font-size: 1.35rem;
    line-height: 1.4;
    font-weight: 600;
}

.modal-body-content {
    margin-bottom: 1.5rem;
}

.modal-body-content p {
    margin: 0.75rem 0;
    color: #546E7A;
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-body-content strong {
    color: #263238;
    font-weight: 600;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.modal-actions .btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
    }
    to { 
        opacity: 1; 
    }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .subscriptions-page {
        padding: 2rem 0 3rem;
    }
    
    .plans-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.5rem;
    }
}

/* Mobile Large (640px - 767px) */
@media (max-width: 767px) {
    .subscriptions-page {
        padding: 1.5rem 0 2.5rem;
    }
    
    .page-header {
        padding: 1.5rem 0 2rem;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .plan-card {
        margin: 0 auto;
        max-width: 400px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .subscription-benefits {
        padding: 2rem 0;
    }
}

/* Mobile Small (до 640px) */
@media (max-width: 640px) {
    .modal-content {
        padding: 1.5rem;
        max-width: 95%;
    }
    
    .modal-content h2 {
        font-size: 1.2rem;
        padding-right: 2rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
    }
    
    .plan-badge {
        font-size: 0.75rem;
        padding: 0.35rem 1rem;
    }
}

/* Extra Small (до 480px) */
@media (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .plan-card {
        padding: 1.5rem 1rem;
    }
    
    .benefit-item {
        padding: 1.5rem;
    }
}