.spares-catalog {
    padding-top: 62px;
    padding-bottom: 70px;
    background: #fff;
}

.spares-catalog__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 29px;
}

.spares-catalog__intro {
    min-width: 0;
    max-width: 770px;
}

.spares-catalog__overline {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: #629b37;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .085em;
}

.spares-catalog__overline > span:first-child {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #78bd37;
}

.spares-catalog__total {
    margin-left: 5px;
    padding: 5px 10px;
    background: #eff5e9;
    border-radius: 20px;
    font-size: 11px;
    letter-spacing: 0;
}

.spares-catalog__intro .spares-title {
    margin: 0 0 15px;
}

.spares-catalog__intro p {
    margin: 0;
    max-width: 700px;
    color: #767676;
    font-size: 14px;
    line-height: 1.55;
}

.spares-catalog__controls {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.spares-catalog__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    color: #222;
    background: #fff;
    border: 1px solid #dededb;
    border-radius: 50%;
    cursor: pointer;
    transition: background .18s, border-color .18s, color .18s;
}

.spares-catalog__arrow:not(:disabled):hover {
    color: #fff;
    background: #6baa2e;
    border-color: #6baa2e;
}

.spares-catalog__arrow:disabled {
    color: #bbb;
    background: #f7f7f6;
    cursor: not-allowed;
}

.spares-catalog__viewport {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-radius: 10px;
}

.spares-catalog__viewport::-webkit-scrollbar {
    display: none;
}

.spares-catalog__track {
    display: flex;
    gap: 18px;
    align-items: stretch;
    padding: 0 0 2px;
}

.spares-catalog__track > .spares-product-card {
    flex: 0 0 calc((100% - 54px) / 4);
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.spares-product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e5df;
    border-radius: 11px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.spares-product-card:hover {
    border-color: #afce94;
    box-shadow: 0 9px 26px rgba(27, 53, 12, .055);
    transform: translateY(-2px);
}

.spares-product-card__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 190px;
    padding: 18px;
    background: #f6f7f5;
}

.spares-product-card__photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.spares-product-card__category {
    position: absolute;
    bottom: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
    padding: 6px 10px;
    overflow: hidden;
    color: #445a37;
    background: rgba(255, 255, 255, .95);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spares-product-card__details {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 207px;
    padding: 17px 17px 16px;
}

.spares-product-card__maker {
    overflow: hidden;
    color: #6a9a4a;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .03em;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: uppercase;
}

.spares-product-card__title {
    display: -webkit-box;
    height: 57px;
    margin: 9px 0 11px;
    overflow: hidden;
    color: #1d221a;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.36;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.spares-product-card__sku {
    display: -webkit-box;
    min-height: 30px;
    max-height: 32px;
    margin: 0 0 16px;
    overflow: hidden;
    color: #8a8a8a;
    font-size: 11px;
    line-height: 1.35;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.spares-product-card__sku strong {
    color: #575757;
    font-weight: 500;
}

.spares-product-card__foot {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 13px;
    border-top: 1px solid #efefef;
}

.spares-product-card__price {
    color: #414141;
    font-size: 11px;
    font-weight: 500;
}

.spares-product-card__request {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 13px;
    color: #fff;
    background: #70b931;
    border: 1px solid #70b931;
    border-radius: 7px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    transition: background .2s ease;
}

.spares-product-card__request:hover {
    background: #5d9c27;
}

.spares-catalog__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

.spares-catalog__progress {
    color: #858585;
    font-size: 12px;
}

.spares-catalog__show-all {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    padding: 10px 18px;
    color: #222;
    background: #fff;
    border: 1px solid #bfcdb1;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

.spares-catalog__show-all svg {
    transition: transform .2s ease;
}

.spares-catalog__show-all.is-expanded svg {
    transform: rotate(180deg);
}

.spares-catalog__show-all:hover {
    color: #517f2c;
    background: #f7fbf4;
    border-color: #8eb76e;
    box-shadow: none;
    transform: none;
}

.spares-catalog__full[hidden],
.spares-catalog__empty[hidden] {
    display: none !important;
}

.spares-catalog__full {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #e8e9e5;
    scroll-margin-top: 25px;
}

.spares-catalog__filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1.5fr) minmax(200px, 1fr) minmax(155px, .65fr);
    align-items: end;
    gap: 15px;
    padding: 18px;
    background: #f5f7f3;
    border-radius: 9px;
}

.spares-catalog__filter-bar > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
}

.spares-catalog__filter-bar label {
    color: #595e55;
    font-size: 11px;
    font-weight: 500;
}

.spares-catalog__filter-bar input,
.spares-catalog__filter-bar select {
    min-width: 0;
    width: 100%;
    height: 44px;
    padding: 0 13px;
    color: #222;
    background: #fff;
    border: 1px solid #e0e3dc;
    border-radius: 6px;
    outline-offset: 3px;
    font-size: 12px;
}

.spares-catalog__filter-bar input:focus,
.spares-catalog__filter-bar select:focus {
    border-color: #80b853;
}

.spares-catalog__result-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 17px 0 20px;
}

.spares-catalog__result-line p {
    margin: 0;
    color: #5f6658;
    font-size: 13px;
}

.spares-catalog__clear,
.spares-catalog__empty button {
    padding: 4px 0;
    color: #518a28;
    background: none;
    border: 0;
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.spares-catalog__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.spares-catalog__empty {
    padding: 40px 24px;
    text-align: center;
    color: #737373;
    font-size: 14px;
}

.spares-catalog__noscript {
    padding: 20px;
    color: #7b7b7b;
    font-size: 13px;
}

@media (max-width: 1199px) {
    .spares-catalog__track > .spares-product-card {flex-basis: calc((100% - 36px) / 3);}
    .spares-catalog__grid {grid-template-columns: repeat(3, minmax(0, 1fr));}
}

@media (max-width: 849px) {
    .spares-catalog__track > .spares-product-card {flex-basis: calc((100% - 18px) / 2);}
    .spares-catalog__grid {grid-template-columns: repeat(2, minmax(0, 1fr));}
    .spares-catalog__filter-bar {grid-template-columns: repeat(2, minmax(0, 1fr));}
    .spares-catalog__search-wrap {grid-column: 1 / -1;}
}

@media (max-width: 599px) {
    .spares-catalog {padding-top: 46px; padding-bottom: 45px;}
    .spares-catalog__heading {align-items: flex-end; gap: 12px; margin-bottom: 23px;}
    .spares-catalog__overline {font-size: 10px; margin-bottom: 13px;}
    .spares-catalog__total {padding: 4px 7px;}
    .spares-catalog__controls {gap: 7px;}
    .spares-catalog__arrow {width: 37px; height: 37px;}
    .spares-catalog__arrow svg {width: 17px; height: 17px;}
    .spares-catalog__intro p {font-size: 12px; line-height: 1.45;}
    .spares-catalog__track > .spares-product-card {flex-basis: min(85%, 300px);}
    .spares-catalog__grid {grid-template-columns: minmax(0, 1fr);}
    .spares-catalog__filter-bar {grid-template-columns: 1fr; padding: 14px; gap: 12px;}
    .spares-catalog__search-wrap {grid-column: auto;}
    .spares-catalog__result-line {align-items: flex-start;}
    .spares-product-card__visual {height: 190px;}
    .spares-catalog__show-all {margin-left: auto;}
}

@media (prefers-reduced-motion: reduce) {
    .spares-product-card,
    .spares-catalog__arrow,
    .spares-catalog__show-all svg {transition: none;}
}
