/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #8B5CF6;
    --primary-dark: #7a00df;
    --secondary: #64748b;
    --text: #1A202C;
    --text-light: #64748b;
    --bg: #ffffff;
    --bg-gray: #F8F9FA;
    --border: #E2E8F0;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-narrow {
    max-width: 800px;
    margin: 0 auto;
}

/* ===== HEADER ===== */
.header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.logo a {
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 24px;
}

.nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover,
.nav a.active {
    color: var(--primary);
}

/* ===== HERO ===== */
.hero {
    padding: 60px 0 40px;
    background: #ffffff;
    color: var(--text);
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}


.hero-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto 32px;
    display: flex;
    gap: 8px;
}

.hero-search-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    transition: border-color 0.2s;
}

.hero-search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.hero-search-btn {
    padding: 14px 32px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.hero-search-btn:hover {
    background: var(--primary-dark);
}

.hero-search-hint {
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    margin-top: 8px;
}

.hero-label {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 24px;
}

.hero-label strong {
    color: var(--text);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    margin-top: 48px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.hero-stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-light);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat strong {
    font-size: 42px;
    font-weight: 700;
    color: var(--text);
}

.stat span {
    font-size: 16px;
    color: var(--text-light);
}

/* Большой счетчик нейросетей */
.hero-counter {
    font-size: 64px;
    font-weight: 700;
    color: var(--primary);
    margin: 24px 0;
}

.hero-counter-label {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 32px;
}

/* ===== CHIPS SECTION ===== */
.chips-section {
    padding: 24px 0;
    background: white;
    border-bottom: 1px solid var(--border);
}

.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.chip:hover {
    background: #E0E7FF;
    border-color: var(--primary);
    color: var(--primary);
}

/* Кнопка "Все категории" */
.all-categories-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
}

.all-categories-btn:hover {
    background: var(--bg-gray);
    border-color: var(--primary);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* ===== SECTIONS ===== */
.section {
    padding: 80px 0;
}

.section-gray {
    background: var(--bg-gray);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}

.section-description {
    font-size: 18px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 48px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.section-link {
    color: var(--primary);
    font-weight: 600;
    transition: opacity 0.2s;
}

.section-link:hover {
    opacity: 0.8;
}

.section-cta {
    text-align: center;
    margin-top: 48px;
}

/* ===== ALL SERVICES COLUMNS ===== */
.all-services-columns {
    background: var(--bg-gray);
}

.columns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.service-column {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.column-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
    border-bottom: 2px solid var(--border);
    padding-bottom: 12px;
}

.column-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.column-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.column-item:hover {
    background: var(--bg-gray);
}

.item-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    min-width: 24px;
}

.item-logo {
    font-size: 24px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-name {
    font-size: 14px;
    font-weight: 500;
}

.column-btn {
    display: block;
    text-align: center;
    padding: 12px 16px;
    margin-top: 16px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.column-btn:hover {
    background: var(--primary);
    color: white;
}

/* ===== CATEGORIES ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.category-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s;
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.category-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.category-card p {
    font-size: 14px;
    color: var(--text-light);
}

.category-card-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.category-card-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.category-card-description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
    display: block;
}

.category-card-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    display: block;
}

/* Варианты сетки категорий */
.categories-grid--compact {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.categories-grid--full {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Большая карточка категории */
.category-card--large {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
}

.category-emoji {
    font-size: 40px;
    flex-shrink: 0;
}

.category-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.category-info {
    flex: 1;
}

.category-count {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 2px;
}

/* ===== SERVICES GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.service-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    border-color: var(--border);
}

.service-logo {
    width: 48px;
    height: 48px;
    background: var(--bg-gray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
}

.service-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.service-card-description {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
    flex-grow: 1;
    line-height: 1.5;
}

.service-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tag {
    background: #E0E7FF;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    color: #5B21B6;
    font-weight: 500;
}

.badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.badge-price {
    background: #dcfce7;
    color: #15803d;
    font-weight: 600;
}

.badge-type {
    background: #E0E7FF;
    color: #5B21B6;
    font-weight: 600;
}

.badge-api {
    background: #dbeafe;
    color: #1e40af;
}

.badge-telegram {
    background: #dbeafe;
    color: #0088cc;
}

.badge-russian {
    background: #fee2e2;
    color: #b91c1c;
}

.badge-opensource {
    background: #d1fae5;
    color: #047857;
}

.badge-nocode {
    background: #fef3c7;
    color: #b45309;
}

/* ===== IN-SCALE STYLE SERVICE CARDS ===== */
.service-card-inscale {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.service-card-inscale:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.service-card-logo {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: var(--bg-gray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border);
}

.service-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.service-logo-placeholder {
    font-size: 36px;
    opacity: 0.6;
}

.service-card-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.service-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    flex: 1;
}

.service-card-stats {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 13px;
    white-space: nowrap;
}

.service-views {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-light);
}

.service-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #f59e0b;
    font-weight: 600;
}

.service-description-short {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

.service-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.service-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-small {
    background: #E0E7FF;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    color: #5B21B6;
    font-weight: 500;
}

.service-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.badge-small {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.badge-small.badge-price {
    background: #dcfce7;
    color: #15803d;
}

.badge-small.badge-feature {
    background: #dbeafe;
    color: #1e40af;
}

/* ===== SERVICE PAGE SPECIFIC ===== */

/* Hero секция страницы сервиса */
.service-hero {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    margin-bottom: 40px;
}

.service-hero-main {
    flex: 1;
}

.service-hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Большая карточка сервиса */
.service-card-large {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

/* Верхняя строка мета-информации */
.service-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 12px;
}

.service-card-left-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.service-card-right-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Pill / Badge стили */
.pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: var(--bg-gray);
    color: var(--text);
}

.pill-green {
    background: #d1fae5;
    color: #065f46;
}

.pill-orange {
    background: #fef3c7;
    color: #92400e;
}

/* Meta text */
.meta {
    font-size: 14px;
    color: var(--text-light);
}

.meta strong {
    color: var(--primary);
    font-weight: 600;
}

/* Stats в правой части */
.service-card-right-meta .stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-light);
}

.service-card-right-meta .stars {
    color: #fbbf24;
    font-size: 14px;
}

/* Скриншот / медиа блок */
.service-media {
    margin-bottom: 20px;
}

.service-screenshot {
    width: 100%;
    height: 250px;
    background: var(--bg-gray);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-screenshot #service-logo {
    font-size: 48px;
    color: var(--text-light);
}

/* Основной контент карточки */
.service-card-body {
    display: flex;
    gap: 24px;
}

.service-summary {
    flex: 1;
}

/* Ряд с оценкой */
.rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    font-size: 14px;
    color: var(--text-light);
}

.rating-row .stars {
    color: #fbbf24;
    font-size: 18px;
    cursor: pointer;
}

/* Sidebar Panel */
.sidebar-panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.sidebar-panel h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

/* Контент сервиса (текст) */
.service-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-top: 40px;
}

.service-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 16px;
    color: var(--text);
}

.service-content h2:first-child {
    margin-top: 0;
}

.service-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 16px;
}

.feature-list {
    padding-left: 20px;
    margin-bottom: 24px;
}

.feature-list li {
    margin-bottom: 8px;
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

/* CTA блок */
.service-cta {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* Рекламные карточки */
.service-ads {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ad-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.ad-label {
    background: var(--bg-gray);
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ad-body {
    padding: 16px;
}

.ad-body h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.ad-body p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.ad-image {
    width: 60px;
    height: 60px;
    background: var(--bg-gray);
    border-radius: 8px;
    margin-bottom: 12px;
}

/* Responsive для страницы сервиса */
@media (max-width: 1024px) {
    .service-hero {
        grid-template-columns: 1fr;
    }

    .service-hero-sidebar {
        order: 2;
    }

    .service-content {
        grid-template-columns: 1fr;
    }

    .service-ads {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .ad-card {
        flex: 1;
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .service-card-large {
        padding: 16px;
    }

    .service-card-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .service-card-body {
        flex-direction: column;
    }

    .service-screenshot {
        height: 180px;
    }
}

.service-icon-large {
    font-size: 48px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Счетчик просмотров */
.stat-dot {
    color: var(--primary);
    font-size: 18px;
    margin-right: 4px;
}

/* Дата обновления */
.service-updated {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 16px;
}

/* Tagline сервиса */
.service-tagline {
    font-size: 18px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Кнопки сортировки */
.sort-btn {
    background: white;
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
    transition: all 0.2s;
}

.sort-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.sort-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== CATALOG PAGE ===== */
.catalog-page {
    background: white;
}

.catalog-hero {
    text-align: center;
    padding: 40px 0;
}

.catalog-hero h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.catalog-subtitle {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 32px;
}

/* Фильтры каталога */
.filters-panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 32px;
}

.filters-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-select {
    background: white;
    cursor: pointer;
}

/* ===== CATALOG FILTERS (chip-стиль) ===== */
.catalog-filters {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.catalog-filters-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.catalog-filters-top {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.catalog-search {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 200px;
}

.catalog-search-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.catalog-search-input:focus {
    border-color: var(--primary);
}

.catalog-search-btn {
    padding: 10px 14px;
    background: white;
    border: 1px solid var(--border);
    border-left: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.catalog-search-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.catalog-category-select {
    min-width: 200px;
}

.catalog-category-select .filter-select {
    height: 100%;
}

.catalog-filters-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.filter-separator {
    color: var(--border);
    font-size: 18px;
    margin: 0 4px;
    user-select: none;
}

.catalog-filters-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.catalog-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.catalog-filters-reset {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
}

.catalog-filters-reset:hover {
    text-decoration: underline;
}

/* Каталог фильтры: мобильные стили */
@media (max-width: 768px) {
    .catalog-filters {
        padding: 16px;
    }

    .catalog-filters-top {
        flex-direction: column;
    }

    .catalog-category-select {
        min-width: 100%;
    }

    .catalog-filters-checkboxes {
        gap: 6px;
    }

    .filter-separator {
        display: none;
    }

    .catalog-filters-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .catalog-sort {
        flex-wrap: wrap;
    }
}

.catalog-section-title {
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 32px;
    text-align: center;
}

/* Сетка категорий (карточки с списками) */
.catalog-categories-grid,
.catalog-categories-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.category-card-catalog {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s;
}

.category-card-catalog:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.category-header-link {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s;
}

.category-header-link:hover {
    color: var(--primary);
}

.category-header-link:hover h3 {
    color: var(--primary);
}

.category-header-link h3,
.category-card-catalog h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--text);
    cursor: pointer;
}

.category-services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-service-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
}

.category-service-item:hover {
    color: var(--primary);
}

.category-view-all {
    display: block;
    text-align: center;
    padding: 12px;
    margin-top: 12px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    border-top: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
}

.category-view-all:hover {
    background: var(--bg-gray);
}

.category-service-number {
    color: var(--text-light);
    font-size: 13px;
    min-width: 20px;
}

.category-service-icon {
    font-size: 18px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* .category-view-all уже определен выше */

.search-box {
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 16px 24px;
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-size: 16px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2);
}

.search-input::placeholder {
    color: var(--text-light);
}

/* ===== FILTERS DROPDOWN BAR ===== */
.filters-dropdown-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-dropdown {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text);
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
}

.filter-dropdown:hover {
    border-color: var(--primary);
}

.filter-dropdown:focus {
    outline: none;
    border-color: var(--primary);
}

.filters-dropdown-bar .btn {
    padding: 12px 24px;
    white-space: nowrap;
}

/* ===== SERVICE PAGE ===== */
.breadcrumbs {
    padding: 20px 0;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--text-light);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs span {
    margin: 0 8px;
}

.service-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    margin-bottom: 64px;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 24px;
}

.service-badges {
    display: flex;
    gap: 8px;
}

.service-meta {
    color: var(--text-light);
    margin-bottom: 24px;
}

.service-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.service-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.service-info-grid {
    display: grid;
    gap: 24px;
}

.info-card {
    background: var(--bg-gray);
    padding: 24px;
    border-radius: var(--radius);
}

.info-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.info-card p, .info-card ul {
    color: var(--text-light);
    font-size: 14px;
}

.info-card ul {
    padding-left: 20px;
}

.info-card li {
    margin-bottom: 8px;
}

/* Sidebar */
.sidebar-card {
    background: white;
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.sidebar-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 8px;
}

.sidebar-card p {
    font-size: 16px;
    font-weight: 600;
}

/* Sidebar List */
.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: background 0.2s;
}

.sidebar-item:hover {
    background: var(--bg-gray);
}

.sidebar-item-number {
    font-size: 12px;
    color: var(--text-light);
    min-width: 16px;
}

.sidebar-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 16px;
}

.sidebar-item-icon img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: contain;
}

.sidebar-item-name {
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ad-block {
    background: var(--bg-gray);
    border: 2px dashed var(--border);
    padding: 60px 20px;
    border-radius: var(--radius);
    text-align: center;
    color: var(--text-light);
}

/* Related services */
.related-services {
    margin-top: 64px;
}

.related-services h2 {
    font-size: 28px;
    margin-bottom: 32px;
}

/* ===== FIND TOOLS SECTION ===== */
.find-tools-section {
    background: var(--bg-gray);
}

.find-tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.find-tools-column {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.find-tools-column h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

.find-tools-column ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.find-tools-column ul li {
    margin-bottom: 12px;
}

.find-tools-column ul li a {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    display: block;
    padding: 4px 0;
}

.find-tools-column ul li a:hover {
    color: var(--primary);
}

.show-all-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-top: 8px;
    width: 100%;
}

.show-all-link:hover {
    color: var(--primary-dark);
}

.quick-filters-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-filter-btn {
    background: var(--primary);
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s;
}

.quick-filter-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== TEXT INFO BLOCKS ===== */
.text-info-blocks {
    background: white;
}

.text-info-item {
    display: flex;
    align-items: center;
    gap: 48px;
    margin-bottom: 64px;
    padding: 32px 0;
}

.text-info-item.full-width {
    background: var(--bg-gray);
    padding: 48px;
    border-radius: var(--radius);
    justify-content: space-between;
}

.text-info-item.with-icon-left {
    flex-direction: row;
}

.text-info-item.with-icon-right {
    flex-direction: row-reverse;
}

.text-info-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
    line-height: 1.3;
}

.text-info-content p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.text-info-content-right,
.text-info-content-left {
    flex: 1;
}

.text-info-content-right h2,
.text-info-content-left h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.text-info-content-right p,
.text-info-content-left p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

.text-info-icon,
.text-info-icon-left,
.text-info-icon-right {
    flex-shrink: 0;
}

.text-info-icon svg,
.text-info-icon-left svg,
.text-info-icon-right svg {
    opacity: 0.8;
}

/* ===== SEO CONTENT ===== */
.seo-content {
    background: var(--bg-gray);
}

.seo-content h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.seo-content h3 {
    font-size: 24px;
    margin-top: 32px;
    margin-bottom: 12px;
}

.seo-content p {
    margin-bottom: 16px;
    color: var(--text-light);
}

.seo-content ul {
    margin-bottom: 24px;
    padding-left: 24px;
}

.seo-content li {
    margin-bottom: 12px;
    color: var(--text-light);
}

/* ===== NO RESULTS ===== */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}

.no-results p:first-child {
    font-size: 48px;
    margin-bottom: 16px;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    padding: 32px 0;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 10px 20px;
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.pagination-btn:hover:not(.pagination-disabled) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    background: white;
    transition: all 0.2s;
}

.pagination-num:hover:not(.pagination-current) {
    background: #f3e8ff;
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    font-weight: 700;
}

.pagination-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 40px;
    color: var(--text-light);
    font-size: 14px;
}

.pagination-info {
    color: var(--text-light);
    font-size: 14px;
}

/* Пагинация: мобильные стили */
@media (max-width: 768px) {
    .pagination {
        gap: 4px;
    }

    .pagination-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .pagination-num {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .pagination-dots {
        min-width: 24px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .pagination-prev,
    .pagination-next {
        display: none;
    }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--text);
    color: white;
    padding: 48px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 32px;
}

.footer-section h4 {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 700;
}

.footer-section p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.footer-section ul {
    list-style: none;
}

/* Footer Brand Section */
.footer-brand .footer-logo h4 {
    font-size: 20px;
    margin-bottom: 12px;
}

.footer-tagline {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.2s;
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* Footer Categories Section */
.footer-categories ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-counter {
        font-size: 48px;
    }

    .hero-label, .hero-counter-label {
        font-size: 16px;
    }

    .catalog-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-box {
        width: 100%;
    }

    .filters-dropdown-bar {
        flex-direction: column;
    }

    .filter-dropdown {
        width: 100%;
    }

    .filters-dropdown-bar .btn {
        width: 100%;
    }

    .service-layout {
        grid-template-columns: 1fr;
    }

    .service-actions {
        flex-direction: column;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .columns-grid {
        grid-template-columns: 1fr;
    }

    .chips-container {
        justify-content: flex-start;
    }

    .find-tools-grid {
        grid-template-columns: 1fr;
    }

    .text-info-item,
    .text-info-item.full-width,
    .text-info-item.with-icon-left,
    .text-info-item.with-icon-right {
        flex-direction: column !important;
        text-align: center;
    }

    .text-info-icon svg,
    .text-info-icon-left svg,
    .text-info-icon-right svg {
        width: 120px;
        height: 120px;
    }

    .text-info-content h2 {
        font-size: 22px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .quick-filters-buttons {
        flex-direction: column;
    }

    .quick-filter-btn {
        width: 100%;
    }
}

/* ===== CATEGORIES PAGE ===== */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs span:last-child {
    color: var(--text);
    font-weight: 500;
}

.categories-hero {
    text-align: center;
    margin: 40px 0;
}

.categories-hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.category-filter-tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 32px 0;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 12px 24px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text);
}

.filter-tab:hover {
    border-color: var(--primary);
    background: #f8f9ff;
}

.filter-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.categories-section-title {
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 32px;
    text-align: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 60px;
}

.category-item-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-item-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.category-item-icon {
    font-size: 32px;
    min-width: 40px;
}

.category-item-info {
    flex: 1;
}

.category-item-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.category-item-count {
    font-size: 13px;
    color: var(--text-light);
}

/* ===== CATEGORIES LIST PAGE ===== */
.categories-page {
    padding: 40px 0;
}

.categories-page h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 48px;
}

/* --- Categories page: hero --- */
.cat-page-hero {
    text-align: center;
    padding: 32px 0 24px;
}
.cat-page-hero__icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}
.cat-page-hero h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
}
.cat-page-hero__sub {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 0;
}

/* --- Categories page: featured row --- */
.cat-featured {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 32px 0;
}
.cat-featured-card {
    background: #fff;
    border: 2px solid #fce7f3;
    border-radius: 14px;
    padding: 20px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.cat-featured-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-color: #f9a8d4;
}
.cat-featured-card__badge {
    font-size: 11px;
    font-weight: 700;
    color: #db2777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cat-featured-card__logo img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: contain;
}
.cat-featured-card__emoji {
    font-size: 40px;
}
.cat-featured-card__name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}
.cat-featured-card__desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    flex: 1;
}
.cat-featured-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}
.cat-featured-card__visit {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}
.cat-featured-card--pending {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    cursor: default;
    pointer-events: none;
}
.cat-featured-pending-icon {
    font-size: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.3;
}
.cat-featured-pending-name {
    color: #94a3b8 !important;
    font-weight: 500 !important;
}
.cat-featured-pending-desc {
    color: #cbd5e1 !important;
    font-size: 12px !important;
}
.cat-featured-card--placeholder {
    border: 2px dashed #e2e8f0;
    background: #fafafa;
    opacity: 0.8;
}
.cat-featured-card--placeholder:hover {
    border-color: var(--primary);
    opacity: 1;
    background: #fff;
}
.cat-featured-placeholder-icon {
    font-size: 36px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 10px;
    filter: grayscale(1);
    opacity: 0.4;
}
.cat-featured-placeholder-name {
    color: #94a3b8 !important;
}
.cat-featured-placeholder-desc {
    color: #94a3b8 !important;
    font-style: italic;
}
.cat-featured-placeholder-cta {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

/* --- Categories page: groups grid --- */
.cat-groups-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 16px;
}
.cat-group-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    gap: 0;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.cat-group-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.cat-group-card__icon-block {
    width: 80px;
    min-width: 80px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cat-group-card__icon {
    font-size: 32px;
}
.cat-group-card__body {
    padding: 18px 20px;
    flex: 1;
}
.cat-group-card__title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}
.cat-group-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cat-group-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    padding: 3px 0;
    border-radius: 4px;
    transition: color 0.15s;
}
.cat-group-link:hover {
    color: var(--primary);
}
.cat-group-link__emoji {
    font-size: 15px;
    flex-shrink: 0;
}
.cat-group-link__name {
    flex: 1;
}
.cat-group-link__count {
    color: var(--text-light);
    font-size: 12px;
}

/* price-badge extra: trial */
.price-badge.price-trial {
    background: #f3f4f6;
    color: #374151;
}

/* --- Categories page: 4-column boxes with service lists --- */
.cat-boxes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 40px 0 48px;
}
.cat-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.cat-box:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.cat-box__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}
.cat-box__icon {
    font-size: 18px;
    flex-shrink: 0;
}
.cat-box__divider {
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, #a78bfa 50%, #f59e0b 100%);
    margin: 0 16px 8px;
    border-radius: 2px;
}
.cat-box__list {
    list-style: none;
    margin: 0;
    padding: 0 8px;
    flex: 1;
    max-height: 260px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb transparent;
}
.cat-box__list::-webkit-scrollbar {
    width: 4px;
}
.cat-box__list::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 2px;
}
.cat-box__item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 6px;
    transition: background 0.15s;
}
.cat-box__item:hover {
    background: #f8fafc;
}
.cat-box__num {
    font-size: 12px;
    color: var(--text-light);
    min-width: 18px;
    text-align: right;
    flex-shrink: 0;
}
.cat-box__logo {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: contain;
    flex-shrink: 0;
}
.cat-box__emoji {
    font-size: 16px;
    flex-shrink: 0;
}
.cat-box__name {
    flex: 1;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s;
}
.cat-box__name:hover {
    color: var(--primary);
}
.cat-box__free-badge {
    font-size: 10px;
    font-weight: 700;
    background: #d1fae5;
    color: #065f46;
    padding: 1px 5px;
    border-radius: 4px;
    flex-shrink: 0;
}
.cat-box__ext {
    font-size: 13px;
    color: var(--text-light);
    flex-shrink: 0;
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.15s;
}
.cat-box__ext:hover {
    opacity: 1;
    color: var(--primary);
}
.cat-box__footer {
    display: block;
    text-align: center;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    text-decoration: none;
    border-top: 1px solid var(--border);
    background: #fafafa;
    transition: background 0.15s, color 0.15s;
    margin-top: 8px;
}
.cat-box__footer:hover {
    background: #f1f5f9;
    color: var(--primary);
}

/* Heading before groups section */
.cat-groups-heading {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

@media (max-width: 1100px) {
    .cat-boxes-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .cat-featured { grid-template-columns: repeat(2, 1fr); }
    .cat-groups-grid { grid-template-columns: 1fr; }
    .cat-boxes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .cat-featured { grid-template-columns: 1fr; }
    .cat-boxes-grid { grid-template-columns: 1fr; }
}

/* ===== CATEGORY PAGE ===== */
.category-page {
    padding: 40px 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.category-header-emoji {
    font-size: 48px;
}

.category-header-info h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.category-count {
    font-size: 14px;
    color: var(--text-light);
}

/* Фильтры внутри категории */
.category-filters {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.category-filters-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.category-filters-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.filter-checkbox input {
    display: none;
}

.filter-checkbox:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-checkbox.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.category-filters-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.category-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-label {
    font-size: 14px;
    color: var(--text-light);
}

.sort-option {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
}

.sort-option:hover {
    background: #f3e8ff;
    color: var(--primary);
}

.sort-option.active {
    background: var(--primary);
    color: white;
}

.category-search {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 280px;
    flex: 1;
}

.category-search-input {
    flex: 1;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.category-search-input:focus {
    border-color: var(--primary);
}

.category-search-btn {
    padding: 8px 14px;
    background: white;
    border: 1px solid var(--border);
    border-left: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.category-search-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.category-filters-reset {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
}

.category-filters-reset:hover {
    text-decoration: underline;
}

/* Фильтры категории: мобильные стили */
@media (max-width: 768px) {
    .category-filters {
        padding: 16px;
    }

    .category-filters-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .category-sort {
        flex-wrap: wrap;
    }

    .category-search {
        max-width: 100%;
        width: 100%;
    }
}

/* ===== CATEGORY PAGE NEUROFOLDER STYLE ===== */
.category-page-neurofolder {
    padding: 0 0 60px;
}

.category-hero {
    text-align: center;
    margin: 40px 0;
}

.category-hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.category-hero p {
    font-size: 16px;
    color: var(--text-light);
}

/* Фильтры сверху */
.category-filters-top {
    margin: 32px 0 24px;
    padding: 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.filters-checkboxes-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.filter-checkbox-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
    white-space: nowrap;
}

.filter-checkbox-inline input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.filter-checkbox-inline:hover {
    color: var(--primary);
}

/* Сортировка и поиск в одну строку */
.category-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    gap: 24px;
}

.sort-buttons-inline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-buttons-inline span {
    font-size: 14px;
    color: var(--text-light);
}

.sort-btn-inline {
    padding: 8px 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text);
    position: relative;
}

.sort-btn-inline:hover {
    color: var(--primary);
}

.sort-btn-inline.active {
    color: var(--primary);
    font-weight: 600;
}

.sort-btn-inline.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.search-box-inline {
    flex-shrink: 0;
}

/* Services Grid - 4 колонки */
.services-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card-neurofolder {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-card-neurofolder:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
    border-color: var(--primary);
}

/* Номер рейтинга */
.service-rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255,255,255,0.95);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1;
}

/* Изображение сервиса */
.service-card-image-large {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-gray);
    display: block;
}

/* Контент карточки */
.service-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.service-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--text);
    line-height: 1.3;
}

.service-card-description-full {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* Статистика (просмотры, рейтинг) */
.service-card-stats-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.service-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-light);
}

.service-rating-stars {
    color: #fbbf24;
    font-size: 14px;
}

/* Теги на карточке */
.service-card-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-gray);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s;
}

.tag-link:hover {
    background: var(--primary);
    color: white;
}

/* Бейджи (Бесплатно, VPN, и т.д.) */
.service-card-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.badge-neurofolder {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-free {
    background: #d1fae5;
    color: #065f46;
}

.badge-trial {
    background: #dbeafe;
    color: #1e40af;
}

.badge-vpn {
    background: #fef3c7;
    color: #92400e;
}

.badge-telegram {
    background: #e0e7ff;
    color: #3730a3;
}

.badge-api {
    background: #f3e8ff;
    color: #6b21a8;
}

.badge-russian {
    background: #fee2e2;
    color: #991b1b;
}

/* Mobile */
@media (max-width: 1024px) {
    .services-grid-4col {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-controls-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-box-inline {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .category-hero h1 {
        font-size: 28px;
    }

    .services-grid-4col {
        grid-template-columns: 1fr;
    }

    .filters-checkboxes-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .category-filters-top {
        padding: 16px;
    }

    .categories-hero h1 {
        font-size: 28px;
    }

    .category-filter-tabs {
        flex-direction: column;
    }

    .filter-tab {
        width: 100%;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ADVERTISING BLOCKS ===== */

/* Нижний рекламный блок */
.ad-bottom-section {
    margin: 40px 0;
    padding: 20px 0;
}

.ad-bottom-block {
    background: var(--bg-gray);
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    min-height: 100px;
}

.ad-bottom-placeholder {
    color: var(--text-light);
    font-size: 14px;
}

/* Sticky блок справа (Яндекс.Директ) */
.ad-sticky-container {
    position: fixed;
    right: 20px;
    top: 120px;
    width: 160px;
    z-index: 50;
}

.ad-sticky-placeholder {
    background: var(--bg-gray);
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 20px 10px;
    text-align: center;
    color: var(--text-light);
    font-size: 12px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Скрыть sticky на маленьких экранах */
@media (max-width: 1400px) {
    .ad-sticky-container {
        display: none;
    }
}

/* Боковые рекламные карточки */
.ads-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Адаптивность рекламы */
@media (max-width: 768px) {
    .ad-bottom-block {
        padding: 16px;
    }
}

/* ===== FAVORITES (ИЗБРАННОЕ) ===== */

/* Кнопка избранного на карточках */
.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: #9ca3af;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.favorite-btn:hover {
    transform: scale(1.1);
    color: #ef4444;
}

.favorite-btn.active {
    color: #ef4444;
    background: #fef2f2;
}

.favorite-btn.active:hover {
    background: #fee2e2;
}

/* Большая кнопка на странице сервиса */
.favorite-btn-large {
    width: 48px;
    height: 48px;
    font-size: 24px;
}

/* Счётчик избранного в навигации */
.favorites-link {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.favorites-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
}

/* Уведомление */
.favorites-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1f2937;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.favorites-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Страница избранного */
.favorites-page {
    padding: 40px 0;
}

.favorites-page h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.favorites-page .subtitle {
    color: var(--text-light);
    margin-bottom: 32px;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Пустое избранное */
.favorites-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.favorites-empty-icon {
    font-size: 64px;
    color: #e5e7eb;
    margin-bottom: 16px;
}

.favorites-empty h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.favorites-empty p {
    color: var(--text-light);
    margin-bottom: 24px;
}

/* Контейнер для кнопки избранного на странице сервиса */
#favorite-btn-container {
    display: inline-flex;
    margin-left: 16px;
}

/* Адаптивность избранного */
@media (max-width: 768px) {
    .favorite-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .favorites-grid {
        grid-template-columns: 1fr;
    }

    .favorites-empty {
        padding: 40px 16px;
    }
}

/* ===== SERVICE PAGE NEUROFOLDER STYLE ===== */

/* Основной layout страницы */
.service-page-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

.service-main-content {
    min-width: 0;
}

/* Карточка сервиса */
.service-card-nf {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
}

/* Верхняя панель с мета-информацией */
.service-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.service-top-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.service-top-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Бейдж рейтинга */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

/* Ссылка на категорию */
.category-link {
    font-size: 14px;
    color: var(--text-light);
}

.category-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.category-link a:hover {
    text-decoration: underline;
}

/* Бейджи цены */
.price-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.price-badge.price-free {
    background: #d1fae5;
    color: #065f46;
}

.price-badge.price-freemium {
    background: #dbeafe;
    color: #1e40af;
}

.price-badge.price-paid {
    background: #fef3c7;
    color: #92400e;
}

.price-badge.price-trial {
    background: #f3f4f6;
    color: #374151;
}

/* Filter price color hints */
.filter-price-free.active  { border-color: #10b981; background: #d1fae5; }
.filter-price-freemium.active { border-color: #3b82f6; background: #dbeafe; }
.filter-price-trial.active { border-color: #6b7280; background: #f3f4f6; }
.filter-price-paid.active  { border-color: #f59e0b; background: #fef3c7; }

/* Бейдж VPN */
.vpn-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: #fee2e2;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #991b1b;
}

/* Статистика в правой части */
.views-count {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--text-light);
}

.rating-stars {
    color: #fbbf24;
    font-size: 16px;
}

.rating-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

/* Заголовок с логотипом */
.service-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.service-logo-small {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gray);
    flex-shrink: 0;
}

.service-logo-small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-placeholder {
    font-size: 28px;
}

.service-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    flex: 1;
}

.favorite-btn-inline {
    position: relative;
    top: auto;
    right: auto;
    flex-shrink: 0;
}

/* Двухколоночный грид: скриншот + инфо */
.service-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Колонка со скриншотом */
.service-screenshot-col {
    min-width: 0;
}

.service-screenshot-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--bg-gray);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.service-screenshot-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-screenshot-wrapper img.screenshot-logo {
    object-fit: contain;
    padding: 20px;
}

.screenshot-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.screenshot-placeholder span {
    font-size: 64px;
    opacity: 0.5;
}

/* Колонка с информацией */
.service-info-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Секция оценки */
.rating-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-label {
    font-size: 14px;
    color: var(--text-light);
}

.stars-interactive {
    font-size: 20px;
    color: #e5e7eb;
    cursor: pointer;
    letter-spacing: 2px;
}

.stars-interactive:hover {
    color: #fbbf24;
}

/* Краткое описание */
.service-short-desc {
    font-size: 16px;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}

/* Кнопка перехода на сайт */
.btn-visit-site {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    width: 100%;
    text-align: center;
}

.btn-visit-site:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.icon-external {
    font-size: 18px;
}

/* Дата обновления */
.service-updated-date {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
    text-align: center;
}

/* Секция перевода */
.translate-section {
    margin-bottom: 16px;
}

.translate-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
}

.translate-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Блок описания */
.service-description-block {
    background: #faf5ff;
    border-radius: 16px;
    padding: 32px;
}

.service-intro {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 24px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.service-description-block h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin: 32px 0 16px;
}

.service-description-block h2:first-of-type {
    margin-top: 0;
}

.service-description-block p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 16px;
}

.features-list {
    padding-left: 24px;
    margin-bottom: 24px;
}

.features-list li {
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

.service-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Кликабельные теги */
.tag-clickable {
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.tag-clickable:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

/* Бейджи возможностей на странице сервиса */
.service-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

.detail-badge--api {
    background: #ede9fe;
    color: #6d28d9;
}

.detail-badge--telegram {
    background: #dbeafe;
    color: #1d4ed8;
}

.detail-badge--russian {
    background: #fce7f3;
    color: #be185d;
}

.detail-badge--opensource {
    background: #d1fae5;
    color: #065f46;
}

.detail-badge--nocode {
    background: #fef3c7;
    color: #92400e;
}

/* Кнопка исходного кода */
.btn-source-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    width: 100%;
    text-align: center;
}

.btn-source-code:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #faf5ff;
}

/* Список задач */
.service-tasks-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-tasks-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    padding: 10px 16px;
    background: white;
    border-radius: 8px;
}

.task-icon {
    color: #10b981;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Целевая аудитория */
.service-audience-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.audience-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    background: white;
    border: 1px solid #e0e7ff;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text);
}

/* Категории сервиса */
.service-categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
}

.category-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #faf5ff;
}

/* Сайдбар */
.service-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 80px;
    align-self: start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: none;       /* Firefox */
    -ms-overflow-style: none;    /* IE/Edge */
}
.service-sidebar::-webkit-scrollbar { display: none; } /* Chrome/Safari */

.sidebar-panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
}

.sidebar-panel h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.sidebar-services-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.sidebar-service-item:hover {
    background: var(--bg-gray);
}

.sidebar-service-item.active {
    background: #f3e8ff;
    color: var(--primary);
}

.sidebar-number {
    font-size: 13px;
    color: var(--text-light);
    min-width: 20px;
}

.sidebar-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.sidebar-icon img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: contain;
}

.sidebar-name {
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-view-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    margin-top: 12px;
    background: white;
    border: 1px solid var(--primary);
    border-radius: 8px;
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.sidebar-view-all:hover {
    background: var(--primary);
    color: white;
}

/* Контекстный рекламный блок в сайдбаре */
.sidebar-ad-context {
    margin-bottom: 16px;
}

.sidebar-ad-context__inner {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    min-height: 250px;
}

.sidebar-ad-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    background: linear-gradient(135deg, #fafbfc 0%, #f0f2f5 100%);
    border: 2px dashed var(--border);
}

.sidebar-ad-placeholder__label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    background: rgba(0,0,0,0.05);
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.sidebar-ad-placeholder__size {
    font-size: 28px;
    font-weight: 700;
    color: #ccc;
}

.sidebar-ad-placeholder__sub {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 8px;
}

/* Рекламный блок рекомендаций */
/* ---- Sidebar: Рекомендуем (.sidebar-rec) ---- */
/* Единый partial: views/partials/sidebar-recommended.ejs */
.sidebar-rec {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.sidebar-rec__header {
    padding: 12px 16px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-bottom: 1px solid #fde68a;
}

.sidebar-rec__label {
    font-size: 13px;
    font-weight: 700;
    color: #92400e;
    letter-spacing: 0.2px;
}

.sidebar-rec__cards {
    display: flex;
    flex-direction: column;
}

/* Карточка */
.sidebar-rec__card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
    position: relative;
}

.sidebar-rec__card:last-child { border-bottom: none; }

.sidebar-rec__card:hover {
    background: #fafafa;
}

/* Квадратный логотип */
.sidebar-rec__logo-wrap {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #f9fafb;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-rec__logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.sidebar-rec__logo-emoji {
    font-size: 24px;
    line-height: 1;
}

/* Тело карточки */
.sidebar-rec__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-rec__top {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.sidebar-rec__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.sidebar-rec__price {
    font-size: 10px !important;
    padding: 1px 6px !important;
    border-radius: 4px !important;
    flex-shrink: 0;
}

.sidebar-rec__desc {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Стрелка */
.sidebar-rec__arrow {
    font-size: 18px;
    color: #d1d5db;
    flex-shrink: 0;
    transition: color 0.15s, transform 0.15s;
    line-height: 1;
}

.sidebar-rec__card:hover .sidebar-rec__arrow {
    color: var(--primary);
    transform: translateX(2px);
}

/* ---- end sidebar-rec ---- */

.ad-recommendation {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.ad-label-star {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
}

.ad-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 8px;
}

.ad-images-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
}

.ad-service-info {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-top: 1px solid var(--border);
}

.ad-service-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-gray);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.ad-service-details h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--text);
}

.ad-service-details p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* Адаптивность страницы сервиса */
@media (max-width: 1024px) {
    .service-page-layout {
        grid-template-columns: 1fr;
    }

    .service-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-panel,
    .ad-recommendation {
        flex: 1;
        min-width: 280px;
    }

    .sidebar-ad-context {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .service-card-nf {
        padding: 16px;
    }

    .service-top-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .service-top-right {
        width: 100%;
        justify-content: flex-start;
    }

    .service-title-row {
        flex-wrap: wrap;
    }

    .service-title {
        font-size: 24px;
        flex-basis: 100%;
        order: 2;
        margin-top: 12px;
    }

    .favorite-btn-inline {
        order: 1;
        margin-left: auto;
    }

    .service-content-grid {
        grid-template-columns: 1fr;
    }

    .service-description-block {
        padding: 20px;
    }

    .service-detail-badges {
        gap: 6px;
    }

    .detail-badge {
        font-size: 12px;
        padding: 5px 10px;
    }

    .service-tasks-list li {
        font-size: 14px;
        padding: 8px 12px;
    }

    .sidebar-panel,
    .ad-recommendation {
        min-width: 100%;
    }

    .sidebar-ad-context {
        min-width: 100%;
    }
}

/* ===== SOCIAL BAR (Instagram-style) ===== */
.social-bar {
    display: flex;
    align-items: center;
    padding: 12px 4px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

.social-bar__actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.social-bar__btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text);
    transition: transform 0.15s, color 0.15s;
    display: flex;
    align-items: center;
}

.social-bar__btn:hover {
    transform: scale(1.1);
}

.social-bar__like {
    position: relative;
}

.social-bar__like:hover {
    color: #e74c3c;
}

.social-bar__like.liked {
    color: #e74c3c;
}

.social-bar__like.liked svg {
    fill: #e74c3c;
    stroke: #e74c3c;
}

.social-bar__comment:hover {
    color: var(--primary);
}

.social-bar__share:hover {
    color: var(--primary);
}

.like-count-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -44%);
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    color: white;
    pointer-events: none;
    text-shadow: 0 0 3px rgba(0,0,0,0.35);
    transition: opacity 0.15s;
}

.social-bar__like:not(.liked) .like-count-badge {
    color: #374151;
    text-shadow: none;
}

/* ===== LOCAL AUTH FORM ===== */
.local-auth-review {
    background: var(--bg-gray);
    border-radius: 12px;
    padding: 24px;
}

.local-auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.local-auth-tab {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

.local-auth-tab:hover {
    color: var(--text);
}

.local-auth-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.local-auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.local-auth-form input {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    background: white;
    transition: border-color 0.2s;
}

.local-auth-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-local-auth {
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-local-auth:hover {
    opacity: 0.9;
}

.local-auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    gap: 12px;
}

.local-auth-divider::before,
.local-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.local-auth-divider span {
    font-size: 13px;
    color: var(--text-light);
    white-space: nowrap;
}

.local-auth-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 12px;
    padding: 10px 14px;
    background: #fef2f2;
    border-radius: 8px;
}

/* ===== REVIEWS SECTION ===== */
.reviews-section {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 24px;
    border: 1px solid var(--border);
}

.reviews-section h2 {
    margin-bottom: 20px;
    font-size: 20px;
}

/* Review Form */
.review-form-wrapper {
    margin-bottom: 24px;
}

.review-form {
    background: var(--bg-gray);
    border-radius: var(--radius);
    padding: 16px;
}

.review-form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.review-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.review-user-name {
    font-weight: 600;
    color: var(--text);
}

.review-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
}

.review-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.review-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.char-counter {
    font-size: 12px;
    color: var(--text-light);
}

.btn-submit-review {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit-review:hover {
    background: var(--primary-dark);
}

.btn-submit-review:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Login to Review */
.login-to-review {
    background: var(--bg-gray);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}

.login-to-review p {
    margin-bottom: 16px;
    color: var(--text-light);
}

.btn-google-login {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid var(--border);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-google-login:hover {
    background: var(--bg-gray);
    border-color: var(--text-light);
}

.google-icon {
    flex-shrink: 0;
}

/* ===== PROS/CONS ===== */
.service-proscons-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 24px 0;
}
@media (max-width: 768px) {
    .service-proscons-block { grid-template-columns: 1fr; }
}
.pros-icon { color: #10b981; }
.cons-icon { color: #ef4444; }
.pros-list li { border-left: 3px solid #d1fae5; }
.cons-list li { border-left: 3px solid #fecaca; }

/* ===== PRICING CARDS ===== */
.service-pricing-block { margin: 24px 0; }
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.pricing-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: box-shadow 0.2s;
}
.pricing-card:hover {
    box-shadow: var(--shadow-lg);
}
.pricing-card__name { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.pricing-card__price {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}
.pricing-card__price span {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 400;
}
.pricing-card__features {
    list-style: none;
    padding: 0;
    text-align: left;
}
.pricing-card__features li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}
.pricing-card__features li:last-child { border-bottom: none; }

/* ===== SERVICE FAQ ===== */
.service-faq-block { margin: 24px 0; }
.service-faq-block h2 { margin-bottom: 16px; }

/* ===== ALTERNATIVES ===== */
.alternatives-section { margin-top: 40px; }
.alternatives-section h2 { font-size: 24px; margin-bottom: 20px; }

/* ==================== Admin Panel ==================== */
.admin-link { background: var(--primary); color: white !important; padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; text-decoration: none; }

.admin-nav { display: flex; gap: 4px; background: var(--bg-gray); padding: 8px 12px; border-radius: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-nav a { padding: 8px 16px; border-radius: 8px; text-decoration: none; color: var(--text); font-weight: 500; font-size: 14px; transition: background 0.2s; }
.admin-nav a:hover { background: rgba(0,0,0,0.05); }
.admin-nav a.active { background: var(--primary); color: white; }

.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
.admin-stat-card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 20px; text-align: center; }
.admin-stat-card .stat-value { font-size: 32px; font-weight: 800; color: var(--primary); }
.admin-stat-card .stat-label { font-size: 13px; color: var(--text-light); margin-top: 4px; }

.admin-table { width: 100%; border-collapse: collapse; background: white; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.admin-table th { background: var(--bg-gray); padding: 10px 14px; text-align: left; font-weight: 600; font-size: 13px; white-space: nowrap; }
.admin-table td { padding: 10px 14px; border-top: 1px solid var(--border); font-size: 14px; }
.admin-table tr:hover { background: #f8f9ff; }
.admin-table code { background: var(--bg-gray); padding: 2px 6px; border-radius: 4px; font-size: 12px; }

.admin-actions { display: flex; gap: 6px; }
.btn-small { padding: 4px 12px !important; font-size: 12px !important; border-radius: 6px !important; }

.admin-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }

.admin-form { max-width: 800px; }
.admin-form .form-group { margin-bottom: 16px; }
.admin-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.admin-form input[type="text"], .admin-form input[type="url"], .admin-form select, .admin-form textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; }
.admin-form textarea { min-height: 100px; resize: vertical; }
.admin-form .checkbox-row { display: flex; flex-wrap: wrap; gap: 16px; }
.admin-form .checkbox-row label { display: flex; align-items: center; gap: 6px; font-weight: 400; cursor: pointer; font-size: 14px; }

.status-badge { padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; display: inline-block; }
.status-published { background: #d1fae5; color: #065f46; }
.status-draft { background: #fef3c7; color: #92400e; }
.status-archived { background: #e5e7eb; color: #4b5563; }
.status-pending { background: #dbeafe; color: #1e40af; }
.status-approved { background: #d1fae5; color: #065f46; }
.status-rejected { background: #fecaca; color: #991b1b; }

.admin-message { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.admin-message-success { background: #d1fae5; color: #065f46; }
.admin-message-error { background: #fecaca; color: #991b1b; }

@media (max-width: 768px) {
    .admin-table { font-size: 12px; }
    .admin-table th, .admin-table td { padding: 8px 10px; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Reviews List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reviews-loading,
.reviews-empty,
.reviews-error {
    text-align: center;
    padding: 32px;
    color: var(--text-light);
}

.review-item {
    background: var(--bg-gray);
    border-radius: var(--radius);
    padding: 16px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.review-meta {
    flex: 1;
}

.review-author {
    display: block;
    font-weight: 600;
    color: var(--text);
}

.review-date {
    font-size: 12px;
    color: var(--text-light);
}

.review-delete-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.review-delete-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}

.review-text {
    line-height: 1.6;
    color: var(--text);
    white-space: pre-wrap;
}

/* Interactive Stars */
.stars-interactive {
    display: inline-flex;
    gap: 2px;
}

.stars-interactive .star {
    font-size: 20px;
    color: #d1d5db;
    transition: all 0.15s;
}

.stars-interactive .star.active,
.stars-interactive .star.highlighted {
    color: #fbbf24;
}

.stars-interactive .star:hover {
    transform: scale(1.1);
}

/* Notification */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 14px 24px;
    border-radius: 8px;
    background: var(--text);
    color: white;
    font-weight: 500;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-success {
    background: #10b981;
}

.notification-error {
    background: #ef4444;
}

/* User menu in header */
.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 20px;
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.user-name {
    font-weight: 500;
    font-size: 14px;
}

.btn-logout {
    font-size: 13px;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
}

.btn-logout:hover {
    color: var(--text);
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-login:hover {
    background: var(--bg-gray);
}

.user-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

/* ===== AUTH MODAL ===== */
.auth-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-modal {
    background: white;
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: authModalIn 0.2s ease-out;
}

@keyframes authModalIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-modal-close {
    position: absolute;
    top: 12px; right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
    padding: 4px;
}

.auth-modal-close:hover {
    color: var(--text);
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border);
}

.auth-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.auth-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.auth-tab:hover:not(.active) {
    color: var(--text);
}

.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.auth-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
    outline: none;
}

.auth-field input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.auth-submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 4px;
}

.auth-submit-btn:hover {
    background: var(--primary-dark);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    gap: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    font-size: 13px;
    color: var(--text-light);
}

.auth-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    background: white;
    color: var(--text);
}

.auth-google-btn:hover {
    background: var(--bg-gray);
}

.auth-message {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}

.auth-message-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.auth-message-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

@media (max-width: 480px) {
    .auth-modal {
        padding: 24px 20px;
        border-radius: 12px;
    }
}

@media (max-width: 768px) {
    .reviews-section {
        padding: 16px;
    }

    .review-form-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .btn-submit-review {
        width: 100%;
    }

    .user-name {
        display: none;
    }
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 16px;
}

.lang-option {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.2s;
}

.lang-option:hover {
    background: var(--bg-gray);
    color: var(--text);
}

.lang-option.active {
    background: var(--primary);
    color: white;
}

@media (max-width: 768px) {
    .lang-switcher {
        position: absolute;
        top: 16px;
        right: 60px;
    }
}


/* ========================================================================
   АДАПТИВНЫЙ ДИЗАЙН (MOBILE-FIRST ПОДХОД)

   Описание стратегии:
   - Базовые стили оптимизированы для мобильных устройств (320px-768px)
   - Используем min-width для добавления стилей на больших экранах
   - Breakpoints основаны на реальных устройствах и контенте

   Breakpoints:
   - Mobile: 320px-767px (базовые стили, без media query)
   - Tablet: 768px-1023px (@media min-width: 768px)
   - Desktop: 1024px-1439px (@media min-width: 1024px)
   - Large Desktop: 1440px+ (@media min-width: 1440px)

   Принципы:
   - Touch-friendly элементы на мобильных (min 44px кнопки)
   - Fluid typography с использованием clamp()
   - Responsive grid с CSS Grid auto-fill
   - Hamburger menu на мобильных, полная навигация на десктопе

   Автор: Generated for Airobco AI Catalog
   Дата: 2026-02-08
   ======================================================================== */


/* ========================================================================
   БАЗОВЫЕ RESPONSIVE ПЕРЕМЕННЫЕ
   Используются для consistent breakpoints во всём проекте
   ======================================================================== */
:root {
    /* Breakpoints для использования в JS (если нужно) */
    --breakpoint-tablet: 768px;
    --breakpoint-desktop: 1024px;
    --breakpoint-large: 1440px;

    /* Mobile-first размеры контейнеров */
    --container-mobile: 100%;
    --container-tablet: 720px;
    --container-desktop: 1140px;
    --container-large: 1200px;

    /* Responsive spacing (используем для padding/margin) */
    --spacing-mobile: 16px;
    --spacing-tablet: 24px;
    --spacing-desktop: 32px;
}


/* ========================================================================
   МОБИЛЬНЫЕ БАЗОВЫЕ СТИЛИ (320px-767px)
   Эти стили применяются по умолчанию без media query
   ======================================================================== */

/* Контейнер: на мобильных отступы меньше для экономии места */
.container {
    padding: 0 var(--spacing-mobile);
}

/* Hero секция: уменьшаем padding на мобильных */
.hero {
    padding: 32px 0 24px;
}

/* Hero заголовок: адаптивный размер шрифта через clamp()
   Формула: clamp(мин, предпочитаемый, макс)
   - На 320px: ~24px
   - На 768px+: плавно растёт до 36px */
.hero-title {
    font-size: clamp(24px, 5vw, 36px);
    line-height: 1.2;
}

/* Hero подзаголовок: меньше на мобильных */
.hero-subtitle {
    font-size: clamp(14px, 3.5vw, 18px);
}

/* Hero счётчик: огромный размер масштабируется */
.hero-counter {
    font-size: clamp(42px, 10vw, 64px);
}

/* Hero поиск: на мобильных вертикальный стек */
.hero-search {
    flex-direction: column;
    gap: 12px;
}

.hero-search-input,
.hero-search-btn {
    width: 100%;
}

/* Hero статистика: вертикальный стек на маленьких экранах */
.hero-stats {
    flex-direction: column;
    gap: 24px;
}

/* Hero кнопки: вертикальный стек */
.hero-buttons {
    flex-direction: column;
    gap: 12px;
}

.hero-buttons .btn {
    width: 100%;
    text-align: center;
}

/* Секции: уменьшаем padding на мобильных (80px → 40px) */
.section {
    padding: 40px 0;
}

/* Заголовки секций: адаптивный размер */
.section-title {
    font-size: clamp(24px, 5vw, 36px);
}

.section-description {
    font-size: clamp(14px, 3.5vw, 18px);
}

/* Header секция: убираем sticky на мобильных для экономии места */
.header {
    position: relative;
}

/* Header container: на мобильных flexbox с wrap для переноса nav */
.header .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
}

/* Logo: растягивается чтобы кнопка была справа */
.logo {
    flex: 1;
}

/* Навигация: скрываем на мобильных, показываем hamburger menu */
.nav {
    display: none; /* Скрыто на мобильных, покажем через JS hamburger */
    flex-basis: 100%; /* На мобильных занимает всю ширину */
    order: 5; /* Перемещаем nav вниз (после logo, lang-switcher, user-menu, button) */
}

/* Когда мобильное меню открыто (класс добавляется через JS) */
.nav.mobile-menu-open {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 0;
    margin-top: 16px;
    border-top: 1px solid var(--border);
}

.nav.mobile-menu-open a {
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--bg-gray);
    transition: background 0.2s;
}

.nav.mobile-menu-open a:hover {
    background: #E0E7FF;
}

/* Мобильное меню (hamburger button) - кнопка с 3 полосками */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
    order: 4; /* После logo, lang, user */
}

/* Полоски hamburger menu */
.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Анимация hamburger → X при открытии */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* Language switcher: порядок на мобильных */
.lang-switcher {
    order: 2;
    margin-left: auto; /* Прижимаем к правому краю */
    margin-right: 12px;
}

/* User menu: порядок на мобильных */
.user-menu {
    order: 3;
    margin-right: 12px;
}

/* Grid: на мобильных 1 колонка */
.services-grid,
.services-grid-3col,
.services-grid-4col,
.columns-grid {
    grid-template-columns: 1fr;
    gap: 16px;
}

/* Service cards: увеличиваем padding для touch targets */
.service-card,
.service-card-large,
.service-card-nf {
    padding: 16px;
}

/* Кнопки: минимум 44px высота для touch-friendly (Apple HIG) */
.btn,
.hero-search-btn,
.chip {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Footer: вертикальный стек на мобильных */
.footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
}

/* Section header: вертикальный стек на мобильных */
.section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

/* Chips: меньший размер на мобильных, но достаточно большой для тапа */
.chip {
    font-size: 13px;
    padding: 10px 14px;
}

/* Service hero (страница сервиса): 1 колонка на мобильных */
.service-hero,
.service-page-layout {
    grid-template-columns: 1fr;
}

/* Sidebar: убираем sticky на мобильных */
.service-sidebar {
    position: static;
}

/* Категории: на мобильных показываем меньше chips */
.chips-container {
    justify-content: flex-start;
}

/* Reviews section: меньше padding */
.reviews-section {
    padding: 16px;
}

.review-form-footer {
    flex-direction: column;
    gap: 12px;
}

.btn-submit-review {
    width: 100%;
}

/* Language switcher: компактная позиция на мобильных */
.lang-switcher {
    gap: 2px;
}

.lang-option {
    padding: 6px 10px;
    font-size: 12px;
}

/* Ad blocks: скрываем sticky ads на мобильных */
.ad-sticky-container {
    display: none;
}

.ad-bottom-block {
    padding: 16px;
}

/* Favorite button: меньше на мобильных */
.favorite-btn {
    width: 36px;
    height: 36px;
}

/* User profile: скрываем имя на очень маленьких экранах */
.user-name {
    display: none;
}


/* ========================================================================
   ПЛАНШЕТЫ (768px и больше)
   Улучшения для планшетов и средних экранов
   ======================================================================== */
@media (min-width: 768px) {
    /* Контейнер: увеличиваем padding */
    .container {
        padding: 0 var(--spacing-tablet);
        max-width: var(--container-tablet);
    }

    /* Hero: увеличиваем padding */
    .hero {
        padding: 48px 0 32px;
    }

    /* Hero поиск: горизонтальный на планшетах */
    .hero-search {
        flex-direction: row;
    }

    .hero-search-input {
        flex: 1;
    }

    .hero-search-btn {
        width: auto;
        padding: 14px 32px;
    }

    /* Hero статистика: горизонтальная на планшетах */
    .hero-stats {
        flex-direction: row;
        gap: 48px;
    }

    /* Hero кнопки: горизонтальные */
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .hero-buttons .btn {
        width: auto;
    }

    /* Секции: увеличиваем padding */
    .section {
        padding: 60px 0;
    }

    /* Header: делаем sticky для удобной навигации */
    .header {
        position: sticky;
        top: 0;
    }

    /* Header container: на планшетах возвращаем normal flexbox */
    .header .container {
        flex-wrap: nowrap;
    }

    /* Навигация: показываем горизонтальную навигацию */
    .nav {
        display: flex !important; /* !important чтобы override mobile-menu-open */
        flex-direction: row;
        flex-basis: auto;
        order: 0;
        padding: 0;
        margin-top: 0;
        border-top: none;
        gap: 20px;
    }

    .nav a {
        padding: 0;
        background: transparent;
    }

    /* Hamburger: скрываем на планшетах */
    .mobile-menu-btn {
        display: none;
    }

    /* Logo: убираем flex-grow */
    .logo {
        flex: 0;
    }

    /* Language switcher: убираем margin auto */
    .lang-switcher {
        order: 0;
        margin-left: 16px;
        margin-right: 0;
    }

    /* User menu: нормальный order */
    .user-menu {
        order: 0;
        margin-right: 0;
        margin-left: 16px;
    }

    /* Grid: 2 колонки на планшетах */
    .services-grid,
    .services-grid-3col {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .services-grid-4col {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Columns grid: 2 колонки */
    .columns-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Section header: горизонтальный */
    .section-header {
        flex-direction: row;
        align-items: center;
    }

    /* Footer: 2 колонки на планшетах */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
    }

    /* Chips: средний размер */
    .chip {
        font-size: 14px;
        padding: 8px 16px;
    }

    /* Reviews: показываем горизонтальные формы */
    .review-form-footer {
        flex-direction: row;
        align-items: center;
    }

    .btn-submit-review {
        width: auto;
    }

    /* User name: показываем на планшетах */
    .user-name {
        display: inline;
    }

    /* Language switcher: нормальный размер */
    .lang-option {
        padding: 6px 12px;
        font-size: 13px;
    }

    /* Favorite button: нормальный размер */
    .favorite-btn {
        width: 40px;
        height: 40px;
    }
}


/* ========================================================================
   ДЕСКТОП (1024px и больше)
   Полноценный desktop experience
   ======================================================================== */
@media (min-width: 1024px) {
    /* Контейнер: desktop размер */
    .container {
        padding: 0 var(--spacing-desktop);
        max-width: var(--container-desktop);
    }

    /* Hero: полный padding */
    .hero {
        padding: 60px 0 40px;
    }

    /* Секции: полный padding */
    .section {
        padding: 80px 0;
    }

    /* Навигация: увеличиваем gap */
    .nav {
        gap: 24px;
    }

    /* Grid: 3-4 колонки на desktop */
    .services-grid,
    .services-grid-3col {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .services-grid-4col {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }

    /* Columns grid: 3-4 колонки */
    .columns-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 24px;
    }

    /* Service hero: 2 колонки (контент + sidebar) */
    .service-hero {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .service-page-layout {
        grid-template-columns: 2fr 1fr;
        gap: 32px;
    }

    /* Sidebar: делаем sticky для удобства */
    .service-sidebar {
        position: sticky;
        top: 100px;
    }

    /* Footer: 4 колонки на больших экранах */
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Ad blocks: показываем sticky ads */
    .ad-sticky-container {
        display: block;
    }

    /* Service cards: увеличиваем padding */
    .service-card,
    .service-card-large,
    .service-card-nf {
        padding: 20px;
    }
}


/* ========================================================================
   БОЛЬШИЕ ДЕСКТОПЫ (1440px и больше)
   Дополнительные улучшения для wide screens
   ======================================================================== */
@media (min-width: 1440px) {
    /* Контейнер: максимальный размер */
    .container {
        max-width: var(--container-large);
    }

    /* Services grid 4col: действительно 4 колонки на wide screens */
    .services-grid-4col {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Увеличенные отступы для комфорта */
    .section {
        padding: 100px 0;
    }
}


/* ========================================================================
   UTILITY RESPONSIVE КЛАССЫ
   Хелперы для быстрого скрытия/показа на разных экранах
   ======================================================================== */

/* Скрыть на мобильных */
.hidden-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hidden-mobile {
        display: block;
    }
}

/* Скрыть на планшетах */
@media (min-width: 768px) and (max-width: 1023px) {
    .hidden-tablet {
        display: none;
    }
}

/* Скрыть на desktop */
@media (min-width: 1024px) {
    .hidden-desktop {
        display: none;
    }
}

/* Показать только на мобильных */
.visible-mobile {
    display: block;
}

@media (min-width: 768px) {
    .visible-mobile {
        display: none;
    }
}


/* ========================================================================
   PRINT STYLES (Бонус)
   Оптимизация для печати
   ======================================================================== */
@media print {
    /* Скрываем навигацию и интерактивные элементы при печати */
    .header,
    .nav,
    .hero-search,
    .hero-buttons,
    .footer,
    .ad-sticky-container,
    .ad-bottom-block,
    .favorite-btn,
    .lang-switcher {
        display: none !important;
    }

    /* Убираем цветные фоны для экономии чернил */
    body,
    .section,
    .service-card {
        background: white !important;
        color: black !important;
    }

    /* Показываем URL ссылок при печати */
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 12px;
        color: #666;
    }
}


/* ========================================================================
   AI ASSISTANT SECTION

   AI-помощник для подбора сервисов по описанию задачи
   Использует Gemini 1.5 Flash API для умных рекомендаций

   Компоненты:
   - Заголовок с иконкой и описанием
   - Примеры запросов (chips) для быстрого старта
   - Поле ввода с кнопкой отправки
   - Раскрывающийся блок результатов (loading/error/success states)

   Дизайн:
   - Градиентный фон (фиолетовый → розовый)
   - Smooth анимации и transitions
   - Responsive (mobile-first)
   - Touch-friendly кнопки

   Автор: Generated for Airobco AI Catalog
   Дата: 2026-02-08
   ======================================================================== */


/* ===== КОНТЕЙНЕР AI-ПОМОЩНИКА ===== */
.ai-assistant-section {
    padding: 48px 0;
    background: linear-gradient(135deg, #f5f3ff 0%, #faf5ff 100%);
    border-top: 1px solid #e9d5ff;
    border-bottom: 1px solid #e9d5ff;
}

.ai-assistant-container {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.1);
    border: 1px solid #e9d5ff;
    position: relative;
    overflow: hidden;
}

/* Декоративный элемент (градиент в углу) */
.ai-assistant-container::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}


/* ===== ЗАГОЛОВОК AI-ПОМОЩНИКА ===== */
.ai-assistant-header {
    text-align: center;
    margin-bottom: 32px;
}

.ai-assistant-title {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.ai-icon {
    font-size: clamp(32px, 5vw, 40px);
    animation: ai-icon-pulse 2s ease-in-out infinite;
}

/* Анимация пульсации иконки робота */
@keyframes ai-icon-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.ai-assistant-subtitle {
    font-size: clamp(14px, 3vw, 18px);
    color: var(--text-light);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}


/* ===== ПРИМЕРЫ ЗАПРОСОВ (CHIPS) ===== */
.ai-examples-container {
    margin-bottom: 24px;
    text-align: center;
}

.ai-examples-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 12px;
}

.ai-examples-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.ai-example-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #f5f3ff 0%, #faf5ff 100%);
    border: 2px solid #e9d5ff;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px; /* Touch-friendly */
}

.ai-example-chip:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    color: white;
    border-color: #8b5cf6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.ai-example-chip:active {
    transform: translateY(0);
}

.chip-emoji {
    font-size: 16px;
}


/* ===== ПОЛЕ ВВОДА ЗАПРОСА ===== */
.ai-input-container {
    margin-bottom: 24px;
}

.ai-search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.ai-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #e9d5ff;
    border-radius: 16px;
    font-size: 16px;
    color: var(--text);
    background: white;
    transition: all 0.3s ease;
}

.ai-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.ai-input::placeholder {
    color: #cbd5e1;
}

.ai-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-height: 54px; /* Touch-friendly */
}

.ai-submit-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.ai-submit-btn:active {
    transform: translateY(0);
}

.ai-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 18px;
}

.ai-hint {
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
    margin: 0;
}


/* ===== БЛОК РЕЗУЛЬТАТОВ ===== */
.ai-results {
    margin-top: 32px;
    border-top: 2px dashed #e9d5ff;
    padding-top: 32px;
    animation: slide-in-up 0.4s ease-out;
}

@keyframes slide-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ===== LOADING STATE ===== */
.ai-loading {
    text-align: center;
    padding: 40px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid #f3f4f6;
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: spinner-rotate 0.8s linear infinite;
}

@keyframes spinner-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 16px;
    color: var(--text-light);
    margin: 0;
}


/* ===== ERROR STATE ===== */
.ai-error {
    text-align: center;
    padding: 32px;
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 16px;
}

.error-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.error-text {
    font-size: 16px;
    color: #dc2626;
    margin: 0;
}


/* ===== SUCCESS STATE ===== */
.ai-success {
    animation: fade-in 0.5s ease-out;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.ai-response-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.response-icon {
    font-size: 32px;
}

.response-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.ai-explanation {
    background: #f5f3ff;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #8b5cf6;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
}

.ai-recommendations {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.ai-try-again-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    color: #8b5cf6;
    border: 2px solid #8b5cf6;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-try-again-btn:hover {
    background: #8b5cf6;
    color: white;
    transform: translateY(-2px);
}


/* ========================================================================
   RESPONSIVE DESIGN (AI ASSISTANT)
   Mobile-first адаптация AI-помощника
   ======================================================================== */

/* Мобильные (базовые стили уже применены выше) */

/* Планшеты (768px+) */
@media (min-width: 768px) {
    .ai-assistant-section {
        padding: 64px 0;
    }

    .ai-assistant-container {
        padding: 48px;
    }

    .ai-search-box {
        gap: 16px;
    }

    .ai-recommendations {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .ai-assistant-section {
        padding: 80px 0;
    }

    .ai-assistant-container {
        padding: 56px;
    }

    .ai-recommendations {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    /* На больших экранах можно показывать chips в одну строку */
    .ai-examples-chips {
        flex-wrap: nowrap;
    }
}

/* Адаптация на очень маленьких экранах */
@media (max-width: 480px) {
    .ai-assistant-container {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .ai-search-box {
        flex-direction: column;
    }

    .ai-submit-btn {
        width: 100%;
        justify-content: center;
    }

    .ai-examples-chips {
        flex-direction: column;
        align-items: stretch;
    }

    .ai-example-chip {
        justify-content: center;
    }
}

/* ===== СТАТИЧЕСКИЕ СТРАНИЦЫ ===== */

/* Общие стили для всех статических страниц */
.about-page,
.contacts-page,
.legal-page,
.sitemap-page {
    padding: 60px 0 80px;
}

.about-page h1,
.contacts-page h1,
.legal-page h1,
.sitemap-page h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.page-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* --- About --- */
.about-content {
    max-width: 800px;
}

.about-section {
    margin-bottom: 40px;
}

.about-section h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.about-section p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 12px;
}

.about-features-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.about-features-list li {
    padding: 10px 0 10px 28px;
    position: relative;
    font-size: 16px;
    color: var(--text);
    line-height: 1.5;
}

.about-features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* --- Contacts --- */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.contact-card {
    background: var(--bg-gray);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--border);
    transition: box-shadow 0.2s, transform 0.2s;
}

.contact-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.contact-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.contact-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.5;
}

.contact-link {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s;
}

.contact-link:hover {
    color: var(--primary-dark);
}

.contacts-faq {
    margin-top: 48px;
    max-width: 800px;
}

.contacts-faq h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text);
}

.faq-item {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.faq-item p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

/* --- Legal (Privacy & Terms) --- */
.legal-updated {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.legal-content {
    max-width: 800px;
}

.legal-content h2 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--text);
}

.legal-content p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal-content ul {
    margin: 12px 0 20px 24px;
    color: var(--text-light);
}

.legal-content ul li {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 6px;
}

/* --- Sitemap --- */
.sitemap-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.sitemap-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

.sitemap-list {
    list-style: none;
    padding: 0;
}

.sitemap-list li {
    margin-bottom: 8px;
}

.sitemap-list a {
    color: var(--text-light);
    font-size: 15px;
    transition: color 0.2s;
}

.sitemap-list a:hover {
    color: var(--primary);
}

.sitemap-list--columns {
    column-count: 2;
    column-gap: 24px;
}

/* --- Responsive для статических страниц --- */
@media (max-width: 768px) {
    .about-page h1,
    .contacts-page h1,
    .legal-page h1,
    .sitemap-page h1 {
        font-size: 28px;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .sitemap-content {
        grid-template-columns: 1fr;
    }

    .sitemap-list--columns {
        column-count: 1;
    }
}

/* ===== ПОИСК В ХЕДЕРЕ ===== */
.header-search {
    position: relative;
    flex: 0 1 280px;
}

.header-search-input {
    width: 100%;
    padding: 8px 36px 8px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-gray);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.header-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    background: var(--bg);
}

.header-search-input::placeholder {
    color: var(--text-light);
}

.header-search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
    font-size: 14px;
}

/* Dropdown результатов */
.search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    max-height: 400px;
    overflow-y: auto;
}

.search-dropdown.active {
    display: block;
}

.search-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: var(--text);
}

.search-dropdown-item:hover,
.search-dropdown-item.highlighted {
    background: var(--bg-gray);
}

.search-dropdown-item-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.search-dropdown-item-info {
    flex: 1;
    min-width: 0;
}

.search-dropdown-item-name {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-dropdown-item-desc {
    font-size: 12px;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-dropdown-item-rating {
    font-size: 12px;
    color: #f59e0b;
    flex-shrink: 0;
}

.search-dropdown-footer {
    padding: 10px 14px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.search-dropdown-footer a {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
}

.search-dropdown-footer a:hover {
    color: var(--primary-dark);
}

.search-dropdown-empty {
    padding: 20px 14px;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

.search-dropdown-loading {
    padding: 16px 14px;
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
}

/* Responsive: скрываем поиск на мобильном */
@media (max-width: 768px) {
    .header-search {
        display: none;
    }
}

/* ===== КНОПКА «ДОБАВИТЬ СЕРВИС» В ХЕДЕРЕ ===== */
.nav-submit-btn {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary);
    color: white !important;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, transform 0.2s;
    margin-left: 8px;
}

.nav-submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* На мобильном кнопка отображается как пункт меню */
@media (max-width: 768px) {
    .nav-submit-btn {
        display: block;
        margin: 8px 0 0 0;
        text-align: center;
        padding: 10px 16px;
    }
}

/* ===== СТРАНИЦА «ДОБАВИТЬ СЕРВИС» — ФОРМА ===== */
.submit-page .page-subtitle {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 32px;
}

.submit-form-wrapper {
    max-width: 640px;
    margin: 0 auto;
}

.submit-info {
    background: var(--bg-gray);
    border-left: 4px solid var(--primary);
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 24px;
}

.submit-form .form-group {
    margin-bottom: 20px;
}

.submit-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--text);
}

.submit-form label .required {
    color: #e74c3c;
}

.submit-form input[type="text"],
.submit-form input[type="url"],
.submit-form input[type="email"],
.submit-form textarea,
.submit-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    background: white;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.submit-form input:focus,
.submit-form textarea:focus,
.submit-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.submit-form textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-form select {
    cursor: pointer;
    appearance: auto;
}

/* Две колонки в ряд (категория + цена) */
.submit-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .submit-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* Успешная отправка */
.submit-success {
    text-align: center;
    padding: 48px 24px;
    max-width: 480px;
    margin: 0 auto;
}

.submit-success-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.submit-success h2 {
    margin-bottom: 12px;
    color: var(--text);
}

.submit-success p {
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.6;
}

.submit-success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =================================
   FAQ Block (Accordion)
   ================================= */

.faq-block {
    margin: 32px 0;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: var(--card-bg, #fff);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    gap: 12px;
    line-height: 1.4;
}

.faq-question:hover {
    background: var(--hover-bg, #f8f9fa);
}

.faq-icon {
    font-size: 0.75rem;
    transition: transform 0.3s;
    flex-shrink: 0;
    color: var(--text-light);
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 20px 16px;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* =================================
   Comparison Table
   ================================= */

.comparison-table-wrapper {
    overflow-x: auto;
    margin: 24px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th,
.comparison-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.comparison-table th {
    background: var(--hover-bg, #f8f9fa);
    font-weight: 600;
    color: var(--text);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.comparison-table td {
    color: var(--text);
    font-size: 0.95rem;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background: var(--hover-bg, #f8f9fa);
}

.comparison-cell-name {
    font-weight: 600;
}

.comparison-cell-name a {
    color: var(--primary);
    text-decoration: none;
}

.comparison-cell-name a:hover {
    text-decoration: underline;
}

.comparison-cell-price {
    font-weight: 500;
}

.comparison-cell-price.price-free {
    color: #10b981;
}

.comparison-cell-price.price-freemium {
    color: #f59e0b;
}

.comparison-cell-price.price-paid {
    color: #ef4444;
}

.comparison-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.comparison-badge--yes {
    background: #d1fae5;
    color: #065f46;
}

.comparison-badge--no {
    background: #f3f4f6;
    color: #9ca3af;
}

@media (max-width: 768px) {
    .comparison-table-wrapper {
        margin: 16px -16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

/* =================================
   Cluster Pages
   ================================= */

.cluster-hero {
    text-align: center;
    padding: 48px 0 32px;
}

.cluster-hero h1 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--text);
}

.cluster-hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 640px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.cluster-subpages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin: 32px 0;
}

.cluster-subpage-card {
    display: block;
    padding: 24px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cluster-subpage-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.cluster-subpage-card .card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.cluster-subpage-card h3 {
    color: var(--text);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.cluster-subpage-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.cluster-seo-text {
    margin: 40px 0;
    padding: 32px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    line-height: 1.7;
    color: var(--text);
}

.cluster-seo-text h2,
.cluster-seo-text h3 {
    margin-top: 24px;
    margin-bottom: 12px;
}

.cluster-seo-text p {
    margin-bottom: 16px;
}

.cluster-related {
    margin: 40px 0;
}

.cluster-related h2 {
    margin-bottom: 20px;
}

.cluster-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 24px 0;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.cluster-back-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cluster-hero h1 {
        font-size: 1.5rem;
    }

    .cluster-hero p {
        font-size: 1rem;
    }

    .cluster-subpages-grid {
        grid-template-columns: 1fr;
    }

    .cluster-seo-text {
        padding: 20px;
    }
}

/* =================================
   Cluster Cards on Homepage
   ================================= */

.cluster-home-card {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}

.cluster-home-title {
    text-decoration: none;
    color: var(--text);
}

.cluster-home-title h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    transition: color 0.2s;
}

.cluster-home-title:hover h3 {
    color: var(--primary);
}

.cluster-home-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 16px;
}

.cluster-home-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cluster-home-link {
    display: inline-block;
    padding: 6px 14px;
    background: var(--hover-bg, #f8f9fa);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text);
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.cluster-home-link:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Cluster backlinks on service page */
.service-clusters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.cluster-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: var(--bg-secondary, #f5f5f5);
    border: 1px solid var(--border, #e0e0e0);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.cluster-chip:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ========================================
   FULLLIST (CATALOG) — AIxploria-style
   ======================================== */

/* Filter row */
.fulllist-filters {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.fulllist-search {
    flex: 1;
    min-width: 200px;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}
.fulllist-search:focus {
    border-color: var(--primary);
}
.fulllist-cat-select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    max-width: 200px;
}
.fulllist-price-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Price chip buttons */
.price-chip {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1.5px solid currentColor;
    cursor: pointer;
    font-size: 13px;
    background: transparent;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.price-chip[data-price="free"]         { color: #16a34a; }
.price-chip[data-price="free"].active  { background: #16a34a; color: #fff; }
.price-chip[data-price="freemium"]        { color: #2563eb; }
.price-chip[data-price="freemium"].active { background: #2563eb; color: #fff; }
.price-chip[data-price="paid"]         { color: #d97706; }
.price-chip[data-price="paid"].active  { background: #d97706; color: #fff; }
.price-chip[data-price="trial"]        { color: #7c3aed; }
.price-chip[data-price="trial"].active { background: #7c3aed; color: #fff; }
.price-chip:hover:not(.active) {
    opacity: 0.8;
    background: #f5f5f5;
}

/* 4-column category grid (for catalog fulllist) */
.fulllist-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 32px;
}
@media (max-width: 1100px) {
    .fulllist-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .fulllist-grid { grid-template-columns: repeat(2, 1fr); }
    .fulllist-filters { gap: 8px; }
    .fulllist-cat-select { max-width: 160px; }
}
@media (max-width: 480px) {
    .fulllist-grid { grid-template-columns: 1fr; }
}

/* ===== BADGE: ВЫБОР РЕДАКЦИИ ===== */
.badge-featured {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    z-index: 2;
    pointer-events: none;
}

.badge-featured--inline {
    position: static;
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-weight: 700;
}
