
/* ===================== ОСНОВНЫЕ СТИЛИ КАТАЛОГА ===================== */

/* Основной контейнер каталога */
.catalog-main {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Кнопка переключения фильтров */
.filter-toggle {
    display: none;
    background: #007bff;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 1rem;
    transition: background-color 0.3s ease;
}

.filter-toggle:hover {
    background: #0056b3;
}

/* Боковая панель с фильтрами - минималистичный дизайн */
.catalog-sidebar {
    width: 320px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: block;
}

.catalog-sidebar h3 {
    margin: 0 0 2rem 0;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

/* Секции фильтров */
.filter-section {
    margin-bottom: 2rem;
}

.filter-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    gap: 0.5rem;
}

.filter-icon {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Обертка для полей ввода */
.filter-input-wrapper {
    position: relative;
}

/* Поля ввода */
.filter-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
    background: #ffffff;
    color: #374151;
}

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

.filter-input::placeholder {
    color: #9ca3af;
}

/* Контейнер для опций */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Чекбоксы */
.filter-checkbox {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: #ffffff;
}

.filter-checkbox:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.filter-checkbox.checked {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
}

.filter-checkbox input[type="checkbox"] {
    margin-right: 0.75rem;
    transform: scale(1.1);
    accent-color: #3b82f6;
}

.checkbox-icon {
    margin-right: 0.75rem;
    font-size: 1rem;
    opacity: 0.8;
}

.checkbox-text {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Радиокнопки - минималистичный дизайн */
.filter-radio {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: #ffffff;
}

.filter-radio:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.filter-radio.checked {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.filter-radio input[type="radio"] {
    margin-right: 0.75rem;
    transform: scale(1.1);
    accent-color: #3b82f6;
}

.radio-icon {
    margin-right: 0.75rem;
    font-size: 1rem;
    opacity: 0.8;
}

.radio-text {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-radio.checked .radio-text {
    font-weight: 600;
    color: #1d4ed8;
}

.filter-count {
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: auto;
    min-width: 24px;
    text-align: center;
}

.filter-checkbox.checked .filter-count,
.filter-radio.checked .filter-count {
    background: #3b82f6;
    color: white;
}

/* Категории */
.filter-categories {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.5rem;
    background: #f9fafb;
}

/* Селект */
.filter-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 0.95rem;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #374151;
}

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

/* Кнопки фильтров */
.filter-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
}

.filter-button {
    flex: 1;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.filter-button:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.filter-reset {
    flex: 1;
    background: #6b7280;
    color: white;
    text-decoration: none;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.filter-reset:hover {
    background: #4b5563;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.button-icon {
    font-size: 1rem;
}

/* Быстрые ссылки фильтров */
.filter-quick-links {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.quick-links-label {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.quick-link {
    display: inline-block;
    margin-right: 0.75rem;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.quick-link:hover {
    background: #e5e7eb;
    color: #1f2937;
}

/* Стили для разных типов ссылок */
.quick-link.conditional-link {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.quick-link.conditional-link:hover {
    background: #ffeaa7;
    border-color: #f39c12;
    color: #6c5ce7;
}

.quick-link.noindex-link {
    background: #f8d7da;
    border: 1px solid #dc3545;
    color: #721c24;
    opacity: 0.7;
}

.quick-link.noindex-link:hover {
    background: #f5c6cb;
    border-color: #c82333;
    color: #491217;
    opacity: 0.9;
}

/* Индикаторы статуса индексации */
.quick-link.conditional-link::after {
    content: "⚖️";
    margin-left: 0.25rem;
    font-size: 0.8em;
}

.quick-link.noindex-link::after {
    content: "🚫";
    margin-left: 0.25rem;
    font-size: 0.8em;
}

/* Выбор редакции */
.editorial-picks {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    color: white;
}

.editorial-picks h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: white;
}

.editorial-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0 0 2rem 0;
}

.editorial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.editorial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.editorial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.editorial-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff6b6b;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.editorial-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: white;
}

.editorial-reason {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0 0 1rem 0;
    font-style: italic;
}

.editorial-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1rem 0;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.editorial-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.2s ease;
}

.editorial-link:hover {
    opacity: 0.8;
}


/* Методология отбора */
.methodology-section {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 2.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.methodology-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: #1e293b;
    text-align: center;
    position: relative;
}

.methodology-section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

.methodology-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.methodology-criteria h3,
.methodology-process h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1.25rem 0;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.methodology-criteria h3::before {
    content: '📋';
    font-size: 1.2rem;
}

.methodology-process h3::before {
    content: '⚙️';
    font-size: 1.2rem;
}

.methodology-criteria ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.methodology-criteria li {
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(203, 213, 225, 0.5);
    border-radius: 12px;
    color: #475569;
    line-height: 1.5;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    position: relative;
    padding-left: 2.5rem;
}

.methodology-criteria li::before {
    content: '✓';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #10b981;
    font-weight: bold;
    font-size: 1rem;
}

.methodology-criteria li:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.methodology-process {
    background: rgba(255, 255, 255, 0.6);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(203, 213, 225, 0.5);
}

.methodology-process p {
    color: #475569;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
}

.methodology-process p:last-child {
    margin-bottom: 0;
    font-weight: 500;
    color: #334155;
}

.methodology-criteria strong {
    color: #1f2937;
    font-weight: 600;
}

.methodology-process p {
    margin: 0 0 1rem 0;
    line-height: 1.6;
    color: #4b5563;
}

.methodology-process p:last-child {
    margin-bottom: 0;
    font-weight: 500;
    color: #374151;
}

/* Редакторский ввод */
.editorial-intro {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    border-left: 4px solid #3b82f6;
}

.editorial-intro p {
    margin: 0;
    color: #374151;
    line-height: 1.6;
    font-size: 1rem;
}

/* Топ рекомендации */
.top-recommendations {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.top-recommendations h2 {
    margin: 0 0 1rem 0;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recommendation-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.rec-position {
    background: #3b82f6;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.rec-title {
    flex: 1;
    color: #1f2937;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.rec-title:hover {
    color: #3b82f6;
}

.rec-meta {
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 500;
}

/* FAQ секция - улучшенный дизайн */
.faq-section {
    margin: 3rem 0;
    padding: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    text-align: center;
    color: white;
}

.faq-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.faq-title {
    margin: 0 0 0.5rem 0;
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
}

.faq-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    opacity: 0.9;
}

.faq-list {
    padding: 0;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

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

.faq-item:hover {
    background: #f8fafc;
}

.faq-question-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0;
}

.faq-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
    margin-left: 1.5rem;
}

.faq-question {
    margin: 0;
    flex: 1;
}

.faq-toggle {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.5rem 1.5rem 1.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-toggle:hover {
    color: #667eea;
}

.faq-toggle[aria-expanded="true"] {
    color: #667eea;
}

.faq-arrow {
    font-size: 1rem;
    transition: transform 0.3s ease;
    margin-right: 1rem;
}

.faq-toggle[aria-expanded="true"] .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer-wrapper.active {
    max-height: 200px;
    padding-bottom: 1.5rem;
}

.faq-answer {
    padding: 0 1.5rem 0 4.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.faq-answer-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.faq-answer p {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
    font-size: 1rem;
}

.faq-answer {
    margin: 0;
    padding: 1rem;
    color: #374151;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Информация о сортировке */
.sorting-info {
    margin: 2rem 0;
    padding: 1rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    border-left: 4px solid #0ea5e9;
}

.sorting-info h3 {
    margin: 0 0 0.5rem 0;
    color: #0c4a6e;
    font-size: 1rem;
    font-weight: 600;
}

.sorting-info p {
    margin: 0;
    color: #075985;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Основной контент */
.catalog-content {
    flex: 1;
    min-width: 0;
}

.catalog-content h1 {
    margin: 0 0 1.5rem 0;
    color: #333;
    font-size: 2rem;
    font-weight: 700;
}

/* Хлебные крошки */
.breadcrumbs {
    margin-bottom: 1.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumbs a {
    color: #007bff;
    text-decoration: none;
    margin-right: 0.5rem;
}

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

.breadcrumbs span {
    color: #6c757d;
    margin: 0 0.5rem;
}

/* Индикатор загрузки */
.loading {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
    font-size: 1.1rem;
}

/* Сетка нейросетей */
.neural-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Карточка нейросети */
.neural-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.neural-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.neural-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    text-align: center;
    font-size: 1.5rem;
}

.neural-card-content {
    padding: 1.5rem;
}

.neural-card-title {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.neural-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.neural-card-title a:hover {
    color: #007bff;
}

.neural-card-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.neural-card-categories {
    margin-bottom: 1rem;
}

.neural-card-category {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
}

.neural-card-features {
    margin-bottom: 1rem;
}

.neural-card-feature {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
}

.feature-trial {
    background: #fff3e0;
    color: #f57c00;
}

.feature-api {
    background: #e8f5e8;
    color: #2e7d32;
}

.feature-telegram {
    background: #f3e5f5;
    color: #7b1fa2;
}

.neural-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.neural-card-price {
    font-weight: 600;
    color: #333;
}

.neural-card-button {
    background: #007bff;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.neural-card-button:hover {
    background: #0056b3;
    color: white;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1rem;
}

.pagination a {
    background: #007bff;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.pagination a:hover {
    background: #0056b3;
}

.pagination span {
    color: #6c757d;
    font-weight: 500;
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.5rem;
}

.empty-state p {
    margin: 0 0 2rem 0;
    font-size: 1.1rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    /* Выбор редакции */
    .editorial-picks {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .editorial-picks h2 {
        font-size: 1.5rem;
    }
    
    .editorial-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .editorial-card {
        padding: 1rem;
    }
    
    /* Методология */
    .methodology-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .methodology-section {
        padding: 1.5rem;
    }
    
    .methodology-criteria li {
        padding: 0.75rem 1rem;
        padding-left: 2rem;
        font-size: 0.9rem;
    }
    
    .methodology-criteria li::before {
        left: 0.75rem;
    }
    
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .catalog-main {
        flex-direction: column;
        gap: 1rem;
        padding: 0.5rem;
    }
    
    .filter-toggle {
        display: block;
    }
    
    .catalog-sidebar {
        width: 100%;
        position: static;
        display: none;
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .catalog-sidebar.show {
        display: block;
    }
    
    .neural-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .neural-card-content {
        padding: 1rem;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .pagination {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Адаптивные стили для радиокнопок */
    .filter-radio {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        border-radius: 8px;
    }
    
    .filter-radio input[type="radio"] {
        transform: scale(1.3);
        margin-right: 1rem;
    }
    
    .filter-radio span {
        font-size: 1rem;
        font-weight: 500;
    }
    
    .filter-radio.checked {
        box-shadow: 0 0 0 3px rgba(0,123,255,0.3);
    }
}

@media (max-width: 480px) {
    .catalog-content h1 {
        font-size: 1.5rem;
    }
    
    .neural-card-header {
        padding: 0.75rem;
        font-size: 1.2rem;
    }
    
    .neural-card-footer {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .neural-card-button {
        text-align: center;
    }
    
    /* Дополнительные стили для радиокнопок на очень маленьких экранах */
    .filter-radio {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .filter-radio input[type="radio"] {
        transform: scale(1.1);
        margin-right: 0.75rem;
    }
    
    .filter-radio span {
        font-size: 0.9rem;
    }
    
    .filter-count {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}

/* ===================== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ КОНТЕНТА ===================== */

/* Enhanced Content Structure Styles */
.catalog-intro {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.catalog-intro h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.freshness-indicator {
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

.quick-filters {
    margin-bottom: 2rem;
}

.quick-filters h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s ease;
}

.chip:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.chip.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.chip .count {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

.editor-picks {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.editor-picks h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.picks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.pick-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pick-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.pick-badges {
    margin-bottom: 1rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.badge.trial { background: #fff3e0; color: #f57c00; }
.badge.api { background: #e8f5e8; color: #2e7d32; }
.badge.telegram { background: #f3e5f5; color: #7b1fa2; }
.badge.free { background: #e8f5e8; color: #2e7d32; }

.pick-justification {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.pick-price {
    font-weight: 600;
    color: #333;
}

.comparison-table {
    margin-bottom: 2rem;
}

.comparison-table h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.table-responsive {
    overflow-x: auto;
}

.comparison-table-content {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.comparison-table-content th,
.comparison-table-content td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.comparison-table-content th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.comparison-table-content tr:hover {
    background: #f8f9fa;
}

.guide-block {
    background: #fff3e0;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid #ff9800;
}

.guide-block h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.guide-block h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.5rem 0;
    color: #333;
}

.guide-block ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.guide-block li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.faq-section {
    margin-bottom: 2rem;
}

.faq-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.faq-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-item h3 {
    background: #f8f9fa;
    padding: 1rem;
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    cursor: pointer;
}

.faq-item p {
    padding: 1rem;
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.related-categories {
    margin-bottom: 2rem;
}

.related-categories h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.related-category {
    display: block;
    padding: 1rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.related-category:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.ugc-engagement {
    background: #e3f2fd;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
}

.ugc-engagement h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.ugc-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ugc-btn {
    padding: 0.75rem 1.5rem;
    background: #1976d2;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ugc-btn:hover {
    background: #1565c0;
    transform: translateY(-2px);
}

/* Enhanced Tool Cards */
.tool-card.enhanced {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.tool-card.enhanced:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.tool-header h3 {
    font-size: 1.2rem;
    margin: 0;
    color: #333;
    flex: 1;
}

.tool-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-left: 1rem;
}

.tool-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.tool-attributes {
    margin-bottom: 1rem;
}

.attribute {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.tool-verdict {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.tool-rating {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.stars {
    color: #ffc107;
    margin-right: 0.5rem;
}

.rating-text {
    font-size: 0.9rem;
    color: #666;
}

.tool-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-primary, .btn-secondary {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

/* Responsive Design */
@media (max-width: 768px) {
    .catalog-intro h1 {
        font-size: 2rem;
    }
    
    .intro-text p {
        font-size: 1rem;
    }
    
    .filter-chips {
        justify-content: center;
    }
    
    .picks-grid {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tool-badges {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .pagination {
        flex-direction: column;
        gap: 1rem;
    }
    
    .ugc-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .catalog-intro {
        padding: 1rem;
    }
    
    .editor-picks,
    .guide-block,
    .ugc-engagement {
        padding: 1rem;
    }
    
    .tool-card.enhanced {
        padding: 1rem;
    }
}
