/* Общие стили */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: green;
    margin: 0;
    height: 100vh;
}

.block {
    width: 90%;
    height: auto;
    aspect-ratio: 4 / 5;
    /* Сохранение пропорций */
    background-image: url("img/ontaxi.jpg");
  
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    border-radius: 30px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 5%;
}

.button-container {
    position: absolute;
    bottom: 3%;
    display: flex;
    gap: 25px;
}

.block a img {
    width: 35vw;
    max-width: 300px;
    height: auto;
    transition: transform 0.3s ease-in-out;

}

.block a img:hover {
    transform: scale(1.1);
    border: 5px solid rgb(5, 230, 5);
    border-radius: 30px;

}

/* Медиазапрос для мобильных */
@media (max-width: 768px) {
    .block {
       width: 95%;
        height: auto;
        aspect-ratio: 4 / 5;
        background-size: cover;
        background-position: 20% center;
        
    }

    .button-container {
        bottom: 5%;
    }

    .block a img {
        width: 35vw;
        max-width: 140px;

    }
}

/* Медиазапрос для более широких экранов */
@media (min-width: 769px) {
    .block {
        width: 80%;
        aspect-ratio: 4 / 5;
        /* Пропорции для больших экранов */
    }

    .button-container {
        bottom: 3%;
    }

    .block a img {
        width: 50vw;
        max-width: 300px;
    }
}

/* HTML структура */