:root {
    --bg: #050405;
    --card-bg: rgba(20, 20, 25, 0.7); /* Стекло */
    --text: #eaeaea;
    --muted: #9ca3af;
    --accent1: #9b4bff;
    --accent2: #5e2bff;
    --gradient: linear-gradient(135deg, var(--accent1), var(--accent2));
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover: rgba(30, 30, 35, 0.95);
}

/* Глобальный фикс размеров */
*, *::before, *::after {
    box-sizing: border-box;
}

/* === Скроллбар === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #050405; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent1); }

html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

main { flex: 1 0 auto; }
footer { flex-shrink: 0; }

/* === Анимации === */
@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(225, 29, 72, 0); }
    100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}

/* Класс для JS-анимации появления */
.reveal-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-card.active {
    opacity: 1;
    transform: translateY(0);
}

/* Заголовок */
.page-title {
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.8rem;
    background: linear-gradient(to right, #fff 20%, #bfaee3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(155, 75, 255, 0.3));
}

/* === СЕТКА (Восстановлено из твоего файла) === */
.plans-grid {
    display: grid;
    /* 320px - как в твоем старом файле, это оптимально */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* === КАРТОЧКА === */
.plan-card {
    position: relative;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    
    /* Твой идеальный паддинг */
    padding: 26px; 
    
    text-align: center;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
}

.plan-card:not(.unavailable):hover {
    transform: translateY(-8px);
    background: var(--card-hover);
    border-color: rgba(155, 75, 255, 0.4); /* Фиолетовая обводка */
    box-shadow: 0 15px 50px rgba(155, 75, 255, 0.15); /* Свечение */
}

.plan-card.unavailable {
    opacity: 0.7;
    filter: grayscale(0.6);
    cursor: not-allowed;
    border-color: rgba(255,255,255,0.02);
}

/* === КАРТИНКА (Восстановлено: 220px) === */
.plan-card .img-wrap {
    width: 100%;
    height: 220px; /* Твой размер */
    display: block;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 24px;
    background: #000;
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
}

.plan-card .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Заполняем весь блок */
    transition: transform 0.5s ease;
}

/* Зум при наведении */
.plan-card:not(.unavailable):hover .img-wrap img {
    transform: scale(1.05);
}

/* Тексты */
.plan-card h4 {
    margin: 0 0 12px;
    font-size: 1.4rem;
    color: #fff;
    font-weight: 700;
}

.plan-card p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.5;
    flex-grow: 1; /* Прижимает кнопки к низу */
    padding: 0 5px;
}

/* Цены */
.plan-card .price {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.plan-card .price s {
    color: #ff5b5b;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: line-through;
    opacity: 0.8;
}

.plan-card .price .current {
    color: #fff;
    font-weight: 800;
    font-size: 1.6rem;
    text-shadow: 0 0 20px rgba(155, 75, 255, 0.4);
}

/* === КНОПКА (ФИКС "ВЫЛЕЗАНИЯ") === */
.plan-card .btn-cta {
    background: var(--gradient);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 14px 20px; /* Твой размер */
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    
    margin-top: auto; 
    width: 100%;
    
    box-shadow: 0 4px 15px rgba(155, 75, 255, 0.2);
    text-decoration: none;
    position: relative;
    overflow: hidden; /* Чтобы блик не вылезал */
    z-index: 2;
}

/* Живой блик на кнопке */
.plan-card .btn-cta::after {
    content: ""; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg);
    animation: shine 6s infinite;
}

.plan-card .btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(155, 75, 255, 0.5);
    border-color: rgba(255,255,255,0.3);
}

/* Бейдж "Скоро" */
.coming-soon-badge {
    margin-top: auto;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--muted);
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Скидка (Пульсирующая) */
.discount-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #e11d48;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.4);
    z-index: 2;
    animation: pulse-red 2s infinite;
}

/* === МОБИЛЬНАЯ АДАПТАЦИЯ === */
@media (max-width: 480px) {
    .plan-card { padding: 20px; }
    .plan-card .img-wrap { height: 200px; } /* Чуть меньше на телефоне */
    .plans-grid { gap: 20px; padding: 0 10px; }
}
