::-webkit-scrollbar {
    height: 2px;
    width: 3px;
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(150, 150, 150, 0.5) transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(150, 150, 150, 0.3);
    border-radius: 5px;
    border: 1px solid transparent;
}

::-webkit-scrollbar-track {
    background: transparent;
    width: 3px;
}

.filter-new {
    width: 100%;
}

.filter-new .filter-title {
    font-weight: 700;
    font-size: 32px;
    line-height: 120%;
    letter-spacing: 0.04em;
    color: #000000;
    margin-bottom: 28px;
}

.filter-new .heading-mob {
    display: none;
}

.filter-new .padding {
    padding: 24px;
    background-color: #FFFFFF;
    border-radius: 12px;
}

.filter-new .filter__form {
    width: 100%;
}

#filter_sec {
    z-index: 100;
    min-height: 283px;
}

#filter_sec.fixed {
    position: sticky;
}

#filter_sec.hide-filter {
    transform: translateY(calc(-100% + 60px));
    box-shadow: none !important;
}

#filter_sec.box-shadow {
    top: -64px;
    box-shadow: 19px 0 25px rgba(0, 0, 0, 0.27);
    transition: all 0.5s ease-in-out;
}


.filter-new .filter__form .filter__wrapper {
    display: grid;
    grid-template-columns: 292px 275px 324px 232px auto;

    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 0;

    grid-column-gap: 16px;


    margin-bottom: 16px;
}


.filter-new .filter__form .input-wrapper {
    /*min-width: 200px;*/
    position: relative;
}

.filter-new .filter__form .select-wrapper {
    /*width: 232px;*/
}

.filter-new .filter__form .input-wrapper .title {
    font-weight: 400;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.04em;
    color: #696969;
    margin-bottom: 12px;
}

.filter-new .filter__form .input-wrapper .input-range {
    display: flex;
    justify-content: space-between;
    background: #F6F6F6;
    border-radius: 4px;
    padding: 15px 16px;

    position: relative;
}

.filter-new .filter__form .input-wrapper .input-range .input-from-to-wrapper {
    width: 100%;
    white-space: nowrap;
    /*position: relative;*/
}

.filter-new .filter__form .input-wrapper .input-range .input-from-to {
    background: transparent;
    border: 0;
    width: 100%;
    padding: 0;
    font-size: 16px;
    font-weight: 500;
}

.filter-new .filter__form .input-wrapper .input-range .input-from-to-wrapper span {
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0.04em;
    color: #B3B3B3;
    user-select: none;
}

.filter-new .filter__form .input-wrapper .input-range .separator {
    font-weight: 500;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0.04em;
    color: #000000;
    margin: 0 20px;
    user-select: none;
}


.filter-new .filter__form .input-wrapper .ui-widget {
    font-weight: inherit;
    font-family: inherit;
}

/*input range ui*/
.filter-new .filter__form .noUi-horizontal {
    height: 2px;
}

.filter-new .filter__form .noUi-target {
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;

    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    width: calc(100% - 32px);
}

.filter-new .filter__form .noUi-connect {
    background-color: #0047B0;
}

.filter-new .filter__form .noUi-horizontal .noUi-tooltip {
    display: none;
}

.filter-new .filter__form .noUi-handle {
    background: #0047B0;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    box-shadow: none;
    border: none;
}

.filter-new .filter__form .noUi-horizontal .noUi-handle {
    right: -6px;
    top: -5.5px;
}

.filter-new .filter__form .noUi-handle:after,
.filter-new .filter__form .noUi-handle:before {
    display: none;
}

.filter-new .filter__form .input-wrapper .input-checkbox-multi {
    display: flex;
    justify-content: flex-start;
    grid-column-gap: 4px;
}

.filter-new .filter__form .input-wrapper .input-checkbox-multi .checkbox-label {
    background: #F6F6F6;
    border-radius: 4px;
    margin: 0;
    border: none;
    padding: 16px;

    font-weight: 500;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0.04em;
    color: #000000;
}

.filter-new .filter__form .input-wrapper .input-checkbox-multi .checkbox-label.ui-visual-focus {
    box-shadow: none;
}

.filter-new .filter__form .input-wrapper .input-checkbox-multi .checkbox-label.ui-state-active {
    /*color: #1D1E1E;*/
    color: #FFFFFF;
    border: none;
    box-shadow: none;
    background-color: #0047B0;
}

/*select*/

.filter-new .filter__form .input-wrapper .select.hidden {
    display: none;
}

.select__value {
    padding: 16px;
    height: 48px;
    font-weight: 500;
    font-size: 16px;
    line-height: 16px;
    letter-spacing: 0.04em;
    color: #000000;

    background-color: #f6f6f6;
    border-radius: 4px;

    cursor: pointer;
    z-index: 1;

    -webkit-appearance: none;
    -moz-appearance: none;

    transition: border 200ms ease, color 200ms ease, background-color 200ms ease;
    position: relative;
}

.select__value::after {
    content: "";
    position: absolute;
    width: 15px;
    height: 9px;
    right: 21px;
    top: calc(50% - 5px);
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDE0IDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xIDFMNi4yOTI4OSA2LjI5Mjg5QzYuNjgzNDIgNi42ODM0MiA3LjMxNjU4IDYuNjgzNDIgNy43MDcxMSA2LjI5Mjg5TDEzIDAuOTk5OTk4IiBzdHJva2U9ImJsYWNrIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8L3N2Zz4K");
    background-repeat: no-repeat;

    transition: background 200ms ease, transform 200ms ease;
}


.select__options {
    width: 100%;
    position: absolute;
    top: unset;
    left: 0;
    display: none;
    z-index: 1;
    background: #f6f6f6;

    max-height: 305px;
    overflow-y: auto;

    border-radius: 0 0 4px 4px;

    padding: 0;
    cursor: pointer;

    box-shadow: 0px 25px 32px rgba(0, 0, 0, 0.12);

    opacity: 0;
    box-sizing: border-box;
    transition: opacity 200ms ease, border-color 200ms ease, background-color 200ms ease;
}

.filter-new .filter__form .mCSB_scrollTools .mCSB_dragger {
    right: 7px;
    width: 2px;
}

.filter-new .filter__form .mCSB_scrollTools .mCSB_draggerRail {
    background-color: transparent;
    width: 0;
    height: 0;
}

.filter-new .filter__form .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
    background-color: #D4D4D4;
    width: 2px;
}


.select__option {
    padding: 16px;
    /*border-top: 1px solid #D4D4D4;*/
    z-index: 2;
    position: relative;

    transition: background-color 0.2s ease, color 0.2s ease;
}

.select__option::before {
    content: '';
    position: absolute;
    width: calc(100% - 34px);
    height: 1px;
    left: 16px;
    right: 18px;
    top: 0;
    background-color: #D4D4D4;

    transition: background-color 0.2s ease;
}

.select__option:hover {
    background-color: #3D81DA;
    color: #FFFFFF;
}

.select__option:active {
    background-color: #0047B0;
    color: #FFFFFF;
}

.select__option:hover::before {
    background-color: #3D81DA;
}

.select--active .select__value {
    border-color: transparent;
    border-radius: 4px 4px 0 0;
}

.select--active .select__value::after {
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDE0IDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xIDFMNi4yOTI4OSA2LjI5Mjg5QzYuNjgzNDIgNi42ODM0MiA3LjMxNjU4IDYuNjgzNDIgNy43MDcxMSA2LjI5Mjg5TDEzIDAuOTk5OTk4IiBzdHJva2U9ImJsYWNrIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8L3N2Zz4K");
    transform: scale(-1);
}

.select--active .select__options {
    display: block;
    opacity: 1;
}

.filter-new .filter__form .input-wrapper.address-wrapper {
    /*min-width: 437px;*/
}


.filter-new .filter__form .f-address {
    width: 100%;
    padding: 0px 16px;
    font-size: 16px;
    font-weight: 500;
    height: 48px;
    background: #F6F6F6;
    border: 1px solid transparent;
    border-radius: 4px;
    text-overflow: ellipsis;
}


.filter-new .filter__form .f-address::placeholder {
    color: #B3B3B3;
}

.filter-new .filter__form .helper {
    position: relative;
}

.filter-new .filter__form .helper__list {
    position: absolute;
    z-index: 5;
    background-color: #f6f6f6;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    border-radius: 0 0 10px 10px;
    filter: drop-shadow(2px 16px 7px rgba(0, 0, 0, 0.12));
    top: 48px;
}

.filter-new .filter-buttons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.filter-new.more-filters .filter-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}

.filter-new .filter-buttons .btn {
    font-weight: 500;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0.04em;
    padding: 16px 24px;
    font-family: inherit;
}

.filter-new .filter-buttons .btn:not(:first-child) {
    margin-left: 12px;
}

.filter-new .filter-buttons .btn--gray {
    display: none;
}

.filter-new.more-filters .filter-buttons .btn--gray {
    display: flex;
    padding: 14px 16px;
    height: 48px;
}

.filter-new.more-filters .filter-buttons .to-flats-list .icon.list {
    font-size: 16px;
    background-color: #000000;
    margin-right: 10px;
}

.filter-new.more-filters .filter-buttons .draw {
    width: 245px;
}

.filter-new.more-filters .filter-buttons .draw .icon.pen {
    font-size: 16px;
    background-color: #000000;
    margin-right: 10px;
}

.filter-new .filter-buttons .toMap .icon.location {
    font-size: 18px;
    margin-right: 10px;
}

.filter-new .filter-buttons .toMap .icon.list {
    background-color: #000000;
    font-size: 18px;
    margin-right: 10px;
}

.filter-new .filter-buttons .found {
    display: none;
}

.filter-new.more-filters .filter-buttons .found {
    display: flex;
    justify-content: center;
    flex-grow: 1;

    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.04em;
    color: #3D81DA;

    justify-self: center;
}

.filter-new .filter-buttons .clean-filter {
    display: none;
}

.filter-new.more-filters .filter-buttons .clean-filter {
    display: flex;
    align-items: center;
    cursor: pointer;

    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.04em;
    color: #696969;
}

.filter-new.more-filters .filter-buttons .clean-filter .icon.cross {
    background-color: var(--blue);
    font-size: 13px;
    margin-left: 13px;
    margin-top: 3px;
}

.filter-new.more-filters .filter-buttons .sorting {
    position: relative;
    margin-left: 16px;
    margin-right: auto;
}

.filter-new.more-filters .filter-buttons .sorting-heading {
    display: flex;
    justify-content: flex-start;
    cursor: pointer;

    width: 352px;
    padding: 14px 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    position: relative;
}

.filter-new.more-filters .sorting-heading .title {
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 5px 0;
}

.filter-new.more-filters .sorting-heading .title span {
    margin-bottom: 5px;
}

.filter-new.more-filters .sorting-heading .title .icon.sortArrow {
    font-size: 15px;
    background-color: #000000;
    margin-right: 10px;
}

.filter-new.more-filters .sorting-heading .title .icon.caret-up {
    position: absolute;
    right: 16px;
    font-size: 13px;
    margin-top: 4px;
    background-color: #000000;

    transition: transform 0.2s ease;
}

.filter-new.more-filters .sorting-heading[aria-expanded="true"] {
    border-radius: 4px 4px 0 0;
}

.filter-new.more-filters .sorting-heading[aria-expanded="true"] .icon.caret-up {
    transform: scale(-1);
}

.filter-new.more-filters .sorting-block {
    width: 100%;
    background: #f6f6f6;
    box-shadow: none;
    border-radius: 0 0 4px 4px;
    padding: 16px;
    z-index: 2;
    top: 0;
    margin-top: 0;
}

.filter-new.more-filters .sorting-block li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #696969;
    padding: 5px 0;
    margin: 0 0 10px;
    cursor: pointer;
}

.filter-new.more-filters .sorting-block li:hover {
    color: var(--blue);
}

.filter-new.more-filters .sorting-block li.active {
    color: var(--blue);
}

.filter-new.more-filters .sorting-block li.active:after {
    content: "";
    display: block;
    position: relative;
    width: 19px;
    height: 14px;
    background: url('/images/checkbox.svg');
    margin: 0;
}

.filter-new.more-filters .sorting-block li:last-child {
    margin: 0
}


.mCSB_inside > .mCSB_container {
    padding: 0;
}


@media screen and (max-width: 1600px) {
    .filter-new .padding {
        padding: 20px;
    }

    .filter-new .filter-title {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .filter-new .filter__form .filter__wrapper {
        grid-template-columns: 232px 264px 272px 216px auto;
        /*padding: 20px;*/
        grid-column-gap: 12px;
        margin-bottom: 20px;
    }

    .filter-new.more-filters .filter__form .filter__wrapper {
        margin-bottom: 0;
    }

    .filter-new .filter__form .input-wrapper .title {
        font-size: 12px;
    }

    .filter-new .filter__form .input-wrapper .input-range .separator {
        margin-left: 10px;
        margin-right: 10px;
    }

    .filter-new .filter__form .input-wrapper .input-range .input-from-to,
    .select__value,
    .filter-new .filter__form .f-address,
    .filter-new .filter__form .input-wrapper .input-range,
    .filter-new .filter__form .input-wrapper .input-checkbox-multi .checkbox-label {
        font-size: 14px;
    }

    .filter-new .filter__form .f-address,
    .select__value,
    .filter-new .filter__form .input-wrapper .input-range {
        height: 46px;
    }

    .filter-new .filter__form .helper__list {
        top: 46px;
    }

    .filter-new .filter-buttons .btn {
        font-size: 14px;
        padding: 16px 20px;
    }

    .filter-new.more-filters .filter-buttons .sorting-heading {
        height: 46px;
    }

    .filter-new.more-filters .filter-buttons .btn--gray {
        padding: 12px 16px;
        height: 46px;
    }

    .filter-new.more-filters .sorting-heading .title .icon.caret-up {
        margin-top: 0;
    }
}

@media screen and (max-width: 1400px) {
    .filter-new .filter__form .filter__wrapper {
        /*width: 100%;*/
        /*grid-template-columns: minmax(228px, 260px) minmax(230px, max-content) minmax(266px, 320px) minmax(150px, auto);*/
        /*grid-template-rows: 1fr 1fr;*/

        /*grid-column-gap: 12px;*/
        /*grid-row-gap: 18px;*/


        width: 100%;
        display: grid;
        grid-template-columns: minmax(314px, auto) minmax(auto, max-content) minmax(314px, auto);
        grid-template-rows: 1fr 1fr;
        grid-column-gap: 16px;
        grid-row-gap: 24px;
    }

    /*.filter-new.more-filters .filter__form .filter__wrapper {*/
    /*    width: 100%;*/
    /*    display: grid;*/
    /*    grid-template-columns: minmax(314px, auto) minmax(auto, max-content) minmax(314px, auto);*/
    /*    grid-template-rows: 1fr 1fr;*/
    /*    grid-column-gap: 16px;*/
    /*    grid-row-gap: 24px;*/
    /*}*/

    .filter-new .filter__form .filter__wrapper .address-wrapper {
        /*grid-column: span 4;*/

        grid-column: span 2;
        margin-left: -55px;
        width: calc(100% + 55px);
    }

    /*.filter-new.more-filters .filter__form .filter__wrapper .address-wrapper {*/
    /*    grid-column: span 2;*/
    /*    margin-left: -55px;*/
    /*    width: calc(100% + 55px);*/
    /*}*/

    .filter-new .filter__form .filter__wrapper .select-wrapper {
        width: calc(100% - 55px);
    }

    .select__value {
        padding-right: 40px;
    }

    .select__value span {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        white-space: normal;
    }

    .filter-new.more-filters .filter-buttons {
        margin-top: 24px;
    }

}

@media screen and (max-width: 1100px) {
    .filter-new .filter-title {
        font-size: 24px;
    }

    .filter-new .filter__form .f-address,
    .filter-new .filter__form .input-wrapper .input-range,
    .filter-new .filter__form .input-wrapper .input-checkbox-multi .checkbox-label,
    .select__value {
        padding: 12px;
        height: 38px;
    }

    .select__value span {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        white-space: normal;
    }

    .select__value {
        padding-right: 40px;
    }

    .filter-new .filter__form .helper__list {
        top: 38px;
    }

    .filter-new.more-filters .filter-buttons .sorting-heading {
        height: 38px;
    }

    .filter-new.more-filters .filter-buttons .btn--gray {
        padding: 12px 16px;
        height: 38px;
    }
}

@media screen and (max-width: 1021px) {
    .filter-new {
        /*background-color: #FFFFFF;*/
        display: flex;
        flex-direction: column;
        /*position: fixed;*/
        /*left: 0;*/
        /*top: -100vh;*/
        /*width: 100vw;*/
        /*height: 100vh;*/
        /*padding: 16px;*/
        /*opacity: 0;*/
        /*!*transform: translateY(-100%);*!*/

        /*transition: top 0.8s ease, opacity 0.3s ease;*/
    }

    .filter-new .filter__form .filter__wrapper {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(232px, auto) minmax(auto, max-content) minmax(232px, auto);
        grid-template-rows: 1fr 1fr;
        grid-column-gap: 16px;
        grid-row-gap: 24px;
    }

    .filter-new .filter__form .helper__list {
        filter: none;
    }

    .filter-new .filter-buttons {

    }

    .filter-new .filter-buttons .btn.toMap,
    .filter-new .filter-buttons .btn.to-flats-list {
        display: none;
    }

    .filter-new.more-filters .filter-buttons .btn.toMap,
    .filter-new.more-filters .filter-buttons .btn.to-flats-list {
        display: flex;
        width: auto;
    }


    .filter-new.more-filters .filter-buttons .sorting {
        margin-left: 12px;
    }
    .filter-new.more-filters .filter-buttons .sorting-heading {
        width: 280px;
    }


    .filter-new .filter-buttons .btn {
        width: 40%;
    }
}

@media screen and (max-width: 911px) {
    #filter_sec {
        min-height: 0;
    }

    .filter-new {
        background-color: #FFFFFF;
        display: flex;
        flex-direction: column;
        position: fixed;
        left: 0;
        top: -100vh;
        width: 100vw;
        height: 100vh;
        padding: 16px;
        opacity: 0;
        /*transform: translateY(-100%);*/

        transition: top 0.8s ease, opacity 0.3s ease;
    }

    .filter-new.active {
        top: 65px;
        opacity: 1;
        z-index: 10;
        transform: translateY(0);
        overflow-y: auto;
        padding-top: 30px;
        transition: top 0.8s ease, opacity 0.3s ease;
    }

    .filter-new.active .heading-mob {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
    }

    .filter-new.active .filter-title {
        font-size: 16px;
    }

    .filter-new.active .heading-mob .title {
        font-weight: 500;
        font-size: 20px;
        line-height: 20px;
        letter-spacing: 0.04em;
        color: #000000;
    }

    .filter-new.active .heading-mob .close {
        cursor: pointer;
        transition: transform 0.3s ease;
    }

    .filter-new.active .heading-mob .close:hover {
        transform: rotate(90deg);
    }

    .filter-new.active .heading-mob .close .icon.close {
        font-size: 20px;
        background-color: #000000;
    }

    .filter-new .padding {
        padding: 0;
    }

    .filter-new.active .filter-buttons,
    .filter-new.more-filters.active .filter-buttons {
        margin-top: auto;
        margin-bottom: 10px;
    }

    .filter-new.more-filters.active .filter-buttons > div:not(.found),
    .filter-new.more-filters.active .filter-buttons .clean-filter {
       display: none;
    }

    .filter-new.more-filters.active .filter-buttons .btn.toMap {
       display: none;
    }

    .filter-new.more-filters.active .filter-buttons .found {
        background-color: var(--blue);
        color: #FFFFFF;
        padding: 15px 20px;
        border-radius: 12px;
    }

    .filter-new.more-filters.active .filter-buttons .toFlats {
       display: initial;
        width: 100%;
    }

    .filter-new.more-filters.active .filter-buttons .btn.toMap,
    .filter-new.more-filters.active .filter-buttons .btn.to-flats-list,
    .filter-new.more-filters.active .filter-buttons .btn.draw {
        display: none;
    }

    .filter-new.active .filter__form .filter__wrapper {
        display: flex;
        flex-direction: column;

        grid-row-gap: 24px;
        padding: 0;
    }

    .filter-new.active .filter__form .filter__wrapper .input-wrapper {
        order: 2;
    }

    .filter-new.active .filter__form .filter__wrapper .address-wrapper {
        grid-column: unset;
        order: 1;
        display: inline-block;

        margin-left: 0;
        width: 100%;
    }

    .filter-new.active .filter__form .filter__wrapper .select-wrapper {
        width: 100%;
    }

}

@media screen and (max-width: 600px) {
    /*.filter-new.active {*/
    /*    top: 55px;*/
    /*}*/
}
@media screen and (max-width: 500px) {
    .filter-new .filter-buttons .btn {
        width: 100%;
    }

    .filter-new .filter-buttons .btn:not(:first-child) {
        margin-left: 0;
    }

}