.motorcycle-catalog {
    --catalog-ink: #17292c;
    --catalog-muted: #526669;
    --catalog-accent: #1b675d;
    --catalog-line: #dce5e2;
    color: var(--catalog-ink);
    margin: 0 auto;
    max-width: 1180px;
    padding: 18px 0 48px;
}

.motorcycle-catalog__hero {
    align-items: flex-end;
    background: radial-gradient(ellipse at 100% 0, #287565, transparent 75%), #142b31;
    border-radius: 20px;
    color: #fff;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: clamp(22px, 4vw, 46px);
}

.motorcycle-catalog__hero h1 {
    color: inherit;
    font-size: clamp(34px, 5vw, 60px);
    font-weight: 750;
    letter-spacing: -.035em;
    line-height: 1.05;
    margin: 0 0 12px;
}

.motorcycle-catalog__hero p {
    color: #e0eeeb;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    max-width: 47em;
}

.motorcycle-catalog__total {
    border-left: 1px solid rgba(255, 255, 255, .35);
    flex-shrink: 0;
    padding-left: 24px;
}

.motorcycle-catalog__total strong {
    display: block;
    font-size: clamp(28px, 3.6vw, 44px);
    line-height: 1.12;
}

.motorcycle-catalog__total span {
    color: #e0eeeb;
    display: block;
    font-size: 13px;
    margin-top: 5px;
}

.motorcycle-catalog__filters {
    align-items: end;
    background: #fff;
    border: 1px solid var(--catalog-line);
    border-radius: 14px;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(185px, 1.35fr) repeat(4, minmax(0, 1fr)) auto;
    margin: 16px 0;
    padding: 16px;
}

.motorcycle-catalog__filters label {
    display: block;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 6px;
}

.motorcycle-catalog__filters .form-control {
    border-color: #bfcfca;
    border-radius: 8px;
    box-shadow: none;
    font-family: system-ui, sans-serif;
    font-size: 14px;
    height: 40px;
    min-width: 0;
    padding-inline: 9px;
}

.motorcycle-catalog__filters .form-control:focus {
    border-color: var(--catalog-accent);
    box-shadow: 0 0 0 2px #cce5dd;
}

.motorcycle-catalog__filters .select2-container .select2-selection--multiple {
    border-color: #bfcfca;
    border-radius: 8px;
    box-shadow: none;
    font-family: system-ui, sans-serif;
    min-height: 40px;
}

.motorcycle-catalog__actions {
    align-items: center;
    display: flex;
    gap: 12px;
}

.motorcycle-catalog__submit {
    background: var(--catalog-accent);
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    min-height: 40px;
}

.motorcycle-catalog__submit:hover,
.motorcycle-catalog__submit:focus {
    background: #155249;
    color: #fff;
}

.motorcycle-catalog__actions a,
.motorcycle-catalog__model a {
    color: var(--catalog-accent);
    text-underline-offset: .15em;
}

.motorcycle-catalog__model a {
    font-weight: 700;
}

.motorcycle-catalog__list-header {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    justify-content: space-between;
    margin: 18px 0 10px;
}

.motorcycle-catalog__list-header p {
    color: var(--catalog-muted);
    margin: 0;
}

.motorcycle-catalog .pagination {
    margin: 0;
}

.motorcycle-catalog .pagination a {
    color: var(--catalog-accent);
    min-width: 36px;
    text-align: center;
    text-decoration: none;
}

.motorcycle-catalog .pagination .active a {
    background: var(--catalog-accent);
    border-color: var(--catalog-accent);
    color: #fff;
}

.motorcycle-catalog__results,
.motorcycle-catalog__empty {
    background: #fff;
    border: 1px solid var(--catalog-line);
    border-radius: 14px;
    overflow: hidden;
}

.motorcycle-catalog__table {
    table-layout: fixed;
    width: 100%;
}

.motorcycle-catalog__table th {
    background: #eaf3f0;
    font-size: 13px;
}

.motorcycle-catalog__table th:first-child {
    width: 34%;
}

.motorcycle-catalog__table th:nth-child(2) {
    text-align: right;
    width: 13%;
}

.motorcycle-catalog__table th,
.motorcycle-catalog__table td {
    border-bottom: 1px solid var(--catalog-line);
    padding: 8px 16px !important;
    vertical-align: middle;
}

.motorcycle-catalog__table tbody tr:last-child td {
    border-bottom: 0;
}

.motorcycle-catalog__table tbody tr:hover {
    background: #f6faf8;
}

.motorcycle-catalog__model {
    overflow-wrap: anywhere;
}

.motorcycle-catalog__count {
    font-weight: 700;
    text-align: right;
}

.motorcycle-catalog__classes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.motorcycle-catalog__class {
    align-items: center;
    background: #f2f6f5;
    border-radius: 20px;
    display: inline-flex;
    font-size: 12px;
    gap: 5px;
    padding: 3px 7px 3px 3px;
}

.motorcycle-catalog__class-name {
    border-radius: 50%;
    font-size: 10px;
    line-height: 18px;
    min-width: 18px;
    text-align: center;
}

.motorcycle-catalog__class-name.circle-class-green,
.motorcycle-catalog__class-name.circle-class-yellow {
    color: #17292c;
}

.motorcycle-catalog__class-name.circle-class-red {
    background: #d01344;
}

.motorcycle-catalog__class-name.circle-class-blue {
    background: #006bd0;
}

.motorcycle-catalog__footer {
    margin-top: 16px;
    text-align: center;
}

.motorcycle-catalog__empty {
    padding: 28px 20px;
    text-align: center;
}

.motorcycle-catalog__empty h2 {
    font-size: 21px;
    margin: 0 0 9px;
}

.motorcycle-catalog__empty p {
    color: var(--catalog-muted);
    margin: 0;
}

@media (max-width: 1100px) {
    .motorcycle-catalog__filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .motorcycle-catalog {
        margin-inline: 12px;
        padding: 8px 0 30px;
    }

    .motorcycle-catalog__hero {
        align-items: start;
        border-radius: 15px;
        flex-direction: column;
        gap: 14px;
    }

    .motorcycle-catalog__total {
        align-items: center;
        border: 0;
        display: flex;
        gap: 8px;
        padding: 0;
    }

    .motorcycle-catalog__total span {
        margin-top: 0;
    }

    .motorcycle-catalog__table,
    .motorcycle-catalog__table tbody {
        display: block;
    }

    .motorcycle-catalog__table thead {
        clip: rect(0, 0, 0, 0);
        height: 1px;
        overflow: hidden;
        position: absolute;
        width: 1px;
    }

    .motorcycle-catalog__table tbody tr {
        border-bottom: 1px solid var(--catalog-line);
        display: grid;
        gap: 6px 12px;
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 12px;
    }

    .motorcycle-catalog__table tbody tr:last-child {
        border-bottom: 0;
    }

    .motorcycle-catalog__table td {
        border-bottom: 0;
        padding: 0 !important;
    }

    .motorcycle-catalog__class-cell {
        grid-column: 1 / -1;
    }

    .motorcycle-catalog__count .visible-xs-inline {
        color: var(--catalog-muted);
        font-size: 11px;
        font-weight: 400;
    }
}

@media (max-width: 620px) {
    .motorcycle-catalog__filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 12px;
    }

    .motorcycle-catalog__search,
    .motorcycle-catalog__actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 360px) {
    .motorcycle-catalog__filters .form-control {
        font-size: 12px;
    }
}
