/* Стили для страницы тарифов */

/* Основное содержимое */
.main {
    flex: 1;
    padding: 48px 0;
    display: flex;
    align-items: flex-start;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Кнопка назад */
.back-button-container {
    margin-bottom: 32px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: #0078d4;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.back-button:hover {
    background-color: #106ebe;
}

/* Заголовок страницы - ВЫРОВНЕН ПО ЦЕНТРУ */
.page-title {
    color: #323130;
    margin-bottom: 12px;
    font-size: 32px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
}

.page-title i {
    color: #0078d4;
}

.page-subtitle {
    color: #605e5c;
    margin-bottom: 48px;
    font-size: 18px;
    text-align: center;
}

/* Секции тарифов */
.pricing-section {
    margin-bottom: 64px;
}

/* Заголовки секций - ВЫРОВНЕНЫ ПО ЦЕНТРУ */
.section-title {
    color: #323130;
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.section-title i {
    color: #0078d4;
}

.section-subtitle {
    color: #605e5c;
    margin-bottom: 32px;
    font-size: 16px;
    text-align: center;
}

/* Сетка тарифов - 3 в ряд */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

/* Центрирование одного тарифа в ряду */
.pricing-grid:has(.pricing-card:only-child) {
    grid-template-columns: 1fr;
    justify-items: center;
}

.pricing-grid:has(.pricing-card:only-child) .pricing-card {
    max-width: 400px;
    width: 100%;
}

/* Карточка тарифа */
.pricing-card {
    background-color: white;
    border-radius: 8px;
    border: 1px solid #e1dfdd;
    padding: 24px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
    border: 2px solid #0078d4;
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.15);
}

/* Бейдж популярного тарифа */
.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0078d4;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Шапка карточки */
.pricing-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1dfdd;
}

.pricing-header h3 {
    color: #323130;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.price {
    color: #0078d4;
    font-size: 28px;
    font-weight: 700;
}

.period {
    font-size: 14px;
    color: #605e5c;
    font-weight: 400;
}

/* Особенности тарифа */
.pricing-features {
    margin-bottom: 24px;
    flex: 1;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.feature i {
    color: #605e5c;
    margin-top: 2px;
    flex-shrink: 0;
    width: 18px;
    font-size: 14px;
    text-align: center;
}

.feature span {
    color: #323130;
    font-size: 13px;
    line-height: 1.4;
}

.feature strong {
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.included {
    color: #107c10;
    font-weight: 600;
}

.excluded {
    color: #d13438;
    font-weight: 600;
}

/* Кнопка выбора тарифа */
.pricing-select-btn {
    width: 100%;
    padding: 12px;
    background-color: #107c10;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: inherit;
    margin-top: auto;
}

.pricing-select-btn:hover {
    background-color: #0e700e;
}

.pricing-card.popular .pricing-select-btn {
    background-color: #0078d4;
}

.pricing-card.popular .pricing-select-btn:hover {
    background-color: #106ebe;
}

/* Примечание */
.pricing-note {
    background-color: #eef6fc;
    border: 1px solid #c7e0f4;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 32px;
}

.pricing-note i {
    color: #0078d4;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-note p {
    color: #323130;
    font-size: 14px;
    margin: 0;
}

/* Активное состояние кнопки меню */
.menu-btn.active {
    background-color: #0078d4;
    color: white;
    border-color: #0078d4;
}

.menu-btn.active:hover {
    background-color: #106ebe;
    border-color: #106ebe;
}

/* Темная тема для страницы тарифов */
body.dark-theme .pricing-card {
    background-color: #2d2c2c;
    border-color: #3b3a39;
}

body.dark-theme .pricing-header h3,
body.dark-theme .feature span {
    color: #f3f2f1;
}

body.dark-theme .pricing-header {
    border-bottom-color: #3b3a39;
}

body.dark-theme .feature i {
    color: #d2d0ce;
}

body.dark-theme .period {
    color: #d2d0ce;
}

body.dark-theme .pricing-note {
    background-color: #252423;
    border-color: #3b3a39;
}

body.dark-theme .pricing-note p {
    color: #f3f2f1;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .pricing-card {
        padding: 20px;
    }
    
    .price {
        font-size: 24px;
    }
}