.dd-brand-catalog {
    margin-top: 26px;
}

.dd-brand-filter {
    padding: 22px 24px;
    border: 1px solid #dfe3e6;
    border-radius: 8px;
    background: #fafbfb;
}

.dd-brand-filter__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.dd-brand-filter__head h2,
.dd-brand-links h2 {
    margin: 0;
    color: #20262d;
    font-size: 22px;
    line-height: 1.25;
}

.dd-brand-filter__head p {
    margin: 0;
    color: #697178;
    font-size: 14px;
    white-space: nowrap;
}

.dd-brand-filter__form {
    display: grid;
    grid-template-columns: minmax(190px, 1.25fr) minmax(160px, 1fr) minmax(170px, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.dd-brand-filter__field {
    display: grid;
    gap: 7px;
    margin: 0;
}

.dd-brand-filter__field > span {
    color: #4c555d;
    font-size: 13px;
    font-weight: 600;
}

.dd-brand-filter select,
.dd-brand-sort-form select {
    width: 100%;
    height: 46px;
    padding: 0 38px 0 13px;
    border: 1px solid #d4d9de;
    border-radius: 6px;
    background-color: #fff;
    color: #23292f;
    font: inherit;
    font-size: 14px;
}

.dd-brand-filter select:focus-visible,
.dd-brand-sort-form select:focus-visible,
.dd-brand-links a:focus-visible,
.dd-brand-filter__reset:focus-visible {
    outline: 2px solid #e51b23;
    outline-offset: 2px;
}

.dd-brand-filter select:disabled {
    color: #92999f;
    background-color: #f2f4f5;
}

.dd-brand-filter__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
}

.dd-brand-filter__actions .btn {
    min-height: 46px;
    padding-right: 20px;
    padding-left: 20px;
}

.dd-brand-filter__reset {
    padding: 0;
    border: 0;
    background: transparent;
    color: #c91c23;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}

.dd-brand-filter__reset:hover {
    color: #a5141a;
    text-decoration: underline;
}

.dd-brand-catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 18px 0 14px;
}

.dd-brand-sort-form {
    width: min(260px, 100%);
}

.dd-brand-sort-form select {
    height: 44px;
}

.dd-brand-catalog-toolbar__count {
    color: #697178;
    font-size: 14px;
}

.dd-brand-products .catalog_block.items {
    margin-top: 0;
}

.dd-brand-pager {
    margin-top: 24px;
}

.dd-brand-pager__items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
}

.dd-brand-pager a,
.dd-brand-pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #dfe3e6;
    border-radius: 6px;
    background: #fff;
    color: #2d3338;
    cursor: pointer;
    font-size: 14px;
}

.dd-brand-pager a:hover {
    border-color: #e51b23;
    color: #d71920;
}

.dd-brand-pager a:focus-visible {
    outline: 2px solid #e51b23;
    outline-offset: 2px;
}

.dd-brand-pager .is-current {
    border-color: #e51b23;
    background: #e51b23;
    color: #fff;
}

.dd-brand-links {
    margin-top: 38px;
}

.dd-brand-catalog .dd-technika.dd-technika--entry.dd-brand-type-cards {
    margin-top: 64px;
}

.dd-brand-type-cards .dd-technika__type-hub {
    margin-bottom: 0;
}

.dd-brand-links__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.dd-brand-links__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 12px 14px;
    border: 1px solid #e1e4e7;
    border-radius: 7px;
    color: #242a30;
    text-decoration: none;
    transition: border-color .18s ease, color .18s ease;
}

.dd-brand-links__list a:hover {
    border-color: #e51b23;
    color: #d71920;
}

.dd-brand-links__list small {
    color: #7a8289;
    font-size: 12px;
    white-space: nowrap;
}

.dd-brand-links__list--brands {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dd-brand-links__list--brands a {
    min-height: 40px;
    padding: 8px 15px;
}

.dd-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 970px) {
    .dd-brand-filter__form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dd-brand-filter__actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .dd-brand-catalog {
        margin-top: 20px;
    }

    .dd-brand-filter {
        padding: 18px 16px;
    }

    .dd-brand-filter__head {
        display: block;
        margin-bottom: 16px;
    }

    .dd-brand-filter__head h2,
    .dd-brand-links h2 {
        font-size: 20px;
    }

    .dd-brand-filter__head p {
        margin-top: 6px;
    }

    .dd-brand-filter__form {
        grid-template-columns: 1fr;
    }

    .dd-brand-filter__actions {
        grid-column: auto;
    }

    .dd-brand-filter__actions .btn {
        flex: 1;
    }

    .dd-brand-catalog-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .dd-brand-sort-form {
        width: 100%;
    }

    .dd-brand-links__list {
        grid-template-columns: 1fr;
    }
}

.dd-brand-pager a { text-decoration: none; }
.dd-brand-pager .dd-brand-pager__gap { border: 0; min-width: 16px; cursor: default; }
