/* ============================================
   base.css
   ============================================ */

/* =============================================
   Q&A System - Frontend Styles
   ============================================= */

/* --- Форма добавления вопроса --- */
.mqas-form-wrapper {
    max-width: 700px;
    margin: 30px 0;
    padding: 30px;
    background: #f9f9fb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.mqas-form-wrapper h3 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 25px;
    color: #1e293b;
    font-weight: 600;
}

.mqas-form-wrapper label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #334155;
    font-size: 15px;
}

.mqas-form-wrapper textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
    color: #1e293b;
    resize: vertical;
    box-sizing: border-box;
}

.mqas-form-wrapper textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.mqas-form-wrapper textarea#question {
    min-height: 80px;
}

.mqas-form-wrapper textarea#answer {
    min-height: 150px;
}

.mqas-form-wrapper input[type="submit"] {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.25);
    margin-top: 5px;
}

.mqas-form-wrapper input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.35);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.mqas-form-wrapper input[type="submit"]:active {
    transform: translateY(0);
}

.mqas-form-wrapper p {
    margin-bottom: 20px;
}

/* --- Сообщения --- */
.mqas-success {
    background: #ecfdf5;
    border: 2px solid #34d399;
    padding: 20px 25px;
    border-radius: 8px;
    color: #065f46;
    font-weight: 500;
    margin: 20px 0;
}

.mqas-error {
    background: #fef2f2;
    border: 2px solid #f87171;
    padding: 20px 25px;
    border-radius: 8px;
    color: #991b1b;
    font-weight: 500;
    margin: 20px 0;
}

.mqas-info {
    background: #eff6ff;
    border: 2px solid #60a5fa;
    padding: 20px 25px;
    border-radius: 8px;
    color: #1e3a8a;
    font-weight: 500;
    margin: 20px 0;
}

/* --- Список опубликованных вопросов --- */
.mqas-questions-list {
    max-width: 100%;
    margin: 30px 0;
}

.mqas-questions-list .mqas-single {
    background: #ffffff;
    padding: 25px 30px;
    margin-bottom: 25px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.mqas-questions-list .mqas-single:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.mqas-questions-list .mqas-single h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    color: #1e293b;
    font-weight: 600;
    line-height: 1.4;
}

.mqas-questions-list .mqas-single h3 a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mqas-questions-list .mqas-single h3 a:hover {
    color: #3b82f6;
}

.mqas-questions-list .mqas-answer {
    padding: 20px;
    background: #f8fafc;
    border-left: 4px solid #3b82f6;
    border-radius: 6px;
    color: #334155;
    line-height: 1.7;
    font-size: 15px;
}

.mqas-questions-list .mqas-answer p:last-child {
    margin-bottom: 0;
}

.mqas-questions-list .mqas-meta {
    color: #94a3b8;
    font-size: 13px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.mqas-questions-list .mqas-meta .author-name {
    font-weight: 600;
    color: #475569;
}

/* --- Медиа-запросы для адаптива --- */
@media (max-width: 768px) {
    .mqas-form-wrapper {
        padding: 20px;
    }

    .mqas-questions-list .mqas-single {
        padding: 20px;
    }

    .mqas-questions-list .mqas-single h3 {
        font-size: 18px;
    }

    .mqas-form-wrapper input[type="submit"] {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   МОДАЛЬНОЕ ОКНО
   ============================================ */

.qa-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.qa-modal-overlay.active {
    display: flex;
}

.qa-modal {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.qa-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e2e8f0;
}

.qa-modal-header h2 {
    margin: 0;
    font-size: 22px;
    color: #1a202c;
}

.qa-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #a0aec0;
    transition: color 0.3s;
    padding: 0;
    line-height: 1;
}

.qa-modal-close:hover {
    color: #e53e3e;
}

.qa-modal-body {
    padding: 30px;
}

/* Стили для формы внутри модального окна */
.qa-modal-body .mqas-form-wrapper {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.qa-modal-body .mqas-form-wrapper h3 {
    display: none;
}

/* Кнопка "Задать вопрос" в секции */
.qa-ask-section {
    text-align: center;
    margin: 40px 0 20px;
    padding: 30px;
    background: #f8fafc;
    border-radius: 12px;
}

.qa-ask-section .qa-ask-button {
    font-size: 18px;
    padding: 16px 40px;
}

/* ============================================
   АНИМАЦИИ
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   АДАПТИВ
   ============================================ */

@media (max-width: 768px) {
    .qa-modal {
        width: 95%;
        border-radius: 12px;
    }

    .qa-modal-header {
        padding: 15px 20px;
    }

    .qa-modal-header h2 {
        font-size: 18px;
    }

    .qa-modal-body {
        padding: 20px;
    }

    .qa-ask-section {
        padding: 20px;
    }

    .qa-ask-section .qa-ask-button {
        font-size: 16px;
        padding: 14px 30px;
    }
}

/* ============================================
   РАСШИРЕННЫЙ ПОИСК
   ============================================ */
.qa-search-form {
    background: white;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.qa-search-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.qa-search-input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 15px;
    outline: none;
    background: #f7fafc;
    transition: background 0.3s;
}

.qa-search-input:focus {
    background: white;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
}

.qa-search-button {
    padding: 12px 30px;
    background: #3182ce;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    white-space: nowrap;
}

.qa-search-button:hover {
    background: #2b6cb0;
}

.qa-search-toggle {
    padding: 12px 15px;
    background: #edf2f7;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    color: #4a5568;
}

.qa-search-toggle:hover {
    background: #e2e8f0;
}

.qa-search-toggle.active {
    background: #3182ce;
    color: white;
}

/* Фильтры */
.qa-search-filters {
    margin-top: 15px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.qa-search-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.qa-search-filter-row:last-child {
    margin-bottom: 0;
}

.qa-search-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.qa-search-filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
}

.qa-search-filter-group select,
.qa-search-filter-group input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    outline: none;
    transition: border-color 0.3s;
}

.qa-search-filter-group select:focus,
.qa-search-filter-group input[type="date"]:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
}

.qa-search-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.qa-search-apply {
    padding: 10px 25px;
    background: #3182ce;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.qa-search-apply:hover {
    background: #2b6cb0;
}

.qa-search-reset {
    padding: 10px 25px;
    background: #edf2f7;
    color: #4a5568;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.qa-search-reset:hover {
    background: #e2e8f0;
}

/* Индикатор поиска */
.qa-filter-search {
    background: #ebf8ff;
    color: #2b6cb0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.qa-filter-search .qa-search-clear {
    background: none;
    border: none;
    color: #2b6cb0;
    cursor: pointer;
    font-size: 16px;
    padding: 0 5px;
}

.qa-filter-search .qa-search-clear:hover {
    color: #e53e3e;
}

/* ============================================
   АДАПТИВ ДЛЯ ПОИСКА
   ============================================ */
@media (max-width: 768px) {
    .qa-search-row {
        flex-wrap: wrap;
    }

    .qa-search-input {
        flex: 1 1 100%;
        order: 1;
    }

    .qa-search-button {
        flex: 1;
        order: 2;
    }

    .qa-search-toggle {
        order: 3;
    }

    .qa-search-filter-row {
        grid-template-columns: 1fr;
    }

    .qa-search-actions {
        flex-direction: column;
    }

    .qa-search-apply,
    .qa-search-reset {
        width: 100%;
        text-align: center;
    }
}


/* ============================================
   shorts.css
   ============================================ */

/* ============================================
   ГРУППИРОВАННЫЙ СПИСОК С АККОРДЕОНОМ
   ============================================ */

.mqas-grouped-list {
    max-width: 100%;
    margin: 30px auto;
}

/* ---- Обычные группы ---- */
.mqas-group {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e5e7eb;
}

.mqas-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.mqas-group-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #2563eb;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mqas-group-count {
    font-size: 14px;
    font-weight: 400;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 12px;
    border-radius: 20px;
}

/* ---- Аккордеон ---- */
.mqas-accordion {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.mqas-accordion-item {
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.mqas-accordion-item:last-child {
    border-bottom: none;
}

.mqas-accordion-header {
    padding: 16px 22px;
    background: #f8fafc;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.3s ease;
    user-select: none;
}

.mqas-accordion-header:hover {
    background: #f1f5f9;
}

.mqas-accordion-header.active {
    background: #2563eb;
    color: #ffffff;
}

.mqas-accordion-header.active .mqas-group-count {
    background: rgba(255,255,255,0.2);
    color: #ffffff;
}

.mqas-accordion-icon {
    display: inline-block;
    font-size: 14px;
    transition: transform 0.3s ease;
    color: #2563eb;
}

.mqas-accordion-header.active .mqas-accordion-icon {
    color: #ffffff;
}

.mqas-accordion-body {
    display: none;
    padding: 20px 22px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.mqas-accordion-body .mqas-group-items {
    display: grid;
    gap: 12px;
}

/* ---- Карточки вопросов в группе ---- */
.mqas-group-items .mqas-single {
    display: flex;
    gap: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 20px;
    transition: all 0.3s ease;
    align-items: flex-start;
}

.mqas-group-items .mqas-single:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    transform: translateY(-2px);
}

.mqas-group-items .mqas-single .mqas-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.mqas-group-items .mqas-single .mqas-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mqas-group-items .mqas-single .mqas-single-content {
    flex: 1;
    min-width: 0;
}

.mqas-group-items .mqas-single h3 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}

.mqas-group-items .mqas-single h3 a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.2s;
}

.mqas-group-items .mqas-single h3 a:hover {
    color: #2563eb;
}

.mqas-group-items .mqas-single .mqas-answer {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mqas-group-items .mqas-single .mqas-meta {
    font-size: 13px;
    color: #6b7280;
}

/* ---- Адаптив ---- */
@media (max-width: 768px) {
    .mqas-group-title {
        font-size: 20px;
    }

    .mqas-accordion-header {
        font-size: 16px;
        padding: 14px 16px;
    }

    .mqas-accordion-body {
        padding: 14px 16px;
    }

    .mqas-group-items .mqas-single {
        flex-direction: column;
        padding: 14px 16px;
    }

    .mqas-group-items .mqas-single .mqas-thumbnail {
        width: 100%;
        height: 140px;
    }

    .mqas-group-items .mqas-single h3 {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .mqas-group-title {
        font-size: 18px;
    }

    .mqas-accordion-header {
        font-size: 14px;
        padding: 12px 14px;
    }

    .mqas-group-items .mqas-single {
        padding: 12px 14px;
    }
}

/* ============================================
   АККОРДЕОН ОТВЕТОВ
   ============================================ */

.mqas-answer-full {
    margin-top: 12px;
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
}

.mqas-answer-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2563eb;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    padding: 4px 0;
    transition: color 0.2s;
}

.mqas-answer-toggle:hover {
    color: #1d4ed8;
}

.mqas-answer-icon {
    display: inline-block;
    font-size: 12px;
    transition: transform 0.3s;
}

.mqas-answer-body {
    margin-top: 10px;
/*     padding: 16px 18px; */
    padding: 16px 1px;
    background: #f8fafc;
    border-radius: 8px;
/*     border-left: 3px solid #2563eb; */
    font-size: 15px;
    line-height: 1.7;
    color: #1e293b;
    animation: mqasFadeIn 0.3s ease;
}

.mqas-answer-body p:first-child {
    margin-top: 0;
}

.mqas-answer-body p:last-child {
    margin-bottom: 0;
}

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


/* ============================================
   single.css
   ============================================ */


/* ============================================
   ОСНОВНЫЕ СТИЛИ
   ============================================ */
.qa-single-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.qa-single-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 45px;
    border: 1px solid #e5e7eb;
}

/* ============================================
   ЗАГОЛОВОК
   ============================================ */
.qa-single-title {
    font-size: 32px;
    margin-bottom: 15px;
    color: #1a202c;
    font-weight: 700;
    line-height: 1.3;
}

.qa-single-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 30px;
    color: #6b7280;
    font-size: 14px;
}

.qa-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ============================================
   СОДЕРЖАНИЕ
   ============================================ */
.qa-single-content h2 {
    font-size: 20px;
    color: #1a202c;
    margin: 35px 0 15px;
    padding-left: 15px;
    border-left: 4px solid #3b82f6;
}

.qa-question-text {
    background: #f7fafc;
    padding: 20px 25px;
    border-radius: 10px;
    font-size: 17px;
    line-height: 1.7;
    color: #2d3748;
}

.qa-answer-text {
    padding: 10px 5px;
    font-size: 17px;
    line-height: 1.9;
    color: #2d3748;
}

.qa-answer-text p:first-child {
    margin-top: 0;
}

.qa-answer-text p:last-child {
    margin-bottom: 0;
}

/* ============================================
   ОЦЕНКА ПОЛЕЗНОСТИ
   ============================================ */
.qa-single-rating {
    background: #f7fafc;
    padding: 30px;
    border-radius: 12px;
    margin-top: 40px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.qa-rating-title {
    font-size: 16px;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 15px;
}

.qa-rating-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 5px;
}

.qa-rating-btn {
    padding: 12px 30px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 15px;
    font-weight: 500;
    color: #4a5568;
}

.qa-rating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.qa-rating-btn:active {
    transform: translateY(0);
}

.qa-like:hover {
    border-color: #22c55e;
    background: #f0fdf4;
    color: #15803d;
}

.qa-dislike:hover {
    border-color: #ef4444;
    background: #fef2f2;
    color: #dc2626;
}

.qa-rating-btn .qa-like-count,
.qa-rating-btn .qa-dislike-count {
    font-weight: 700;
    margin-left: 3px;
}

.qa-rating-message.success {
    color: #16a34a;
}

.qa-rating-message.error {
    color: #dc2626;
}

/* ============================================
   ПОХОЖИЕ ВОПРОСЫ
   ============================================ */
.qa-similar-questions {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.qa-similar-questions h3 {
    font-size: 20px;
    color: #1a202c;
    margin-bottom: 20px;
}

.qa-similar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.qa-similar-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.qa-similar-list li:last-child {
    border-bottom: none;
}

.qa-similar-list a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.qa-similar-list a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.qa-similar-likes {
    font-size: 13px;
    color: #38a169;
    background: #f0fdf4;
    padding: 2px 10px;
    border-radius: 50px;
    white-space: nowrap;
}

.qa-similar-empty {
    color: #718096;
    font-size: 15px;
}

.qa-similar-empty a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.qa-similar-empty a:hover {
    text-decoration: underline;
}

/* ============================================
   КНОПКА "ЗАДАТЬ ВОПРОС"
   ============================================ */
.qa-ask-section {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.qa-ask-button {
    display: inline-block;
    padding: 14px 40px;
    background: #3182ce;
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.qa-ask-button:hover {
    background: #2b6cb0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 130, 206, 0.35);
    color: white;
}

.qa-ask-button-login {
    background: #718096;
}

.qa-ask-button-login:hover {
    background: #4a5568;
}

/* ============================================
   МОДАЛЬНОЕ ОКНО
   ============================================ */
.qa-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.qa-modal-overlay.active {
    display: flex;
}

.qa-modal {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.qa-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e2e8f0;
}

.qa-modal-header h2 {
    margin: 0;
    font-size: 22px;
    color: #1a202c;
}

.qa-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #a0aec0;
    transition: color 0.3s;
    padding: 0;
    line-height: 1;
}

.qa-modal-close:hover {
    color: #e53e3e;
}

.qa-modal-body {
    padding: 30px;
}

.qa-modal-body .mqas-form-wrapper {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.qa-modal-body .mqas-form-wrapper h3 {
    display: none;
}

/* ============================================
   АНИМАЦИИ
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   АДАПТИВ
   ============================================ */
@media (max-width: 768px) {
    .qa-single-container {
        padding: 25px 20px;
    }

    .qa-single-title {
        font-size: 24px;
    }

    .qa-single-meta {
        flex-direction: column;
        gap: 8px;
        font-size: 13px;
    }

    .qa-single-content h2 {
        font-size: 18px;
    }

    .qa-question-text {
        font-size: 15px;
        padding: 15px;
    }

    .qa-answer-text {
        font-size: 15px;
    }

    .qa-rating-buttons {
        flex-direction: column;
        align-items: center;
    }

    .qa-rating-btn {
        width: 100%;
        max-width: 250px;
    }

    .qa-modal {
        width: 95%;
        border-radius: 12px;
    }

    .qa-modal-header {
        padding: 15px 20px;
    }

    .qa-modal-header h2 {
        font-size: 18px;
    }

    .qa-modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .qa-single-title {
        font-size: 20px;
    }

    .qa-ask-button {
        width: 100%;
        text-align: center;
    }
}


/* ============================================
   archive.css
   ============================================ */

/* ============================================
   ОСНОВНЫЕ СТИЛИ
   ============================================ */
.qa-archive-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ============================================
   ШАПКА
   ============================================ */
.qa-archive-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    padding: 50px 40px;
    margin-bottom: 40px;
    text-align: center;
}

.qa-archive-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.qa-archive-title {
    font-size: 36px;
    margin-bottom: 15px;
    color: #1a202c;
    font-weight: 700;
}

.qa-archive-description {
    font-size: 18px;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.qa-archive-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.qa-ask-button {
    display: inline-block;
    padding: 14px 35px;
    background: #3182ce;
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.qa-ask-button:hover {
    background: #2b6cb0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 130, 206, 0.35);
    color: white;
}

.qa-ask-button-login {
    background: #718096;
}

.qa-ask-button-login:hover {
    background: #4a5568;
}

/* ============================================
   ПОИСК
   ============================================ */
.qa-archive-search {
    max-width: 500px;
    margin: 0 auto;
}

.qa-search-form {
    display: flex;
    gap: 10px;
    background: white;
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.qa-search-input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 15px;
    outline: none;
    background: transparent;
}

.qa-search-button {
    padding: 10px 25px;
    background: #3182ce;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.qa-search-button:hover {
    background: #2b6cb0;
}

/* ============================================
   СТАТИСТИКА
   ============================================ */
.qa-archive-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid rgba(0,0,0,0.06);
}

.qa-stat-item {
    text-align: center;
}

.qa-stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
}

.qa-stat-label {
    font-size: 14px;
    color: #718096;
}

/* ============================================
   ФИЛЬТРЫ
   ============================================ */
.qa-archive-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.qa-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.qa-filter-tab {
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: all 0.3s;
    background: #f7fafc;
}

.qa-filter-tab:hover {
    background: #edf2f7;
}

.qa-filter-tab.active {
    background: #3182ce;
    color: white;
}

.qa-filter-search {
    background: #ebf8ff;
    color: #2b6cb0;
}

.qa-archive-categories {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.qa-categories-label {
    font-weight: 600;
    color: #4a5568;
}

.qa-categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.qa-category-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 15px;
    background: #f7fafc;
    border-radius: 50px;
    text-decoration: none;
    color: #4a5568;
    font-size: 14px;
    transition: all 0.3s;
}

.qa-category-link:hover {
    background: #edf2f7;
    color: #2b6cb0;
}

.qa-category-count {
    background: #e2e8f0;
    padding: 0 8px;
    border-radius: 50px;
    font-size: 12px;
}

/* ============================================
   СЕТКА ВОПРОСОВ
   ============================================ */
.qa-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.qa-archive-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
    position: relative;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.qa-archive-item:nth-child(1) { animation-delay: 0.05s; }
.qa-archive-item:nth-child(2) { animation-delay: 0.1s; }
.qa-archive-item:nth-child(3) { animation-delay: 0.15s; }
.qa-archive-item:nth-child(4) { animation-delay: 0.2s; }
.qa-archive-item:nth-child(5) { animation-delay: 0.25s; }
.qa-archive-item:nth-child(6) { animation-delay: 0.3s; }
.qa-archive-item:nth-child(7) { animation-delay: 0.35s; }
.qa-archive-item:nth-child(8) { animation-delay: 0.4s; }
.qa-archive-item:nth-child(9) { animation-delay: 0.45s; }
.qa-archive-item:nth-child(10) { animation-delay: 0.5s; }

.qa-archive-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-color: #bee3f8;
}

.qa-item-high-rated {
    border-left: 4px solid #f6ad55;
}

.qa-archive-link {
    display: flex;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    gap: 18px;
    height: 100%;
}

.qa-archive-link:hover .qa-archive-post-title {
    color: #2b6cb0;
}

.qa-archive-icon {
    font-size: 32px;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 4px;
}

.qa-archive-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.qa-archive-post-title {
    font-size: 19px;
    margin: 0 0 12px;
    transition: color 0.2s;
    line-height: 1.4;
    font-weight: 600;
}

.qa-archive-meta {
    font-size: 13px;
    color: #718096;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
}

.qa-archive-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.qa-archive-likes {
    color: #38a169;
}

.qa-archive-rating {
    color: #d69e2e;
}

.qa-archive-excerpt {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.qa-archive-read-more {
    font-size: 14px;
    font-weight: 600;
    color: #3182ce;
    transition: all 0.3s;
}

.qa-archive-read-more:hover {
    transform: translateX(5px);
}

/* ============================================
   МОДАЛЬНОЕ ОКНО
   ============================================ */
.qa-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.qa-modal-overlay.active {
    display: flex;
}

.qa-modal {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.qa-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e2e8f0;
}

.qa-modal-header h2 {
    margin: 0;
    font-size: 22px;
    color: #1a202c;
}

.qa-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #a0aec0;
    transition: color 0.3s;
    padding: 0;
    line-height: 1;
}

.qa-modal-close:hover {
    color: #e53e3e;
}

.qa-modal-body {
    padding: 30px;
}

.qa-modal-body .mqas-form-wrapper {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.qa-modal-body .mqas-form-wrapper h3 {
    display: none;
}

/* ============================================
   ПАГИНАЦИЯ
   ============================================ */
.qa-archive-pagination {
    text-align: center;
    margin: 50px 0;
}

.qa-archive-pagination .page-numbers {
    display: inline-block;
    padding: 10px 18px;
    margin: 0 4px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #4a5568;
    transition: all 0.2s;
    font-weight: 500;
}

.qa-archive-pagination .page-numbers.current {
    background: #3182ce;
    color: white;
    border-color: #3182ce;
}

.qa-archive-pagination .page-numbers:hover:not(.current) {
    background: #f7fafc;
    border-color: #bee3f8;
}

/* ============================================
   ПУСТОЙ СОСТОЯНИЕ
   ============================================ */
.qa-archive-empty {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
}

.qa-empty-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.qa-archive-empty h2 {
    font-size: 24px;
    color: #2d3748;
    margin-bottom: 10px;
}

.qa-archive-empty p {
    color: #718096;
    font-size: 16px;
    margin-bottom: 25px;
}

/* ============================================
   АНИМАЦИИ
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   АДАПТИВ
   ============================================ */
@media (max-width: 992px) {
    .qa-archive-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .qa-archive-header {
        padding: 30px 20px;
    }

    .qa-archive-title {
        font-size: 28px;
    }

    .qa-archive-description {
        font-size: 16px;
    }

    .qa-archive-grid {
        grid-template-columns: 1fr;
    }

    .qa-archive-link {
        flex-direction: column;
        padding: 20px;
    }

    .qa-archive-icon {
        font-size: 28px;
    }

    .qa-archive-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .qa-filter-tabs {
        justify-content: center;
    }

    .qa-archive-categories {
        justify-content: center;
    }

    .qa-archive-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .qa-stat-number {
        font-size: 22px;
    }

    .qa-search-form {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }

    .qa-search-input {
        background: white;
        border-radius: 50px;
        padding: 14px 20px;
    }

    .qa-search-button {
        border-radius: 50px;
        padding: 12px;
    }

    .qa-modal {
        width: 95%;
        border-radius: 12px;
    }

    .qa-modal-header {
        padding: 15px 20px;
    }

    .qa-modal-header h2 {
        font-size: 18px;
    }

    .qa-modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .qa-archive-title {
        font-size: 22px;
    }

    .qa-archive-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .qa-archive-actions {
        flex-direction: column;
    }

    .qa-ask-button {
        width: 100%;
        text-align: center;
    }
}


/* ============================================
   search.css
   ============================================ */

/* ============================================
   ОСНОВНЫЕ СТИЛИ
   ============================================ */
.qa-search-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ============================================
   ШАПКА
   ============================================ */
.qa-search-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    padding: 40px 30px;
    margin-bottom: 30px;
    text-align: center;
}

.qa-search-header-content {
    max-width: 700px;
    margin: 0 auto;
}

.qa-search-title {
    font-size: 32px;
    margin-bottom: 10px;
    color: #1a202c;
}

.qa-search-query {
    background: rgba(49, 130, 206, 0.15);
    padding: 2px 12px;
    border-radius: 6px;
    color: #2b6cb0;
}

.qa-search-info {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 25px;
}

/* ============================================
   ФОРМА ПОИСКА
   ============================================ */
.qa-search-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.qa-search-form {
    background: white;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.qa-search-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.qa-search-input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 15px;
    outline: none;
    background: #f7fafc;
    transition: all 0.3s;
}

.qa-search-input:focus {
    background: white;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
}

.qa-search-button {
    padding: 12px 30px;
    background: #3182ce;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    white-space: nowrap;
}

.qa-search-button:hover {
    background: #2b6cb0;
}

.qa-search-toggle {
    padding: 12px 15px;
    background: #edf2f7;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    color: #4a5568;
    white-space: nowrap;
}

.qa-search-toggle:hover {
    background: #e2e8f0;
}

.qa-search-toggle.active {
    background: #3182ce;
    color: white;
}

/* ============================================
   РАСШИРЕННЫЕ ФИЛЬТРЫ
   ============================================ */
.qa-search-filters {
    margin-top: 15px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.qa-search-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.qa-search-filter-row:last-child {
    margin-bottom: 0;
}

.qa-search-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.qa-search-filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
}

.qa-search-filter-group select,
.qa-search-filter-group input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    outline: none;
    transition: border-color 0.3s;
}

.qa-search-filter-group select:focus,
.qa-search-filter-group input[type="date"]:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
}

.qa-search-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.qa-search-apply {
    padding: 10px 25px;
    background: #3182ce;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.qa-search-apply:hover {
    background: #2b6cb0;
}

.qa-search-reset {
    padding: 10px 25px;
    background: #edf2f7;
    color: #4a5568;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.qa-search-reset:hover {
    background: #e2e8f0;
}

/* ============================================
   АКТИВНЫЕ ФИЛЬТРЫ
   ============================================ */
.qa-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: #f7fafc;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
}

.qa-active-filters-label {
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
}

.qa-active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qa-active-filter {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: white;
    border: 1px solid #3182ce;
    border-radius: 50px;
    text-decoration: none;
    color: #2b6cb0;
    font-size: 13px;
    transition: all 0.3s;
}

.qa-active-filter:hover {
    background: #ebf8ff;
}

.qa-active-filter-remove {
    font-size: 16px;
    line-height: 1;
    color: #e53e3e;
}

.qa-active-filter:hover .qa-active-filter-remove {
    color: #c53030;
}

.qa-active-filters-clear {
    margin-left: auto;
    color: #e53e3e;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.qa-active-filters-clear:hover {
    text-decoration: underline;
}

/* ============================================
   РЕЗУЛЬТАТЫ ПОИСКА
   ============================================ */
.qa-search-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.qa-search-result {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 25px 30px;
    transition: all 0.3s;
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.qa-search-result:nth-child(1) { animation-delay: 0.05s; }
.qa-search-result:nth-child(2) { animation-delay: 0.1s; }
.qa-search-result:nth-child(3) { animation-delay: 0.15s; }
.qa-search-result:nth-child(4) { animation-delay: 0.2s; }
.qa-search-result:nth-child(5) { animation-delay: 0.25s; }
.qa-search-result:nth-child(6) { animation-delay: 0.3s; }
.qa-search-result:nth-child(7) { animation-delay: 0.35s; }
.qa-search-result:nth-child(8) { animation-delay: 0.4s; }
.qa-search-result:nth-child(9) { animation-delay: 0.45s; }
.qa-search-result:nth-child(10) { animation-delay: 0.5s; }

.qa-search-result:hover {
    border-color: #bee3f8;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.qa-result-content {
    flex: 1;
}

.qa-result-header {
    margin-bottom: 12px;
}

.qa-result-title {
    font-size: 20px;
    margin: 0 0 10px;
}

.qa-result-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.3s;
}

.qa-result-title a:hover {
    color: #2b6cb0;
}

.qa-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #718096;
}

.qa-result-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.qa-result-likes {
    color: #38a169;
}

.qa-result-rating {
    color: #d69e2e;
}

.qa-result-excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 12px;
}

.qa-search-highlight {
    background: #fef3c7;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.qa-result-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qa-result-category {
    display: inline-block;
    padding: 3px 12px;
    background: #f7fafc;
    border-radius: 50px;
    font-size: 12px;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.3s;
}

.qa-result-category:hover {
    background: #edf2f7;
    color: #2b6cb0;
}

.qa-result-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f3f4f6;
}

.qa-result-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #3182ce;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
}

.qa-result-read-more:hover {
    gap: 10px;
    color: #2b6cb0;
}

/* ============================================
   ПАГИНАЦИЯ
   ============================================ */
.qa-search-pagination {
    text-align: center;
    margin: 40px 0;
}

.qa-search-pagination .page-numbers {
    display: inline-block;
    padding: 10px 18px;
    margin: 0 4px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #4a5568;
    transition: all 0.2s;
    font-weight: 500;
}

.qa-search-pagination .page-numbers.current {
    background: #3182ce;
    color: white;
    border-color: #3182ce;
}

.qa-search-pagination .page-numbers:hover:not(.current) {
    background: #f7fafc;
    border-color: #bee3f8;
}

/* ============================================
   ПУСТОЙ РЕЗУЛЬТАТ
   ============================================ */
.qa-search-empty {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
}

.qa-empty-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.qa-search-empty h2 {
    font-size: 24px;
    color: #2d3748;
    margin-bottom: 10px;
}

.qa-search-empty p {
    color: #718096;
    font-size: 16px;
}

.qa-empty-suggestions {
    margin-top: 20px;
    font-weight: 500;
}

.qa-empty-tips {
    list-style: none;
    padding: 0;
    margin: 10px 0 25px;
    color: #4a5568;
}

.qa-empty-tips li {
    padding: 5px 0;
}

.qa-empty-tips li::before {
    content: "• ";
    color: #3182ce;
}

.qa-empty-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.qa-empty-button {
    display: inline-block;
    padding: 12px 30px;
    background: #3182ce;
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.qa-empty-button:hover {
    background: #2b6cb0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
    color: white;
}

/* ============================================
   МОДАЛЬНОЕ ОКНО
   ============================================ */
.qa-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.qa-modal-overlay.active {
    display: flex;
}

.qa-modal {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.qa-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e2e8f0;
}

.qa-modal-header h2 {
    margin: 0;
    font-size: 22px;
    color: #1a202c;
}

.qa-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #a0aec0;
    transition: color 0.3s;
    padding: 0;
    line-height: 1;
}

.qa-modal-close:hover {
    color: #e53e3e;
}

.qa-modal-body {
    padding: 30px;
}

.qa-modal-body .mqas-form-wrapper {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.qa-modal-body .mqas-form-wrapper h3 {
    display: none;
}

/* ============================================
   АНИМАЦИИ
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   АДАПТИВ
   ============================================ */
@media (max-width: 768px) {
    .qa-search-page-wrapper {
        padding: 20px 15px;
    }

    .qa-search-header {
        padding: 25px 15px;
    }

    .qa-search-title {
        font-size: 24px;
    }

    .qa-search-row {
        flex-wrap: wrap;
    }

    .qa-search-input {
        flex: 1 1 100%;
        order: 1;
    }

    .qa-search-button {
        flex: 1;
        order: 2;
    }

    .qa-search-toggle {
        order: 3;
    }

    .qa-search-filter-row {
        grid-template-columns: 1fr;
    }

    .qa-search-actions {
        flex-direction: column;
    }

    .qa-search-apply,
    .qa-search-reset {
        width: 100%;
        text-align: center;
    }

    .qa-search-result {
        padding: 20px;
    }

    .qa-result-title {
        font-size: 18px;
    }

    .qa-active-filters {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .qa-active-filters-clear {
        margin-left: 0;
    }

    .qa-empty-actions {
        flex-direction: column;
        align-items: center;
    }

    .qa-modal {
        width: 95%;
        border-radius: 12px;
    }

    .qa-modal-header {
        padding: 15px 20px;
    }

    .qa-modal-header h2 {
        font-size: 18px;
    }

    .qa-modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .qa-search-title {
        font-size: 20px;
    }

    .qa-search-info {
        font-size: 14px;
    }

    .qa-result-meta {
        font-size: 12px;
        gap: 10px;
    }

    .qa-result-excerpt {
        font-size: 14px;
    }
}


/* ============================================
   category.css
   ============================================ */

/* ============================================
   ОСНОВНЫЕ СТИЛИ
   ============================================ */
.qa-category-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ============================================
   ШАПКА РУБРИКИ
   ============================================ */
.qa-category-header {
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
    border-radius: 16px;
    padding: 40px 30px;
    margin-bottom: 30px;
}

.qa-category-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.qa-category-breadcrumbs {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 15px;
}

.qa-category-breadcrumbs a {
    color: #3182ce;
    text-decoration: none;
}

.qa-category-breadcrumbs a:hover {
    text-decoration: underline;
}

.qa-breadcrumb-separator {
    margin: 0 8px;
    color: #a0aec0;
}

.qa-breadcrumb-current {
    color: #2d3748;
    font-weight: 500;
}

.qa-category-title {
    font-size: 36px;
    margin-bottom: 10px;
    color: #1a202c;
}

.qa-category-description {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 15px;
    line-height: 1.7;
}

.qa-category-info {
    font-size: 15px;
    color: #4a5568;
    margin-bottom: 20px;
}

.qa-category-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ============================================
   НАВИГАЦИЯ ПО РУБРИКАМ
   ============================================ */
.qa-category-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: #f7fafc;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
}

.qa-category-nav-label {
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
}

.qa-category-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.qa-category-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    text-decoration: none;
    color: #4a5568;
    font-size: 14px;
    transition: all 0.3s;
}

.qa-category-nav-link:hover {
    background: #edf2f7;
    border-color: #bee3f8;
}

.qa-category-nav-link.active {
    background: #3182ce;
    color: white;
    border-color: #3182ce;
}

.qa-category-nav-count {
    background: rgba(0,0,0,0.08);
    padding: 0 8px;
    border-radius: 50px;
    font-size: 11px;
}

.qa-category-nav-link.active .qa-category-nav-count {
    background: rgba(255,255,255,0.25);
}

/* ============================================
   СОРТИРОВКА
   ============================================ */
.qa-category-sort {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.qa-sort-label {
    font-size: 14px;
    color: #4a5568;
}

.qa-sort-links {
    display: flex;
    gap: 8px;
}

.qa-sort-link {
    padding: 5px 15px;
    border-radius: 50px;
    text-decoration: none;
    color: #4a5568;
    font-size: 14px;
    transition: all 0.3s;
    background: #f7fafc;
}

.qa-sort-link:hover {
    background: #edf2f7;
}

.qa-sort-link.active {
    background: #3182ce;
    color: white;
}

/* ============================================
   СПИСОК ВОПРОСОВ
   ============================================ */
.qa-category-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0 30px;
}

.qa-category-item {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.qa-category-item:nth-child(1) { animation-delay: 0.05s; }
.qa-category-item:nth-child(2) { animation-delay: 0.1s; }
.qa-category-item:nth-child(3) { animation-delay: 0.15s; }
.qa-category-item:nth-child(4) { animation-delay: 0.2s; }
.qa-category-item:nth-child(5) { animation-delay: 0.25s; }

.qa-category-item:hover {
    border-color: #bee3f8;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.qa-category-link {
    display: block;
    padding: 25px 30px;
    text-decoration: none;
    color: inherit;
}

.qa-category-item-title {
    font-size: 20px;
    margin: 0 0 10px;
    color: #1a202c;
    transition: color 0.3s;
}

.qa-category-link:hover .qa-category-item-title {
    color: #2b6cb0;
}

.qa-category-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #718096;
    margin-bottom: 12px;
}

.qa-category-item-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.qa-meta-likes {
    color: #38a169;
}

.qa-meta-rating {
    color: #d69e2e;
}

.qa-category-item-excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: #4a5568;
}

.qa-category-item-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f3f4f6;
}

.qa-item-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #3182ce;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.qa-item-read-more:hover {
    gap: 10px;
}

/* ============================================
   ПАГИНАЦИЯ
   ============================================ */
.qa-category-pagination {
    text-align: center;
    margin: 40px 0;
}

.qa-category-pagination .page-numbers {
    display: inline-block;
    padding: 10px 18px;
    margin: 0 4px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #4a5568;
    transition: all 0.2s;
    font-weight: 500;
}

.qa-category-pagination .page-numbers.current {
    background: #3182ce;
    color: white;
    border-color: #3182ce;
}

.qa-category-pagination .page-numbers:hover:not(.current) {
    background: #f7fafc;
    border-color: #bee3f8;
}

/* ============================================
   ПУСТОЕ СОСТОЯНИЕ
   ============================================ */
.qa-category-empty {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
}

.qa-empty-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.qa-category-empty h2 {
    font-size: 24px;
    color: #2d3748;
    margin-bottom: 10px;
}

.qa-category-empty p {
    color: #718096;
    font-size: 16px;
    margin-bottom: 25px;
}

/* ============================================
   КНОПКИ
   ============================================ */
.qa-ask-button {
    display: inline-block;
    padding: 12px 30px;
    background: #3182ce;
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.qa-ask-button:hover {
    background: #2b6cb0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
    color: white;
}

.qa-ask-button-login {
    background: #718096;
}

.qa-ask-button-login:hover {
    background: #4a5568;
}

/* ============================================
   МОДАЛЬНОЕ ОКНО
   ============================================ */
.qa-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.qa-modal-overlay.active {
    display: flex;
}

.qa-modal {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.qa-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e2e8f0;
}

.qa-modal-header h2 {
    margin: 0;
    font-size: 22px;
    color: #1a202c;
}

.qa-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #a0aec0;
    transition: color 0.3s;
    padding: 0;
    line-height: 1;
}

.qa-modal-close:hover {
    color: #e53e3e;
}

.qa-modal-body {
    padding: 30px;
}

.qa-modal-body .mqas-form-wrapper {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.qa-modal-body .mqas-form-wrapper h3 {
    display: none;
}

/* ============================================
   АНИМАЦИИ
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   АДАПТИВ
   ============================================ */
@media (max-width: 768px) {
    .qa-category-wrapper {
        padding: 20px 15px;
    }

    .qa-category-header {
        padding: 25px 20px;
    }

    .qa-category-title {
        font-size: 28px;
    }

    .qa-category-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .qa-category-nav-list {
        justify-content: center;
    }

    .qa-category-sort {
        flex-direction: column;
        align-items: stretch;
    }

    .qa-sort-links {
        justify-content: center;
    }

    .qa-category-link {
        padding: 20px;
    }

    .qa-category-item-title {
        font-size: 18px;
    }

    .qa-modal {
        width: 95%;
        border-radius: 12px;
    }

    .qa-modal-header {
        padding: 15px 20px;
    }

    .qa-modal-header h2 {
        font-size: 18px;
    }

    .qa-modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .qa-category-title {
        font-size: 22px;
    }

    .qa-category-item-meta {
        font-size: 12px;
        gap: 10px;
    }

    .qa-category-item-excerpt {
        font-size: 14px;
    }
}

/* ============================================
   ПАГИНАЦИЯ — исправление списка
   ============================================ */

/* Сбрасываем стили списка */
.qa-archive-pagination ul,
.qa-search-pagination ul,
.qa-category-pagination ul {
    list-style: none !important;       /* убираем маркеры */
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;          /* горизонтально */
    flex-wrap: wrap !important;        /* перенос на мобильных */
    justify-content: center !important;
    gap: 6px;
}

/* Каждый пункт списка — inline */
.qa-archive-pagination ul li,
.qa-search-pagination ul li,
.qa-category-pagination ul li {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Сами кнопки */
.qa-archive-pagination ul li .page-numbers,
.qa-search-pagination ul li .page-numbers,
.qa-category-pagination ul li .page-numbers {
    display: inline-block;
    padding: 10px 18px;
    min-width: 44px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    color: #4a5568;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    text-align: center;
}

/* Текущая страница */
.qa-archive-pagination ul li .page-numbers.current,
.qa-search-pagination ul li .page-numbers.current,
.qa-category-pagination ul li .page-numbers.current {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    transform: scale(1.05);
    cursor: default;
}

/* Наведение */
.qa-archive-pagination ul li .page-numbers:not(.current):not(.dots):hover,
.qa-search-pagination ul li .page-numbers:not(.current):not(.dots):hover,
.qa-category-pagination ul li .page-numbers:not(.current):not(.dots):hover {
    background: #f7fafc;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: #2563eb;
}

/* Кнопки "Назад" / "Вперед" */
.qa-archive-pagination ul li .page-numbers.prev,
.qa-archive-pagination ul li .page-numbers.next,
.qa-search-pagination ul li .page-numbers.prev,
.qa-search-pagination ul li .page-numbers.next,
.qa-category-pagination ul li .page-numbers.prev,
.qa-category-pagination ul li .page-numbers.next {
    padding: 10px 22px;
    background: #f7fafc;
    border-color: #e2e8f0;
    font-weight: 600;
}

.qa-archive-pagination ul li .page-numbers.prev:hover,
.qa-archive-pagination ul li .page-numbers.next:hover,
.qa-search-pagination ul li .page-numbers.prev:hover,
.qa-search-pagination ul li .page-numbers.next:hover,
.qa-category-pagination ul li .page-numbers.prev:hover,
.qa-category-pagination ul li .page-numbers.next:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Многоточие */
.qa-archive-pagination ul li .page-numbers.dots,
.qa-search-pagination ul li .page-numbers.dots,
.qa-category-pagination ul li .page-numbers.dots {
    border: none;
    background: transparent;
    color: #a0aec0;
    font-weight: 400;
    padding: 10px 6px;
    cursor: default;
    box-shadow: none;
    min-width: auto;
}

.qa-archive-pagination ul li .page-numbers.dots:hover,
.qa-search-pagination ul li .page-numbers.dots:hover,
.qa-category-pagination ul li .page-numbers.dots:hover {
    transform: none;
    box-shadow: none;
    background: transparent;
}

/* ============================================
   АДАПТИВ
   ============================================ */
@media (max-width: 768px) {
    .qa-archive-pagination ul li .page-numbers,
    .qa-search-pagination ul li .page-numbers,
    .qa-category-pagination ul li .page-numbers {
        padding: 8px 14px;
        min-width: 36px;
        font-size: 14px;
        border-radius: 8px;
    }

    .qa-archive-pagination ul li .page-numbers.prev,
    .qa-archive-pagination ul li .page-numbers.next,
    .qa-search-pagination ul li .page-numbers.prev,
    .qa-search-pagination ul li .page-numbers.next,
    .qa-category-pagination ul li .page-numbers.prev,
    .qa-category-pagination ul li .page-numbers.next {
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .qa-archive-pagination ul li .page-numbers,
    .qa-search-pagination ul li .page-numbers,
    .qa-category-pagination ul li .page-numbers {
        padding: 6px 10px;
        min-width: 30px;
        font-size: 13px;
        border-width: 1.5px;
    }

    .qa-archive-pagination ul li .page-numbers.prev,
    .qa-archive-pagination ul li .page-numbers.next,
    .qa-search-pagination ul li .page-numbers.prev,
    .qa-search-pagination ul li .page-numbers.next,
    .qa-category-pagination ul li .page-numbers.prev,
    .qa-category-pagination ul li .page-numbers.next {
        padding: 6px 12px;
        font-size: 12px;
    }

    .qa-archive-pagination ul li .page-numbers.current,
    .qa-search-pagination ul li .page-numbers.current,
    .qa-category-pagination ul li .page-numbers.current {
        transform: scale(1);
    }

    .qa-archive-pagination ul li .page-numbers.dots,
    .qa-search-pagination ul li .page-numbers.dots,
    .qa-category-pagination ul li .page-numbers.dots {
        padding: 6px 4px;
    }
}


