/* Темная тема с анимацией фистралов */

:root {
    /* Гармоничная палитра: нейтральный графит + золото как акцент */
    --primary-color: #d4af37; /* золото */
    --primary-dark: #b8941f;
    --secondary-color: #22c55e; /* мягкий акцент (в UI точечно) */
    --accent-color: #ffd700;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --error-color: #ef4444;

    /* Текст (мягкий контраст, без “кислоты”) */
    --text-primary: #e9eaee;
    --text-secondary: #b6bac6;
    --text-light: #8b90a0;

    /* Фоны: “шелковый” тёмный графит (не в черноту) */
    --bg-primary: #10151c;   /* page */
    --bg-secondary: #161d26; /* surface */
    --bg-tertiary: #1c2632;  /* raised */
    --bg-dark: #0b0f14;

    /* Границы: тонкие, нейтральные */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.14);

    /* Градиенты: “шелк” для карточек и hero */
    --velvet-gradient: linear-gradient(180deg, #1a2230 0%, #141a23 100%);
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #ffd700 50%, #ffed4e 100%);
    --emerald-gradient: linear-gradient(135deg, rgba(34, 197, 94, 0.35) 0%, rgba(34, 197, 94, 0.12) 100%);
    --luxury-gradient: linear-gradient(180deg, #10151c 0%, #0e1319 55%, #10151c 100%);

    /* Тени: мягкие, чтобы карточки “всплывали” */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.42);
    --shadow-xl: 0 22px 60px rgba(0, 0, 0, 0.48);
    
    /* Радиусы */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background:
        /* “золотистая нить” (очень тонко) */
        repeating-linear-gradient(
            115deg,
            rgba(212, 175, 55, 0.06) 0 1px,
            rgba(212, 175, 55, 0.00) 1px 18px
        ),
        radial-gradient(1000px circle at 18% 22%, rgba(212, 175, 55, 0.08) 0%, transparent 62%),
        radial-gradient(1000px circle at 82% 78%, rgba(34, 197, 94, 0.06) 0%, transparent 64%),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-dark) 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Анимация фистралов в фоне */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 60% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(236, 72, 153, 0.12) 0%, transparent 50%);
    z-index: -1;
}

/* Дополнительные фистралы */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 70% 30%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 30% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
    z-index: -1;
}

@keyframes fistralAnimation {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateX(-30px) translateY(-20px) rotate(2deg) scale(1.1);
        opacity: 0.5;
    }
    50% {
        transform: translateX(40px) translateY(30px) rotate(-1deg) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translateX(-20px) translateY(40px) rotate(1deg) scale(1.05);
        opacity: 0.6;
    }
}

@keyframes fistralAnimation2 {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg) scale(1);
        opacity: 0.2;
    }
    33% {
        transform: translateX(50px) translateY(-30px) rotate(-2deg) scale(1.2);
        opacity: 0.4;
    }
    66% {
        transform: translateX(-40px) translateY(50px) rotate(1deg) scale(0.8);
        opacity: 0.3;
    }
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 0.875rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Параграфы */
p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Ссылки */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-light);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Карточки */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

/* Объявления */
.announcement-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.announcement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
    border-color: var(--primary-color);
}

.announcement-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--emerald-gradient);
    position: relative;
    z-index: 2;
}

.announcement-content {
    padding: 1rem;
}

.announcement-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.announcement-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.announcement-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.announcement-price {
    color: var(--success-color);
    font-weight: 600;
    font-size: 1.125rem;
}

.announcement-location {
    color: var(--text-light);
    font-size: 0.875rem;
}

.announcement-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
}

.author-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.9;
    margin-top: 2px;
}

.announcement-submeta-item.is-compact,
.announcement-submeta-chip.is-compact {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
}

.author-avatar-link {
    display: inline-flex;
    line-height: 0;
    text-decoration: none;
}

.rating-stars {
    color: var(--warning-color);
    font-size: 0.875rem;
}

/* Категории */
.category-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
}

.category-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.7rem;
    transition: all 0.3s ease;
}

/* Оригинальные иконки категорий */
.category-icon .fa-code {
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.category-icon .fa-palette {
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

.category-icon .fa-bullhorn {
    color: #4ecdc4;
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
}

.category-icon .fa-briefcase {
    color: #45b7d1;
    text-shadow: 0 0 10px rgba(69, 183, 209, 0.3);
}

.category-icon .fa-graduation-cap {
    color: #96ceb4;
    text-shadow: 0 0 10px rgba(150, 206, 180, 0.3);
}

.category-icon .fa-heartbeat {
    color: #feca57;
    text-shadow: 0 0 10px rgba(254, 202, 87, 0.3);
}

.category-icon .fa-gavel {
    color: #ff9ff3;
    text-shadow: 0 0 10px rgba(255, 159, 243, 0.3);
}

.category-icon .fa-paint-brush {
    color: #54a0ff;
    text-shadow: 0 0 10px rgba(84, 160, 255, 0.3);
}

.category-icon .fa-dumbbell {
    color: #5f27cd;
    text-shadow: 0 0 10px rgba(95, 39, 205, 0.3);
}

.category-icon .fa-ellipsis-h {
    color: #a55eea;
    text-shadow: 0 0 10px rgba(165, 94, 234, 0.3);
}

/* Анимация для иконок категорий */
.category-card:hover .category-icon {
    transform: none;
}

.category-card:hover .category-icon .fa-code {
    animation: codeGlow 1s ease-in-out infinite alternate;
}

.category-card:hover .category-icon .fa-palette {
    animation: paletteGlow 1s ease-in-out infinite alternate;
}

.category-card:hover .category-icon .fa-bullhorn {
    animation: bullhornGlow 1s ease-in-out infinite alternate;
}

.category-card:hover .category-icon .fa-briefcase {
    animation: briefcaseGlow 1s ease-in-out infinite alternate;
}

.category-card:hover .category-icon .fa-graduation-cap {
    animation: graduationGlow 1s ease-in-out infinite alternate;
}

.category-card:hover .category-icon .fa-heartbeat {
    animation: heartbeatGlow 1s ease-in-out infinite alternate;
}

.category-card:hover .category-icon .fa-gavel {
    animation: gavelGlow 1s ease-in-out infinite alternate;
}

.category-card:hover .category-icon .fa-paint-brush {
    animation: paintbrushGlow 1s ease-in-out infinite alternate;
}

.category-card:hover .category-icon .fa-dumbbell {
    animation: dumbbellGlow 1s ease-in-out infinite alternate;
}

.category-card:hover .category-icon .fa-ellipsis-h {
    animation: ellipsisGlow 1s ease-in-out infinite alternate;
}

/* Ключевые кадры анимации */
@keyframes codeGlow {
    0% { text-shadow: 0 0 10px rgba(0, 212, 255, 0.3); }
    100% { text-shadow: 0 0 20px rgba(0, 212, 255, 0.6), 0 0 30px rgba(0, 212, 255, 0.4); }
}

@keyframes paletteGlow {
    0% { text-shadow: 0 0 10px rgba(255, 107, 107, 0.3); }
    100% { text-shadow: 0 0 20px rgba(255, 107, 107, 0.6), 0 0 30px rgba(255, 107, 107, 0.4); }
}

@keyframes bullhornGlow {
    0% { text-shadow: 0 0 10px rgba(78, 205, 196, 0.3); }
    100% { text-shadow: 0 0 20px rgba(78, 205, 196, 0.6), 0 0 30px rgba(78, 205, 196, 0.4); }
}

@keyframes briefcaseGlow {
    0% { text-shadow: 0 0 10px rgba(69, 183, 209, 0.3); }
    100% { text-shadow: 0 0 20px rgba(69, 183, 209, 0.6), 0 0 30px rgba(69, 183, 209, 0.4); }
}

@keyframes graduationGlow {
    0% { text-shadow: 0 0 10px rgba(150, 206, 180, 0.3); }
    100% { text-shadow: 0 0 20px rgba(150, 206, 180, 0.6), 0 0 30px rgba(150, 206, 180, 0.4); }
}

@keyframes heartbeatGlow {
    0% { text-shadow: 0 0 10px rgba(254, 202, 87, 0.3); }
    100% { text-shadow: 0 0 20px rgba(254, 202, 87, 0.6), 0 0 30px rgba(254, 202, 87, 0.4); }
}

@keyframes gavelGlow {
    0% { text-shadow: 0 0 10px rgba(255, 159, 243, 0.3); }
    100% { text-shadow: 0 0 20px rgba(255, 159, 243, 0.6), 0 0 30px rgba(255, 159, 243, 0.4); }
}

@keyframes paintbrushGlow {
    0% { text-shadow: 0 0 10px rgba(84, 160, 255, 0.3); }
    100% { text-shadow: 0 0 20px rgba(84, 160, 255, 0.6), 0 0 30px rgba(84, 160, 255, 0.4); }
}

@keyframes dumbbellGlow {
    0% { text-shadow: 0 0 10px rgba(95, 39, 205, 0.3); }
    100% { text-shadow: 0 0 20px rgba(95, 39, 205, 0.6), 0 0 30px rgba(95, 39, 205, 0.4); }
}

@keyframes ellipsisGlow {
    0% { text-shadow: 0 0 10px rgba(165, 94, 234, 0.3); }
    100% { text-shadow: 0 0 20px rgba(165, 94, 234, 0.6), 0 0 30px rgba(165, 94, 234, 0.4); }
}

.category-name {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.category-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Формы */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Модальные окна */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    padding: 1.5rem 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

/* Навигация */
.navbar {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-secondary) 55%, var(--bg-dark) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.navbar-actions .btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.85rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    margin: 0 0.125rem;
}

.nav-link:hover {
    color: var(--accent-color);
}

/* Кнопки в навигации */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--gold-gradient);
    color: var(--bg-dark);
    border: 2px solid var(--primary-color);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #d4af37 100%);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-weight: 500;
}

.btn-outline:hover {
    background: var(--gold-gradient);
    border-color: var(--accent-color);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.375rem;
}

/* Компактный вид кнопки "Мои объявления" в шапке */
#createAnnouncementBtn {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 999px;
    gap: 0.35rem;
}

#createAnnouncementBtn i {
    font-size: 0.85rem;
}

.logo:hover {
    color: var(--primary-color);
}

.logo i {
    color: var(--primary-color);
}

/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--bg-primary);
    color: var(--primary-color);
}

/* Пользовательское меню */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    background: none;
    border: none;
}

.user-avatar:hover {
    background: var(--bg-primary);
}

.user-avatar img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.navbar .user-info {
    background: rgba(5, 20, 5, 0.35);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
}

.navbar #userName {
    color: var(--text-primary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    padding: 0.25rem 0;
    z-index: 1000;
    display: none;
}

.dropdown-menu .dropdown-divider {
    margin: 0.25rem 0;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 0.625rem 0.875rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    line-height: 1.25;
}

.dropdown-item:is(button) {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
}

.dropdown-item.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.dropdown-item:hover {
    background: var(--bg-primary);
    color: var(--primary-color);
}

.dropdown-item:active {
    background: var(--bg-primary);
    opacity: 0.9;
}

.dropdown-menu hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 0.5rem 0;
}

/* Сетка */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-1 {
    grid-template-columns: 1fr;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Адаптивность */
@media (max-width: 768px) {
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .navbar-menu {
        gap: 1rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .navbar-actions {
        gap: 0.5rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}

/* Утилиты */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.text-success {
    color: var(--success-color);
}

.text-warning {
    color: var(--warning-color);
}

.text-error {
    color: var(--error-color);
}

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }

/* Скрытие элементов */
.hidden {
    display: none;
}

/* Показ элементов */
.show {
    display: block;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Секции */
section {
    padding: 4rem 0;
    position: relative;
}

/* Секция "О нас" */
.about {
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.00) 100%);
    padding: 5.5rem 0;
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about h2,
.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.about-lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0 auto 2.25rem;
    max-width: 62ch;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 0;
}

.about-feature {
    text-align: center;
    padding: 2rem;
    background: rgba(22, 29, 38, 0.6);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.about-feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.about-feature i {
    font-size: 2.25rem;
    color: rgba(212, 175, 55, 0.95);
    margin-bottom: 0.9rem;
}

.about-feature h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.about-feature p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.55;
    opacity: 0.92;
}

.about-cta {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.1rem;
    border-radius: 18px;
    background:
        radial-gradient(900px circle at 18% 45%, rgba(212, 175, 55, 0.12) 0%, transparent 62%),
        linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
}

.about-cta-title {
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--text-primary);
}

.about-cta-subtitle {
    margin-top: 2px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.4;
}

.about-cta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* INFO секции (Помощь / Контакты / Правовые) — приводим к единому “glass” стилю */
.info-section {
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.00) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.info-section-alt {
    background: linear-gradient(180deg, rgba(255,255,255,0.00) 0%, rgba(255,255,255,0.02) 100%);
}

.info-card {
    background: rgba(22, 29, 38, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(212, 175, 55, 0.25);
}

.info-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 0.85rem;
}

.info-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(212, 175, 55, 0.95);
    flex: 0 0 auto;
}

.info-card-icon i {
    font-size: 16px;
}

.info-card-title {
    margin: 0;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.info-card-subtitle {
    margin-top: 3px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.35;
    opacity: 0.92;
}

.info-steps {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-steps li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--text-secondary);
    line-height: 1.5;
}

.info-steps .step-num {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    font-weight: 800;
    font-size: 0.85rem;
    color: rgba(212, 175, 55, 0.95);
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.18);
}

.info-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.info-card-actions .btn {
    flex: 1 1 180px;
    justify-content: center;
}

.contact-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--text-secondary);
}

.contact-item:hover {
    border-color: rgba(212, 175, 55, 0.25);
}

.contact-item i {
    color: rgba(212, 175, 55, 0.95);
}

.contact-meta {
    margin-top: 0.85rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.85;
}

/* Футер */
.footer {
    background:
        radial-gradient(900px circle at 15% 0%, rgba(212, 175, 55, 0.10) 0%, transparent 55%),
        linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.00) 100%),
        var(--bg-dark);
    padding: 3.5rem 0 1.75rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 1.75rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 900;
    letter-spacing: 0.01em;
}

.footer-logo i {
    color: rgba(212, 175, 55, 0.95);
}

.footer-tagline {
    margin: 0.75rem 0 1rem;
    color: var(--text-secondary);
    line-height: 1.55;
    max-width: 50ch;
}

.footer-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.1rem;
}

.footer-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.10);
}

.footer-chip i {
    color: rgba(212, 175, 55, 0.95);
}

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

.footer-title {
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: 0.01em;
    margin-bottom: 0.75rem;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-list a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-list a:hover {
    color: rgba(212, 175, 55, 0.95);
}

.footer-cta {
    padding: 1rem 1rem;
    border-radius: 18px;
    background:
        radial-gradient(900px circle at 18% 35%, rgba(212, 175, 55, 0.14) 0%, transparent 62%),
        linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
}

.footer-cta-title {
    font-weight: 900;
    letter-spacing: 0.01em;
    color: var(--text-primary);
}

.footer-cta-subtitle {
    margin-top: 4px;
    color: var(--text-secondary);
    line-height: 1.4;
    font-size: 0.95rem;
    opacity: 0.92;
}

.footer-cta-actions {
    margin-top: 0.9rem;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-cta-actions .btn {
    flex: 1 1 160px;
    justify-content: center;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-bottom-left {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-sep {
    opacity: 0.55;
}

.footer-toplink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.03);
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer-toplink:hover {
    transform: translateY(-1px);
    border-color: rgba(212, 175, 55, 0.25);
    color: var(--text-primary);
}

@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
    .footer-links {
        grid-template-columns: 1fr;
    }
    .footer-cta-actions .btn {
        flex: 1 1 100%;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Мои объявления: компактный список-управление */
.announcements-grid.my-announcements-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

.my-announcement-item {
    border-radius: 18px;
    background: rgba(22, 29, 38, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.my-announcement-item.is-ticker-active {
    border-color: rgba(34, 197, 94, 0.75);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.12), var(--shadow-sm);
    background: rgba(22, 29, 38, 0.72);
}

.my-announcement-main {
    display: flex;
    gap: 12px;
    padding: 12px 12px;
    text-decoration: none;
    color: inherit;
}

.my-announcement-thumb {
    width: 108px;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    flex: 0 0 auto;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.10);
    display: grid;
    place-items: center;
}

.my-announcement-thumb img,
.my-announcement-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.my-announcement-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: rgba(212, 175, 55, 0.9);
    font-size: 1.4rem;
}

.my-announcement-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.my-announcement-toprow {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.my-announcement-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    color: var(--text-primary);
}
.my-announcement-status.status--active {
    border-color: rgba(34, 197, 94, 0.28);
    background: rgba(34, 197, 94, 0.08);
}
.my-announcement-status.status--pending {
    border-color: rgba(245, 158, 11, 0.28);
    background: rgba(245, 158, 11, 0.08);
}
.my-announcement-status.status--rejected {
    border-color: rgba(239, 68, 68, 0.30);
    background: rgba(239, 68, 68, 0.10);
}

.my-announcement-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.10);
}

.my-announcement-chip.is-price {
    color: var(--text-primary);
    border-color: rgba(212, 175, 55, 0.18);
    background: rgba(212, 175, 55, 0.08);
}

.my-announcement-title {
    font-weight: 900;
    letter-spacing: 0.01em;
    color: var(--text-primary);
    line-height: 1.18;
    font-size: 1.05rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.my-announcement-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.25;
}

.my-announcement-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.my-announcement-meta-item i { color: rgba(212, 175, 55, 0.85); }
.my-announcement-meta-item.is-muted { opacity: 0.85; }

.my-announcement-actions {
    display: flex;
    gap: 10px;
    padding: 0 12px 12px;
    flex-wrap: wrap;
}

.my-announcement-actions .btn {
    flex: 1 1 160px;
    justify-content: center;
}

@media (max-width: 768px) {
    .my-announcement-main {
        padding: 10px 10px;
    }
    .my-announcement-thumb {
        width: 92px;
        border-radius: 12px;
    }
    .my-announcement-title {
        font-size: 0.98rem;
        -webkit-line-clamp: 2;
    }
    .my-announcement-actions .btn {
        flex: 1 1 100px;
    }
}

/* Секция объявлений */
.announcements {
    background: var(--bg-primary);
    padding: 6rem 0;
}

.announcements h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.section-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.announcements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.announcement-card {
    background: var(--velvet-gradient);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
}

.announcement-card.is-vip {
    border-color: rgba(245, 158, 11, 0.85);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.12);
}

.announcement-card.is-top {
    border-color: rgba(245, 158, 11, 0.95);
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.14);
}

.announcement-card.is-highlighted {
    border-color: rgba(255, 215, 0, 0.95);
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.35), 0 0 32px rgba(255, 215, 0, 0.2);
}

.announcement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gold-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.announcement-card.is-vip::before {
    opacity: 0.06;
}

.announcement-card.is-top::before {
    opacity: 0.08;
}

.announcement-card.is-highlighted::before {
    background: radial-gradient(circle at 20% 10%, rgba(255, 215, 0, 0.25), rgba(0, 0, 0, 0));
    opacity: 0.12;
    animation: goldGlow 2.4s ease-in-out infinite;
}

@keyframes goldGlow {
    0%, 100% { opacity: 0.08; }
    50% { opacity: 0.18; }
}

/* Анимированный контур для VIP/TOP (тонкий, “дорогой”, не мешает кликам) */
@keyframes vipTopBorderSpin {
    to { transform: rotate(360deg); }
}

@keyframes vipTopBorderPulse {
    0%, 100% { opacity: 0.55; filter: drop-shadow(0 0 0 rgba(212,175,55,0.0)); }
    50% { opacity: 0.9; filter: drop-shadow(0 0 10px rgba(212,175,55,0.22)); }
}

/* Контент держим выше декоративных слоёв */
.announcement-content {
    position: relative;
    z-index: 2;
}

/* Основной эффект — conic-gradient + mask (показываем только рамку) */
@supports ((-webkit-mask: linear-gradient(#000, #000)) and (-webkit-mask-composite: xor)) or (mask-composite: exclude) {
    .announcement-card.is-vip::after,
    .announcement-card.is-top::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        padding: 2px; /* толщина контура */
        pointer-events: none;
        z-index: 3;

        /* вращающаяся “искринка” */
        background: conic-gradient(
            from 0deg,
            rgba(255, 215, 0, 0.0) 0deg,
            rgba(255, 215, 0, 0.95) 55deg,
            rgba(245, 158, 11, 0.0) 120deg,
            rgba(255, 215, 0, 0.65) 200deg,
            rgba(34, 197, 94, 0.0) 260deg,
            rgba(255, 215, 0, 0.0) 360deg
        );

        -webkit-mask:
            linear-gradient(#000 0 0) content-box,
            linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;

        animation: vipTopBorderSpin 10s linear infinite, vipTopBorderPulse 2.6s ease-in-out infinite;
    }

    .announcement-card.is-top::after {
        padding: 3px;
        animation-duration: 8s, 2.2s;
    }
}

/* Фолбэк: если mask не поддерживается — мягкая “дышащая” рамка */
@supports not (((-webkit-mask: linear-gradient(#000, #000)) and (-webkit-mask-composite: xor)) or (mask-composite: exclude)) {
    .announcement-card.is-vip {
        animation: vipTopFallbackGlow 2.8s ease-in-out infinite;
    }
    .announcement-card.is-top {
        animation: vipTopFallbackGlow 2.2s ease-in-out infinite;
    }

    @keyframes vipTopFallbackGlow {
        0%, 100% {
            box-shadow:
                0 0 0 1px rgba(245, 158, 11, 0.18),
                0 14px 28px rgba(0, 0, 0, 0.35);
        }
        50% {
            box-shadow:
                0 0 0 2px rgba(255, 215, 0, 0.22),
                0 18px 42px rgba(245, 158, 11, 0.12);
        }
    }
}

.announcement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
    border-color: var(--primary-color);
}

.announcement-card:hover::before {
    opacity: 0.1;
}

.announcement-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--emerald-gradient);
    position: relative;
    z-index: 2;
}

.announcement-content {
    padding: 1rem;
}

.announcement-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    min-height: calc(1.25em * 2);
}

.announcement-description {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    min-height: calc(1.5em * 3);
}

.announcement-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.announcement-price {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.announcement-location {
    color: var(--text-light);
    font-size: 0.9rem;
}

.announcement-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 500;
    color: var(--text-primary);
}

.author-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
}

.rating-stars i {
    color: #fbbf24;
    font-size: 0.875rem;
}

.rating-value {
    color: var(--text-light);
    font-size: 0.875rem;
}

.rating-score {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
}

.rating-count {
    color: var(--text-light);
    font-size: 0.875rem;
}

.load-more {
    text-align: center;
    margin-top: 3rem;
}

/* Секция категорий */
.categories {
    background: var(--bg-secondary);
    padding: 6rem 0;
}

.categories h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

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

.category-card {
    background: var(--velvet-gradient);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gold-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.4);
    border-color: var(--primary-color);
}

.category-card:hover::before {
    opacity: 0.15;
}

.category-card i {
    font-size: 2rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

.category-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
}

.category-card p {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

/* Роскошная главная секция (hero) */
.hero {
    /* Отделяем hero от карточек: фон чуть глубже/нейтральнее */
    background: var(--luxury-gradient);
    padding: 6rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--primary-color);
}

/* Роскошные декоративные элементы */
.luxury-decoration {
    position: absolute;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.3;
    z-index: 1;
}

.luxury-decoration-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.luxury-decoration-2 {
    top: 20%;
    right: 10%;
    animation-delay: 1s;
}

.luxury-decoration-3 {
    bottom: 30%;
    left: 15%;
    animation-delay: 2s;
}

.luxury-decoration-4 {
    bottom: 20%;
    right: 20%;
    animation-delay: 3s;
}

.luxury-decoration-5 {
    top: 50%;
    left: 50%;
    animation-delay: 4s;
}

.luxury-decoration-6 {
    top: 15%;
    left: 10%;
    animation-delay: 5s;
}

.luxury-decoration-7 {
    top: 25%;
    right: 15%;
    animation-delay: 6s;
}

.luxury-decoration-8 {
    bottom: 25%;
    left: 20%;
    animation-delay: 7s;
}

@keyframes luxuryFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-30px) rotate(270deg);
        opacity: 0.7;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Мягкие акценты под новую палитру (без “кислоты”) */
    background:
        radial-gradient(700px circle at 15% 65%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
        radial-gradient(700px circle at 85% 35%, rgba(34, 197, 94, 0.06) 0%, transparent 62%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.05rem, 5vw, 3.25rem);
    font-weight: 800;
    margin: 0 auto 1.1rem;
    line-height: 1.08;
    letter-spacing: 0.02em;
    max-width: 22ch;
    text-wrap: balance;
    overflow-wrap: anywhere;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.title-line-1 {
    font-size: clamp(2.4rem, 5.4vw, 3.6rem);
    font-weight: 600;
    color: var(--text-primary);
    opacity: 0.9;
    margin-bottom: 0.5rem;
    text-shadow: 
        0 0 10px rgba(212, 175, 55, 0.3),
        0 0 20px rgba(212, 175, 55, 0.2),
        0 0 30px rgba(212, 175, 55, 0.1),
        2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: 'Arial', sans-serif;
    position: relative;
}

.title-line-2 {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    font-size: clamp(1.6rem, 3.8vw, 2.5rem);
}

.title-separator {
    font-size: inherit;
    font-weight: 600;
    color: transparent;
    opacity: 0;
    font-style: normal;
    text-shadow: none;
    letter-spacing: 0.1em;
    font-family: 'Arial', sans-serif;
    position: relative;
    filter: none;
    text-transform: none;
    width: 1rem;
    display: inline-block;
}

/* Анимация для заголовка */
.title-line-1 {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.title-line-2 {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.gradient-text {
    animation: gradientPulse 2s ease-in-out infinite alternate;
}

.title-separator {
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Ключевые кадры анимации */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientPulse {
    0% {
        background: var(--gold-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    100% {
        background: var(--emerald-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

/* Дополнительные эффекты для богатого шрифта */
.title-line-1:hover {
    transform: scale(1.05);
    text-shadow: 
        0 0 20px rgba(212, 175, 55, 0.6),
        0 0 40px rgba(212, 175, 55, 0.4),
        0 0 60px rgba(212, 175, 55, 0.2),
        3px 3px 6px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
}

.gradient-text:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6));
    transition: all 0.3s ease;
}

.title-separator:hover {
    transform: none;
    opacity: 0;
    text-shadow: none;
    transition: none;
}

.gradient-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 
        0 0 20px rgba(212, 175, 55, 0.5),
        0 0 40px rgba(212, 175, 55, 0.3),
        0 0 60px rgba(212, 175, 55, 0.2),
        2px 2px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: 'Arial', sans-serif;
    position: relative;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
    font-weight: 800;
}

/* Псевдоэлементы для создания обводки */
.title-line-1::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    color: transparent;
    -webkit-text-stroke: 2px rgba(212, 175, 55, 0.3);
    text-stroke: 2px rgba(212, 175, 55, 0.3);
}

.gradient-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(212, 175, 55, 0.5);
    text-stroke: 1px rgba(212, 175, 55, 0.5);
}

/* Визуально это читается как “двойные буквы” — отключаем обводку-дубль */
.title-line-1::before,
.gradient-text::before {
    content: none;
    display: none;
}

.title-separator::before {
    content: none;
    display: none;
}

.hero-description {
    font-size: clamp(1rem, 2.1vw, 1.2rem);
    color: var(--text-secondary);
    margin: 0 auto 2.25rem;
    line-height: 1.6;
    max-width: 58ch;
    opacity: 0.92;
}

.hero-search {
    margin-bottom: 3rem;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr 200px 200px auto;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.search-field {
    position: relative;
    width: 100%;
}

.search-field .search-input {
    width: 100%;
    padding-right: 2.4rem;
}

.search-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.search-clear-btn.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.search-clear-btn:hover {
    color: var(--text-primary);
    border-color: rgba(212, 175, 55, 0.35);
}

.search-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.75rem;
}

.search-chip {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-chip:hover {
    color: var(--text-primary);
    border-color: rgba(212, 175, 55, 0.35);
    background: rgba(212, 175, 55, 0.08);
}

.search-input, .search-select {
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus, .search-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.search-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    white-space: nowrap;
}

.hero-stats {
    display: inline-flex;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(17, 21, 27, 0.65);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.hero-stats .stat {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 12px;
    min-width: 120px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-stats .stat::before {
    display: block;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 13px;
    line-height: 1;
    color: rgba(212, 175, 55, 0.85);
    margin-bottom: 2px;
}

.hero-stats .stat:nth-child(1)::before { content: "\f0c0"; } /* users */
.hero-stats .stat:nth-child(2)::before { content: "\f15c"; } /* file-alt */
.hero-stats .stat:nth-child(3)::before { content: "\f4ad"; } /* comment-dots */

.hero-stats .stat-number {
    display: block;
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
}

.hero-stats .stat-label {
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Адаптивность для hero */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
        min-height: 60vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .title-line-1 {
        font-size: 2rem;
    }
    
    .title-line-2 {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .title-separator {
        font-size: 1.5rem;
    }
    
    .search-form {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

section:target {
    scroll-margin-top: 100px;
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Выделение активной секции */
section:target::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 0 0 2px 2px;
}

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

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Специальные эффекты для темной темы */
.glow {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.glow-hover:hover {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

/* Оптимизация производительности: отключение тяжёлых фоновых анимаций */
body::before,
body::after {
    background: none;
    animation: none;
    opacity: 0;
}

[class^="luxury-decoration"] {
    display: none;
    animation: none;
}

.gradient-text {
    animation: none;
    filter: none;
    text-shadow: none;
}
