.m-empires-games-advanced .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: 32px
}

.m-empires-games-advanced .text-block {
    margin-top: -8px
}

.m-empires-games-advanced .section__title,.m-empires-games-advanced .text-block {
    max-width: 820px
}

.m-empires-games-advanced__link {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content
}

.m-empires-games-advanced__list {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3,1fr);
    margin-top: 8px
}

.m-empires-games-advanced__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: 24px;
    justify-content: space-between;
    position: relative
}

.m-empires-games-advanced__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-advanced__card:not(:has(.m-empires-games-advanced__card-bg)):before {
    display: none
}

.m-empires-games-advanced__card:not(:has(.m-empires-games-advanced__card-bg)) .m-empires-games-advanced__card-info {
    max-width: unset
}

.m-empires-games-advanced__card-bg {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 0
}

.m-empires-games-advanced__card-bg__img {
    display: block;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%
}

.m-empires-games-advanced__card-info {
    max-width: 220px;
    position: relative;
    z-index: 1
}

.m-empires-games-advanced__card-info__category {
    color: var(--text-secondary);
    display: block;
    font-size: 14px;
    font-weight: 400;
    line-height: 150%;
    margin-bottom: 8px;
    opacity: .8
}

.m-empires-games-advanced__card-info__title {
    font-family: var(--font-2);
    font-size: 24px;
    font-weight: 600;
    line-height: 130%;
    margin-bottom: 8px
}

.m-empires-games-advanced__card-info__tags {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-bottom: 8px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 4px
}

.m-empires-games-advanced__card-info__tag {
    background: var(--contrast-bg);
    border-radius: 16px;
    color: var(--contrast-color);
    display: block;
    font-size: 12px;
    padding: 4px 8px
}

.m-empires-games-advanced__card-info ul {
    gap: 10px;
    margin-top: 16px
}

.m-empires-games-advanced__card-info ul li {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center
}

.m-empires-games-advanced__card-info ul li:before {
    background: var(--theme-color);
    border-radius: 50%;
    content: "";
    height: 9px;
    min-width: 9px;
    top: 0;
    width: 9px
}

.m-empires-games-advanced__card-buttons {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2,1fr);
    margin-top: auto;
    position: relative;
    z-index: 1
}

.m-empires-games-advanced__card-buttons__item {
    padding-left: 16px;
    padding-right: 16px
}

@media (width <= 1000px) {
    .m-empires-games-advanced__list {
        grid-template-columns: repeat(2,1fr)
    }
}

@media (width <= 768px) {
    .m-empires-games-advanced .container {
        gap: 16px
    }

    .m-empires-games-advanced .text-block {
        margin-top: 0
    }

    .m-empires-games-advanced__card {
        min-height: 220px
    }

    .m-empires-games-advanced__card-info__title {
        font-size: 20px;
        font-weight: 600;
        line-height: 140%
    }
}

@media (width <= 600px) {
    .m-empires-games-advanced__list {
        grid-template-columns: repeat(1,1fr)
    }
}
