/**
 * Kultiva — machinery catalogue. Boards: "Catalog" (desktop), "Tablet — Catalog",
 * "Mobile — Catalog" and "Mobile — Filters sheet". Filters are one form: a bottom
 * sheet on phones, a 400 px side panel on tablets, a column from 992 px.
 */

/* ============================================
   HEADING, KEY FIGURES, GROUP PILLS
   ============================================ */

.k-cat-head {
    background: var(--k-surface-2);
    border-bottom: 1px solid var(--k-line);
}

.k-cat-head__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px 40px;
    padding: 10px 0 4px;
}

.k-cat-head__title {
    margin: 0;
    color: var(--k-text-max);
}

.k-cat-figures {
    flex-wrap: wrap;
    gap: 12px 32px;
    margin: 0;
}

.k-cat-figures dt {
    font-family: var(--k-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--k-text-muted);
}

:lang(hy) .k-cat-figures dt {
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
}

.k-cat-figures dd {
    margin: 2px 0 0;
    font-size: 28px;
    font-weight: 800;
    font-stretch: 88%;
    font-variant-numeric: tabular-nums;
    color: var(--k-text-max);
}

.k-cat-figures .k-cat-figures__money {
    color: var(--k-text-green);
}

.k-cat-figures-line {
    width: 100%;
    margin: 0;
    font-size: 15px;
    color: var(--k-text);
}

.k-cat-figures-line strong {
    color: var(--k-text-green);
}

.k-cat-groups {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 8px calc(-1 * var(--k-gutter-right)) 0 calc(-1 * var(--k-gutter-left));
    padding: 4px var(--k-gutter-right) 14px var(--k-gutter-left);
    scrollbar-width: none;
}

.k-pill {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-height: var(--k-control);
    padding: 0 14px;
    border: 1px solid var(--k-chip-line);
    border-radius: 999px;
    background: var(--k-surface);
    color: var(--k-text-strong);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--k-fast) ease-out, transform var(--k-fast) var(--k-ease-out);
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
    .k-pill:hover {
        background: var(--k-surface-3);
        color: var(--k-text-max);
    }
}

.k-pill:not([aria-current="page"]):active {
    background: var(--k-surface-3);
}

@media (prefers-reduced-motion: no-preference) {
    .k-pill:active {
        transform: scale(0.97);
    }
}

.k-pill[aria-current="page"] {
    border-color: var(--k-text-strong);
    background: var(--k-fill-ink);
    color: var(--k-white);
}

.k-pill__count {
    font-family: var(--k-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--k-text-muted);
}

.k-pill[aria-current="page"] .k-pill__count {
    color: var(--k-on-night-2);
}

/* Phones: no text under 14 px (brief, answer 1; QA-014) */
@media (max-width: 767.98px) {
    .k-pill__count {
        font-size: 14px;
    }
}

@media (min-width: 768px) {
    .k-cat-head__row {
        padding: 28px 0 24px;
    }

    .k-cat-groups {
        margin-top: 0;
        padding-bottom: 20px;
    }

    .k-pill {
        padding: 0 16px;
    }
}

@media (min-width: 992px) {
    .k-cat-groups {
        flex-wrap: wrap;
        overflow: visible;
        margin-inline: 0;
        padding-inline: 0;
    }
}


/* ============================================
   LAYOUT: filters column beside the results from 992 px
   ============================================ */

.k-cat {
    padding-block: 0 var(--k-section-y);
}

@media (min-width: 992px) {
    .k-cat {
        display: grid;
        grid-template-columns: 264px minmax(0, 1fr);
        align-items: start;
        gap: 32px;
        padding-block: 32px var(--k-section-y);
    }
}


/* ============================================
   TOOLBAR (sticky under the header below 992 px), CHIPS, COUNT
   ============================================ */

/* Under the header, at its height without its line (--k-head, layout.css); 65 px tall with its line
   (--k-cat-toolbar, the room the page leaves for it) */
.k-cat-toolbar {
    position: sticky;
    top: var(--k-head);
    z-index: 10;
    display: grid;
    /* Filters takes what it needs, so the sort keeps room for its icon and "Recommended" */
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    margin-inline: calc(-1 * var(--k-gutter-left)) calc(-1 * var(--k-gutter-right));
    padding: 10px var(--k-gutter-right) 10px var(--k-gutter-left);
    border-bottom: 1px solid var(--k-line);
    background: var(--k-surface);
    box-shadow: var(--k-shadow-raised);
}

.k-cat-toolbar__filters {
    min-height: var(--k-control);
}

.k-cat-sort {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Below 992 px the "Sort" label is hidden: an icon says what the select does */
.k-cat-sort__icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--k-text-strong);
    font-size: 16px;
    pointer-events: none;
}

.k-cat-sort__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.k-cat-sort .k-select {
    min-height: var(--k-control);
    padding-left: 34px;
    padding-right: 30px;
    background-position: right 10px center;
    font-size: 16px;
}

.k-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.k-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: var(--k-control);
    padding: 0 12px 0 14px;
    border: 1px solid var(--k-chip-line);
    border-radius: 999px;
    background: var(--k-success-bg);
    color: var(--k-success);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color var(--k-fast) ease-out, transform var(--k-fast) var(--k-ease-out);
    -webkit-tap-highlight-color: transparent;
}

.k-chip:active {
    border-color: var(--k-success);
    color: var(--k-success);
}

@media (hover: hover) and (pointer: fine) {
    .k-chip:hover {
        border-color: var(--k-success);
        color: var(--k-success);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .k-chip:active {
        transform: scale(0.97);
    }
}

.k-chip .bi {
    font-size: 12px;
}

.k-cat-count {
    margin: 12px 0 0;
    font-size: 15px;
    color: var(--k-text);
}

.k-cat-count strong {
    color: var(--k-text-max);
}

.k-cat-count a {
    color: var(--k-text-green-strong);
    font-weight: 600;
}

@media (min-width: 992px) {
    .k-cat-toolbar {
        position: static;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 12px 24px;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .k-cat-toolbar .k-cat-count {
        margin: 0;
        font-size: 16px;
    }

    .k-cat-sort__label {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        font-size: 14px;
        color: var(--k-text-muted);
    }

    .k-cat-sort .k-select {
        min-height: var(--k-control);
        width: auto;
        padding-left: 16px;
        padding-right: 36px;
        background-position: right 12px center;
        font-size: 15px;
    }
}

@media (min-width: 992px) and (pointer: fine) {
    .k-cat-sort .k-select {
        min-height: var(--k-control-sm);
        padding-block: 4px;
    }
}


/* ============================================
   RESULTS
   ============================================ */

.k-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

/* A filter or a sort puts the new results in place without loading the page again (static/js/catalog.js).
   While they are on their way the old ones step back, but only after a moment: a quick answer changes
   nothing on screen before it arrives. The section takes focus when the control that was used is gone. */
.k-cat__results[aria-busy="true"] .k-results {
    opacity: 0.55;
    transition: opacity var(--k-fast) linear 180ms;
}

.k-cat__results:focus {
    outline: none;
    box-shadow: none;
}

/* With a mouse, on a wide screen, the machines that stay move to their new places and the others fade
   (catalog.js names the cards on screen for the browser's view transition) */
@media (prefers-reduced-motion: no-preference) {
    ::view-transition-group(.k-card-move) {
        animation-duration: var(--k-base);
        animation-timing-function: var(--k-ease-out);
    }
}

/* "Show more" jumps to the first new card (#k-item-13). Below 992 px the page's room at its top holds the sticky
   toolbar as well as the header (layout.css, html:has(.k-cat-toolbar)); from 992 px the toolbar does not stick, and
   the card stops a little below the header's room */
@media (min-width: 992px) {
    .k-results .k-card {
        scroll-margin-top: 8px;
    }
}

/* Phones: compact cards; the monthly payment comes first on every card (components.css) */
@media (max-width: 767.98px) {
    .k-results .k-card__media {
        padding: 8px;
    }

    .k-results .k-card__media img,
    .k-results .k-card__nophoto {
        height: 112px;
        aspect-ratio: auto;
    }

    .k-results .k-card__body {
        gap: 2px;
        padding: 10px 12px 12px;
    }

    .k-results .k-card__name {
        font-size: 17px;
    }

    /* A narrow card puts the power on its own line, so no "·" is left at a line's end */
    .k-results .k-card__brand-power {
        display: block;
    }

    .k-results .k-card__sep {
        display: none;
    }
}

@media (min-width: 768px) {
    .k-results {
        grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
        gap: 16px;
        margin-top: 20px;
    }
}

/* Advice card: dark among the results from 768 px, light after them on phones */
.k-advice {
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 26px;
    border-radius: var(--k-radius-sheet);
    background: var(--k-band);
    color: var(--k-white);
}

.k-advice__text {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.k-advice__eyebrow {
    font-family: var(--k-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--k-harvest);
}

:lang(hy) .k-advice__eyebrow {
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
}

.k-advice h3 {
    margin: 0;
    color: var(--k-white);
}

.k-advice p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--k-on-night-2);
}

.k-advice__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.k-advice .k-advice__call {
    min-height: var(--k-control-lg);
    border-color: var(--k-harvest);
    background: var(--k-harvest);
    color: var(--k-night);
    font-weight: 800;
}

.k-advice .k-advice__chat {
    min-height: var(--k-control-lg);
    border: 1px solid #4A5872;
    color: var(--k-white);
}

.k-advice--light {
    display: flex;
    margin-top: 16px;
    padding: 18px;
    background: var(--k-surface-2);
    color: var(--k-text-strong);
}

.k-advice--light h3 {
    color: var(--k-text-max);
}

.k-advice--light p {
    color: var(--k-text);
}

.k-advice--light .k-advice__call {
    border-color: var(--k-green);
    background: var(--k-green);
    color: var(--k-white);
}

.k-advice--light .k-advice__chat {
    border: 1.5px solid var(--k-text-strong);
    background: var(--k-surface);
    color: var(--k-text-strong);
}

.k-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 24px;
}

.k-more p {
    margin: 0;
    font-size: 14px;
    color: var(--k-text-muted);
}

.k-empty {
    margin-top: 20px;
    padding: 32px 24px;
    border: 1px dashed var(--k-chip-line);
    border-radius: var(--k-radius-sheet);
    text-align: center;
}

.k-empty h3 {
    margin: 0 0 8px;
}

.k-empty p {
    margin: 0 0 18px;
    color: var(--k-text);
}

/* A search that found nothing has no line under its heading */
.k-empty h3 + .k-empty__actions {
    margin-top: 18px;
}

.k-empty__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.k-fine {
    max-width: 68ch;
    margin: 28px 0 0;
    font-size: 14px;
    color: var(--k-text-muted);
}


/* ============================================
   FILTERS
   ============================================ */

.k-filters__head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 12px 10px 16px;
    border-bottom: 1px solid var(--k-line);
}

.k-filters__handle {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 40px;
    height: 4px;
    margin-left: -20px;
    border-radius: 2px;
    background: var(--k-chip-line);
}

.k-filters__heading h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
}

.k-filters__match {
    margin: 2px 0 0;
    font-size: 14px;
    color: var(--k-text-muted);
}

.k-filters__body {
    display: flex;
    flex-direction: column;
}

.k-filters__top {
    display: none;
}

.k-facet {
    min-width: 0;
    margin: 0;
    padding: 14px 0;
    border: 0;
    border-bottom: 1px solid var(--k-line);
}

.k-facet__legend {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
    width: 100%;
    margin: 0 0 10px;
    padding: 0;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--k-text-max);
}

.k-facet__hint,
.k-facet__terms {
    font-size: 14px;
    font-weight: 400;
    color: var(--k-text-muted);
}

.k-facet__terms {
    font-family: var(--k-mono);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

:lang(hy) .k-facet__terms {
    letter-spacing: 0;
    text-transform: none;
}

.k-facet__options {
    display: flex;
    flex-direction: column;
}

.k-facet__options--grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.k-facet__note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--k-text);
}

/* An option is a label around a real input, so it works without JavaScript */
.k-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: var(--k-control);
    margin: 0;
    font-size: 16px;
    cursor: pointer;
}

.k-option input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 0;
}

.k-option__label {
    flex: 1;
    min-width: 0;
}

.k-option__count {
    font-family: var(--k-mono);
    font-size: 14px;
    font-weight: 500;
    color: var(--k-text-muted);
}

.k-option:has(input:disabled) {
    color: #6B7380;
    cursor: not-allowed;
}

/* Below 992 px the checkbox groups are chips (pressed = filled), as on the sheet board */
@media (max-width: 991.98px) {
    .k-facet__options--grid .k-option {
        justify-content: space-between;
        padding: 0 12px 0 14px;
        border: 1px solid var(--k-chip-line);
        border-radius: var(--k-radius-control);
        background: var(--k-surface);
        color: var(--k-text-strong);
        font-size: 15px;
        font-weight: 700;
        transition: background-color var(--k-fast) ease-out, transform var(--k-fast) var(--k-ease-out);
        -webkit-tap-highlight-color: transparent;
    }

    .k-facet__options--grid .k-option:not(:has(input:checked)):not(:has(input:disabled)):active {
        background: var(--k-surface-3);
    }

    .k-facet__options--grid .k-option input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .k-facet__options--grid .k-option:has(input:checked) {
        border-color: var(--k-text-strong);
        background: var(--k-fill-ink);
        color: var(--k-white);
    }

    .k-facet__options--grid .k-option:has(input:checked) .k-option__count {
        color: var(--k-on-night-2);
    }

    .k-facet__options--grid .k-option:has(input:disabled) {
        border-style: dashed;
        background: var(--k-surface-2);
        color: #6B7380;
        font-weight: 600;
    }

    .k-facet__options--grid .k-option:has(input:focus-visible) {
        outline: 3px solid var(--k-harvest);
        outline-offset: 2px;
        box-shadow: 0 0 0 2px var(--k-focus-inner);
    }
}

@media (max-width: 991.98px) and (prefers-reduced-motion: no-preference) {
    .k-facet__options--grid .k-option:not(:has(input:disabled)):active {
        transform: scale(0.97);
    }
}

/* From 992 px, with a mouse: the row under the pointer underlines its name */
@media (min-width: 992px) and (hover: hover) and (pointer: fine) {
    .k-option:not(:has(input:disabled)):hover .k-option__label {
        color: var(--k-text-max);
        text-decoration: underline;
        text-underline-offset: 3px;
    }
}

/* "Also show models priced on request" switch */
.k-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    margin: 6px 0 0;
    padding: 6px 8px 6px 12px;
    border-radius: var(--k-radius-button);
    background: var(--k-surface-2);
    font-size: 14px;
    line-height: 1.35;
    color: var(--k-text-strong);
    cursor: pointer;
}

.k-switch[hidden] {
    display: none;
}

.k-switch__label {
    flex: 1;
}

.k-switch__input {
    position: relative;
    flex: 0 0 48px;
    width: 48px;
    height: 28px;
    margin: 0;
    border: 2px solid #6B7380;
    border-radius: 999px;
    background: var(--k-surface);
    appearance: none;
    cursor: pointer;
}

.k-switch__input::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #6B7380;
    transition: transform var(--k-fast) ease-out;
}

.k-switch__input:checked {
    border-color: var(--k-green);
    background: var(--k-green);
}

.k-switch__input:checked::before {
    transform: translateX(20px);
    background: var(--k-surface);
}

.k-filters__lease {
    display: none;
}

/* Sheet footer: Reset and "Show 7 tractors", stuck to the bottom */
.k-filters__foot {
    position: sticky;
    bottom: calc(-1 * var(--bs-offcanvas-padding-y, 16px));
    display: grid;
    /* Reset takes what it needs; "Show N tractors" gets the rest so the longer Armenian fits on one line */
    grid-template-columns: auto 1fr;
    gap: 8px;
    /* margin-top: auto keeps it at the bottom of the sheet when the filters are short */
    margin: auto calc(-1 * var(--bs-offcanvas-padding-x, 16px)) calc(-1 * var(--bs-offcanvas-padding-y, 16px));
    padding: 12px var(--bs-offcanvas-padding-x, 16px) max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--k-line);
    background: var(--k-surface);
}

.k-filters__foot .k-btn {
    padding-inline: 14px;
}

/* Phones: a sheet from 48 px below the top of the screen */
@media (max-width: 991.98px) {
    .k-filters.offcanvas-lg {
        --bs-offcanvas-height: calc(100% - 48px);
        --bs-offcanvas-zindex: 1050;
        --bs-offcanvas-transition: transform var(--k-sheet) var(--k-ease-sheet);
        border-radius: var(--k-radius-sheet) var(--k-radius-sheet) 0 0;
        /* The first shadow is the sheet's own white carried on below it: pulled up, it shows no gap */
        box-shadow: 0 160px 0 var(--k-surface), var(--k-shadow-sheet);
    }

    /* Its sides keep clear of the notch of a phone held sideways (templates/base.html, viewport-fit=cover); 0
       anywhere else. The side panel from 768 px stands at the right edge only (below) */
    .js .k-filters.offcanvas-lg {
        padding-right: env(safe-area-inset-right, 0px);
        padding-left: env(safe-area-inset-left, 0px);
    }

    /* Opened from the keyboard (static/js/motion.js), the sheet is simply there */
    .k-filters.offcanvas-lg.is-instant {
        --bs-offcanvas-transition: none;
    }

    /* Leaving is quicker than arriving */
    .k-filters.offcanvas-lg.hiding {
        --bs-offcanvas-transition: transform var(--k-base) var(--k-ease-sheet);
    }

    /* The sheet is held by its head and pushed down with a finger (static/js/motion.js), so the head gives up
       scrolling. Only with the script: without it the filters sit in the page and the head scrolls with it. */
    .js .k-filters__head {
        touch-action: none;
    }

    /* The sheet's scroll ends at the sheet: the page behind does not take it over, and a pull at the top of
       the list does not reload the page (Android) */
    .k-filters__body {
        overscroll-behavior: contain;
    }

    .k-filters .k-facet:last-of-type {
        border-bottom: 0;
    }
}

/* Tablets: the sheet becomes a 400 px side panel, so the results stay in view */
@media (min-width: 768px) and (max-width: 991.98px) {
    .k-filters.offcanvas-lg {
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: 400px;
        height: 100%;
        max-height: none;
        border-top: 0;
        border-left: 1px solid var(--k-line);
        border-radius: 0;
        transform: translateX(100%);
        /* As a side panel it is pushed back to the right: the browser keeps the up-and-down scrolling */
        touch-action: pan-y;
    }

    .js .k-filters.offcanvas-lg {
        padding-left: 0;
    }

    .js .k-filters__head,
    .k-filters__body {
        touch-action: pan-y;
    }

    .k-filters.offcanvas-lg.showing,
    .k-filters.offcanvas-lg.show:not(.hiding) {
        transform: none;
    }

    .k-filters__handle {
        display: none;
    }
}

/* Without JavaScript the sheet can't open, so the filters sit in the page above the results */
@media (max-width: 991.98px) {
    html:not(.js) .k-filters.offcanvas-lg {
        position: static;
        visibility: visible;
        width: auto;
        height: auto;
        margin-top: 16px;
        border: 1px solid var(--k-line);
        border-radius: var(--k-radius-dialog);
        box-shadow: none;
        transform: none;
    }

    html:not(.js) .k-filters__head .k-icon-btn,
    html:not(.js) .k-cat-toolbar__filters,
    html:not(.js) .k-filters__handle {
        display: none;
    }

    html:not(.js) .k-filters__foot {
        position: static;
    }
}

/* Desktop: a column with mono legends and plain rows */
@media (min-width: 992px) {
    .k-filters__body {
        flex-direction: column;
    }

    .k-filters__top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--k-line);
    }

    .k-filters__title {
        margin: 0;
        font-size: 20px;
        font-stretch: 90%;
    }

    .k-filters__top a {
        font-size: 14px;
        color: var(--k-text);
    }

    .k-facet {
        padding: 18px 0;
    }

    .k-facet__legend {
        margin-bottom: 8px;
        font-family: var(--k-mono);
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--k-text-muted);
    }

    :lang(hy) .k-facet__legend {
        font-size: 14px;
        letter-spacing: 0;
        text-transform: none;
    }

    .k-facet__hint {
        display: none;
    }

    .k-facet__terms {
        font-size: 12px;
    }

    .k-facet__options--grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .k-option {
        min-height: 40px;
        font-size: 15px;
    }

    .k-option__count {
        font-size: 13px;
    }

    .k-filters__lease {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 18px;
        padding: 18px;
        border-radius: var(--k-radius-card);
        background: var(--k-warning-bg);
        font-size: 14px;
        line-height: 1.5;
        color: var(--k-text);
    }

    .k-filters__lease strong {
        font-size: 15px;
        color: var(--k-text-max);
    }

    .k-filters__lease a {
        font-weight: 700;
        color: var(--k-text-max);
    }

    /* The column applies each change at once; without JavaScript it keeps its buttons */
    .js .k-filters__foot {
        display: none;
    }

    .k-filters__foot {
        position: static;
        margin: 16px 0 0;
        padding: 0;
        border: 0;
    }
}

/* ============================================
   TRACTORS PAGE: OPENING LINES AND BUYERS' QUESTIONS
   (includes/tractors_intro.html, tractors_faq.html; 2026-11-02)
   ============================================ */

.k-cat-intro {
    max-width: 68ch;
    margin: 6px 0 12px;
    font-size: 16px;
    line-height: 1.55;
    color: var(--k-text);
}

/* Three lines on phones, two from 768 px, and "More" (static/js/catalog.js); the whole text stays in the
   page, and shows in full without the script */
.js .k-cat-intro:not(.is-open) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.k-cat-intro__more {
    min-width: var(--k-control);
    min-height: var(--k-control);
    margin: -8px 0 4px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--k-text-strong);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color var(--k-fast) ease-out, transform var(--k-fast) var(--k-ease-out);
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
    .k-cat-intro__more:hover {
        color: var(--k-text-green-strong);
        text-decoration-thickness: 2px;
    }
}

.k-cat-intro__more:active {
    color: var(--k-text-green-strong);
    text-decoration-thickness: 2px;
}

@media (prefers-reduced-motion: no-preference) {
    .k-cat-intro__more:active {
        transform: scale(0.97);
    }
}

@media (min-width: 768px) {
    .js .k-cat-intro:not(.is-open) {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}

.k-cat-faq {
    padding: var(--k-section-y) 0 calc(var(--k-section-y) * 1.5);
    border-top: 1px solid var(--k-line);
}

.k-cat-faq__title {
    margin: 0 0 16px;
    color: var(--k-text-max);
}

@media (min-width: 768px) {
    .k-cat-faq__title {
        margin-bottom: 28px;
    }
}

.k-cat-faq__list {
    display: grid;
    gap: 20px 40px;
    margin: 0;
}

@media (min-width: 768px) {
    .k-cat-faq__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.k-cat-faq__list dt {
    font-weight: 700;
    color: var(--k-text-max);
}

.k-cat-faq__list dd {
    max-width: 62ch;
    margin: 4px 0 0;
    line-height: 1.55;
    color: var(--k-text);
}

/* Each brand's own tractors page, under the questions */
.k-cat-faq__brands {
    margin-top: 32px;
}

.k-cat-faq__brands-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--k-text-max);
}

.k-cat-faq__brands ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
