/* Стили для страницы каталога отзывов - Исправленная версия с рабочим FAQ */

/* Основные переменные */
:root {
    --catalog-bg: #131722;
    --catalog-darker-bg: #1e222d;
    --catalog-border-color: #2a2e39;
    --catalog-accent-color: #95ce5a;
    --catalog-text-light: #d1d4dc;
    --catalog-text-lighter: #fff;
    --catalog-text-muted: #9ca3af;
    --catalog-card-bg: #2a2e3a;
    --catalog-card-border: #3a3f4b;
    --catalog-card-text: #e5e7eb;
    --catalog-card-text-muted: #9ca3af;
}

/* Основная страница каталога */
.reviews-catalog-page {
    color: var(--catalog-text-light);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.reviews-catalog-page .container {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Breadcrumbs - скрыты визуально, но доступны для поисковиков */
.breadcrumbs {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Героическая секция */
.catalog-hero-section {
    background: linear-gradient(135deg, var(--catalog-bg) 0%, var(--catalog-darker-bg) 100%);
    padding: 60px 20px;
    text-align: center;
    border-radius: 16px;
    margin-bottom: 40px;
    border: 1px solid var(--catalog-border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.catalog-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(149, 206, 90, 0.1) 0%, rgba(149, 206, 90, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Добавляем изображение девушки - ПО НИЖНЕМУ КРАЮ, БЕЗ ВЛИЯНИЯ НА LAYOUT */
.catalog-hero-section::after {
    content: '';
    position: absolute;
    left: 0px;
    bottom: 0;
    width: 450px;
    height: 520px;
    background-image: url('../images/girl-with-reviews-sign.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom left;
    opacity: 0.85;
    pointer-events: none;
    z-index: 1;
}

.catalog-hero-content {
    position: relative;
    z-index: 2;
    /* Убираем отступ - контент остается на своем месте */
}

.catalog-main-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--catalog-text-lighter);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.catalog-subtitle {
    font-size: 18px;
    color: var(--catalog-text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Статистика */
.catalog-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--catalog-border-color);
    min-width: 120px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(149, 206, 90, 0.1);
    border-color: var(--catalog-accent-color);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--catalog-accent-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--catalog-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Секция категорий - отдельный блок */
.catalog-categories-section {
    background: var(--catalog-darker-bg);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--catalog-border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.categories-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--catalog-text-lighter);
    text-align: center;
    margin-bottom: 25px;
}

.catalog-categories {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Секция фильтров (упрощенная) */
.catalog-filters-section {
    background: var(--catalog-darker-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 40px;
    border: 1px solid var(--catalog-border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

/* Поиск */
.filter-search {
    position: relative;
    min-width: 250px;
    flex: 1;
}

.filter-search input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    background: rgba(19, 23, 34, 0.6);
    border: 1px solid var(--catalog-border-color);
    border-radius: 8px;
    color: var(--catalog-text-light);
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.filter-search input:focus {
    border-color: var(--catalog-accent-color);
    outline: none;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--catalog-text-muted);
    pointer-events: none;
}

/* Фильтры категорий - НОВЫЙ ДИЗАЙН */
.filter-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-filter {
    background: linear-gradient(135deg, #2a2e3a 0%, #1e222d 100%);
    border: 1px solid rgba(149, 206, 90, 0.2);
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--catalog-text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.category-filter::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(149, 206, 90, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-filter:hover::before {
    left: 100%;
}

.category-filter:hover {
    background: linear-gradient(135deg, #34383f 0%, #242832 100%);
    border-color: rgba(149, 206, 90, 0.4);
    color: var(--catalog-text-lighter);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(149, 206, 90, 0.1);
}

.category-filter.active {
    background: linear-gradient(135deg, var(--catalog-accent-color) 0%, #a9dd78 100%);
    color: #000;
    font-weight: 600;
    border-color: var(--catalog-accent-color);
    box-shadow: 0 6px 20px rgba(149, 206, 90, 0.3);
}

.category-filter.active:hover {
    background: linear-gradient(135deg, #a9dd78 0%, var(--catalog-accent-color) 100%);
    transform: translateY(-2px);
}

.category-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon svg {
    width: 100%;
    height: 100%;
}

/* Фильтр рейтинга */
.filter-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-rating label {
    font-size: 13px;
    color: var(--catalog-text-light);
    font-weight: 500;
}

.filter-rating select {
    padding: 8px 12px;
    background: rgba(19, 23, 34, 0.6);
    border: 1px solid var(--catalog-border-color);
    border-radius: 6px;
    color: var(--catalog-text-light);
    font-size: 13px;
    cursor: pointer;
}

/* Секции категорий - УЛУЧШЕННЫЙ ДИЗАЙН */
.category-section {
    margin-bottom: 60px;
    transition: opacity 0.3s ease;
}

.category-section.hidden {
    display: none;
}

.category-header {
    margin-bottom: 30px;
    text-align: center;
    background: linear-gradient(135deg, var(--catalog-darker-bg) 0%, #252936 100%);
    padding: 30px 20px;
    border-radius: 16px;
    border: 1px solid var(--catalog-border-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.category-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--catalog-text-lighter);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.category-title i {
    color: var(--catalog-accent-color);
    font-size: 24px;
}

.category-description {
    font-size: 16px;
    color: var(--catalog-text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Сетка сервисов */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Карточки сервисов - ТЕМНЫЙ ДИЗАЙН */
.service-card {
    background: linear-gradient(135deg, var(--catalog-card-bg) 0%, #242832 100%);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--catalog-card-border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--catalog-accent-color), #a9dd78);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(149, 206, 90, 0.15);
    border-color: var(--catalog-accent-color);
    background: linear-gradient(135deg, #2f3441 0%, #252936 100%);
}

.service-card-logo {
    width: 160px;
    height: 80px;
    margin: 0 auto 25px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.service-card-logo img {
    max-width: 140px;
    max-height: 70px;
    object-fit: contain;
}

.service-card-info {
    flex: 1;
    text-align: center;
    margin-bottom: 25px;
}

.service-card-name {
    font-size: 22px;
    font-weight: 600;
    color: var(--catalog-card-text);
    margin-bottom: 18px;
}

.service-card-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars i {
    font-size: 16px;
}

.rating-value {
    font-weight: 600;
    font-size: 16px;
    color: var(--catalog-card-text);
}

.rating-value.high {
    color: #26a69a;
}

.rating-value.medium {
    color: #ff9800;
}

.rating-value.low {
    color: #ef5350;
}

.reviews-count {
    font-size: 13px;
    color: var(--catalog-card-text-muted);
}

.no-reviews {
    font-size: 13px;
    color: var(--catalog-card-text-muted);
    font-style: italic;
}

.service-card-description {
    font-size: 14px;
    color: var(--catalog-card-text-muted);
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Действия с карточкой */
.service-card-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.service-reviews-link,
.service-website-link {
    flex: 1;
    min-width: 120px;
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.service-reviews-link {
    background: linear-gradient(135deg, var(--catalog-accent-color) 0%, #a9dd78 100%);
    color: #000;
    border: 1px solid var(--catalog-accent-color);
}

.service-reviews-link:hover {
    background: linear-gradient(135deg, #a9dd78 0%, #bde896 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(149, 206, 90, 0.3);
}

.service-website-link {
    background: transparent;
    color: var(--catalog-card-text);
    border: 1px solid var(--catalog-card-border);
}

.service-website-link:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--catalog-accent-color);
    color: var(--catalog-text-lighter);
}

/* Заголовки секций - простой оригинальный стиль */
.surfearner-section-heading-wrapper {
    text-align: center;
    margin-bottom: 30px;
}

.surfearner-section-heading {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

/* Секция последних отзывов - КОМПАКТНЫЙ ДИЗАЙН */
.latest-reviews-section {
    margin: 60px 0;
    position: relative;
}

.latest-reviews-section::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--catalog-accent-color), #a9dd78);
    border-radius: 2px;
}

.latest-reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

@media (max-width: 1200px) {
    .latest-reviews-container {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 20px;
    }
}

/* Адаптивность для маленьких планшетов */
@media (max-width: 1024px) and (min-width: 769px) {
    .catalog-hero-content {
        margin-left: 180px;
    }
    
    .catalog-hero-section::after {
        width: 260px;
        height: 320px;
        left: 15px;
    }
}

@media (max-width: 992px) {
    .latest-reviews-container {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 20px;
    }
}

.latest-review-card {
    background: linear-gradient(145deg, #2c3142 0%, #242936 100%);
    border-radius: 16px;
    padding: 0;
    border: 1px solid rgba(149, 206, 90, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.latest-review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--catalog-accent-color), #a9dd78, #26a69a);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.latest-review-card:hover::before {
    opacity: 1;
}

.latest-review-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 16px 48px rgba(149, 206, 90, 0.15);
    border-color: rgba(149, 206, 90, 0.3);
}

.latest-review-card .review-header {
    padding: 20px 20px 16px 20px;
    background: linear-gradient(135deg, rgba(149, 206, 90, 0.05) 0%, rgba(42, 46, 58, 0.8) 100%);
    border-bottom: 1px solid rgba(149, 206, 90, 0.1);
    flex-shrink: 0;
}

.latest-review-card .reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.latest-review-card .reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--catalog-accent-color), #a9dd78);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #000;
    flex-shrink: 0;
    box-shadow: 0 3px 12px rgba(149, 206, 90, 0.3);
}

.latest-review-card .reviewer-details {
    flex: 1;
    min-width: 0;
}

.latest-review-card .reviewer-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--catalog-text-lighter);
    margin-bottom: 4px;
    letter-spacing: -0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.latest-review-card .review-service {
    font-size: 13px;
    color: var(--catalog-card-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.latest-review-card .review-service::before {
    content: '→';
    color: var(--catalog-accent-color);
    font-weight: 700;
}

.latest-review-card .review-service strong {
    color: var(--catalog-accent-color);
    font-weight: 600;
    background: rgba(149, 206, 90, 0.1);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.latest-review-card .review-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.latest-review-card .review-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 10px;
    border-radius: 20px;
    border: 1px solid rgba(149, 206, 90, 0.2);
}

.latest-review-card .rating-stars {
    display: flex;
    gap: 2px;
}

.latest-review-card .review-rating i {
    font-size: 14px;
    transition: all 0.2s ease;
}

.latest-review-card .rating-value {
    font-weight: 700;
    font-size: 14px;
    padding: 3px 8px;
    border-radius: 10px;
    color: #fff;
    min-width: 28px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.latest-review-card .review-date {
    font-size: 11px;
    color: var(--catalog-card-text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid rgba(149, 206, 90, 0.1);
    white-space: nowrap;
}

/* Цвета для рейтинга в последних отзывах - КОМПАКТНЫЕ */
.latest-review-card .rating-value[data-rating="5"] {
    background: linear-gradient(135deg, #26a69a, #00897b);
    box-shadow: 0 3px 12px rgba(38, 166, 154, 0.4);
}

.latest-review-card .rating-value[data-rating="4"] {
    background: linear-gradient(135deg, #66bb6a, #43a047);
    box-shadow: 0 3px 12px rgba(102, 187, 106, 0.4);
}

.latest-review-card .rating-value[data-rating="3"] {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    box-shadow: 0 3px 12px rgba(255, 152, 0, 0.4);
}

.latest-review-card .rating-value[data-rating="2"] {
    background: linear-gradient(135deg, #ff7043, #e64a19);
    box-shadow: 0 3px 12px rgba(255, 112, 67, 0.4);
}

.latest-review-card .rating-value[data-rating="1"] {
    background: linear-gradient(135deg, #ef5350, #d32f2f);
    box-shadow: 0 3px 12px rgba(239, 83, 80, 0.4);
}

.latest-review-card .review-content {
    padding: 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.latest-review-card .review-excerpt {
    font-size: 14px;
    color: var(--catalog-card-text);
    line-height: 1.6;
    margin-bottom: 16px;
    position: relative;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border-left: 3px solid var(--catalog-accent-color);
    font-style: italic;
    flex: 1;
}

.latest-review-card .review-excerpt::before {
    content: '"';
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 24px;
    color: var(--catalog-accent-color);
    opacity: 0.6;
    font-family: Georgia, serif;
}

.latest-review-card .review-excerpt::after {
    content: '"';
    position: absolute;
    bottom: 6px;
    right: 12px;
    font-size: 24px;
    color: var(--catalog-accent-color);
    opacity: 0.6;
    font-family: Georgia, serif;
}

.latest-review-card .review-footer {
    padding: 0 20px 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.latest-review-card .review-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.latest-review-card .review-tag {
    background: rgba(149, 206, 90, 0.1);
    color: var(--catalog-accent-color);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
    border: 1px solid rgba(149, 206, 90, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.latest-review-card .read-more-link {
    color: #000;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--catalog-accent-color), #a9dd78);
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(149, 206, 90, 0.3);
    white-space: nowrap;
}

.latest-review-card .read-more-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.latest-review-card .read-more-link:hover::before {
    left: 100%;
}

.latest-review-card .read-more-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(149, 206, 90, 0.4);
    background: linear-gradient(135deg, #a9dd78, #bde896);
}

/* FAQ секция - ИСПРАВЛЕННЫЙ ДИЗАЙН С РАБОЧЕЙ ФУНКЦИОНАЛЬНОСТЬЮ */
.catalog-faq-section {
    margin: 60px 0 !important;
}

.surfearner-faq-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.surfearner-faq-item {
    background: #ffffff !important;
    border-radius: 8px !important;
    margin-bottom: 15px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #e9ecef !important;
    width: 100% !important;
}

.surfearner-faq-item:last-child {
    margin-bottom: 0 !important;
}

.surfearner-faq-question {
    width: 100% !important;
    background: #f8f9fa !important;
    border: none !important;
    padding: 20px 25px !important;
    text-align: left !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #333 !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    transition: all 0.3s ease !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
}

.surfearner-faq-question:hover {
    background: #e9ecef !important;
    color: var(--catalog-accent-color) !important;
}

.surfearner-faq-icon {
    font-size: 16px !important;
    color: currentColor !important;
    transition: transform 0.3s ease !important;
    margin-left: 15px !important;
    flex-shrink: 0 !important;
}

.surfearner-faq-question.faq-active {
    background: var(--catalog-accent-color) !important;
    color: #000 !important;
    font-weight: 700 !important;
}

.surfearner-faq-question.faq-active .surfearner-faq-icon {
    transform: rotate(180deg) !important;
}

/* ОСНОВНЫЕ СТИЛИ ДЛЯ FAQ ОТВЕТОВ - ИСПРАВЛЕНО */
.surfearner-faq-answer {
    width: 100% !important;
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    transition: all 0.4s ease !important;
    background: #fff !important;
    box-sizing: border-box !important;
    padding: 0 25px !important;
}

/* ОТКРЫТОЕ СОСТОЯНИЕ FAQ - ГЛАВНЫЕ СТИЛИ */
.surfearner-faq-answer.faq-active,
.surfearner-faq-answer[data-faq-open="true"] {
    opacity: 1 !important;
    max-height: 1000px !important;
    padding: 25px !important;
}

.surfearner-faq-answer p {
    color: #555 !important;
    line-height: 1.6 !important;
    margin-bottom: 15px !important;
    font-size: 16px !important;
    width: 100% !important;
}

.surfearner-faq-answer p:last-child {
    margin-bottom: 0 !important;
}

/* Пагинация */
.pagination-wrapper {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pagination-btn {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #495057;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.pagination-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.pagination-btn.active {
    background: var(--catalog-accent-color);
    border-color: var(--catalog-accent-color);
    color: #000;
    font-weight: 600;
}

/* Адаптивность */
@media (max-width: 992px) {
    .catalog-main-title {
        font-size: 36px;
    }
    
    .catalog-subtitle {
        font-size: 16px;
    }
    
    /* Уменьшаем изображение девушки на планшетах */
    .catalog-hero-section::after {
        width: 280px;
        height: 340px;
        left: 20px;
    }
    
    /* Добавляем отступ справа для текста */
    .catalog-hero-content {
        margin-left: 200px;
    }
    
    .catalog-stats {
        gap: 20px;
    }
    
    .stat-item {
        min-width: 100px;
        padding: 15px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .catalog-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-search {
        min-width: auto;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .category-title {
        font-size: 24px;
        flex-direction: column;
        gap: 8px;
    }
    
    .catalog-categories-section {
        padding: 25px 20px;
    }
    
    .categories-title {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .catalog-hero-section {
        padding: 40px 15px;
    }
    
    /* Скрываем изображение девушки на мобильных */
    .catalog-hero-section::after {
        display: none;
    }
    
    /* ИСПРАВЛЕНИЕ: Сбрасываем отступ от планшетной версии */
    .catalog-hero-content {
        margin-left: 0 !important;
        margin-right: 0;
        text-align: center;
    }
    
    .catalog-main-title {
        font-size: 28px;
    }
    
    .catalog-subtitle {
        font-size: 15px;
    }
    
    .catalog-stats {
        gap: 15px;
    }
    
    .stat-item {
        padding: 12px;
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .catalog-filters-section,
    .catalog-categories-section {
        padding: 20px 15px;
    }
    
    .filter-categories {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .service-card {
        padding: 25px;
    }
    
    .service-card-logo {
        width: 140px;
        height: 70px;
    }
    
    .service-card-logo img {
        max-width: 120px;
        max-height: 60px;
    }
    
    .service-card-actions {
        flex-direction: column;
    }
    
    .service-reviews-link,
    .service-website-link {
        min-width: auto;
    }
    
    .latest-reviews-container {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .latest-review-card .review-header {
        padding: 16px 16px 12px 16px;
    }
    
    .latest-review-card .reviewer-info {
        gap: 10px;
        margin-bottom: 10px;
    }
    
    .latest-review-card .reviewer-avatar {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
    
    .latest-review-card .reviewer-name {
        font-size: 16px;
        margin-bottom: 3px;
    }
    
    .latest-review-card .review-service {
        font-size: 12px;
    }
    
    .latest-review-card .review-meta {
        gap: 8px;
    }
    
    .latest-review-card .review-rating {
        padding: 5px 8px;
        gap: 6px;
    }
    
    .latest-review-card .review-rating i {
        font-size: 13px;
    }
    
    .latest-review-card .rating-value {
        font-size: 13px;
        padding: 2px 6px;
        min-width: 24px;
    }
    
    .latest-review-card .review-date {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .latest-review-card .review-content {
        padding: 14px 16px;
    }
    
    .latest-review-card .review-excerpt {
        padding: 12px 14px;
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .latest-review-card .review-excerpt::before,
    .latest-review-card .review-excerpt::after {
        font-size: 18px;
    }
    
    .latest-review-card .review-footer {
        padding: 0 16px 16px 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .latest-review-card .review-tags {
        justify-content: center;
    }
    
    .latest-review-card .read-more-link {
        text-align: center;
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .category-title {
        font-size: 22px;
    }
    
    .category-description {
        font-size: 15px;
    }
    
    .category-header {
        padding: 25px 15px;
    }
    
    .categories-title {
        font-size: 20px;
    }
    
    .surfearner-faq-container {
        padding: 25px;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .surfearner-faq-question {
        padding: 15px 20px !important;
        font-size: 16px !important;
    }
    
    .surfearner-faq-answer.faq-active {
        padding: 20px !important;
    }
    
    .surfearner-faq-answer p {
        font-size: 15px !important;
    }
}

@media (max-width: 576px) {
    .catalog-hero-section {
        padding: 30px 10px;
    }
    
    .catalog-main-title {
        font-size: 24px;
    }
    
    .catalog-filters-section,
    .catalog-categories-section {
        padding: 15px 10px;
    }
    
    .category-filter {
        padding: 10px 14px;
        font-size: 12px;
    }
    
    .filter-search input {
        padding: 10px 40px 10px 12px;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-card-logo {
        width: 120px;
        height: 60px;
    }
    
    .service-card-logo img {
        max-width: 100px;
        max-height: 50px;
    }
    
    .latest-review-card {
        border-radius: 12px;
    }
    
    .latest-review-card .review-header {
        padding: 14px 14px 10px 14px;
    }
    
    .latest-review-card .reviewer-info {
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .latest-review-card .reviewer-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .latest-review-card .reviewer-name {
        font-size: 15px;
        margin-bottom: 2px;
    }
    
    .latest-review-card .review-service {
        font-size: 11px;
    }
    
    .latest-review-card .review-service strong {
        padding: 1px 4px;
        font-size: 11px;
    }
    
    .latest-review-card .review-meta {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    
    .latest-review-card .review-rating {
        justify-content: center;
        padding: 4px 6px;
        gap: 5px;
    }
    
    .latest-review-card .review-rating i {
        font-size: 12px;
    }
    
    .latest-review-card .rating-value {
        font-size: 12px;
        padding: 2px 5px;
        min-width: 22px;
    }
    
    .latest-review-card .review-date {
        text-align: center;
        font-size: 9px;
        padding: 2px 5px;
    }
    
    .latest-review-card .review-content {
        padding: 12px 14px;
    }
    
    .latest-review-card .review-excerpt {
        padding: 10px 12px;
        font-size: 12px;
        margin-bottom: 10px;
        border-left-width: 2px;
    }
    
    .latest-review-card .review-excerpt::before,
    .latest-review-card .review-excerpt::after {
        font-size: 16px;
    }
    
    .latest-review-card .review-footer {
        padding: 0 14px 14px 14px;
        gap: 8px;
    }
    
    .latest-review-card .review-tag {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .latest-review-card .read-more-link {
        padding: 7px 12px;
        font-size: 11px;
        border-radius: 16px;
    }
    
    .surfearner-faq-container {
        padding: 20px;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .surfearner-faq-question {
        padding: 12px 15px !important;
        font-size: 15px !important;
    }
    
    .surfearner-faq-answer.faq-active {
        padding: 15px !important;
    }
    
    .surfearner-faq-answer p {
        font-size: 14px !important;
    }
    
    .categories-title {
        font-size: 18px;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .pagination-btn {
        padding: 6px 12px;
        font-size: 13px;
        min-width: 35px;
    }
}

/* Состояния для фильтрации */
.service-card.filtered-out {
    display: none;
}

.category-section.no-results {
    opacity: 0.5;
}

.category-section.no-results .services-grid {
    display: none;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeIn 0.5s ease-out;
}

/* Улучшение доступности */
.category-filter:focus,
.service-reviews-link:focus,
.service-website-link:focus,
.surfearner-faq-question:focus {
    outline: 2px solid var(--catalog-accent-color);
    outline-offset: 2px;
}

@supports selector(:focus-visible) {
    .category-filter:focus:not(:focus-visible),
    .service-reviews-link:focus:not(:focus-visible),
    .service-website-link:focus:not(:focus-visible),
    .surfearner-faq-question:focus:not(:focus-visible) {
        outline: none;
    }
    
    .category-filter:focus-visible,
    .service-reviews-link:focus-visible,
    .service-website-link:focus-visible,
    .surfearner-faq-question:focus-visible {
        outline: 2px solid var(--catalog-accent-color);
        outline-offset: 2px;
    }
}

/* Индикатор загрузки */
.loading-indicator {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
    grid-column: 1 / -1;
}

.loading-indicator svg {
    margin-right: 10px;
    color: var(--catalog-accent-color);
}