/* --- Общий стиль секции --- */
.tariffs {
    background: #f5f5f5;
    padding: 80px 20px;
    text-align: center;
    color: #333;
}

.tariffs h2 {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.decor-line {
    width: 60px;
    height: 4px;
    background: #8000FF;
    margin: 0 auto 30px;
}

.description {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

/* --- Переключатель периодов оплаты --- */
.pricing-switcher {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.pricing-switcher button {
    background: #ffffff;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 20px;
    font-size: 14px;
    margin: 0 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.pricing-switcher button.active {
    background: #8000FF;
    color: #ffffff;
    border-color: #8000FF;
}

.pricing-switcher button:hover {
    background: #5d00b5;
    color: #ffffff;
}

/* --- Карточки тарифов --- */
.tariff-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.tariff-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tariff-card.popular {
    border: 3px solid #8000FF;
    transform: scale(1.05);
}

.tariff-card h3 {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.tariff-card .tariff-old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 5px;
}

.tariff-card .tariff-price {
    font-size: 24px;
    font-weight: bold;
    color: #8000FF;
    margin-bottom: 15px;
    margin-top: 0;
}

.tariff-card .tariff-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
    color: #555;
}

.tariff-card .tariff-features li {
    font-size: 14px;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.tariff-card .tariff-features li::before {
    content: "✔";
    color: #8000FF;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 16px;
}

.tariff-card .btn-primary {
    background: #8000FF;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.tariff-card .btn-primary:hover {
    background: #5d00b5;
}

/* --- Метка "Популярный" --- */
.tariff-card .tariff-tag {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #8000FF;
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 5px;
    text-transform: uppercase;
}

/* --- Тариф "Персональный" --- */
.tariff-card.revenue.special {
    background: linear-gradient(90deg, #8000FF, #D500F9);
    border-radius: 15px;
    color: white;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px; /* Отступ от остальных тарифов */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.revenue-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    transform: translateY(-5px);
}

.revenue-left h3 {
    font-size: 28px; /* Увеличенный заголовок */
    font-weight: bold;
    margin-bottom: 20px;
}

.revenue-left .tariff-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.revenue-left .tariff-features li {
    font-size: 18px; /* Увеличенный шрифт для текста */
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: #ffffff;
}

.revenue-left .tariff-features li::before {
    content: "✔";
    color: white;
    font-size: 18px;
    margin-right: 10px;
}

.revenue-right {
    /*text-align: right;*/
}

.revenue-right .tariff-percent {
    font-size: 60px;
    font-weight: bold;
    margin-bottom: 10px;
    margin-top: 0;
}

.revenue-right .tariff-subtext {
    font-size: 20px;
    font-weight: 500;
    opacity: 0.9;
    margin: 0;
}

/* --- Кнопка для тарифа "Персональный" --- */
.revenue-btn {
    margin-top: 20px;
    background: #ffffff;
    color: #8000FF;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s ease, color 0.3s ease;
}

.revenue-btn:hover {
    background: #D500F9;
    color: white;
}

/* --- Адаптивность --- */
@media (max-width: 430px) {
    .revenue-content{
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .revenue-right {
        margin-top: 20px;
    }

    .revenue-right .tariff-percent {
        font-size: 48px;
    }
}
