/* css/prices.css */
/* Оформление страницы prices.php в той же цветовой гамме, что и главная */

.prices-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

/* Отступ от шапки */
.prices-wrapper .right-section {
    margin-top: 20px;
}

.prices-subtitle {
    margin-top: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #566573;
}

/* Переключатель периодов оплаты */
.billing-toggle {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.billing-label {
    font-size: 13px;
    color: #566573;
}

.billing-switch {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border-radius: 999px;
    background: #ecf0f1;
}

.billing-option {
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: #566573;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.billing-option--active {
    background: #ffffff;
    color: #2c3e50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.billing-option-badge {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(102, 126, 234, 0.15);
    color: #3f51b5;
}

/* Сетка из 3 колонок */
.prices-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* Карточка тарифа */
.price-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e1e5e9;
    padding: 22px 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Выделенный (дефолтный) тариф — первый */
.price-card--highlight {
    border-color: #667eea;
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.25);
    position: relative;
}

/* Заголовок карточки */
.price-card-header {
    margin-bottom: 14px;
}

.price-plan-name {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
}

.price-plan-tagline {
    font-size: 13px;
    color: #7b8a99;
}

/* Бейдж пробного периода / спец-условий */
.price-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(102, 126, 234, 0.08);
    color: #667eea;
}

.price-badge--accent {
    background: linear-gradient(135deg, rgba(102,126,234,0.14), rgba(118,75,162,0.14));
    color: #3f51b5;
}

.price-badge--outline {
    border: 1px dashed #b0bec5;
    background: #f8f9fb;
    color: #546e7a;
}

/* Блок цены */
.price-value-block {
    margin-bottom: 14px;
}

.price-value-block--contact {
    margin-bottom: 10px;
}

.price-value {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

/* По умолчанию показываем месячные цены */
.price-value--yearly {
    display: none;
}

/* При годовой оплате переключаем видимость */
.billing-yearly .price-value--monthly {
    display: none;
}

.billing-yearly .price-value--yearly {
    display: inline-flex;
}

.price-value-currency {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7b8a99;
}

.price-value-amount {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
}

.price-value-period {
    font-size: 12px;
    color: #7b8a99;
}

/* Доп. информация для годового плана */
.price-yearly-extra {
    display: none;
    font-size: 11px;
    color: #7b8a99;
    margin-top: 4px;
    display: none;
    align-items: center;
    gap: 8px;
}

.billing-yearly .price-yearly-extra {
    display: flex;
}

.price-yearly-discount {
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(46, 204, 113, 0.12);
    color: #16a085;
    font-weight: 600;
}

/* Для первого плана можно визуально чуть выделить строку с экономией */
.price-yearly-extra--teacher .price-yearly-monthly {
    font-weight: 500;
}

/* Контактная подпись для институций */
.price-contact-label {
    font-size: 13px;
    color: #37474f;
    line-height: 1.5;
}

/* Список фич тарифа */
.price-features {
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
}

.price-features li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
    font-size: 13px;
    color: #455a64;
}

.price-features li::before {
    content: "•";
    position: absolute;
    left: 4px;
    top: 0;
    color: #667eea;
}

/* Низ карточки */
.price-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: flex-start;
}

/* Кнопки */
.price-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid #667eea;
    background: #ffffff;
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.08s ease;
}

.price-btn:hover {
    background: #667eea;
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(102, 126, 234, 0.35);
    transform: translateY(-1px);
}

.price-btn--accent {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    border-color: transparent;
}

.price-btn--accent:hover {
    box-shadow: 0 10px 26px rgba(102, 126, 234, 0.4);
}

/* Примечание под тарифами */
.prices-note {
    margin-top: 26px;
    font-size: 12px;
    color: #7b8a99;
    justify-content: center;
}

/* Адаптивность */
@media (max-width: 992px) {
    .prices-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .prices-grid {
        grid-template-columns: 1fr;
    }

    /* На мобильных первый выделенный тариф всё равно будет сверху */
    .price-card--highlight {
        order: -1;
    }

    .billing-toggle {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 600px) {
    .prices-wrapper .right-section {
        margin-top: 10px;
    }

    .price-plan-name {
        font-size: 16px;
    }

    .price-value-amount {
        font-size: 20px;
    }
}
