/* Базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #121212;
    color: #f4f4f4;
    line-height: 1.6;
}

/* Шапка сайта */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #000;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #333;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo span {
    color: #e82127; /* Фирменный красный цвет */
}

nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 30px;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #e82127;
}

/* Главный экран (Hero) */
.hero {
    text-align: center;
    padding: 100px 20px;
    /* Используем фоновое изображение электромобиля с затемнением */
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), 
                url('https://images.unsplash.com/photo-1560958089-b8a1929cea89?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #ccc;
}

/* Кнопка */
.btn {
    display: inline-block;
    padding: 16px 36px;
    background-color: #e82127;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #c91b22;
    transform: translateY(-2px);
}

/* Секция услуг */
.services {
    padding: 80px 50px;
    text-align: center;
    background-color: #1a1a1a;
}

.services h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-weight: 600;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.card {
    background-color: #242424;
    padding: 40px 30px;
    border-radius: 8px;
    width: 320px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    border-top: 3px solid #e82127;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.card p {
    color: #aaa;
    font-size: 1rem;
}

/* Подвал */
footer {
    text-align: center;
    padding: 60px 20px 30px;
    background-color: #0a0a0a;
}

footer h2 {
    margin-bottom: 15px;
}

.contact-info {
    margin: 30px 0;
    font-size: 1.2rem;
}

.contact-info p {
    margin: 10px 0;
    color: #e82127;
}

.copyright {
    color: #555;
    font-size: 0.9rem;
    margin-top: 40px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 20px;
    }
    
    nav {
        margin-top: 20px;
    }
    
    nav a {
        margin: 0 10px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .cards {
        flex-direction: column;
        align-items: center;
    }
}