/* FAQ - Стили */

.faq-intro {
    background: linear-gradient(135deg, #e8f4fd 0%, #d1ecf1 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid #17a2b8;
}

.faq-intro .lead {
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
    color: #2c3e50;
}

/* Поиск */
.faq-search {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    padding: 0.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.faq-search:focus-within {
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

#faq-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    background: transparent;
}

#search-btn {
    background: #2c5aa0;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

#search-btn:hover {
    background: #1e3f73;
}

/* Категории */
.faq-categories {
    margin-bottom: 3rem;
}

.category-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    justify-content: center;
}

.tab-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #6c757d;
}

.tab-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: #2c5aa0;
    border-color: #2c5aa0;
    color: white;
}

/* FAQ контейнер */
.faq-container {
    margin-bottom: 3rem;
}

/* FAQ элементы */
.faq-item {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #2c5aa0;
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.1);
}

.faq-item.active {
    border-color: #2c5aa0;
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.15);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e9ecef;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
}

.faq-item.active .faq-question {
    background: linear-gradient(135deg, #2c5aa0 0%, #3498db 100%);
    color: white;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
}

.faq-item.active .faq-question h3 {
    color: white;
}

.toggle-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c5aa0;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(44, 90, 160, 0.1);
    transition: all 0.3s ease;
}

.faq-item.active .toggle-icon {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 1.5rem;
    color: #495057;
    line-height: 1.6;
}

.faq-answer h4 {
    color: #2c5aa0;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.1rem;
}

.faq-answer ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.faq-answer p {
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Теги в ответах */
.answer-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(44, 90, 160, 0.1);
    color: #2c5aa0;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(44, 90, 160, 0.2);
}

.tag.danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.3);
}

.tag.warning {
    background: rgba(255, 193, 7, 0.1);
    color: #e0a800;
    border-color: rgba(255, 193, 7, 0.3);
}

.tag.important {
    background: rgba(103, 58, 183, 0.1);
    color: #673ab7;
    border-color: rgba(103, 58, 183, 0.3);
}

/* Специальные блоки в ответах */
.side-effects-list {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
}

.effect-category {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid #2c5aa0;
}

.effect-category h4 {
    margin-bottom: 0.8rem;
    color: #2c5aa0;
}

.pleural-info {
    background: linear-gradient(135deg, #fff3cd 0%, #fef7e0 100%);
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.decision-matrix {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.decision-matrix h4 {
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Взаимодействия препаратов */
.drug-interactions {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
}

.interaction-category {
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.interaction-category.danger {
    background: rgba(220, 53, 69, 0.05);
    border-left-color: #dc3545;
}

.interaction-category.warning {
    background: rgba(255, 193, 7, 0.05);
    border-left-color: #ffc107;
}

.interaction-category h4 {
    margin-bottom: 1rem;
}

/* Добавки и витамины */
.supplements-guide {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
}

.safe-supplements {
    background: rgba(40, 167, 69, 0.05);
    border-left: 4px solid #28a745;
    padding: 1rem;
    border-radius: 8px;
}

.caution-supplements {
    background: rgba(255, 193, 7, 0.05);
    border-left: 4px solid #ffc107;
    padding: 1rem;
    border-radius: 8px;
}

.avoid-supplements {
    background: rgba(220, 53, 69, 0.05);
    border-left: 4px solid #dc3545;
    padding: 1rem;
    border-radius: 8px;
}

.foods-to-avoid {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

/* Упражнения */
.exercise-guide {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
}

.recommended-activities {
    background: rgba(40, 167, 69, 0.05);
    border-left: 4px solid #28a745;
    padding: 1rem;
    border-radius: 8px;
}

.exercise-precautions {
    background: rgba(255, 193, 7, 0.05);
    border-left: 4px solid #ffc107;
    padding: 1rem;
    border-radius: 8px;
}

/* Беременность */
.pregnancy-info {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
}

.for-women, .for-men {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid #17a2b8;
}

.for-women h4, .for-men h4 {
    color: #17a2b8;
    margin-bottom: 1rem;
}

/* Хранение */
.storage-conditions, .storage-tips {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.storage-conditions {
    border-left: 4px solid #28a745;
}

.storage-tips {
    border-left: 4px solid #17a2b8;
}

/* Алкоголь */
.alcohol-guidelines {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
}

.effects {
    background: rgba(220, 53, 69, 0.05);
    border-left: 4px solid #dc3545;
    padding: 1rem;
    border-radius: 8px;
}

.recommendations {
    background: rgba(40, 167, 69, 0.05);
    border-left: 4px solid #28a745;
    padding: 1rem;
    border-radius: 8px;
}

/* Мониторинг */
.monitoring-schedule {
    display: grid;
    gap: 1.5rem;
    margin: 1rem 0;
}

.phase {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
}

.first-months {
    border-left: 4px solid #dc3545;
}

.stable-phase {
    border-left: 4px solid #28a745;
}

.phase h4 {
    color: #2c5aa0;
    margin-bottom: 1rem;
}

/* Молекулярный ответ */
.molecular-response {
    margin: 1rem 0;
}

.response-levels {
    display: grid;
    gap: 1rem;
}

.response-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid #28a745;
}

.response-item strong {
    color: #2c5aa0;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* TFR критерии */
.tfr-criteria {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.tfr-criteria h4 {
    color: #155724;
    margin-bottom: 1rem;
}

/* Питание */
.nutrition-guide {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
}

.recommended-foods {
    background: rgba(40, 167, 69, 0.05);
    border-left: 4px solid #28a745;
    padding: 1rem;
    border-radius: 8px;
}

.foods-to-limit {
    background: rgba(255, 193, 7, 0.05);
    border-left: 4px solid #ffc107;
    padding: 1rem;
    border-radius: 8px;
}

/* Путешествия */
.travel-checklist {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.travel-checklist h4 {
    color: #2c5aa0;
    margin-bottom: 1rem;
}

/* Экстренные контакты */
.emergency-contacts {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #dc3545;
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
}

.emergency-contacts h2 {
    color: #721c24;
    margin-bottom: 1.5rem;
    text-align: center;
}

.emergency-info {
    display: grid;
    gap: 2rem;
}

.emergency-symptoms, .emergency-actions {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 1.5rem;
}

.emergency-symptoms h3, .emergency-actions h3 {
    color: #721c24;
    margin-bottom: 1rem;
}

.emergency-symptoms ul, .emergency-actions ul {
    color: #721c24;
}

.emergency-symptoms li, .emergency-actions li {
    margin-bottom: 0.8rem;
    font-weight: 500;
}

/* Помощь */
.help-section {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    text-align: center;
}

.help-section h2 {
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.help-content p {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.help-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: left;
}

.help-option {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.help-option h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.help-option ul {
    list-style: none;
    padding: 0;
}

.help-option li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.help-option li:last-child {
    border-bottom: none;
}

.help-option a {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 500;
}

.help-option a:hover {
    text-decoration: underline;
}

/* Дисклеймер */
.disclaimer-faq {
    background: linear-gradient(135deg, #e2e3e5 0%, #f8f9fa 100%);
    border: 2px solid #6c757d;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.disclaimer-faq h3 {
    color: #495057;
    margin-bottom: 1rem;
}

.disclaimer-faq p {
    color: #495057;
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
}

/* CTA секция */
.cta-section {
    background: linear-gradient(135deg, #2c5aa0 0%, #3498db 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.3; }
}

.cta-section h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    position: relative;
    z-index: 1;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cta-buttons .btn {
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #fff;
    color: #2c5aa0;
    border: 2px solid #fff;
}

.btn-primary:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: #2c5aa0;
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .category-tabs {
        justify-content: flex-start;
    }
    
    .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .faq-question {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
    
    .faq-answer {
        padding: 1rem;
    }
    
    .emergency-info {
        grid-template-columns: 1fr;
    }
    
    .help-options {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 200px;
    }
    
    .monitoring-schedule {
        grid-template-columns: 1fr;
    }
    
    .drug-interactions,
    .supplements-guide,
    .exercise-guide,
    .pregnancy-info,
    .alcohol-guidelines,
    .nutrition-guide {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .faq-intro {
        padding: 1.5rem;
    }
    
    .faq-search {
        margin-bottom: 1.5rem;
    }
    
    #faq-search-input {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .category-tabs {
        gap: 0.3rem;
    }
    
    .tab-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .toggle-icon {
        width: 25px;
        height: 25px;
        font-size: 1.2rem;
    }
    
    .emergency-contacts,
    .help-section {
        padding: 1.5rem;
    }
    
    .cta-section {
        padding: 2rem 1rem;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
}

/* Анимации */
.faq-item {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-answer {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

/* Дополнительные эффекты */
.faq-item:hover .toggle-icon {
    transform: scale(1.1);
}

.emergency-contacts {
    position: relative;
}

.emergency-contacts::before {
    content: '🚨';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 2rem;
    animation: emergency-pulse 2s infinite;
}

@keyframes emergency-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.help-option:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* Улучшенная типографика */
.faq-answer strong {
    color: #2c5aa0;
    font-weight: 600;
}

.faq-answer em {
    color: #6c757d;
    font-style: italic;
}

/* Скролл */
.faq-container {
    scroll-behavior: smooth;
}

/* Печать */
@media print {
    .faq-search,
    .category-tabs,
    .cta-section {
        display: none !important;
    }
    
    .faq-answer {
        display: block !important;
    }
    
    .toggle-icon {
        display: none !important;
    }
}