.m-empires-games {
    color: var(--text-main)
}

.m-empires-games .container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-flow: column nowrap;
    flex-flow: column nowrap;
    gap: 20px
}

.m-empires-games .section__title,.m-empires-games .text-block {
    max-width: 820px
}

.m-empires-games__list {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3,1fr);
    margin-top: 8px
}

.m-empires-games__card {
    border-radius: 16px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    min-height: 256px;
    overflow: hidden;
    padding: 16px;
    width: 100%;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-flow: column nowrap;
    flex-flow: column nowrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    background: var(--card-bg);
    color: var(--text-main);
    gap: 8px;
    justify-content: space-between;
    position: relative
}

.m-empires-games__card:before {
    background: -webkit-gradient(linear,right top,left top,from(rgba(28,26,53,0)),to(#1c1a35));
    background: linear-gradient(270deg,rgba(28,26,53,0),#1c1a35);
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1
}

.m-empires-games__card:not(:has(.m-empires-games__card-bg)):before {
    display: none
}

.m-empires-games__card:not(:has(.m-empires-games__card-bg)) .m-empires-games__card-info {
    max-width: unset
}

.m-empires-games__card-bg {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 0
}

.m-empires-games__card-bg__img {
    display: block;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%
}

.m-empires-games__card-info {
    max-width: 220px;
    position: relative;
    z-index: 1
}

.m-empires-games__card-info__title {
    font-family: var(--font-2);
    font-size: 24px;
    font-weight: 600;
    line-height: 130%;
    margin-bottom: 8px
}

.m-empires-games__card-info__description {
    font-size: 16px;
    font-weight: 400;
    line-height: 150%
}

.m-empires-games__card-buttons {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2,1fr);
    position: relative;
    z-index: 1
}

.m-empires-games__card-buttons__item {
    padding-left: 16px;
    padding-right: 16px
}

.m-empires-games__card ol,.m-empires-games__card ul {
    list-style: none
}

@media (width <= 1000px) {
    .m-empires-games__list {
        grid-template-columns: repeat(2,1fr)
    }
}

@media (width <= 768px) {
    .m-empires-games .container {
        gap: 16px
    }

    .m-empires-games__card {
        min-height: 220px
    }

    .m-empires-games__card-info__title {
        font-size: 20px;
        font-weight: 600;
        line-height: 140%
    }
}

@media (width <= 600px) {
    .m-empires-games__list {
        grid-template-columns: repeat(1,1fr)
    }
}
