

.container.newfaq {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f5f5f5;
}

.newfaq h1, .newfaq h2, .newfaq h3 {
    color: #2c3e50;
}

/* Стили для списка вопросов */
.question-list {
    margin-bottom: 30px;
}

.question-item {
    background: #fff;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.question-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.question-meta {
    font-size: 0.9em;
    color: #7f8c8d;
}

.question-text {
    margin: 10px 0;
    font-size: 1.1em;
}

.newfaq .read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.newfaq .read-more:hover {
    text-decoration: underline;
}

/* Стили для полного вопроса */
.answer-section {
    background: #e8f4fc;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

.answer-meta {
    font-style: italic;
    text-align: right;
    margin-top: 10px;
    color: #7f8c8d;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #3498db;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 5px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.submit-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.submit-btn:hover {
    background-color: #2980b9;
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .question-header {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 20% auto;
        width: 95%;
    }
}


    .question-result-container {
        max-width: 800px;
        margin: 30px auto;
        padding: 0 20px;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }
    
    .question-result-card {
        background: #ffffff;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 30px;
        text-align: center;
        transition: transform 0.3s ease;
    }
    
    .question-result-title {
        color: #2c3e50;
        margin-bottom: 20px;
        font-size: 24px;
        font-weight: 600;
    }
    
    .question-result-content {
        color: #34495e;
        line-height: 1.6;
        margin-bottom: 25px;
        font-size: 16px;
    }
    
    .question-result-link {
        display: inline-block;
        background: #3498db;
        color: white;
        text-decoration: none;
        padding: 12px 24px;
        border-radius: 5px;
        font-weight: 500;
        transition: background-color 0.3s ease;
    }
    
    .question-result-link:hover {
        background-color: #2980b9;
    }
    
    @media (max-width: 600px) {
        .question-result-card {
            padding: 20px;
        }
        
        .question-result-title {
            font-size: 20px;
        }
        
        .question-result-content {
            font-size: 15px;
        }
        
        .question-result-link {
            padding: 10px 20px;
        }
    }