.m-empires-how-to {
    color: var(--text-main)
}

.m-empires-how-to .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: 24px
}

.m-empires-how-to .section__title,.m-empires-how-to .text-block {
    max-width: 820px
}

.m-empires-how-to__steps {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    margin-top: 8px;
    width: 100%;
    grid-gap: 16px
}

.m-empires-how-to__steps-card {
    background: var(--card-bg);
    border-radius: 16px;
    color: var(--text-secondary);
    padding: 16px;
    width: 100%;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between
}

.m-empires-how-to__steps-card,.m-empires-how-to__steps-card__info {
    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: 16px
}

.m-empires-how-to__steps-card__num {
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
    opacity: .8
}

.m-empires-how-to__steps-card__title {
    color: var(--text-main);
    font-family: var(--font-2);
    font-size: 24px;
    font-weight: 600;
    line-height: 130%
}

.m-empires-how-to__steps-card__description {
    font-size: 16px;
    font-weight: 400;
    line-height: 150%
}

.m-empires-how-to__steps-card__img {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    width: 100%
}

.m-empires-how-to__steps-card__img-content {
    display: block;
    height: auto;
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%
}

@media (width <= 1000px) {
    .m-empires-how-to__steps {
        grid-template-columns: repeat(2,1fr)
    }
}

@media (width <= 768px) {
    .m-empires-how-to .container {
        gap: 16px
    }

    .m-empires-how-to__steps {
        gap: 24px;
        grid-template-columns: repeat(1,1fr);
        margin-top: 0
    }

    .m-empires-how-to__steps-card__num {
        font-size: 14px;
        font-weight: 400;
        line-height: 150%
    }

    .m-empires-how-to__steps-card__title {
        font-size: 20px;
        font-weight: 600;
        line-height: 140%
    }
}
