@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto:wght@300;400;700&display=swap');

:root {
    --blue: #007bff;
    --dark-bg: #050505;
    --card-bg: rgba(20, 20, 20, 0.95);
    --border: rgba(255, 255, 255, 0.1);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Roboto', sans-serif;
    color: #fff;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), 
                url('bg.jpg') no-repeat center center fixed;
    background-size: cover !important;
    background-color: #000;
    line-height: 1.6;
    overflow-x: hidden; /* Предотвратява хоризонтален скрол */
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* --- НАВИГАЦИЯ --- */
nav { 
    background: rgba(0, 0, 0, 0.95); 
    padding: 15px 0; 
    border-bottom: 1px solid var(--blue); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    backdrop-filter: blur(10px);
}

.nav-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo-text { 
    font-family: 'Orbitron'; 
    font-size: 1.4rem; 
    font-weight: bold; 
    text-decoration: none; 
    color: #fff; 
    letter-spacing: 1px; 
}

.logo-text span { 
    color: var(--blue); 
}

nav ul { 
    display: flex; 
    list-style: none; 
    gap: 20px; 
}

nav ul li a { 
    color: #fff; 
    text-decoration: none; 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    font-weight: 700; 
    transition: 0.3s; 
}

nav ul li a:hover {
    color: var(--blue);
}

/* --- HERO СЕКЦИЯ --- */
.hero { 
    padding: 80px 0; 
    text-align: center; 
}

.hero h1 { 
    font-family: 'Orbitron'; 
    font-size: 2.8rem; 
    margin-bottom: 20px; 
    line-height: 1.2; 
    word-wrap: break-word;
}

.description-text { 
    font-size: 1.1rem; 
    color: #bbb; 
    max-width: 800px; 
    margin: 0 auto 40px; 
}

/* --- СПЕШЕН БУТОН --- */
.emergency-badge {
    background: linear-gradient(45deg, #ff0000, #cc0000);
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    display: inline-block;
    margin: 20px 0;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.3);
    animation: pulseGlow 2s infinite;
    cursor: pointer;
}

@keyframes pulseGlow {
    0% { transform: scale(1); box-shadow: 0 10px 20px rgba(255, 0, 0, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 15px 30px rgba(255, 0, 0, 0.5); }
    100% { transform: scale(1); box-shadow: 0 10px 20px rgba(255, 0, 0, 0.3); }
}

/* --- ГРИД И КАРТИ --- */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    margin: 40px 0; 
}

.card { 
    background: var(--card-bg); 
    padding: 40px 30px; 
    border-radius: 15px; 
    border: 1px solid var(--border); 
    text-align: center;
    transition: 0.3s;
}

.card:hover {
    border-color: var(--blue);
    transform: translateY(-5px);
}

.card h3 { 
    color: var(--blue); 
    font-family: 'Orbitron'; 
    margin-bottom: 15px; 
}

/* --- СОЦИАЛНИ БУТОНИ --- */
.social-links { 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    margin: 30px 0; 
    flex-wrap: wrap; 
}

.social-btn {
    padding: 12px 20px; 
    border-radius: 30px;
    text-decoration: none; 
    color: white; 
    font-weight: bold; 
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.1); 
    display: flex; 
    align-items: center; 
    gap: 8px;
    transition: 0.3s;
}

.social-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.social-btn.viber { background: #7360f2; }
.social-btn.whatsapp { background: #25d366; }

/* =============================================
   МОБИЛНА ВЕРСИЯ - ОПТИМИЗИРАНА
   ============================================= */

@media (max-width: 768px) {
    .nav-content { 
        flex-direction: column; 
        gap: 15px;
        padding: 10px 0;
    }
    
    nav ul { 
        gap: 10px; 
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li a { 
        font-size: 0.8rem; 
        color: #fff;
    }

    .hero { 
        padding: 50px 15px; 
    }

    .hero h1 { 
        font-size: 1.8rem; 
        letter-spacing: 0; 
    }

    .description-text { 
        font-size: 1rem; 
        line-height: 1.6; 
        padding: 0 10px; 
    }

    .grid { 
        grid-template-columns: 1fr; /* Една карта на ред */
        gap: 20px; 
        padding: 0 10px; 
    }

    .card { 
        padding: 30px 20px; 
    }

    .emergency-badge { 
        font-size: 1.1rem; 
        padding: 15px 25px; 
        width: 100%; 
        max-width: 320px;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .social-btn { 
        width: 90%; 
        justify-content: center; 
        font-size: 1rem; 
        padding: 14px; 
    }
}

@media (max-width: 480px) {
    .logo-text { 
        font-size: 1.2rem; 
    }
    
    .hero h1 { 
        font-size: 1.5rem; 
    }

    nav ul {
        gap: 8px;
    }

    nav ul li a {
        font-size: 0.75rem;
    }
    
    .brand-dropdown-container {
    max-width: 400px;
    margin: 20px auto 40px;
    text-align: center;
}

.brand-select {
    width: 100%;
    padding: 15px;
    background: #111;
    color: white;
    border: 1px solid var(--primary);
    border-radius: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    outline: none;
    appearance: none; /* Премахва системната стрелка */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='18px' height='18px'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.brand-select:hover {
    background-color: #1a1a1a;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.2);
 }
}