/** ---- Общие настройки для контейнеров списка FAQ и страницы отображения ---- */
.faq-archive-container,
.faq-single-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    max-width: 100%; /* гарантируем, что не выйдет за границы */
}

/** Оформление заголовков */
.faq-archive-title,
.faq-single-title {
    text-align: center;
    color: #003C09;
    margin-bottom: 40px;
}

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

.faq-single-container article a {
    text-decoration: none;
    color: #003C09;
}

/* Стили для контента внутри ответа */
.faq-single-answer h2, 
.faq-single-answer h3,
.faq-single-answer h4 {
    margin-top: 10px;
    margin-bottom: 15px;
    color: #003C09;
}

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

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-list-title {
    flex: 1;
}

.faq-list-item {
    background: #ffffff;
    border: 1px solid #e3ede1;
    border-radius: 10px;
    padding: 10px 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.faq-list-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    border-color: #003C09;
}

.faq-list-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #003C09;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.faq-list-link:hover {
    color: #007311;
}

.faq-list-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    background: #003C09;
    color: white;
    border-radius: 15%;
    font-size: 10px;
    flex-shrink: 0;
}

.faq-list-icon:hover {
    background: #007311;
}

/** ---- Блок повопросной навигации FAQ под каждым ответом ---- */
.faq-navigation-compact {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1ede4; /* Декоративное отчеркивание статьи и наыигации */
}

.faq-nav-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    flex-wrap: wrap;
}

.faq-nav-btn {
    display: inline-block;
    padding: 8px 15px;
    background: #ffffff;
    border: 1px solid #003C09;
    border-radius: 6px;
    color: #003C09;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.faq-nav-btn:hover {
    color: #ffffff;
    background: #003C09;
}

.faq-nav-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .faq-nav-row {
        gap: 8px;
    }
    
    .faq-nav-btn {
        font-size: 0.8em;
        width: 100%;
        text-align: center;
    }
}