/** ------ Настройка двух страниц "списка тарифоф" и "выбранного тарифа" ------ */
.tariff-container,
.single-tariff-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    max-width: 100%; /* гарантируем, что не выйдет за границы */
}

.tariff-container h1,
.tariff-container h2,
.single-tariff-container h1,
.single-tariff-container h2 {
    text-align: center;
    color: #003C09;
    margin-bottom: 20px;
}

/* Декоративная линия под заголовком */
.tariff-container > h1::after,
.single-tariff-container > h1::after {
    content: '';
    display: block;
    width: 180px;
    height: 1px;
    background: #2e7d32;       /* Насыщенный зеленый */
    margin: 12px auto 0;
}

/** Оформление абзацев и ссылок в ответах */
.tariffs-content p,
.single-tariff-container p {
    margin-bottom: 1.2em;
}

.tariffs-content a,
.single-tariff-container a {
    text-decoration: none;
    color: #003C09;
}

.tariff-description ul,
.tariff-full-description ul {
    margin-bottom: 15px;
    list-style-position: inside; /* Маркер становится частью текста */
    padding-left: 0;            /* Убираем левый отступ, чтобы маркер не «висел» */
}

.tariff-description ul li,
.tariff-full-description ul li {
    padding-left: 1.2em;        /* Отступ текста от маркера */
    text-indent: -1.2em;        /* «Висячий» отступ: первая строка (с маркером) сдвигается влево */
    margin-bottom: 4px;         /* Небольшой отступ между пунктами */
}

/* Вложенный список */
.tariff-description li ul,
.tariff-full-description li ul {
    margin-top: 4px;            /* Отступ сверху от родительского текста */
    margin-left: 0;            /* Убираем лишний левый отступ от браузера */
    padding-left: 2em;          /* Сдвигаем вложенный список вправо относительно родителя */
}

/* Cтиль для навигации */
.tariffs-nav ul {
    justify-content: center;
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    border-bottom: 1px solid #ddd;
}

.tariffs-nav ul li {
    text-align: center;
    text-decoration: none;
    color: #003C09;
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.tariffs-nav ul li a {
    text-decoration: none;
    color: #003C09;
}

.tariffs-nav ul li.active {
    border-bottom-color: #003C09;
    font-weight: bold;
}

.tariff-item {
    display: none;
    padding: 30px 0;
}

.tariff-item.active {
    display: block;
}

.tariff-icon img {
    max-width: 150px;
    height: auto;
}

.btn-detail,
.tariff-navigation a {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background: #ffffff;
    color: #003C09;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #003C09;
    border-radius: 10px;
}

.btn-detail:hover,
.tariff-navigation a:hover {
    background: #003C09;
    color: #ffffff;
}

.tariff-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
}

@media (max-width: 768px) {
    .tariff-navigation {
        gap: 8px;
    }
    
    .tariff-navigation a {
        font-size: 0.8em;
        text-align: center;
    }
}