/* Контейнер для вариантов цен */
.pricing-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

/* Базовый стиль для варианта цены */
.pricing-option {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 2em 0.1em 0 0.1em;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.pricing-option:hover {
    border-color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

/* Рекомендуемый вариант */
.pricing-option.recommended {
    border-color: #4f46e5;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.pricing-option.recommended::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #ec4899);
}

/* Метка пакета */
.package-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-option.recommended .package-label {
    color: #4f46e5;
}

/* Цена */
.package-price {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.pricing-option.recommended .package-price {
    color: #4f46e5;
    font-size: 1rem;
}

/* Экономия */
.save-percent {
    font-size: 0.75rem;
    font-weight: 600;
    color: #059669;
    background: #ecfdf5;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 0.75rem;
}

/* Бейдж "Рекомендуем" */
.recommended-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #4f46e5, #ec4899);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    transform: rotate(4deg);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
    z-index: 10;
}

/* Выбранный вариант */
.pricing-option.selected {
    border-color: #4f46e5;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.pricing-option.selected .package-label {
    color: #4f46e5;
}

.pricing-option.selected .package-price {
    color: #4f46e5;
}

/* Анимация при выборе */
@keyframes selectPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
    }
    70% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(79, 70, 229, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
    }
}

.pricing-option.selected {
    animation: selectPulse 0.6s ease;
}

/* Иконка выбора */
.pricing-option .check-icon {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 1.25rem;
    height: 1.25rem;
    background: #4f46e5;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.pricing-option.selected .check-icon {
    opacity: 1;
    transform: scale(1);
}

/* Старая цена для пакетов */
.old-price {
    font-size: 0.875rem;
    color: #9ca3af;
    text-decoration: line-through;
    margin-right: 0.5rem;
}

/* Стоимость за сессию в пакете */
.price-per-session {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .pricing-options {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .pricing-option {
        padding: 0.7rem;
    }
    
    .package-price {
        font-size: 0.7rem;
    }
    
    .pricing-option.recommended .package-price {
        font-size: 0.7rem;
    }
    .package-label {
    font-size: 0.5rem;
    
    
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
}

@media (max-width: 640px) {
    .pricing-options {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

/* Темная тема */
@media (prefers-color-scheme: dark) {
    .pricing-option {
        background: #f8f9fa;
        border-color: #4b5563;
    }
    
    .pricing-option.recommended {
        background: linear-gradient(135deg, #69f2c2 0%, #c8e3dd 100%);
    }
    
    .package-label {
        color: #0a1833;
    }
    
    .package-price {
        color: #0c2b4b;
    }
    
    .save-percent {
        background: #065f46;
        color: #6ee7b7;
    }
}

/* Анимация появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-option {
    animation: fadeInUp 0.6s ease;
}

.pricing-option:nth-child(1) { animation-delay: 0.1s; }
.pricing-option:nth-child(2) { animation-delay: 0.2s; }
.pricing-option:nth-child(3) { animation-delay: 0.3s; }

/* Дополнительные утилитные классы */
.pricing-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
    margin: 1rem 0;
}

.pricing-note {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
}

/* Иконки */
.pricing-icon {
    width: 2rem;
    height: 2rem;
    margin: 0 auto 0.75rem;
    color: #4f46e5;
}

.pricing-option.recommended .pricing-icon {
    color: #ec4899;
}