/* === БАЗОВЫЕ НАСТРОЙКИ === */
:root {
    --neon-orange: #ff9900;
    --neon-purple: #9d00ff;
    --bg-dark: #050505;
}
* { box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    margin: 0;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }

/* === НАВИГАЦИЯ (ПК: Лого слева, Ссылки центр, Иконки справа) === */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    background: rgba(0,0,0,0.95);
    border-bottom: 2px solid #222;
    position: sticky; top: 0; z-index: 1000;
    height: 60px;
}

/* Скрываем гамбургер на ПК полностью */
.nav-left { display: none; }

/* Логотип (Машинка) на ПК - СЛЕВА */
.nav-logo-center {
    width: 60px;
    display: flex;
    justify-content: center;
    position: relative;
    /* Убрали абсолютное позиционирование для ПК */
}

.driving-car-container { position: relative; width: 60px; height: 40px; }
.driving-car {
    font-size: 2.2rem; color: transparent;
    -webkit-text-stroke: 2px var(--neon-orange); text-shadow: 0 0 15px var(--neon-orange);
    transform: scaleX(-1); animation: car-bounce 0.5s infinite alternate;
}
.road-line {
    position: absolute; bottom: 5px; left: 0; width: 100%; height: 2px;
    background: repeating-linear-gradient(90deg, #555, #555 10px, transparent 10px, transparent 20px);
    animation: road-move 0.5s linear infinite;
}
@keyframes car-bounce { 0% { transform: scaleX(-1) translateY(0); } 100% { transform: scaleX(-1) translateY(-2px); } }
@keyframes road-move { 0% { transform: translateX(0); } 100% { transform: translateX(-20px); } }

/* Ссылки */
.nav-links { display: flex; justify-content: center; flex-grow: 1; }
.nav-links a { margin: 0 15px; font-weight: 700; font-size: 0.9rem; color: #aaa; transition: 0.3s; }
.nav-links a:hover { color: #fff; text-shadow: 0 0 10px #fff; }

/* Иконки справа */
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-phone-icon, .cart-btn { color: #fff; font-size: 1.2rem; transition: 0.3s; }
.nav-phone-icon:hover { color: var(--neon-orange); }


/* === ГЛАВНЫЙ ЭКРАН === */
.hero-section {
    position: relative; min-height: 90vh; display: flex; align-items: center; justify-content: center;
    background: url('https://images.unsplash.com/photo-1562920619-b7c2964b9991?q=80&w=2000&auto=format&fit=crop') no-repeat center center/cover;
}
.hero-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.8); z-index: 1; }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 800px; padding: 0 20px; width: 100%; }

.neon-sign {
    font-size: 6rem; margin: 0; color: #fff;
    text-shadow: 0 0 10px #fff, 0 0 20px var(--neon-orange), 0 0 40px var(--neon-orange);
    font-family: 'Rajdhani', sans-serif; text-transform: uppercase; line-height: 1;
}
.flicker { animation: flicker 3s infinite alternate; }
@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px var(--neon-purple), 0 0 40px var(--neon-purple); opacity: 1; }
    20%, 24%, 55% { text-shadow: none; opacity: 0.3; }
}
.hero-slogan {
    font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.1rem;
    letter-spacing: 0.2em; text-transform: uppercase; margin-top: 20px;
    color: #fff !important; text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* ПОИСК */
.search-bar {
    margin-top: 40px; display: flex; justify-content: center;
    width: 100%; max-width: 700px; margin-left: auto; margin-right: auto;
}
.search-bar input {
    width: 70%; padding: 20px; border: none; font-size: 1rem;
    background: #fff; color: #000; border-radius: 5px 0 0 5px; outline: none;
}
.search-bar button {
    width: 30%; background: var(--neon-orange); border: none; font-weight: 900;
    cursor: pointer; border-radius: 0 5px 5px 0; transition: 0.3s;
}
.search-bar button:hover { background: #ffaa33; }
.quick-tags { margin-top: 25px; display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; }
.quick-tags span {
    color: #aaa; font-size: 0.9rem; cursor: pointer; padding-bottom: 5px;
    border-bottom: 2px solid transparent; transition: 0.3s;
}
.quick-tags span:hover { color: var(--neon-orange); border-bottom-color: var(--neon-orange); }

/* КАТЕГОРИИ */
.categories-section { padding: 80px 40px; background: #080808; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 60px; font-family: 'Rajdhani', sans-serif; }
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; }
.grid-item { background: #111; padding: 40px 20px; text-align: center; border: 1px solid #222; transition: 0.3s; border-radius: 10px; }
.grid-item i { font-size: 3.5rem; color: #444; margin-bottom: 20px; transition: 0.3s; }
.grid-item h3 { margin: 0; font-weight: 700; font-size: 1.1rem; }
.item-oil:hover { border-color: #ff00de; box-shadow: 0 0 25px rgba(255,0,222,0.3); } .item-oil:hover i { color: #ff00de; text-shadow: 0 0 20px #ff00de; }
.item-brakes:hover { border-color: #ff0000; box-shadow: 0 0 25px rgba(255,0,0,0.3); } .item-brakes:hover i { color: #ff0000; text-shadow: 0 0 20px #ff0000; }
.item-suspension:hover { border-color: #ffea00; box-shadow: 0 0 25px rgba(255,234,0,0.3); } .item-suspension:hover i { color: #ffea00; text-shadow: 0 0 20px #ffea00; }
.item-engine:hover { border-color: var(--neon-orange); box-shadow: 0 0 25px rgba(255,153,0,0.3); } .item-engine:hover i { color: var(--neon-orange); text-shadow: 0 0 20px var(--neon-orange); }
.item-body:hover { border-color: #00f3ff; box-shadow: 0 0 25px rgba(0,243,255,0.3); } .item-body:hover i { color: #00f3ff; text-shadow: 0 0 20px #00f3ff; }
.item-electric:hover { border-color: #2979ff; box-shadow: 0 0 25px rgba(41,121,255,0.3); } .item-electric:hover i { color: #2979ff; text-shadow: 0 0 20px #2979ff; }
.item-filters:hover { border-color: #00ff2a; box-shadow: 0 0 25px rgba(0,255,42,0.3); } .item-filters:hover i { color: #00ff2a; text-shadow: 0 0 20px #00ff2a; }
.item-accessories:hover { border-color: #aa00ff; box-shadow: 0 0 25px rgba(170,0,255,0.3); } .item-accessories:hover i { color: #aa00ff; text-shadow: 0 0 20px #aa00ff; }

/* ОСТАЛЬНОЕ */
.steps-section { padding: 80px 40px; background: #0a0a0a; text-align: center; }
.steps-container { display: flex; justify-content: center; align-items: flex-start; flex-wrap: wrap; gap: 30px; }
.step-card { width: 250px; text-align: center; }
.step-num { font-size: 3.5rem; font-weight: 900; color: #222; text-shadow: -2px -2px 0 var(--neon-orange); }
.step-line { width: 60px; height: 2px; background: #333; margin-top: 60px; }

.europe-section { padding: 100px 20px; background: linear-gradient(135deg, #050505 40%, #1a001a 100%); display: flex; justify-content: center; }
.europe-content { max-width: 500px; width: 100%; text-align: center; border: 2px solid var(--neon-purple); padding: 50px; box-shadow: 0 0 40px rgba(157,0,255,0.2); background: rgba(0,0,0,0.6); border-radius: 20px; display: flex; flex-direction: column; align-items: center; }
.vin-form { width: 100%; }
.form-row { display: flex; gap: 10px; margin-bottom: 15px; }
.vin-form input { width: 100%; padding: 15px; background: #111; border: 1px solid #444; color: #fff; border-radius: 5px; outline: none; }
.vin-form input:focus { border-color: var(--neon-purple); }
.neon-btn-small { width: 100%; padding: 15px; background: var(--neon-purple); color: #fff; border: none; font-weight: 900; cursor: pointer; border-radius: 5px; transition: 0.3s; }

.reviews-section { padding: 80px 40px; background: #080808; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.review-card { background: #111; padding: 30px; border-radius: 10px; border: 1px solid #222; }
.stars { color: var(--neon-orange); margin-bottom: 15px; }

.faq-section { padding: 80px 40px; max-width: 800px; margin: 0 auto; }
details { background: #111; margin-bottom: 15px; padding: 20px; border: 1px solid #333; border-radius: 5px; cursor: pointer; }
summary { font-weight: 700; outline: none; }

.neon-footer { background: #020202; border-top: 3px solid var(--neon-purple); padding: 80px 40px 30px; margin-top: 80px; }
.footer-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; max-width: 1100px; margin: 0 auto; }
.footer-logo { font-size: 3.5rem; color: #fff; margin: 0; text-shadow: 3px 3px 0 var(--neon-purple); font-family: 'Rajdhani', sans-serif; }
.footer-phone { font-size: 1.5rem; font-weight: bold; color: #fff !important; }
.social-icons { display: flex; gap: 20px; font-size: 1.8rem; margin-top: 20px; }
.copyright { text-align: center; margin-top: 60px; color: #555; font-size: 0.9rem; }

.telegram-float { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: #0088cc; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; z-index: 9999; animation: pulse-tg 2s infinite; }
@keyframes pulse-tg { 0% { box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(0, 136, 204, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 136, 204, 0); } }

.ai-widget { position: fixed; bottom: 30px; left: 30px; z-index: 9998; }
.ai-toggle-btn { background: linear-gradient(45deg, #9d00ff, #ff00de); color: #fff; border: none; padding: 15px 25px; border-radius: 30px; font-weight: 900; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.chat-window { display: none; flex-direction: column; position: absolute; bottom: 70px; left: 0; width: 320px; height: 450px; background: #111; border: 1px solid var(--neon-purple); border-radius: 15px; overflow: hidden; }
.chat-header { background: linear-gradient(90deg, #9d00ff, #5500aa); padding: 15px; font-weight: bold; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.close-chat { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
.chat-body { flex-grow: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; background: #0a0a0a; }
.message { padding: 10px 15px; border-radius: 10px; font-size: 0.9rem; max-width: 85%; }
.bot-msg { background: #222; align-self: flex-start; border-bottom-left-radius: 0; }
.user-msg { background: var(--neon-orange); color: #000; font-weight: 600; align-self: flex-end; border-bottom-right-radius: 0; }
.chat-input-area { padding: 10px; background: #151515; display: flex; gap: 5px; flex-shrink: 0; }
.chat-input-area input { flex: 1; background: #000; border: 1px solid #333; padding: 10px; color: #fff; border-radius: 5px; }
.chat-input-area button { background: #333; border: none; color: #fff; width: 40px; cursor: pointer; border-radius: 5px; }
.ai-warning { font-size: 0.75rem; color: #aaa; background: rgba(255, 153, 0, 0.1); border: 1px solid #333; padding: 10px; border-radius: 5px; text-align: center; }

/* === МОБИЛЬНАЯ ВЕРСИЯ === */
@media (max-width: 768px) {
    
    /* 1. НАВИГАЦИЯ */
    .navbar {
        height: 60px;
        padding: 0 15px;
        position: relative; 
        flex-wrap: nowrap; 
    }
    
    /* ВКЛЮЧАЕМ ГАМБУРГЕР (Слева) */
    .nav-left { 
        display: flex; 
        width: 60px; 
        z-index: 20; 
    }

    /* КНОПКА ГАМБУРГЕРА */
    .hamburger-btn { 
        display: flex !important;
        width: 30px;
        height: 25px;
        position: relative;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        flex-direction: column;
        justify-content: space-between;
    }

    /* АНИМАЦИЯ ПОЛОСОК */
    .hamburger-btn span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #fff;
        border-radius: 2px;
        transition: all 0.4s ease-in-out;
        transform-origin: center;
    }
    .hamburger-btn.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); background-color: var(--neon-orange); }
    .hamburger-btn.active span:nth-child(2) { opacity: 0; transform: translateX(-20px); }
    .hamburger-btn.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); background-color: var(--neon-orange); }
    
    /* ВЫПАДАЮЩЕЕ МЕНЮ */
    .nav-links {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 60px; left: 0;
        width: 100%;
        background: rgba(0,0,0,0.98);
        border-bottom: 2px solid var(--neon-orange);
        padding: 20px 0;
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    }
    .nav-links.active { opacity: 1; visibility: visible; transform: translateY(0); }
    .nav-links a { margin: 15px 0; display: block; width: 100%; text-align: center; font-size: 1.2rem; }

    /* МАШИНКА - АБСОЛЮТНЫЙ ЦЕНТР (Только на мобиле) */
    .nav-logo-center {
        position: absolute; 
        left: 50%; top: 50%;
        transform: translate(-50%, -50%); 
        width: 60px;
        z-index: 10;
        margin: 0;
    }

    /* ГЕРОЙ, ПОИСК, ЕВРОПА (Без изменений) */
    .hero-section { min-height: auto !important; height: auto !important; padding-top: 90px; padding-bottom: 40px; align-items: flex-start; }
    .hero-content h1.neon-sign { font-size: 3.5rem; line-height: 1; }
    .hero-slogan { font-size: 0.8rem; white-space: normal; }
    .search-bar { flex-direction: column; width: 100% !important; margin-top: 25px; gap: 10px; }
    .search-bar input { width: 100% !important; border-radius: 5px !important; margin: 0 !important; height: 50px; }
    .search-bar button { width: 100% !important; border-radius: 5px !important; margin: 0 !important; height: 50px; }
    .europe-content { width: 100% !important; padding: 25px 15px; overflow: hidden; }
    .form-row { flex-direction: column; width: 100%; }
    .vin-form input { width: 100% !important; }
    .step-line { display: none; }
    .footer-container { flex-direction: column; text-align: center; }
    .social-icons { justify-content: center; }
}