/* ===== FAQ PAGE STYLES ===== */
/* Наследуем основные стили от главного style.css, добавляем только специфичные для FAQ */

/* ===== TOOL NAVIGATION ===== */
.tool-nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    position: sticky;
    top: 60px;
    z-index: 40;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.85);
}

.tool-nav .container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tool-nav-back {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.tool-nav-back:hover {
    color: var(--primary);
}

.tool-nav-title {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

/* ===== FAQ CONTENT ===== */
.info-wrapper {
    padding: 24px 0 60px;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.info-header .info-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border);
    color: var(--primary);
}

.info-header .info-icon svg {
    width: 28px;
    height: 28px;
}

.info-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0;
}

.info-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

@media (max-width: 768px) {
    .info-header {
        flex-direction: column;
        text-align: center;
    }

    .info-header h1 {
        font-size: 1.4rem;
    }
}

.info-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 36px;
    box-shadow: var(--shadow);
}

@media (max-width: 640px) {
    .info-content {
        padding: 20px;
    }
}

.info-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin: 32px 0 12px 0;
    letter-spacing: -0.01em;
}

.info-content h2:first-of-type {
    margin-top: 0;
}

.info-content .faq-item {
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

.info-content .faq-item:last-child {
    border-bottom: none;
}

.info-content .faq-item .question {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.info-content .faq-item .question::before {
    content: 'Q:';
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
}

.info-content .faq-item .answer {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
    padding-left: 32px;
}

.info-content .faq-item .answer::before {
    content: 'A:';
    color: var(--text-muted);
    font-weight: 600;
    margin-right: 6px;
}

.info-content .faq-item .answer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.info-content .faq-item .answer a:hover {
    text-decoration: underline;
}

.info-content .highlight-box {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 16px 0;
}

.info-content .highlight-box p {
    margin-bottom: 0;
    font-weight: 500;
    color: var(--text);
}

.info-content .back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 32px;
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition);
}

.info-content .back-to-top:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.info-content .back-to-top svg {
    width: 16px;
    height: 16px;
}

/* ===== SEARCH SUGGESTIONS ===== */
.suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    max-height: 320px;
    overflow-y: auto;
    display: none;
    padding: 4px 0;
    z-index: 100;
}

.suggestions.active {
    display: block;
    animation: fadeIn 0.15s ease;
}

.suggestion-item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.suggestion-item:hover {
    background: var(--primary-light);
}

.suggestion-item .name {
    flex: 1;
}

.suggestion-item .category-tag {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    background: var(--bg);
    padding: 2px 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.suggestion-item .highlight {
    font-weight: 600;
    color: var(--primary);
}

.suggestions::-webkit-scrollbar {
    width: 4px;
}

.suggestions::-webkit-scrollbar-track {
    background: transparent;
}

.suggestions::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}