body, html {
    height: 100%;
    margin: 0;
}

.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content {
    flex: 1;
}

.car-card {
    height: 400px;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    align-items: center;
    height: 300px;
    background: #838383;
}

.car-card img {
    max-height: 300px;
    width: auto;
    object-fit: contain;
}

.car-price {
    font-size: 1.5rem;
    font-weight: bold;
}

.car-title {
    font-size: 1.25rem;
    font-weight: bold;
}

.car-description {
    font-size: 1rem;
    color: #6c757d;
}

.card-body {
    padding: 16px;
}

.list-inline-item {
    margin-right: 15px;
}

.far, .fas {
    margin-right: 5px;
}

/* Стилізація секції про послуги */
.services-section {
    background-color: #212529;
    color: white;
    padding: 50px 0;
    text-align: center;
    position: relative;
}

.services-section h2 {
    color: #ffc107;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.services-section p {
    color: #adb5bd;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.services-list {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.services-list li {
    background: #343a40;
    margin: 10px;
    padding: 20px;
    border-radius: 10px;
    width: 30%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, background-color 0.3s;
}

.services-list li:hover {
    background-color: #ffc107;
    transform: translateY(-10px);
    color: black;
}

.services-list li i {
    font-size: 2rem;
    color: #ffc107;
    margin-bottom: 15px;
}

.services-list li:hover i {
    color: #212529;
}

.services-list li h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.services-list li p {
    font-size: 1rem;
    color: #adb5bd;
}

.services-list li:hover p {
    color: #212529;
}

@media (max-width: 768px) {
    .services-list li {
        width: 100%;
    }
}

/* Стилізація header */
header {
    background: linear-gradient(90deg, #0d6efd, #6610f2);
    color: white;
    padding: 80px 0 40px; /* Додано відступ зверху для навбару */
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
}

header h1 {
    font-size: 3rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

header p {
    font-size: 1.2rem;
    letter-spacing: 1px;
}

header i {
    font-size: 4rem;
    margin-bottom: 15px;
    color: #ffc107;
    display: block;
}

/* Анімація заголовку */
header i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Додаткові стилі для навбару */
nav.navbar {
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}