body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #ffffff, #e0e0e0);
    text-align: center;
    color: #333;
}

header {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

nav {
    display: flex;
    gap: 15px;
    margin-right: 20px;
}

nav button {
    background: transparent;
    color: white;
    border: 1px solid white;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 20px;
    transition: all 0.3s;
}

nav button:hover {
    background: white;
    color: black;
}
#about {
    background-color: #ffffff; /* Белый фон */
    color: #333; /* Темно-серый текст */
    padding: 60px 20px;
    text-align: left;
    max-width: 900px;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#about h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #2C3E50; /* Темный цвет заголовка */
    text-align: center;
}
#services h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #2C3E50; /* Темный цвет заголовка */
    text-align: center;
}
#fleet h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #2C3E50; /* Темный цвет заголовка */
    text-align: center;
}
#payment h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #2C3E50; /* Темный цвет заголовка */
    text-align: center;
}
#map h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #2C3E50; /* Темный цвет заголовка */
    text-align: center;
}

#about p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

#about p strong {
    font-weight: bold;
    color: #2980B9; /* Цвет для выделения названия компании */
}

@media screen and (max-width: 768px) {
    #about {
        padding: 40px 15px;
    }

    #about h2 {
        font-size: 28px;
    }

    #about p {
        font-size: 16px;
    }
}

.logo {
    text-decoration: none;
}
.hero {
    background-color: black;
    color: white;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    margin-top: 50px;
    width: 500px;
    height: 300px;
    object-fit: contain;
    margin-bottom: 5px; /* Минимальный зазор между логотипом и заголовком */
}

.hero-title {
    margin: 0;
    font-size: 50px;
}

.hero-subtitle {
    margin-top: 4px;
    font-size: 30px;
}


.section {
    padding: 60px 20px;
    max-width: 900px;
    margin: 40px auto;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    
}
.services-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    justify-items: center;
}

.service-item {
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    text-align: center;
}

.service-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    transition: transform 0.3s;
}

.service-item:hover {
    transform: scale(1.05);
}
/* Всплывающее описание */
#tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    display: none;
    pointer-events: none;
}

/* Карта */
#moving-map {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Футер */
footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    text-align: center;
}
.fleet-gallery {
    display: flex;
    flex-direction: column;
    /* Автоматическая адаптация */
    gap: 20px;
    margin-top: 20px;
}

.fleet-item{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fleet-item img {
    width: 50%;
    border-radius: 10px;
}

/* Стили для анимации */
.section {
    opacity: 0; /* Изначально секция невидима */
    transform: translateY(50px); /* Начальная позиция (немного ниже) */
    transition: opacity 1s ease, transform 1s ease; /* Плавное изменение opacity и перемещение */
}

/* Класс, который будет добавляться при скролле */
.section.show {
    opacity: 1;
    transform: translateY(0); /* Позиция на месте */
}
.fleet-item img {
    border-radius: 10px;
}

.second{
    display: flex;
    flex-direction: row-reverse;
}

.fourth{
    display: flex;
    flex-direction: row-reverse;
}

.fleet-item .description {
    background: white;
    color: black;
    padding: 10px;
    border-radius: 50px;
    font-size: 25px;
    width: 50%;
    text-align: center;
}

.fleet-item:hover .description {
    display: block;
}

a {
    text-decoration: none;
}

.call-button {
    position: fixed;
    bottom: 20px;
    right: 80px;
    border-radius: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo{
    color: #fff;
}

.call-button img {
    width: 50px;
    height: 50px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.whatsapp-button img {
    width: 50px;
    height: 50px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.call-button:hover,
.whatsapp-button:hover {
    transform: scale(1.1);
}

.call-button:hover img,
.whatsapp-button:hover img {
    opacity: 1;
}

.payment-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.payment-gallery {
    background-color: #dcdcdc;
    border-radius: 10px;
    width: 400px;
    height: 270px;
    display: flex;
    flex-direction: column; /* Оставляем элементы внутри вертикально */
    align-items: center;
    justify-content: center;
}
.payment-title {
    justify-content: center;
}
.payment-item {
    display: flex;
    justify-content: start;
    gap: 20px;
    flex-wrap: wrap;
}
.purse {
    width: 50px;
    height: 50px;
}
.kaspi {
    width: 50px;
    height: 50px;
}
.chek {
    width: 50px;
    height: 50px;
}
.payment-text {
    font-weight: bold;
}
.payment-pharagraph {
    align-items: center;
    justify-content: center;
    padding: 20px;
}


@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav {
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 10px;
        margin-right: 0;
    }

    nav button {
        font-size: 12px;
        padding: 6px 12px;
    }

    .hero-logo {
        width: 80%;
        height: auto;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .section {
        padding: 30px 15px;
        margin: 20px auto;
    }

    .services-gallery {
        flex-direction: column;
        align-items: center;
        grid-template-columns: repeat(2, 1fr);
    }

    .service-item img {
        height: 200px;
    }

    .fleet-gallery {
        flex-direction: column;
    }

    .fleet-item {
        flex-direction: column;
        text-align: center;
    }

    .fleet-item img {
        width: 100%;
        max-width: 100%;
    }

    .fleet-item .description {
        width: 100%;
        font-size: 18px;
        margin-top: 10px;
    }

    .payment-container {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .payment-gallery {
        width: 90%;
        height: auto;
        align-items: center;
        padding: 20px 10px;
    }

    .payment-title {
        margin-left: 0;
        text-align: center;
    }

    .payment-item {
        margin-left: 0;
        justify-content: center;
    }

    footer {
        padding: 30px 10px;
    }

    .whatsapp-button,
    .call-button {
        bottom: 15px;
        width: 40px;
        height: 40px;
    }

    .whatsapp-button img,
    .call-button img {
        width: 40px;
        height: 40px;
    }

    #moving-map {
        height: 250px;
    }
}
