.prices-section {
    padding: 140px 0 80px 0;
    background-color: #ffffff;
    
    /* ЭФФЕКТ ПЛАВНОГО ПОЯВЛЕНИЯ: */
    opacity: 0;                           /* Изначально секция полностью прозрачная */
    transform: translateY(30px);          /* Смещена на 30px вниз */
    transition: opacity 1.5s ease, transform 1.5s ease; /* Анимация займет 1 секунду */
}

/* Когда JS добавит этот класс, секция плавно вернется в нормальное положение */
.prices-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.prices-header {
    text-align: center;
    margin-bottom: 60px;
}

.prices-header h1 {
    font-size: 36px;
    color: #111111;
    margin-bottom: 15px;
    position: relative;
}

/* Оранжевая разделительная линия под заголовком */
.prices-header h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #e65c00;
    margin: 10px auto 0 auto;
}

.prices-header p {
    color: #555555;
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.prices-subtitle {
    font-size: 22px;
    color: #111111;
    text-align: center;
    margin: 0 0 35px 0;
    font-weight: 600;
}

/* ==========================================================================
   БЛОК 1: Карточки тарифов (Flexbox сетка)
   ========================================================================== */
.price-cards-grid {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 80px;
    align-items: stretch;
}

.price-card {
    background-color: #f9f9f9;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    padding: 40px 30px;

    flex: 1;

    display: flex;
    flex-direction: column;
    position: relative;
}

/* Эффект парения при наведении */
.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Стили для центральной/популярной карточки */
.price-card.featured {
    border: 2px solid #e65c00;
    background-color: #ffffff;
    box-shadow: 0 10px 25px rgba(230, 92, 0, 0.05);
}

/* Бейдж "Популярно" */
.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #e65c00;
    color: #ffffff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.card-header {
    text-align: center;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 20px;
    margin-bottom: 25px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    min-height: 290px;
}

.card-header h3 {
    font-size: 22px;
    color: #111111;
    margin-bottom: 10px;

    min-height: 80px;
}

.card-desc {
    font-size: 14px;
    color: #777777;
    line-height: 1.6;

    min-height: 120px;
}

/* Оформление цены */
.card-price {
    margin-top: 15px;
    color: #111111;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px; /* Небольшой отступ между "от/~", цифрами и валютой */
}


.card-price .currency {
    font-size: 20px;
    font-weight: 500;
    color: #777777; /* Делаем приставку "от" или "~" чуть помягче цветом */
}

.card-price .amount {
    font-size: 34px;
    font-weight: 700;
    color: #e65c00;
}

.card-price .period {
    font-size: 15px;
    color: #777777;
    margin-left: 2px;
}

/* Список преимуществ */
.card-features {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1; /* Растягивает список, выравнивая кнопки внизу */
}

.card-features li {
    font-size: 15px;
    color: #444444;
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
}

/* Галочка перед пунктом списка */
.card-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #e65c00;
    font-weight: bold;
}

/* Если услуга не включена в тариф */
.card-features li.not-included {
    color: #b9b9b9;
    text-decoration: line-through;
}

.card-features li.not-included::before {
    content: '✕';
    color: #b9b9b9;
}

/* Кнопка заказа в карточке */
.btn-card {
    display: block;
    text-align: center;
    background-color: #111111;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    transition: background-color 0.3s;
}

.btn-card:hover {
    background-color: #e65c00;
}

.price-card.featured .btn-card {
    background-color: #e65c00;
}

.price-card.featured .btn-card:hover {
    background-color: #cc5200;
}

/* ==========================================================================
   БЛОК 2: Детальная таблица
   ========================================================================== */
.prices-table-wrapper {
    margin-top: 40px;
    background: #ffffff;
}

.prices-table-wrapper h2 {
    font-size: 26px;
    color: #111111;
    margin-bottom: 5px;
}

.table-subtitle {
    font-size: 14px;
    color: #777777;
    margin-bottom: 20px;
}

.prices-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}

.prices-table th {
    background-color: #111111;
    color: #ffffff;
    text-align: left;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 15px;
}

.prices-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eeeeee;
    color: #333333;
    font-size: 15px;
}

/* Подсветка строк таблицы при наведении */
.prices-table tbody tr:hover {
    background-color: #fcfcfc;
}

/* Делаем жирным колонку с ценой */
.prices-table td:last-child {
    font-weight: 600;
    color: #e65c00;
}

/* Уведомление внизу страницы */
.prices-notice {
    background-color: #fdf6f2;
    border-left: 4px solid #e65c00;
    padding: 20px 25px;
    border-radius: 0 4px 4px 0;
    line-height: 1.6;
}

.prices-notice p {
    color: #444444;
    font-size: 15px;
}

@media (max-width: 992px) {

    .price-cards-grid {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .price-card {
        width: 100%;
        max-width: 100%;
        flex: none;
        margin: 0;
    }
}

@media (max-width: 768px) {
.prices-table-wrapper {
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling: touch; /* Плавный скролл на iPhone */
    margin-bottom: 20px;
    }

    .prices-table {
        min-width: 600px; /* Таблица не будет сжиматься меньше 600px, поэтому появится скролл */
    }
}