.routes__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-top: 40px
}

@media (max-width:991px) {
    .routes__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px
    }
}

@media (max-width:567px) {
    .routes__list {
        grid-template-columns: repeat(1, 1fr);
        gap: 10px
    }
}

.routes-item {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    height: auto;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .2);
    -webkit-box-shadow: 0 4px 20px rgba(0, 0, 0, .2);
    -moz-box-shadow: 0 4px 20px rgba(0, 0, 0, .2);
    -ms-box-shadow: 0 4px 20px rgba(0, 0, 0, .2);
    -o-box-shadow: 0 4px 20px rgba(0, 0, 0, .2);
    transition: all 0.2s ease-in-out
}

.routes-item:hover .routes-item__btn {
    transform: scaleY(1);
    opacity: 1
}

.routes-item:hover .routes-item__hover-link::after {
    opacity: 1
}

.routes-item:hover .routes-item__img img {
    transform: scale(1.2)
}

.routes-item__img {
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    margin-bottom: 10px
}

.routes-item__img img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}

.routes-item__content {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 15px;
    padding-bottom: 135px;
    gap: 15px;
    z-index: 2
}

.routes-item__title {
    font-weight: 900;
    font-size: 20px
}

.routes-item__text {
    font-size: 14px
}

.routes-item__button {
    position: absolute;
    width: 100%;
    padding: 20px;
    bottom: 0px;
    left: 0;
}

.routes-item__button button {
    width: 100%;
    position: relative;
}

.routes-item__hover-link {
    display: block;
    width: 100%;
    height: 100%;
    z-index: 3
}

.routes-item__btn {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    margin: 0 20px;
    padding: 10px 20px;
    font-size: 14px;
    transform: scaleY(0);
    opacity: 0;
    transform-origin: top;
    transition: transform 0.3s ease, opacity 0.3s ease
}

.routes-item:hover {
    filter: drop-shadow(0 10px 40px rgba(52, 44, 1, .2))
}

@media (max-width:767px) {
    .routes-item__btn {
        font-size: 12px;
        width: 80%;
        height: 48px;
        align-items: center;
        display: flex;
        justify-content: center
    }

    .routes-item__content {
        padding: 10px;
        padding-bottom: 135px;
    }

    .routes-item__title {
        font-size: 21px
    }

    .routes-item__text {
        margin-top: 5px;
        font-size: 12px
    }
}

.routes__btn-block {
    max-width: 48%;
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center
}
@media (max-width:567px) { 
    .routes-item__img img {
        height: 100%;
    }}

@media (max-width:1199px) {
    .routes__btn-block {
        max-width: unset
    }
}

.routes__btn-title {
    font-weight: 700;
    margin-right: 10px;
    font-size: 24px;
    line-height: 1.3
}

.routes__btn {
    flex-shrink: 0;
    padding: 25px 30px;
    font-size: 16px
}

@media (max-width:991px) {
    .routes__btn {
        padding: 16px 40px;
        font-size: 14px
    }
}

@media (max-width:767px) {
    .routes__btn {
        margin-top: 15px;
        font-size: 12px;
        padding: 16px 30px
    }

    .routes__btn-title {
        font-size: 18px;
        text-align: center;
        margin: 0
    }

    .routes__btn-block {
        flex-direction: column
    }
}