.cards {
    margin-top: 42px;
}

.cards_head {
    display: flex;
    justify-content: space-between;
}

.cards_head img {
    width: 18px;
    height: 18px;
}

.chf_current,
.cards_head_profiles {
    display: flex;
    align-items: center;
}

.chf_current {
    transition: .3s;
    cursor: pointer;
}

.chf_current svg{
    width: 18px;
    height: 18px;
}
.chf_current svg path {
    transition: .3s;
}

.chf_current:hover {
    color: var(--c-red);
}

.chf_current:hover svg path {
    fill: var(--c-red);
}

.chf_current span,
.ch_profiles_count {
    padding-top: 2px;
    margin-left: 8px;
}

.cards_head_filter {
    position: relative;
    z-index: 2;
}

.chf_list {
    display: none;
    width: 180px;
    background-color: var(--c-white);
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
}

.chf_list_row {
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 2px 16px 0;
    height: 40px;
    transition: .3s;
}

.chf_list_row:hover {
    background-color: var(--c-red-light);
}

.cards_list {
    --elems: 3;
    --gapX: 72px;
    --gapY: 30px;
    gap: var(--gapY) var(--gapX);
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
}

.cards_list_item {
    width: calc((100% - var(--gapX) * (var(--elems) - 1)) / var(--elems));
    background-color: var(--c-white);
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}

.cards_li_link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.cards_li_link:hover {
    opacity: 1;
}

.cards_li_pic {
    height: 368px;
}

.cards_lip_img,
.cards_lip_img img {
    width: 100%;
    height: 100%;
}

.cards_lip_img {
    overflow: hidden;
    border-radius: 0 0 12px 12px;
    transition: transform .3s;
}

.cards_lip_img img {
    object-fit: cover;
    transition: transform .3s;
}

.cards_list_item:hover .cards_lip_img img {
    transform: scale(1.05);
}

.cards_lip_favo,
.cards_lip_tags {
    top: 20px;
    position: absolute;
}

.cards_lip_favo {
    cursor: pointer;
    right: 20px;
    z-index: 100;
}

.cards_lip_favo svg path {
    transition: .3s;
    fill: #fff0;
}

.cards_lip_favo:hover svg path {
    stroke: var(--c-red);
}

.cards_lip_favo.active svg path {
    fill: var(--c-red);
    stroke: var(--c-red);
}

.cards_lip_favo.active:hover svg path {
    fill: var(--c-red);
    stroke: var(--c-white);
}

.cards_lip_favo svg {
    width: 22px;
    height: auto;
}

.cards_lip_favo svg path {
    transition: .3s;
}

.cards_lip_favo.active svg path {
    fill: var(--c-red);
}

.cards_lip_tags {
    left: 10px;
    width: 71px;
    font-size: 18px;
    color: var(--c-white);
    z-index: 0;
}

.cards_lip_tag {
    padding-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    width: 100%;
    border-radius: 12px;
}

.cards_lip_tag + .cards_lip_tag {
    margin-top: 8px;
}

.cards_li_info {
    padding: 16px 24px 18px;
}

.cards_lii_stats {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
}

.cards_liis_metro {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cards_liis_color {
    border-radius: 100%;
    width: 24px;
    height: 24px;
}

.cards_lii_name {
    text-align: center;
    font-size: 24px;
}

.cards_liis_metro,
.cards_liis_price {
    padding-top: 2px;
}

.cards_foot {
    display: flex;
    justify-content: center;
    margin-top: 52px;
}

.cards_foot_more {
    cursor: pointer;
    width: 368px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    font-size: 20px;
    color: var(--c-white);
    border-radius: 12px;
    padding-top: 2px;
    background-color: var(--c-red);
    transition: .3s;
}

.cards_foot_more:hover {
    opacity: .7;
}

@media screen and (max-width: 1728px) {
    .cards {
        margin-top: 34px;
    }

    .cards_list {
        --gapX: 20px;
        --gapY: 20px;
        margin-top: 20px;
    }

    .cards_lip_tags {
        width: 55px;
        font-size: 14px;
    }

    .cards_lip_favo, .cards_lip_tags {
        top: 18px;
    }

    .cards_lip_tag {
        padding-top: unset;
        height: 28px;
    }

    .cards_lip_tag svg{
        height: 20px;
    }

    .cards_lip_tag + .cards_lip_tag {
        margin-top: 4px;
    }

    .cards_lii_name {
        font-size: 18px;
    }

    .cards_lii_stats {
        font-size: 16px;
        margin-top: 10px;
    }

    .cards_liis_color {
        width: 20px;
        height: 20px;
    }

    .cards_li_info {
        padding: 16px;
    }

    .cards_liis_metro {
        max-width: 170px;
        margin-right: auto;
        margin-left: 16px;
    }

    .cards_li_pic {
        height: 330px;
    }

    .cards_foot {
        margin-top: 30px;
    }

    .cards_foot_more {
        font-size: 16px;
        width: 172px;
    }
}

@media screen and (max-width: 1440px) {
    .cards_li_pic {
        height: 280px;
    }
}

@media screen and (max-width: 1240px) {
    .cards_li_pic {
        height: 254px;
    }
}

@media screen and (max-width: 1140px) {
    .cards_li_pic {
        height: 317px;
    }
}

@media screen and (max-width: 1032px) {
    .cards_li_pic {
        height: 249px;
    }

    .cards_list {
        --gapX: 10px;
        --gapY: 10px;
    }

    .cards_lip_favo, .cards_lip_tags {
        top: 12px;
    }

    .cards_lip_favo {
        right: 12px;
    }

    .cards_liis_metro {
        max-width: 106px;
    }
}

@media screen and (max-width: 808px) {
    .chf_current,
    .cards_head_profiles {
        font-size: 18px;
    }

    .cards_list {
        --elems: 2;
    }

    .cards_liis_metro {
        max-width: 90px;
    }

    .cards {
        margin-top: 40px;
    }

    .cards_list {
        margin-top: 23px;
    }

    .cards_foot_more {
        width: 100%;
        height: 56px;
    }
}

@media screen and (max-width: 495px) {
    .cards_liis_color {
        width: 23px;
        height: 23px;
    }

    .cards_list {
        --elems: 2;
    }

    .cards_li_pic {
        height: calc(100vw * 475 / 495);
    }

    .cards_liis_metro {
        margin-left: 0;
        max-width: calc(100%);
        font-size: 12px;
        overflow: visible;
        text-align: center;
        margin-right: 0;    
    }

    .cards_lii_name {
        font-size: 23px;
    }

    .cards_li_info {
        padding: 16px 22px;
    }

    .cards_lii_stats {
        font-size: 18px;
        flex-direction: column;
        gap:10px;
    }

    .cards_liis_price{
        order:-1;
    }

    .cards_lip_favo, .cards_lip_tags {
        top: 19px;
    }

    .cards_lip_favo {
        right: 19px;
    }

    .cards_lii_stats {
        margin-top: 14px;
    }

    .cards_foot {
        margin-top: 24px;
    }
}

.cards_lii_mob{
    display: none;
}

@media screen and (max-width: 495px) {

    .cards_li_pic{
        height: calc(100vw* 475 / 620);
    }
    .cards_list_item{
        display: flex;
        gap: 10px;
        background: none;
        border-radius: 0px;
        width: 100%;
    }

    .cards_lii_name{
        text-align: left;
    }

    .cards_li_pic{
        width: 50%;
        border-radius: 20px;
        overflow: hidden;
    }

    .cards_li_pic .cards_lip_tags {
        display: none;
    }

    .cards_li_info{
        padding: 0;
        width: 50%;
    }

    .cards_lii_stats{
        display: none;
    }

    .cards_lii_mob{
        display: block;
        margin-top: 15px;
    }

    .cards_lii_mob_metro{
        display: flex;
        gap: 12px;
        align-items: center;
    }

    .cards_lii_mob_metro_round{
        width: 24px;
        height: 24px;
        border-radius: 50%;
    }

    .cards_lii_mob_metro_name {
        font-size: 16px;
        line-height: 17px;
    }

    .cards_lii_mob_tags{
        margin-top: 15px;
        display: flex;
        gap:5px;
    }

    .cards_lii_mob_tags .cards_lip_tag + .cards_lip_tag{
        margin-top: 0;
    }

    .cards_lii_mob_tags .cards_lip_tag{
        width: 36px;
        height: 36px;
        color:#fff;
    }

    .cards_lii_mob_tags .cards_lip_tag svg {
        height: 25px;
    }

    .cards_lii_mob_stat{
        margin-top: 15px;
        display: flex;
        gap:22px;
    }

    .cards_lii_mob_prices{
        margin-top:15px;
        display: flex;
        flex-direction: column;
        gap:6px;
    }

    .cards_lii_mob_prices_item{
        background: rgba(148, 148, 148, 0.2);
        width: 100%;
        display: flex;
        padding: 10px 7px;
        gap: 10px;
        justify-content: space-between;
        align-items: center;
    }

    .cards_lii_mob_prices_name{
        font-size: 11px;
    }

            
}
