/* Основные стили */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #fff;
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    position: relative;
    text-align: center;
    height: 300px;
    overflow: hidden;
}

.banner {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Унифицированное меню */
.menu {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 1000px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
}

.menu ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.menu ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    transition: color 0.3s;
}

.menu ul li a:hover {
    color: #ffa500;
}

.buttons {
    display: flex;
    gap: 20px;
}

.btn {
    text-decoration: none;
    color: #fff;
    background: linear-gradient(45deg, #ff4500, #ff6347);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 18px;
    transition: background 0.3s, transform 0.2s;
}

.btn:hover {
    background: linear-gradient(45deg, #ff6347, #ff4500);
    transform: scale(1.05);
}

/* Заголовки страниц */
.page-title {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    margin: 40px 0;
    letter-spacing: 1px;
    color: #fff;
}

.page-title span {
    color: #ffa500;
}

.page-title .yellow {
    color: #ffa500;
}

/* Контейнер для машин */
.cars-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.car-item {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
}

.car-item.left {
    flex-direction: row;
}

.car-item.right {
    flex-direction: row-reverse;
}

.car-item img {
    width: 45%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.car-item .description {
    max-width: 50%;
    text-align: left;
    color: #ccc;
}

.car-item h2 {
    font-size: 24px;
    color: #ffa500;
    margin-bottom: 10px;
}

.car-item p {
    font-size: 16px;
    line-height: 1.6;
}

/* Футер */
footer {
    text-align: center;
    padding: 20px;
    background-color: #000;
    color: #aaa;
    font-size: 14px;
    width: 100%;
    position: relative; /* Убедимся, что футер остаётся внизу */
    margin-top: auto; /* Футер опускается вниз страницы */
    box-sizing: border-box;
}

footer p {
    margin: 0;
    padding: 0;
}