/* ==========================================================
   FAQ.CSS — ЧАСТО ЗАДАВАЕМЫЕ ВОПРОСЫ (СВЕТЛАЯ / ТЁМНАЯ ТЕМА)
========================================================== */

.faq-container {
    max-width: 1280px;
    margin: 0 auto;
    background: var(--bg-surface, #ffffff);
    border: 1px solid var(--border-main, transparent);
    border-radius: 2rem;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-header {
    background: linear-gradient(135deg, #35ac89 0%, #1c4e6c 100%);
    padding: 2rem 2.5rem;
    color: white;
}

.faq-header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
    color: #fff;
}

.faq-header p {
    font-size: 1rem;
    opacity: 0.85;
    max-width: 600px;
    color: #fff;
}

.faq-grid {
    display: flex;
    flex-wrap: wrap;
}

/* Боковая колонка-навигация */
.faq-sidebar {
    background: var(--bg-subtle, #fefef7);
    width: 280px;
    flex-shrink: 0;
    border-right: 1px solid var(--border-main, #e6edf2);
    padding: 2rem 1.5rem;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.faq-sidebar .nav-block {
    margin-bottom: 2rem;
}

.faq-sidebar .nav-title {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-caption, #5f7f9a);
    margin-bottom: 1.2rem;
    border-left: 3px solid #ba372a;
    padding-left: 12px;
}

.faq-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.faq-nav-list li {
    margin-bottom: 0.7rem;
}

.faq-nav-list a {
    text-decoration: none;
    font-weight: 500;
    color: var(--text-main, #1f4e6e);
    font-size: 1rem;
    display: inline-block;
    transition: all 0.2s ease;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
}

.faq-nav-list a:hover {
    color: #ba372a;
    border-bottom-color: #ba372a;
    transform: translateX(2px);
}

.btn-question {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ba372a;
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 20px;
    border-radius: 44px;
    margin-top: 20px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 8px rgba(186, 55, 42, 0.25);
}

.btn-question:hover {
    background: #9e2c20;
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(186, 55, 42, 0.35);
    color: white !important;
}

/* Основной контент */
.faq-content {
    flex: 1;
    padding: 2rem 2.5rem;
    background: var(--bg-surface, #ffffff);
    transition: background-color 0.25s ease;
}

.faq-category {
    margin-bottom: 3rem;
    scroll-margin-top: 20px;
}

.faq-category h2 {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text-main, #0f3b4f);
    border-left: 5px solid #ba372a;
    padding-left: 18px;
    margin-bottom: 1.8rem;
    margin-top: 0.5rem;
}

.faq-item {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-divider, #eef2f5);
    padding-bottom: 1.4rem;
}

.faq-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-main, #1f4e6e);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.faq-item h3::before {
    content: "❓";
    font-size: 1.2rem;
    font-weight: normal;
}

.faq-item p {
    color: var(--text-muted, #2c4258);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.faq-item a {
    color: var(--accent-color, #ba372a);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dotted currentColor;
    transition: all 0.2s ease;
}

.faq-item a:hover {
    color: #029aad;
    border-bottom-style: solid;
}

/* Нижний баннер "Остались вопросы?" */
.contact-banner {
    background: var(--bg-secondary, #f1f5f9);
    border-radius: 1.5rem;
    padding: 1.6rem 2rem;
    margin-top: 2rem;
    text-align: center;
    border: 1px solid var(--border-main, #dce5ec);
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.contact-banner p {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    color: var(--text-main, #171b19);
}

.contact-banner .big-link {
    font-size: 1.2rem;
    font-weight: 700;
    background: #ba372a;
    display: inline-block;
    padding: 0.7rem 2rem;
    border-radius: 40px;
    color: white !important;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(186, 55, 42, 0.2);
}

.contact-banner .big-link:hover {
    background: #942c20;
    transform: scale(1.02);
}

hr {
    margin: 1rem 0;
    border: 0;
    height: 1px;
    background: linear-gradient(to right, var(--border-main, #e0e8ef), transparent);
}

.badge-phone {
    background: var(--bg-secondary, #eef2fa);
    color: var(--text-main, #171b19);
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-family: monospace;
    font-weight: 600;
}

.highlight {
    background: var(--bg-secondary, #fff1e6);
    color: var(--text-main, #171b19);
    padding: 0.1rem 0.3rem;
    border-radius: 6px;
}

/* ==========================================================
   ПОДДЕРЖКА ТЁМНОЙ ТЕМЫ [data-theme="dark"]
========================================================== */
[data-theme="dark"] .faq-container {
    background: var(--bg-surface, #151a1e);
    border-color: var(--border-main, #232d36);
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .faq-sidebar {
    background: var(--bg-subtle, #1a2228);
    border-right-color: var(--border-main, #232d36);
}

[data-theme="dark"] .faq-sidebar .nav-title {
    color: var(--text-caption, #94a3b8);
    border-left-color: #e53e3e;
}

[data-theme="dark"] .faq-nav-list a {
    color: var(--text-muted, #cbd5e1);
}

[data-theme="dark"] .faq-nav-list a:hover {
    color: var(--accent-color, #38bdf8);
    border-bottom-color: var(--accent-color, #38bdf8);
}

[data-theme="dark"] .faq-content {
    background: var(--bg-surface, #151a1e);
}

[data-theme="dark"] .faq-category h2 {
    color: var(--text-main, #f1f5f9);
    border-left-color: #e53e3e;
}

[data-theme="dark"] .faq-item {
    border-bottom-color: var(--border-divider, #232d36);
}

[data-theme="dark"] .faq-item h3 {
    color: var(--text-main, #f1f5f9);
}

[data-theme="dark"] .faq-item p {
    color: var(--text-muted, #cbd5e1);
}

[data-theme="dark"] .faq-item a {
    color: var(--accent-color, #38bdf8);
}

[data-theme="dark"] .faq-item a:hover {
    color: #7dd3fc;
}

[data-theme="dark"] .contact-banner {
    background: var(--bg-subtle, #1a2228);
    border-color: var(--border-main, #232d36);
}

[data-theme="dark"] .contact-banner p {
    color: var(--text-muted, #cbd5e1);
}

[data-theme="dark"] .badge-phone {
    background: var(--bg-secondary, #222c34);
    color: var(--accent-color, #38bdf8);
}

[data-theme="dark"] .highlight {
    background: var(--bg-secondary, #222c34);
    color: #f59e0b;
}

/* ==========================================================
   АДАПТИВ
========================================================== */
@media (max-width: 800px) {
    .faq-grid {
        flex-direction: column;
    }

    .faq-sidebar,
    .faq-sidebar .nav-block {
        position: static;
        top: auto;
    }

    .faq-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-main, #e2e8f0);
        padding: 1.5rem;
    }

    .faq-content {
        padding: 1.8rem;
    }

    .faq-header h1 {
        font-size: 1.8rem;
    }

    .faq-category h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .faq-header {
        padding: 1.5rem;
    }
    
    .faq-header h1 {
        font-size: 1.5rem;
    }

    .faq-item h3 {
        font-size: 1.15rem;
    }

    .faq-content {
        padding: 1.2rem;
    }
}