.custom-models--pm {
    padding-block: 27px 55px;
}

.custom-models--pm .catalog-page__container {
    padding-block: 0;
}

.custom-models--pm .custom-models__title {
    margin: 0;
    color: var(--color-text);
    font-size: 28px;
    font-weight: 600;
    line-height: 34px;
}

.custom-models--pm .custom-models__intro-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-top: 16px;
}

.custom-models--pm .custom-models__intro {
    margin: 0;
    color: var(--color-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.custom-models--pm .custom-models__reset {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: normal;
    text-decoration: none;
    white-space: nowrap;
}

.custom-models--pm .custom-models__reset img {
    display: block;
    flex: 0 0 auto;
}

.custom-models--pm .custom-models__reset:hover {
    color: var(--color-text);
    text-decoration: underline;
}

.custom-models--pm .custom-models__filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 15px 0 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-line);
}

.custom-models--pm .custom-models__fields {
    display: flex;
    align-items: center;
    gap: 35px;
    max-width: 100%;
}

.custom-models--pm .custom-models__filter .custom-models__field {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    width: auto;
    max-width: none;
    color: var(--color-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    white-space: nowrap;
}

.custom-models--pm .custom-models__separator {
    flex: 0 0 auto;
    width: 1px;
    height: 26px;
    background: var(--color-line);
}

.custom-models--pm .custom-models__filter .custom-models__control {
    box-sizing: border-box;
    width: 89px;
    max-width: none;
    height: 39px;
    min-width: 0;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--color-text);
    border-radius: var(--radius);
    background-color: var(--color-white);
    color: var(--color-text);
    font: inherit;
    font-size: 14px;
    line-height: normal;
}

.custom-models--pm .custom-models__filter select.custom-models__control {
    padding-right: 29px;
    appearance: none;
    background-image: url('../icons/custom-models-down-pm.svg');
    background-position: right 12px center;
    background-repeat: no-repeat;
}

.custom-models--pm .custom-models__filter .custom-models__control--type {
    width: auto;
    min-width: 89px;
    max-width: 190px;
}

.custom-models--pm .custom-models__submit {
    flex: 0 0 auto;
    min-height: 39px;
    margin: 0;
    padding: 10px 20px;
    border: 0;
    border-radius: var(--radius);
    background: var(--color-text);
    color: var(--color-white);
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 19px;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
}

.custom-models--pm .custom-models__control:focus-visible,
.custom-models--pm .custom-models__submit:focus-visible,
.custom-models--pm .custom-models__reset:focus-visible {
    outline: 2px solid #242424;
    outline-offset: 3px;
}

@media (max-width: 1350px) {
    .custom-models--pm .custom-models__fields {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
        width: 100%;
    }

    .custom-models--pm .custom-models__separator {
        display: none;
    }

    .custom-models--pm .custom-models__filter .custom-models__field {
        display: grid;
        min-width: 0;
    }

    .custom-models--pm .custom-models__filter .custom-models__control {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 760px) {
    .custom-models--pm {
        padding-block: 24px 40px;
    }

    .custom-models--pm .custom-models__title {
        font-size: 24px;
        line-height: 30px;
    }

    .custom-models--pm .custom-models__intro-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .custom-models--pm .custom-models__reset {
        align-self: flex-end;
        min-height: 32px;
    }

    .custom-models--pm .custom-models__fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .custom-models--pm .custom-models__submit {
        width: 100%;
        white-space: normal;
    }
}
