/**
 * @file: home.css
 * @description: Стили для главной страницы NFS AUTO на основе шаблона Main PRO
 * @created: 2025-01-28
 */

/* ===== Базовые стили и переменные ===== */
:root {
    --primary-blue: #2563EB;
    --primary-red: #EF4444;
    --primary-purple: #9333EA;
    --primary-green: #10B981;
    --primary-yellow: #F59E0B;
    /* NFS Auto Colors */
    --nfs-blue: #2563EB;
    --nfs-purple: #9333EA;
    --nfs-green: #10B981;
    --nfs-orange: #F59E0B;
    --nfs-pink: #EC4899;
    --nfs-red: #EF4444;
    /* Gray scale */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-900: #111827;
    /* Blue scale */
    --dark-blue: #1E40AF;
    /* Blue scale for gradients */
    --blue-50: #EFF6FF;
    --blue-100: #DBEAFE;
    --blue-200: #BFDBFE;
    /* Purple scale for gradients */
    --purple-50: #FAF5FF;
    --purple-100: #F3E8FF;
    /* Pink scale for gradients */
    --pink-50: #FDF2F8;
    --pink-100: #FCE7F3;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--gray-900);
    line-height: 1.6;
    overflow-x: hidden;
}

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

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-10px) translateX(-10px); }
    75% { transform: translateY(-15px) translateX(5px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes breathing {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.02); }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== Утилиты ===== */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple), var(--primary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #DBEAFE, #F3E8FF);
    border-radius: 9999px;
    border: 1px solid #BFDBFE;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-description {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 42rem;
    margin: 0 auto;
}

/* ===== Header ===== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--gray-200);
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-lg);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.logo-bars {
    display: flex;
    gap: 2px;
}

.logo-bars .bar {
    width: 4px;
    height: 24px;
    border-radius: 2px;
}

.bar-1 { background: var(--gray-400); }
.bar-2 { background: var(--primary-blue); }
.bar-3 { background: var(--primary-red); }

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
}

.header-search {
    flex: 1;
    max-width: 400px;
}

.search-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1px solid var(--gray-200);
    border-radius: 9999px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-sparkles {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-blue);
    display: none;
    animation: pulse 2s infinite;
}

.search-input:focus ~ .search-sparkles {
    display: block;
}

.header-nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), #60A5FA);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: var(--gray-100);
    color: var(--primary-blue);
}

.btn-primary {
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-blue), #3B82F6);
    color: white;
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
}

.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--gray-600);
    cursor: pointer;
    font-size: 1.25rem;
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding: 8rem 0 5rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, #EFF6FF 30%, #F3E8FF 100%);
}

.hero-mesh {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background: radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(239, 68, 68, 0.1) 0%, transparent 50%);
}

.hero-stripes {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.hero-stripes::before,
.hero-stripes::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 8rem;
    background: linear-gradient(90deg, transparent, var(--gray-400), transparent);
    transform: rotate(12deg);
}

.hero-stripes::before {
    top: 25%;
    right: -25%;
    animation: slideInRight 1.5s ease-out;
}

.hero-stripes::after {
    top: 50%;
    right: -25%;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
    animation: slideInRight 1.5s ease-out 0.2s both;
}

.hero-particles {
    position: absolute;
    inset: 0;
}

.hero-particles::before,
.hero-particles::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-blue);
    opacity: 0.2;
    animation: float 15s ease-in-out infinite;
}

.hero-particles::before {
    left: 20%;
    top: 30%;
    animation-delay: 0s;
}

.hero-particles::after {
    left: 80%;
    top: 70%;
    background: var(--primary-red);
    animation-delay: 2s;
}

.hero-left {
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #DBEAFE, #F3E8FF);
    border-radius: 9999px;
    border: 1px solid #BFDBFE;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.hero-badge i {
    color: var(--primary-blue);
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-lg);
}

.stat-icon-blue {
    background: linear-gradient(135deg, var(--primary-blue), #3B82F6);
}

.stat-icon-red {
    background: linear-gradient(135deg, var(--primary-red), #F87171);
}

.stat-icon-yellow {
    background: linear-gradient(135deg, var(--primary-yellow), #FBBF24);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.quick-search-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-top: 2rem;
}

.quick-search-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.quick-search-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--gray-600), var(--primary-blue), var(--primary-red));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-lg);
}

.quick-search-filters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:hover {
    border-color: var(--primary-blue);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-search-full {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--gray-600), var(--primary-blue), var(--primary-red));
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-search-full::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 1s ease;
}

.btn-search-full:hover::before {
    transform: translateX(100%);
}

.quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.quick-tag {
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, #DBEAFE, #F3E8FF);
    border: 1px solid #BFDBFE;
    border-radius: 9999px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-tag:hover {
    border-color: var(--primary-blue);
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
}

/* AI Assistant Card */
.ai-assistant-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.ai-assistant-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ai-avatar {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple), var(--primary-blue));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    position: relative;
    animation: breathing 3s ease-in-out infinite;
}

.ai-status {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 1rem;
    height: 1rem;
    background: var(--primary-green);
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

.ai-chat {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ai-message {
    display: flex;
    gap: 0.75rem;
    background: linear-gradient(135deg, #DBEAFE, #F3E8FF);
    border-radius: var(--radius-xl);
    padding: 1rem;
    border: 1px solid #BFDBFE;
}

.ai-message-avatar {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.ai-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.ai-tag {
    padding: 0.375rem 0.75rem;
    background: white;
    border: 1px solid #BFDBFE;
    border-radius: 9999px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-tag:hover {
    background: #DBEAFE;
    border-color: var(--primary-blue);
    transform: scale(1.05);
}

.ai-input-wrapper {
    position: relative;
}

.ai-input {
    width: 100%;
    min-height: 8rem;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    resize: none;
    font-family: inherit;
    transition: all 0.3s ease;
}

.ai-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.ai-mic-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--primary-purple), #A855F7);
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.ai-mic-btn:hover {
    transform: scale(1.1);
}

.btn-ai-search {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple), var(--primary-blue));
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-ai-search::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 1s ease;
}

.btn-ai-search:hover::before {
    transform: translateX(100%);
}

.ai-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.ai-feature {
    text-align: center;
    padding: 0.75rem;
    background: #DBEAFE;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-feature:hover {
    background: #BFDBFE;
    transform: scale(1.05);
}

.ai-feature-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.ai-feature-label {
    font-size: 0.75rem;
    color: var(--gray-600);
}

/* ===== Features Section ===== */
.features-section {
    padding: 6rem 0;
    background: white;
}

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

.feature-card {
    position: relative;
    background: linear-gradient(135deg, #F0F9FF, #F5F3FF);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: white;
    box-shadow: var(--shadow-xl);
}

.feature-emoji {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 4rem;
    height: 4rem;
    background: white;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--gray-100);
    transform: rotate(12deg);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-emoji {
    transform: rotate(12deg) scale(1.1);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(6deg);
}

.feature-icon-blue {
    background: linear-gradient(135deg, var(--primary-blue), #06B6D4);
}

.feature-icon-red {
    background: linear-gradient(135deg, var(--primary-red), #F97316);
}

.feature-icon-purple {
    background: linear-gradient(135deg, var(--primary-purple), #EC4899);
}

.feature-icon-green {
    background: linear-gradient(135deg, var(--primary-green), #34D399);
}

.feature-icon-orange {
    background: linear-gradient(135deg, #F97316, var(--primary-yellow));
}

.feature-icon-cyan {
    background: linear-gradient(135deg, #06B6D4, var(--primary-blue));
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

.section-cta {
    text-align: center;
}

.btn-cta {
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple), #EC4899);
    color: white;
    border: none;
    border-radius: 9999px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-xl);
}

.btn-cta:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.4);
}

/* ===== Car Listings Section ===== */
.car-listings-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, white, var(--gray-50));
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(294px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    align-items: stretch; /* Выравнивание карточек по высоте в одной строке */
}

/* ===== Car Card Styles ===== */
.car-card {
    position: relative;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-height: 480px;
    height: 100%; /* Растягиваем карточку на всю высоту ячейки grid */
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.car-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.15);
}

.car-card-placeholder {
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 480px;
}

.car-image-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--gray-200), var(--gray-100));
}

.car-info-placeholder {
    padding: 1rem;
    flex: 1;
}

.placeholder-line {
    height: 1rem;
    background: var(--gray-200);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.placeholder-line.short {
    width: 60%;
}

/* Image Section - 220px height */
.car-image-section {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}

.car-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.car-card:hover .car-image {
    transform: scale(1.1);
}

/* Badges on Image */
.car-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 10;
}

.car-badges-left {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

.badge-verified {
    background: rgba(0, 201, 80, 0.9);
    color: white;
}

.badge-import {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

/* AI Score Badge - bottom left of image */
.car-ai-score {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 7px 15px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
}

.ai-score-circle {
    position: relative;
    width: 47px;
    height: 47px;
    flex-shrink: 0;
}

.score-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-bg {
    fill: none;
    stroke: #E5E7EB;
    stroke-width: 4;
}

.score-progress {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease-out;
}

.score-progress.score-green {
    stroke: #10B981;
}

.score-progress.score-blue {
    stroke: #2563EB;
}

.score-progress.score-yellow {
    stroke: #F59E0B;
}

.score-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-900);
}

.ai-score-label {
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
    line-height: 1.2;
}

.ai-score-label > div:first-child {
    font-weight: 700;
    color: var(--gray-900);
}

.ai-score-label > div:last-child {
    color: var(--gray-600);
}

/* Info Section - растягивается для заполнения доступного пространства */
.car-info-section {
    flex: 1 1 auto; /* Растягивается для заполнения доступного пространства */
    padding: 15px;
    display: flex;
    flex-direction: column;
    min-height: 259px;
    box-sizing: border-box;
    overflow: visible;
}

.car-title-section {
    margin-bottom: 0;
    height: 75px; /* Увеличена высота для большего отступа */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Распределяем пространство между названием и мета-информацией */
    flex-shrink: 0;
}

.car-title {
    font-size: 1.125rem; /* 18px */
    font-weight: 400;
    color: var(--gray-900);
    margin: 0;
    line-height: 1.4;
    height: 50px; /* Фиксированная высота для 2 строк (18px * 1.4 * 2 = 50.4px) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    flex-shrink: 0;
    margin-bottom: 0.75rem; /* Увеличенный отступ снизу */
}

.car-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem; /* 14px */
    color: rgba(73, 85, 101, 1);
    gap: 0;
    height: 15px; /* Фиксированная высота для мета-информации */
    margin-top: 0;
    flex-shrink: 0;
}

/* Price Section - стиль из Product PRO */
.car-price-section {
    margin-top: 1.5rem; /* Увеличенный отступ сверху для опускания блока */
    margin-bottom: 0;
    padding: 1rem 1.25rem; /* 16px 20px */
    background: linear-gradient(to bottom right, var(--blue-50), var(--purple-50), var(--pink-50));
    border: 1px solid var(--blue-100);
    border-radius: var(--radius-xl); /* 24px */
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 0.5rem;
    min-height: 111px;
}

.car-price {
    font-size: 1.875rem; /* 30px */
    font-weight: 700;
    background: linear-gradient(to right, var(--nfs-blue), var(--nfs-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--nfs-blue); /* Fallback для браузеров без поддержки background-clip */
    margin: 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
}

/* Поддержка для браузеров без background-clip */
@supports not (background-clip: text) {
    .car-price {
        color: var(--nfs-blue);
        background: none;
    }
}

.car-price-analysis {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.price-comparison {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem; /* 14px */
    gap: 0.5rem;
}

.price-avg {
    color: rgba(105, 114, 130, 1);
    font-weight: 400;
}

.price-diff {
    font-weight: 600;
}

.price-diff.good {
    color: var(--primary-green);
}

.price-diff.high {
    color: var(--primary-red);
}

.price-bar-wrapper {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: 9999px;
    overflow: hidden;
}

.price-bar {
    height: 100%;
    border-radius: 9999px;
    transition: width 1s ease-out;
}

.price-bar-good {
    background: var(--primary-green);
}

.price-bar-high {
    background: var(--primary-red);
}

.price-bar-fair {
    background: var(--primary-blue);
}

.price-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem; /* 6px 12px */
    border-radius: 9999px; /* Полностью скругленные углы */
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    width: fit-content;
    margin-top: 0.25rem;
}

.price-status i {
    font-size: 0.875rem;
}

/* Утилитарные классы для цветов */
.text-green-600 {
    color: var(--primary-green);
}

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

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

.bg-green-50 {
    background: var(--gray-50);
}

.bg-green-100 {
    background: #D1FAE5;
}

.bg-red-50 {
    background: var(--gray-50);
}

.bg-red-100 {
    background: #FEE2E2;
}

.bg-blue-50 {
    background: var(--blue-50);
}

.bg-blue-100 {
    background: var(--blue-100);
}

/* Actions - точная высота 39px, позиция top: 203px от верха секции */
.car-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 13px; /* 203px от верха секции - 15px padding - 51px заголовок - 13px отступ - 111px цена = 13px */
    padding-top: 0;
    align-items: stretch;
    margin-bottom: 0;
}

.btn-car-details {
    padding: 0.625rem 0.75rem; /* 10px вертикально, 12px горизонтально */
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    color: var(--gray-900);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 39px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
}

.btn-car-details:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-car-contact {
    padding: 0.625rem 0.75rem; /* 10px вертикально, 12px горизонтально */
    background: linear-gradient(135deg, #00A63D, #00C850);
    border: none;
    border-radius: 8px;
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    min-height: 39px;
    height: auto;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
}

.btn-car-contact:not(.online) {
    background: linear-gradient(135deg, var(--primary-blue), #3B82F6);
}

.btn-car-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-car-contact i {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    line-height: 1;
}

.btn-car-contact span {
    display: flex;
    align-items: center;
    line-height: 1;
}

.btn-load-more {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple), var(--primary-blue));
    color: white;
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.btn-load-more:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* ===== Import Section ===== */
.import-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #FEF2F2, white, #EFF6FF);
}

.import-calculator {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100);
}

.calculator-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.calculator-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary-red), #F87171);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-lg);
}

.control-group {
    margin-bottom: 1.5rem;
}

.control-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

.slider-wrapper {
    position: relative;
}

.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--gray-200);
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-blue);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-blue);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-sm);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.calculator-breakdown {
    background: linear-gradient(135deg, var(--gray-50), #EFF6FF);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.breakdown-total {
    display: flex;
    justify-content: space-between;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    border-top: 1px solid var(--gray-200);
    font-weight: 600;
    font-size: 1.125rem;
}

.breakdown-total span:last-child {
    color: var(--primary-blue);
    font-size: 1.5rem;
}

.calculator-savings {
    background: linear-gradient(135deg, var(--primary-green), #34D399);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    color: white;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.savings-icon {
    width: 4rem;
    height: 4rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.savings-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.savings-value {
    font-size: 1.875rem;
    font-weight: 700;
}

.btn-calculator {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-blue));
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

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

.import-timeline {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100);
}

.import-timeline h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.timeline-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-step {
    display: flex;
    gap: 1rem;
}

.step-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, #FEF2F2, #FEE2E2);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.timeline-step:hover .step-icon {
    transform: scale(1.1) rotate(6deg);
}

.step-content h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.step-content p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.step-days {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* ===== How It Works Section ===== */
.how-it-works-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--gray-50), #EFF6FF, #F3E8FF);
}

.tabs-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.tabs-header {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    background: white;
    border-radius: 9999px;
    padding: 0.5rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--gray-200);
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.tab-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: none;
    background: transparent;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--gray-600);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    box-shadow: var(--shadow-lg);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: stretch; /* Выравнивание карточек по высоте в одной строке */
}

.level-card {
    position: relative;
    background: linear-gradient(135deg, #F0F9FF, #F5F3FF);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%; /* Растягиваем карточку на всю высоту ячейки grid */
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.level-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: white;
    box-shadow: var(--shadow-xl);
}

.level-number {
    position: absolute;
    top: -1rem;
    left: -1rem;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    transform: rotate(-12deg);
    transition: all 0.3s ease;
}

.level-card:hover .level-number {
    transform: rotate(-12deg) scale(1.1);
}

.level-icon {
    font-size: 3rem;
    margin: 1rem 0;
    flex-shrink: 0;
}

.level-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
    min-height: 3rem; /* Фиксированная минимальная высота для заголовка */
    display: flex;
    align-items: flex-start;
}

.level-card p {
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.6;
    flex: 1 1 auto; /* Растягивается для заполнения доступного пространства */
    min-height: 4rem; /* Минимальная высота для описания */
}

.level-bonus {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
    width: fit-content;
}

.btn-level {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto; /* Прижимаем кнопку к низу карточки */
    flex-shrink: 0;
}

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

/* ===== AI Assistant Section ===== */
.ai-assistant-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #EFF6FF, #F3E8FF, #FDF2F8);
}

.status-dot {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    background: var(--primary-green);
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

.ai-demo-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--gray-200);
}

.ai-demo-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ai-demo-avatar {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple), #EC4899);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    position: relative;
    animation: breathing 3s ease-in-out infinite;
    box-shadow: var(--shadow-xl);
}

.ai-status-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--primary-green);
    border-radius: 50%;
    border: 4px solid white;
    animation: pulse 2s infinite;
}

.ai-status-text {
    font-size: 0.875rem;
    color: var(--primary-green);
    font-weight: 600;
}

.ai-input-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
}

.input-with-icon {
    position: relative;
    margin-bottom: 1rem;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.input-with-icon input {
    width: 100%;
    padding: 1rem 1rem 1rem 2.75rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.divider {
    text-align: center;
    margin: 1rem 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gray-200);
}

.divider span {
    position: relative;
    background: white;
    padding: 0 1rem;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
    background: var(--gray-50);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.upload-area:hover {
    border-color: var(--primary-blue);
    background: #EFF6FF;
}

.upload-area i {
    font-size: 3rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.upload-area:hover i {
    color: var(--primary-blue);
}

.upload-area p {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--gray-700);
}

.upload-area span {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.btn-ai-analyze {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple), #EC4899);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-xl);
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-ai-analyze::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 1s ease;
}

.btn-ai-analyze:hover::before {
    transform: translateX(100%);
}

.btn-ai-analyze:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.4);
}

.ai-tokens-info {
    text-align: center;
    padding: 0.75rem;
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    border: 2px solid #FCD34D;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
}

.ai-abilities h3 {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ai-abilities > p {
    color: var(--gray-600);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.ability-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.ability-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    border: 2px solid var(--gray-200);
    transition: all 0.3s ease;
    cursor: pointer;
}

.ability-item:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-lg);
    transform: translateX(4px);
}

.ability-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.ability-item:hover .ability-icon {
    transform: scale(1.1) rotate(6deg);
}

.ability-icon-blue {
    background: linear-gradient(135deg, var(--primary-blue), #06B6D4);
}

.ability-icon-green {
    background: linear-gradient(135deg, var(--primary-green), #34D399);
}

.ability-icon-purple {
    background: linear-gradient(135deg, var(--primary-purple), #EC4899);
}

.ability-icon-red {
    background: linear-gradient(135deg, var(--primary-red), #F97316);
}

.ability-icon-yellow {
    background: linear-gradient(135deg, var(--primary-yellow), #FBBF24);
}

.ability-icon-cyan {
    background: linear-gradient(135deg, #06B6D4, var(--primary-blue));
}

.ability-emoji {
    font-size: 1.875rem;
}

.ability-item h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.ability-item p {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.ai-cta-card {
    background: linear-gradient(135deg, #DBEAFE, #F3E8FF);
    border: 2px solid #BFDBFE;
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
}

.ai-cta-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.ai-cta-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ai-cta-card p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.btn-get-tokens {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.btn-get-tokens:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* ===== Footer ===== */
.main-footer {
    background: var(--gray-900);
    color: white;
}

.footer-cta {
    background: linear-gradient(135deg, #1E3A8A, #581C87, var(--gray-900));
    padding: 5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-cta-content {
    text-align: center;
    max-width: 56rem;
    margin: 0 auto;
}

.footer-cta-icon {
    width: 6rem;
    height: 6rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple), #EC4899);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    margin: 0 auto 2rem;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s ease;
    cursor: pointer;
}

.footer-cta-icon:hover {
    transform: scale(1.1) rotate(6deg);
}

.footer-cta-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-cta-content > p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
}

.btn-footer-cta {
    padding: 1rem 4rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple), #EC4899);
    color: white;
    border: none;
    border-radius: var(--radius-2xl);
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.3);
    margin-bottom: 1.5rem;
}

.btn-footer-cta:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.5);
}

.footer-cta-note {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-content {
    padding: 4rem 0 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 2.75rem;
    height: 2.75rem;
    background: var(--gray-800);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.1);
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-contacts {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.footer-contacts li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-contacts i {
    width: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-contacts a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contacts a:hover {
    color: white;
}

.footer-newsletter h5 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.625rem 1rem;
    background: var(--gray-800);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: white;
    font-size: 0.875rem;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.newsletter-btn {
    width: 2.75rem;
    height: 2.75rem;
    background: var(--primary-blue);
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-btn:hover {
    background: #3B82F6;
    transform: scale(1.1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: white;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    border: none;
    border-radius: var(--radius-xl);
    color: white;
    font-size: 1.75rem;
    cursor: pointer;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.5);
}

.back-to-top.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ===== AI Analysis States ===== */
.ai-analyzing {
    text-align: center;
    padding: 2rem 0;
}

.analyzing-animation {
    width: 8rem;
    height: 12rem;
    background: linear-gradient(135deg, #DBEAFE, #F3E8FF);
    border-radius: var(--radius-xl);
    border: 2px solid #BFDBFE;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.analyzing-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple), #EC4899);
    animation: loading 2s ease-in-out infinite;
}

.spinner {
    width: 4rem;
    height: 4rem;
    border: 4px solid var(--primary-blue);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

@keyframes loading {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0%); }
    100% { transform: translateX(100%); }
}

.progress-bar {
    width: 100%;
    height: 0.75rem;
    background: var(--gray-200);
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple), #EC4899);
    border-radius: 9999px;
    transition: width 0.3s ease;
    width: 0%;
}

.ai-results {
    animation: fadeInUp 0.6s ease-out;
}

.results-score {
    text-align: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    border-radius: var(--radius-xl);
    border: 2px solid #6EE7B7;
    margin-bottom: 1.5rem;
}

.score-circle {
    width: 8rem;
    height: 8rem;
    background: linear-gradient(135deg, var(--primary-green), #34D399);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-xl);
}

.results-score h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.results-score p {
    color: var(--gray-600);
}

.results-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric {
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    padding: 1rem;
    border: 2px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric span:first-child {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
}

.metric-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-green);
}

.results-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.btn-outline {
    padding: 0.75rem;
    background: transparent;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

/* Mobile Menu Styles */
.header-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: var(--shadow-xl);
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
}

@media (min-width: 1024px) {
    .header-nav.mobile-open {
        display: flex;
        flex-direction: row;
        position: static;
        background: transparent;
        box-shadow: none;
        padding: 0;
        border-top: none;
    }
}

/* ===== Адаптивность ===== */
@media (max-width: 1024px) {
    .header-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .cars-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .car-card {
        height: auto;
        min-height: 480px;
    }
}

@media (max-width: 768px) {
    .header-search {
        display: none;
    }

    .hero-section {
        padding: 6rem 0 3rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
    }

    .quick-search-filters {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.875rem;
    }

    .features-grid,
    .levels-grid {
        grid-template-columns: 1fr;
    }
    
    .cars-grid {
        grid-template-columns: 1fr;
    }
    
    .car-card {
        height: auto;
        min-height: 450px;
    }
    
    .car-image-section {
        height: 200px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .back-to-top {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
        bottom: 1rem;
        right: 1rem;
    }
}

/* ===== Дополнительные стили для интерактивных элементов ===== */

/* M-Power полоски при наведении на карточку */
.mpower-stripes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.mpower-stripes .stripe {
    position: absolute;
    width: 100%;
    height: 4px;
    transform: skewY(12deg);
    animation: slideInRight 0.6s ease-out;
}

.mpower-stripes .stripe-1 {
    top: 25%;
    background: linear-gradient(to right, transparent, rgba(156, 163, 175, 0.4), transparent);
    animation-delay: 0s;
}

.mpower-stripes .stripe-2 {
    top: 33%;
    background: linear-gradient(to right, transparent, rgba(37, 99, 235, 0.5), transparent);
    animation-delay: 0.1s;
}

.mpower-stripes .stripe-3 {
    top: 50%;
    background: linear-gradient(to right, transparent, rgba(239, 68, 68, 0.5), transparent);
    animation-delay: 0.2s;
}

/* Избранное - кнопка справа вверху */
.car-favorite-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.car-favorite-btn:hover {
    background: white;
    transform: scale(1.1);
}

.car-favorite-btn.favorited {
    background: var(--primary-red);
    transform: scale(1.1);
}

.car-favorite-btn i {
    font-size: 1rem;
    color: var(--gray-600);
    transition: color 0.3s ease;
}

.car-favorite-btn.favorited i {
    color: white;
}

/* Анимация монет */
.coin-animation {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.6;
    animation: float 2s ease-in-out;
    pointer-events: none;
}

/* Анимированный самолет */
.animated-plane {
    transition: transform 0.1s linear;
}

/* Маршрут доставки */
.import-route-map {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--gray-100);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.import-route-map h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.route-map-container {
    position: relative;
    height: 16rem;
    margin-bottom: 2rem;
}

.route-map-svg {
    width: 100%;
    height: 100%;
}

.route-path {
    animation: drawPath 3s ease-in-out infinite;
}

@keyframes drawPath {
    0%, 100% { stroke-dashoffset: 0; }
    50% { stroke-dashoffset: 20; }
}

.route-point {
    animation: pulse 2s infinite;
}

.route-label {
    font-size: 0.75rem;
}

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

.route-stat {
    text-align: center;
    padding: 1rem;
    border-radius: var(--radius-xl);
}

.route-stat:nth-child(1) {
    background: #FEE2E2;
}

.route-stat:nth-child(2) {
    background: #DBEAFE;
}

.route-stat:nth-child(3) {
    background: #D1FAE5;
}

.stat-emoji {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-weight: 600;
    font-size: 0.875rem;
}

.route-stat:nth-child(1) .stat-value {
    color: #DC2626;
}

.route-stat:nth-child(2) .stat-value {
    color: #2563EB;
}

.route-stat:nth-child(3) .stat-value {
    color: #10B981;
}

/* Прогресс-бар уровней */
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(to right, var(--primary-blue), var(--primary-purple), #EC4899);
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Уровни - галочка завершения */
.level-completed-check {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 3rem;
    height: 3rem;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.3s ease-out;
}

.level-card.completed {
    border-color: var(--primary-green);
}

.btn-level.completed {
    background: #D1FAE5;
    color: #065F46;
    cursor: not-allowed;
}

/* Сообщения прогресса анализа */
.progress-messages {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.progress-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    animation: fadeInUp 0.3s ease-out;
}

.bg-blue-50 { background: #EFF6FF; }
.bg-purple-50 { background: #FAF5FF; }
.bg-pink-50 { background: #FDF2F8; }
.bg-green-50 { background: #F0FDF4; }

.bg-blue-500 { background: var(--primary-blue); }
.bg-purple-500 { background: var(--primary-purple); }
.bg-pink-500 { background: #EC4899; }
.bg-green-500 { background: var(--primary-green); }

/* Метрики результатов */
.metric-bar {
    height: 0.5rem;
    background: var(--gray-200);
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.metric-bar-fill {
    height: 100%;
    transition: width 1s ease-out;
}

.metric-bar-fill.metric-green {
    background: var(--primary-green);
}

.metric-bar-fill.metric-yellow {
    background: var(--primary-yellow);
}

.metric-green { color: var(--primary-green); }
.metric-yellow { color: var(--primary-yellow); }

.results-recommendation {
    background: #FEF3C7;
    border: 2px solid #FCD34D;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.results-recommendation h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.results-recommendation p {
    color: var(--gray-700);
    font-size: 0.875rem;
    margin: 0;
}

.btn-reset-analysis {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    background: transparent;
    border: none;
    color: var(--gray-500);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
    margin-top: 1rem;
}

.btn-reset-analysis:hover {
    color: var(--gray-700);
}

/* Мини-игра в футере */
.footer-game-container {
    padding: 2.5rem;
}

.game-input-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 639px) {
    .game-input-section {
        flex-direction: column;
        gap: 0.75rem;
    }
}

.game-input {
    flex: 1;
    height: 4rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: 0 1rem;
    color: white;
    font-size: 1.125rem;
}

.game-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.btn-check-price {
    padding: 0 2.5rem;
    height: 4rem;
    background: linear-gradient(to right, #F59E0B, #F97316);
    border: none;
    border-radius: var(--radius-xl);
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-xl);
}

@media (max-width: 639px) {
    .btn-check-price {
        width: 100%;
        padding: 0 1.5rem;
    }
}

.btn-check-price:hover:not(:disabled) {
    background: linear-gradient(to right, #D97706, #EA580C);
    transform: scale(1.02);
}

.btn-check-price:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.game-hint {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-lg);
    padding: 1rem;
    text-align: center;
    color: #93C5FD;
    font-size: 0.875rem;
}

.game-result-content {
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

.game-emoji {
    font-size: 4.5rem;
    margin-bottom: 1rem;
}

.game-message {
    font-size: 1.875rem;
    color: white;
    margin-bottom: 1.5rem;
}

.game-price-info {
    background: rgba(59, 130, 246, 0.2);
    border: 2px solid rgba(59, 130, 246, 0.4);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.game-price-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.game-price-info strong {
    color: white;
    font-size: 1.875rem;
    display: block;
    margin-top: 0.5rem;
}

.game-difference {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.game-tokens {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(234, 179, 8, 0.2);
    border: 2px solid rgba(234, 179, 8, 0.4);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.game-tokens i {
    font-size: 3rem;
    color: #FCD34D;
}

.tokens-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: #FCD34D;
}

.tokens-label {
    font-size: 0.875rem;
    color: #FDE68A;
}

.btn-play-again {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: 0.875rem 2rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-play-again:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Победа в уровнях */
.victory-message {
    margin-top: 3rem;
    animation: fadeInUp 0.6s ease-out;
}

.victory-content {
    background: linear-gradient(to right, #FEF3C7, #FED7AA);
    border: 2px solid #FCD34D;
    border-radius: var(--radius-2xl);
    padding: 3rem;
    text-align: center;
}

.victory-emoji {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
}

.victory-content h3 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.victory-content p {
    font-size: 1.25rem;
    color: var(--gray-700);
    margin-bottom: 2rem;
}

.btn-victory {
    background: linear-gradient(to right, var(--primary-blue), var(--primary-purple), #EC4899);
    border: none;
    border-radius: var(--radius-xl);
    padding: 1.5rem 3rem;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-2xl);
}

.btn-victory:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Прогресс-бар уровней */
.progress-section {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    border: 2px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
}

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

.progress-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.progress-title i {
    color: #F59E0B;
}

.progress-text {
    font-size: 1.125rem;
}

.progress-text .font-bold {
    font-weight: 700;
    color: var(--primary-blue);
}

.progress-bar-wrapper {
    height: 1rem;
    background: var(--gray-100);
    border-radius: 9999px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

/* Мини-игра в футере */
.footer-game {
    background: linear-gradient(to bottom right, #111827, rgba(37, 99, 235, 0.2), rgba(147, 51, 234, 0.2));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 0;
}

.footer-game-card {
    max-width: 42rem;
    margin: 0 auto;
    background: linear-gradient(to bottom right, rgba(30, 58, 138, 0.5), rgba(88, 28, 135, 0.5));
    backdrop-filter: blur(8px);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-2xl);
}

.footer-game-header {
    text-align: center;
    margin-bottom: 2rem;
}

.game-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(234, 179, 8, 0.2);
    border: 2px solid rgba(234, 179, 8, 0.4);
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 1.5rem;
}

.game-badge i {
    font-size: 1.5rem;
    color: #FCD34D;
}

.game-badge span {
    font-size: 1.125rem;
    font-weight: 600;
    color: #FDE68A;
}

.footer-game-header h4 {
    font-size: 1.875rem;
    margin-bottom: 0.75rem;
    color: white;
}

.footer-game-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
}

.footer-game-header strong {
    color: #93C5FD;
}

/* Дополнительные эффекты для карточек */
.car-glow {
    position: absolute;
    inset: -8px;
    background: var(--primary-blue);
    border-radius: 24px;
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.car-card:hover .car-glow {
    opacity: 0.15;
}

.car-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

/* Онлайн индикатор */
.online-dot {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 0.5rem;
    height: 0.5rem;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.btn-car-contact.online {
    position: relative;
}

/* Анимация загрузки */
@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.analyzing-animation .loading-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-blue), var(--primary-purple), #EC4899);
    animation: loading 2s ease-in-out infinite;
}

