/* ===== АКСИ СТИЛЬ - Тёмная тема, Glass-morphism, Градиенты ===== */

:root {
    /* АКСИ Цветовая палитра */
    --bg-primary: #0a0a0f;
    --bg-secondary: #11111a;
    --bg-tertiary: #1a1a2e;
    --bg-card: rgba(26, 26, 46, 0.7);
    --bg-card-hover: rgba(30, 30, 55, 0.85);
    
    --accent-primary: #8b5cf6;
    --accent-secondary: #f97316;
    --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #a855f7 30%, #d946ef 60%, #f97316 100%);
    --accent-gradient-rev: linear-gradient(135deg, #f97316 0%, #fb923c 30%, #f472b6 60%, #8b5cf6 100%);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-accent: #fbbf24;
    
    --border-color: rgba(139, 92, 246, 0.2);
    --border-hover: rgba(139, 92, 246, 0.4);
    --border-bright: rgba(249, 115, 22, 0.3);
    
    --glass-bg: rgba(26, 26, 46, 0.5);
    --glass-border: rgba(139, 92, 246, 0.15);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 32px rgba(139, 92, 246, 0.3);
    --shadow-glow-orange: 0 0 32px rgba(249, 115, 22, 0.3);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
}

/* Light theme variables */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --border-color: rgba(139, 92, 246, 0.3);
    --border-hover: rgba(139, 92, 246, 0.5);
    
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(139, 92, 246, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
}

/* ===== Базовые стили ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select {
    font-family: inherit;
    font-size: inherit;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-secondary), var(--accent-primary));
}

/* Selection */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: var(--text-primary);
}

/* ===== Floating Orbs ===== */
.orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-secondary);
    bottom: 20%;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: #d946ef;
    top: 40%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

/* ===== Grid Overlay ===== */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, black 30%, transparent 80%);
}

/* ===== Кнопки ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: var(--shadow-glow);
}

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

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

.btn-ghost {
    background: var(--glass-bg);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

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

.btn-outline:hover {
    border-color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.1);
}

.btn-block {
    width: 100%;
}

.btn-search {
    padding: 16px 32px;
    font-size: 15px;
    height: 56px;
    align-self: flex-end;
}

.btn-search:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ===== Шапка ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
}

.logo-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.logo-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transform: translateX(-50%);
    transition: width var(--transition-normal);
    border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ===== Search Section ===== */
.search-section {
    padding: 32px 0;
    position: relative;
    z-index: 1;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) auto;
    gap: 16px;
    align-items: end;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-field select,
.search-field input {
    padding: 14px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    backdrop-filter: blur(10px);
    transition: all var(--transition-fast);
}

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

.search-field select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.search-field option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* ===== Основной контент ===== */
.main {
    padding: 24px 0 60px;
    position: relative;
    z-index: 1;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

/* ===== Фильтры ===== */
.filters {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 24px;
    backdrop-filter: blur(20px);
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: var(--glass-shadow);
}

.filter-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.filter-section:last-of-type {
    border-bottom: none;
    margin-bottom: 16px;
    padding-bottom: 0;
}

.filter-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.filter-title svg {
    color: var(--accent-primary);
}

.filter-select {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    transition: all var(--transition-fast);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

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

.filter-row {
    display: flex;
    gap: 10px;
}

.filter-input {
    flex: 1;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    transition: all var(--transition-fast);
}

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

.filter-input::placeholder {
    color: var(--text-muted);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--transition-fast);
    padding: 4px 0;
}

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

.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox span {
    user-select: none;
}

/* ===== Список объявлений ===== */
.listings {
    min-width: 0;
}

.listings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    padding: 16px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
}

.results-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.results-count {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.results-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.view-controls {
    display: flex;
    gap: 4px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.view-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

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

.view-btn.active {
    color: var(--text-primary);
    background: var(--accent-gradient);
    box-shadow: var(--shadow-sm);
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    margin-bottom: 20px;
}

.sort-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.sort-select {
    padding: 10px 36px 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: all var(--transition-fast);
}

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

/* ===== Карточки объявлений ===== */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.listings-grid.list-view {
    grid-template-columns: 1fr;
}

.car-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    backdrop-filter: blur(20px);
    transition: all var(--transition-normal);
    box-shadow: var(--glass-shadow);
    position: relative;
}

.car-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.car-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

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

.listings-grid.list-view .car-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    min-height: 160px;
}

.car-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.listings-grid.list-view .car-card-image {
    width: 200px;
    height: 100%;
    border-radius: 0;
}

.car-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 10, 15, 0.6) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.car-card:hover .car-card-image::after {
    opacity: 1;
}

.car-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    background: var(--accent-gradient);
    color: white;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.car-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.listings-grid.list-view .car-card-body {
    padding: 20px 24px;
    justify-content: center;
}

.car-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.listings-grid.list-view .car-card-title {
    font-size: 20px;
}

.car-card-price {
    font-size: 22px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.listings-grid.list-view .car-card-price {
    font-size: 24px;
}

.car-card-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--glass-border);
}

.listings-grid.list-view .car-card-details {
    grid-template-columns: repeat(5, 1fr);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.detail-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ===== Пагинация ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    padding: 20px 0;
}

.pagination-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    transition: all var(--transition-fast);
}

.pagination-btn:hover:not(:disabled) {
    color: var(--text-primary);
    border-color: var(--accent-primary);
    background: var(--bg-tertiary);
}

.pagination-btn.active {
    color: white;
    background: var(--accent-gradient);
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-btn.icon {
    width: 44px;
}

/* ===== Подвал ===== */
.footer {
    position: relative;
    z-index: 1;
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 32px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 280px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column a {
    display: block;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer-column a:hover {
    color: var(--accent-primary);
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
    font-size: 13px;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: all var(--transition-fast);
}

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

/* ===== Состояния ===== */
.error-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 16px;
}

.error-message svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Адаптивность ===== */
@media (max-width: 1200px) {
    .content-wrapper {
        grid-template-columns: 260px 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
    
    .footer-column:first-child {
        grid-column: span 4;
    }
}

@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .filters {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .filter-section {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
        border-right: 1px solid var(--glass-border);
    }
    
    .filter-section:last-child {
        border-right: none;
    }
    
    .listings-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header .container {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        padding-top: 16px;
        border-top: 1px solid var(--glass-border);
    }
    
    .search-form {
        grid-template-columns: 1fr 1fr;
    }
    
    .search-field:last-child,
    .btn-search {
        grid-column: span 2;
    }
    
    .listings-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sort-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .listings-grid {
        grid-template-columns: 1fr;
    }
    
    .listings-grid.list-view .car-card {
        grid-template-columns: 1fr;
    }
    
    .listings-grid.list-view .car-card-image {
        width: 100%;
        height: 180px;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    
    .footer-column:first-child {
        grid-column: span 2;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-nav {
        display: none;
    }
    
    .header-actions .btn-ghost:not(#themeToggle) {
        display: none;
    }
    
    .search-form {
        grid-template-columns: 1fr;
    }
    
    .search-field:last-child,
    .btn-search {
        grid-column: span 1;
    }
    
    .filters {
        grid-template-columns: 1fr;
    }
    
    .filter-section {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .filter-section:last-of-type {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .car-card-details {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .listings-grid.list-view .car-card-details {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-column:first-child {
        grid-column: span 1;
    }
}

/* ===== Анимации появления ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.car-card {
    animation: fadeInUp 0.5s ease forwards;
}

.car-card:nth-child(1) { animation-delay: 0ms; }
.car-card:nth-child(2) { animation-delay: 50ms; }
.car-card:nth-child(3) { animation-delay: 100ms; }
.car-card:nth-child(4) { animation-delay: 150ms; }
.car_card:nth-child(5) { animation-delay: 200ms; }
.car-card:nth-child(6) { animation-delay: 250ms; }
.car-card:nth-child(7) { animation-delay: 300ms; }
.car-card:nth-child(8) { animation-delay: 350ms; }
.car-card:nth-child(9) { animation-delay: 400ms; }
.car-card:nth-child(10) { animation-delay: 450ms; }
.car-card:nth-child(11) { animation-delay: 500ms; }
.car-card:nth-child(12) { animation-delay: 550ms; }

/* ===== Focus visible для доступности ===== */
*:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* ===== Print styles ===== */
@media print {
    .orbs, .grid-overlay, .header, .filters, .search-section, .pagination, .footer {
        display: none !important;
    }
    .car-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}