.head_mob_filter {
    display: none;
    width: 100%;
    margin-bottom: 20px;
    .title_block_h1 {
        font-size: 24px;
        line-height: 32px;
        letter-spacing: -1px;
    }
}
.special_offers {
    &.news {
        padding-top: 32px;
        position: relative;
        z-index: 1;
        .container {
            .special_offers_items {
                padding: 0;
            }
        }
    }
}
.flex_position_left {
    display: flex;
    justify-content: left;
}
.flex_position_right {
    display: flex;
    justify-content: right;
}
.flats_sort_block {
    display: block;
    width: 100%;
    position: relative;
    z-index: 2;
    .flats_settings_block {
        display: flex;
        width: 100%;
        padding-top: 24px;
        gap: 24px;
        flex-wrap: wrap;
        justify-content: space-between;
        .flex_position_left {
            flex: calc(100%/2);
            gap: 12px;
            position: relative;
            z-index: 2;
        }
        .flex_position_right {
            flex: calc(100%/3);
        }
        .flats_tags_block {
            display: flex;
            width: 100%;
            gap: 8px;
            .flats_tags_block_item {
                display: flex;
                background-color: rgba(255, 255, 255, 0.8);
                border-radius: 24px;
                padding: 4px 8px 4px 12px;
                cursor: pointer;
                span {
                    color: #726F6C;
                    font-family: 'RawlineSemiBold';
                    font-size: 12px;
                    display: block;
                    color: #3D3935;
                    line-height: 16px;
                }
                .close_tag {
                    width: 20px;
                    height: 20px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    cursor: pointer;
                    .leftright {
                        height: 1.4px;
                        width: 6.67px;
                        position: absolute;
                        margin-top: 0;
                        background-color: #3D3935;
                        border-radius: 2px;
                        transform: rotate(45deg);
                        transition: all .3s ease-in;
                    }
                    .rightleft {
                        height: 1.4px;
                        width: 6.67px;
                        position: absolute;
                        margin-top: 0;
                        background-color: #3D3935;
                        border-radius: 2px;
                        transform: rotate(-45deg);
                        transition: all .3s ease-in;
                    }
                }
            }
        }
        .flats_settings_block_select_news {
            width: 100%;
            height: 52px;
            select {
                display: none;
            }
            &.finish {
                padding: 16px 12px 16px 12px;
                display: flex;
                max-width: 260px;
                height: 52px;
                cursor: pointer;
            }
            &.type {
                padding: 16px 12px 16px 12px;
                width: 100%;
                max-width: 180px;
                height: 52px;
                cursor: pointer;
                .flats_select_items.finish {
                    margin-top: 28px;
                }
                
                
            }
            height: auto;
            border-radius: 8px;
            padding: 16px 12px 16px 12px;
            /* float: left;  */
            border: 1px #DCDBDA solid;
            &:hover, &:focus {
                border: 1px #3D3935 solid;
            }
            -moz-appearance:none; /* Firefox */
            -webkit-appearance:none; /* Safari and Chrome */
            appearance:none;
            
            position: relative;
            z-index: 1;
            .flats_settings_block_select_control_block {
                width: 100%;
                display: flex;
                justify-content: space-between;
                align-items: center;
                cursor: pointer;
                .flats_settings_block_select_item {
                    display: flex;
                    max-width: 258px;
                    gap: 4px;
                    flex-wrap: wrap;
                    span {
                        width: 100%;
                    }
                }
                .flats_settings_block_select_type {
                    display: block;
                    color: #726F6C;
                    font-family: 'RawlineSemiBold';
                    font-size: 13px;
                    line-height: 16px;
                }
                .flats_settings_block_select_name {
                    display: block;
                    color: #A7A5A3;
                    font-family: 'RawlineSemiBold';
                    font-size: 14px;
                    line-height: 20px;
                    cursor: pointer;
                }
                .flats_settings_block_select_button {
                    background: url(./img/ico/chevronDown.png);
                    width: 20px;
                    height: 20px;
                    position: relative;
                    cursor: pointer;
                    display: block;
                    &.active {
                        transform: rotate(180deg);
                        transform: 800ms;
                    }
                }
            }

            .flats_select_items {
                display: none;
                width: 100%;
                max-width: 283px;
                border: 1px #DCDBDA solid;
                border-radius: 8px;
                margin-top: 8px;
                height: auto;
                padding: 20px 8px 20px 20px;
                position: absolute;
                background-color: #FFFFFF;
                margin-top: 48px;
                margin-left: -12px;
                z-index: 9999;
                &.jk {

                }
                &.finish {
                    max-width: 100%;
                    display: none;
                }
                .overflow {
                    height: 100%;
                    overflow-y: scroll;
                    background-color: #ffffff;
                    overflow: auto;
                    overflow-x: hidden;
                    display: block;
                    width: 100%;
                    overflow-y: scroll;
                }
                .overflow::-webkit-scrollbar-thumb {
                    background-color: #CAC9C8;
                    border-radius: 12px;
                }
                .overflow::-webkit-scrollbar-track {
                    border-radius: 12px;
                    background-color: #FFFFFF;
                }
                .overflow::-webkit-scrollbar {
                    width: 3px;
                    height: 3px;
                }
                .flats_select_item:first-child {
                    padding-top: 0px;
                }
                .flats_select_item {
                    display: flex;
                    width: 100%;
                    flex-wrap: wrap;
                    gap: 16px;
                    padding-top: 16px;
                    max-width: 243px;
                    &.finish:first-child {
                        padding-top: 0;
                        margin-top: 0;
                    }
                    &.finish {
                        max-width: 282px;
                        height: 20px;
                        width: 100%;
                        padding-top: 0;
                        margin-top: 20px;
                        .flats_select_item_text {
                            border-bottom: unset;
                            padding-bottom: 0;
                            width: 100%;
                            padding-top: 0;
                            div {
                                width: 100%;
                                height: 20px !important;
                                label {
                                    height: 20px !important;
                                    > span {
                                        padding-left: 0 !important;
                                        color: #3D3935 !important;
                                        font-size: 15px !important;
                                    }
                                    > span::before {
                                        float: right !important;
                                        position: relative !important;
                                        background-size: contain !important;
                                        width: 20px !important;
                                        height: 20px !important;
                                    }
                                }

                            }

                        }
                    }
                    
                    span {
                        display: flex;
                        width: 100%;
                        gap: 16px;
                        justify-content: center;
                        align-items: center;
                        img {
                            width: 42px;
                            height: 42px;
                            border-radius: 24px;
                        }
                        span {
                            display: block;
                            text-transform: uppercase;
                            font-family: 'RawlineBold';
                            font-size: 14px;
                            line-height: 16px;
                            letter-spacing: 0.42px;
                        }
                    }
                    .flats_select_item_text {
                        display: block;
                        width: 100%;
                        border-bottom: 1px solid #DCDBDA;
                        padding-bottom: 16px;
                        div:first-child {
                            display: block;
                            float: left;
                            label {
                                display: flex;
                                justify-content: center;
                                align-items: center;
                                margin-bottom: 0;
                                height: 24px;
                                input {
                                    display: block;
                                    position: absolute;
                                    z-index: -1;
                                    width: 0;
                                    height: 0;
                                    opacity: 0;
                                }
                                span {
                                    display: inline-block;
                                    position: relative;
                                    padding-left: 36px;
                                    font-family: 'RawlineSemiBold';
                                    font-size: 15px;
                                    line-height: 20px;
                                }
                                span:before {
                                    content: "";
                                    display: inline-block;
                                    width: 24px;
                                    height: 24px;
                                    position: absolute;
                                    left: 0;
                                    top: 0;
                                    transition: background 0.3s ease;
                                    background: #EBF2D4;
                                    border-radius: 4px;
                                }
                                input[type=checkbox]:checked + span:before {
                                    background-image: url('./img/ico/checkbox.png');
                                }
                            }   
                        }
                        div {
                            display: flex;
                            font-family: 'RawlineMedium';
                            font-size: 12px;
                            color: #84817E;
                            line-height: 15px;
                            height: 24px;
                            justify-content: center;
                            align-items: center;
                            span {
                                display: block;
                                float: right;
                                font-family: 'RawlineMedium';
                                font-size: 12px;
                                color: #84817E;
                                line-height: 15px;
                            }
                        }
                    }
                }
            }     
        }
        .flats_buttons_list_type {
            width: 110px;
            justify-content: center;
            align-items: center;
            gap: 10px;
            display: flex;
            border: 1px rgba(61,57,53, 0.2) solid;
            border-radius: 50px;
            .flats_buttons_list_type_item {
                width: 42px;
                height: 42px;
                display: block;
                &.list {
                    background-image: url('./img/ico/iconListButtonDefault.png');
                    &.active {
                        background-image: url('./img/ico/iconListButtonActive.png');
                        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.03);
                        background-color: #ffff;
                        border-radius: 24px;
                    }
                }
                &.tab {
                    background-image: url('./img/ico/iconTableButtonDefault.png');
                    &.active {
                        background-image: url('./img/ico/iconTableButtonActive.png');
                        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.03);
                        background-color: #ffff;
                        border-radius: 24px;
                    }
                }
            }
        }
    }
}
@media screen and (min-width: 768px) and (max-width: 1023.9px) {
    .flats_sort_block {
        .container {
            .flats_settings_block {
                padding-top: 20px;
                .flex_position_left {
                    .flats_settings_block_select_news.type {
                        display: flex;
                        height: 42px;
                    }
                }
                .flex_position_right {
                    .flats_settings_block_select_news {
                        display: flex;
                        height: 42px;
                        max-width: 250px;
                        .flats_select_items  {
                            margin-top: 32px;
                        }
                    }
                }
            }
        }
    }
    .special_offers.news {
        padding-top: 20px;
    }
}
@media screen and (max-width: 767px) {
    header {
        &.active {
            position: fixed;
            z-index: 9;
            padding-bottom: 8px;
        }
    }
    .flats_sort_block {
        .container {
            .flats_settings_block {
                &.active {
                    transition: 800ms;
                    position: fixed;
                    background: #ffffff;
                    top: 64px;
                    width: 100%;
                    left: 0;
                    padding: 0 12px 16px 12px;
                    .head_mob_filter {
                        display: block;
                    }
                    .flex_position_right {
                        display: none;
                    }
                }
                gap: 0;
                padding-top: 20px;
                .flats_settings_block_select {
                    &.finish {
                        min-height: 48px;
                        height: auto !important;
                     }
                    .flats_select_items {
                        height: auto;
                        margin-top: 28px;
                        margin-left: 0;
                        position:relative;
                        border: none;
                        padding:0;
                        .flats_select_item {
                            &.finish {
                                max-width: 100%;

                            }
                            max-width: 100%;
                        }
                    }
                }
                .flats_settings_block_select_news {
                    .flats_settings_block_select_control_block {
                        span {
                            font-size: 13px;
                            line-height: 16px;
                        }
                        .flats_settings_block_select_button {
                            width: 16px;
                            height: 16px;
                        }
                    }
                    .flats_select_items {
                        &.finish {
                            padding: 0;
                            border: none;
                            margin-left: 0;
                            max-width: 100%;
                            .overflow {
                                .flats_select_item {
                                    max-width: 100%;
                                }
                            }
                        }
                    }
                }

                .flex_position_right {
                    &.news {
                         display: none;
                         flex:100%;
                        padding-top:0;
                        padding-bottom: 16px;
                        cursor: pointer;
                        .flats_settings_block_select {
                            width: 100%;
                            display: flex !important;
                            flex-wrap: wrap;
                            cursor: pointer;
                        }
                     }
                }
                .flex_position_left {
                    &.news {
                        display: none;
                        height: auto;
                        flex:100%;
                        
                        .flats_settings_block_select_news.type:first-child {
                            margin-bottom: 8px;
                        }
                        .flats_select_items {
                            position: relative;
                        }
                    }
                    .flats_settings_block_select_news.type {
                        height: unset;
                        max-width: 100%;
                        width: 100%;
                        align-items: center;
                        display: flex;
                        flex-wrap: wrap;
                    }
                }
                .flex_position_right {
                    .flats_settings_block_select_news {
                        display: flex;
                        height: unset;
                        max-width: 250px;
                        position: relative;
                        flex-wrap: wrap;
                        .flats_select_items  {
                            position: relative;
                        }
                    }
                }
            }
        }
    }
    .special_offers.news {
        padding-top: 20px;
        .container {
            .special_offers_items {
                flex-wrap: wrap;
                a {
                    display: flex;
                    width: 100%;
                    flex-wrap: wrap;
                    .special_offers_item {
                        max-width: 100%;
                    }
                }
                
            }
        }
    }
    .first_section_in_page {
        &.news {
            padding-top: 8px;
            .container {
                .h1_block_head {
                    .title_block_h1 {
                        font-size: 24px !important;
                        line-height: 32px;
                        letter-spacing: -1px;
                    }
                }
            }
        }
    }
    .flex_position_right {
        padding-top: 16px;
        flex: 100%;
        justify-content: center;
        cursor: pointer;
        .flats_settings_block_select_news  {
            max-width: 100% !important;
        }
    }
    
}
@media screen and (max-width: 600px) {
    .special_offers {
        &.news {
            .container {
                .special_offers_items {
                    a {
                        max-width: 48%;
                    }
                }
            }
        }
    }
}
@media screen and (max-width: 530px) {
    .special_offers {
        &.news {
            .container {
                .special_offers_items {
                    a {
                        max-width: 100%;
                    }
                }
            }
        }
    } 
}