body {
    font-family: 'Manrope', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #333;
}

a {
    color: inherit; /* Наследовать цвет */
    font-weight: 700;
    text-decoration: none; /* Убрать подчеркивание */
}

a:hover, a:focus {
    text-decoration: none; /* Убрать подчеркивание при наведении и фокусе */
}

.top-bar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: transparent; /* Изначально прозрачный */
    font-weight: 700;
    color: #ffffff; 
    padding: 10px 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    transition: background-color 0.3s, color 0.3s; /* Плавный переход для фона и цвета */
}

.top-bar .phone-number {
    color: #ffffff; 
}

.top-bar.scrolled {
    background-color: rgb(255, 255, 255); /* Полупрозрачный белый цвет при прокрутке */
    color: #333;
}

.top-bar.scrolled .phone-number {
    color: #333;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
}

.top-bar a {
    color: inherit; /* Наследовать цвет */
    text-decoration: none;
    font-size: 1em;
}

.hero {
    position: relative;
    height: 100vh;
    background: linear-gradient(to bottom right, #000627, #001175);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-top: 70px; /* Чтобы учесть высоту фиксированной полоски */
}

.hero-content {
    color: white;
    text-align: left;
    z-index: 2;
    flex: 1;
}

.hero-content h1 {
    font-size: 5em;
    margin-left: 30px;
}

.car-image {
    max-height: 100%;
    max-width: 60%;
    filter: drop-shadow(0 0 100px rgba(0, 1, 216, 0.75));
    z-index: 1;
}

.services {
    padding: 50px 20px;
    text-align: center;
}

.services h1, h2 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #03045e; /* Новый акцентный цвет */
}

.services p {
    font-size: 1em;
    margin-bottom: 30px;
}

.services a {
    color: #03045e; /* Новый акцентный цвет */
    text-decoration: none;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-content: center;
}

.service-item {
    position: relative;
    text-align: center;
    transition: transform 0.3s;
    padding: 20px;
}

.service-item img {
    max-width: 100%;
    transition: transform 0.3s;
}

.service-item:hover img {
    transform: scale(1.1);
}

.service-item h3 {
    margin-top: 10px;
    font-size: 1.2em;
    color: #03045e; /* Новый акцентный цвет */
}

.map {
    padding: 50px 20px;
    text-align: center;
}

#yandex-map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
}

.contact-form {
    padding: 50px 20px;
    text-align: center;
}

.contact-form form {
    display: inline-block;
    text-align: left;
    max-width: 400px;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.contact-form label {
    display: block;
    margin: 10px 0 5px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
}

.contact-form button {
    width: 100%;
    padding: 10px;
    background-color: #03045e; /* Новый акцентный цвет */
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
}

.contact-form button:hover {
    background-color: #023e8a; /* Темный оттенок акцентного цвета при наведении */
}

.footer {
    background-color: #f8f8f8;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #ddd;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-section:nth-child(2) {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle; /* Выровнять иконки вертикально по центру */
}

a.contact-icon-wrapper {
    display: inline-block; /* Чтобы учитывать размеры ссылок */
    vertical-align: middle; /* Выровнять ссылки вертикально по центру */
    margin-right: 5px;
}

.phone-number {
    font-size: 1em;
    color: #333;
}

@media (max-width: 768px) {
    .hero {
        height: 300px;
    }
    
    .hero-content {
        text-align: center;
    }

    .hero-content h1 {
        font-size: 5em;
        margin: 0;
    }

    .car-image {
        display: none;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 3.5em;
        margin: 0;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .footer-content, .footer-section {
        flex-direction: column;
        align-items: center;
    }

    
}

@media (max-width: 390px) {
    .contact-form form {
        width: 100%;
        padding: 0 20px;
    }
}
