.p_a2_basePages2_blocks_substructuresBlock2 {
    border-radius: 0.5em !important;
}

.p_a2_basePages2_blocks_filterBlockFirmDesign {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: (281px)[auto-fill];
    grid-template-columns: repeat(auto-fill, 281px);
    align-items: start;
    background: white;
    border-radius: .5em;
    grid-gap: 20px;
}

.p_a2_basePages2_blocks_filterBlockFirmDesign .filterPart {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: (281px)[auto-fill];
    grid-template-columns: repeat(auto-fill, 281px);
    align-items: start;
    border-radius: .5em;
    grid-gap: 10px;
}

.p_a2_basePages2_blocks_filterBlockFirmDesign .filterPart .label {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
    color: #404040;
}

.p_a2_basePages2_blocks_filterBlockFirmDesign .filterPart .selects {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    grid-gap: 10px;
}

.linkDown {
    position: relative;
    margin-top: 18px;
    box-sizing: border-box;
    font-size: 13px;
    border-radius: 2px;
    max-width: 150px;
    perspective: 1000px;
    min-width: 150px;
}

.linkDown--front, .linkDown--back {
    position: absolute;
    padding: 10px;
    height: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: 1s;
    border-radius: 2px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.linkDown--front {
    background: #fff;
}

.linkDown--back {
    cursor: pointer;
    background-color: #dce772;
    transform: rotateX(180deg);
    box-shadow: 0 2px 2px 0 #999;
}

.linkDown--back i {
    -webkit-animation: sky infinite 1s ease-in-out;
    animation: sky infinite 1s ease-in-out;
    font-weight: 500;
    font-size: 20px;
    margin-left: 10px;
    color: #333;
    display: none;
}

.linkDown--show {
    min-height: 60px;
}

.linkDown--noAnimation .linkDown--front,
.linkDown--noAnimation .linkDown--back {
    transition: 0s;
}

.linkDown--show .linkDown--front {
    transform: rotateX(180deg);
}

.linkDown--show .linkDown--back {
    transform: rotateX(360deg);
}

.linkDown--show .linkDown--back i {
    display: flex;
}

@-webkit-keyframes sky {
    0% {
        transform: translateY(2px);
    }

    50% {
        transform: translateY(-2px);
    }

    100% {
        transform: translateY(2px);
    }
}

@keyframes sky {
    0% {
        transform: translateY(2px);
    }

    50% {
        transform: translateY(-2px);
    }

    100% {
        transform: translateY(2px);
    }
}

.button {
    position: relative;
    cursor: pointer;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 2px;
    min-width: 110px;
    transition: .2s;
}

.button:hover {
    cursor: pointer;
    -webkit-filter: brightness(90%);
    filter: brightness(90%);
}

.selectWithCancelBtn.unselected {
    padding: 0;
}

.button--blue {
    background: #0b7bc1;
    color: white;
}

.button--tomato {
    background: tomato;
    color: white;
}

.selectWithLinks.unselected.open.loaded {
    width: 90%;
    left: 5%;
    top: 5px;
}

@media all and (max-width: 1000px) {
    .linkDown {
        margin-top: 0;
    }
}

@media all and (max-width: 768px) {
    .p_a2_basePages2_blocks_filterBlockFirmDesign {
        -ms-grid-columns: 300px;
        grid-template-columns: minmax(200px, 300px);
        justify-content: center;
    }

    .p_a2_basePages2_blocks_filterBlockFirmDesign .filterPart {
        display: -ms-grid;
        display: grid;
        -ms-grid-columns: 14px auto;
        grid-template-columns: 14px auto;
        grid-gap: 20px;
    }

    .p_a2_basePages2_blocks_filterBlockFirmDesign .filterPart .selects {
        position: relative;
    }

    .p_a2_basePages2_blocks_filterBlockFirmDesign .filterPart .selects .value {
        padding: 0;
    }

    .p_a2_basePages2_blocks_filterBlockFirmDesign .filterPart .selects .value::after {
        padding: 0 10px;
    }

    .p_a2_basePages2_blocks_filterBlockFirmDesign .filterPart .selects::before {
        content: '';
        position: absolute;
        left: -2em;
        display: flex;
        width: 14px;
        height: 14px;
        background: url("/app/p/a2/basePages2/blocks/filterBlockFirmDesign/icons/list.svg");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        top: 18px;
        transform: translateY(-50%);
    }

    .p_a2_basePages2_blocks_filterBlockFirmDesign .filterPart.filterPart__place .selects::before {
        background-image: url("/app/p/a2/basePages2/blocks/filterBlockFirmDesign/icons/house.svg");
    }

    .p_a2_basePages2_blocks_filterBlockFirmDesign .filterPart .label {
        display: none;
    }

    .p_a2_basePages2_blocks_filterBlockFirmDesign .filterPart .selects {
        grid-column: 2 / -1;
    }

    .selectWithLinks {
        width: 100%;
    }

    .selectWithLinks .value {
        padding: 0 10px !important;
    }

    .filterPart .selects.s,
    .filterPart .selects.g {
        -ms-grid-columns: auto 40px !important;
        grid-template-columns: auto 40px !important;
        grid-columns-gap: 20px !important;
        grid-rows-gap: 10px !important;
    }

    .filterPart .selects.s .selectWithCancelBtn,
    .filterPart .selects.g .selectWithCancelBtn {
        grid-column: 1 / -1;
    }

    .filterPart .selects.s .selectWithCancelBtn:nth-last-child(2),
    .filterPart .selects.g .selectWithCancelBtn:nth-last-child(2) {
        -ms-grid-column: 1;
        -ms-grid-column-span: 1;
        grid-column: 1 / 2;
    }

    .filterPart .selects.s .selectWithCancelBtn.long,
    .filterPart .selects.g .selectWithCancelBtn.long {
        grid-column: 1 / -1;
    }

    .filterPart .selects.s .selectWithCancelBtn.unselected,
    .filterPart .selects.g .selectWithCancelBtn.unselected {
        grid-column: 2 / -1;
    }

    .filterPart .selects.s .selectWithCancelBtn.unselected .value,
    .filterPart .selects.g .selectWithCancelBtn.unselected .value {
        font-size: 0;
    }

    .filterPart .selects.s .selectWithCancelBtn.unselected .value::before,
    .filterPart .selects.g .selectWithCancelBtn.unselected .value::before {
        font-size: 20px;
        margin: 0;
        padding: 0;
    }

    .selectWithCancelBtn.unselected .open .list {
        left: 0;
    }

    .linkDown {
        margin: auto;
    }
}

@media all and (max-width: 422px) {
    .filterPart .selectWithLinks {
        width: 100%;
    }
}

@media all and (max-width: 350px) {
    .p_a2_basePages2_blocks_filterBlockFirmDesign .filterPart .selects {
        grid-column: 1/-1;
    }

    .p_a2_basePages2_blocks_filterBlockFirmDesign .filterPart .selects::before {
        display: none;
    }

}