/* Фильтры локального прототипа: текущие шрифты и фирменный зелёный сохранены. */
#clearFiltersRoot { --cf-ink: #13382c; --cf-muted: #526259; --cf-line: #7b8e7e; --cf-surface: #f4f7f3; color: var(--cf-ink); }
#clearFiltersRoot *, #clearFiltersRoot *::before, #clearFiltersRoot *::after { box-sizing: border-box; }
#clearFiltersRoot [hidden] { display: none !important; }
.cf-panel { padding: 24px; background: var(--cf-surface); border: 1px solid #d0dbd2; border-radius: 12px; }
.cf-panel-title { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.cf-panel-title h3 { margin: 0; font: 600 20px/1.3 var(--rp-serif, sans-serif); color: var(--cf-ink); }
.cf-icon { width: 20px; height: 20px; flex-shrink: 0; display: block; }
.cf-main { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 24px; align-items: start; }
.cf-field { min-width: 0; }
.cf-field label, .cf-sort label { display: block; font-size: 16px; line-height: 1.4; font-weight: 600; margin-bottom: 9px; color: #263f32; }
.cf-field select, .cf-field input, .cf-sort select { width: 100%; min-height: 56px; border: 1.5px solid var(--cf-line); border-radius: 7px; background-color: #fff; color: #203b2d; font: 400 18px/1.35 var(--rp-font, sans-serif); padding: 13px 15px; box-shadow: none; }
.cf-field select, .cf-sort select { cursor: pointer; padding-right: 44px; appearance: none; background-image: url('/assets/filters-clear-20261101-r1/chevron-down.svg'); background-repeat: no-repeat; background-size: 18px; background-position: right 14px center; }
.cf-field select:hover, .cf-field input:hover, .cf-sort select:hover { border-color: #577360; }
.cf-amount { position: relative; }
.cf-amount input { padding-right: 42px; }
.cf-amount > span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 18px; color: #53665a; pointer-events: none; }
.cf-amount input::placeholder { color: #697a6f; opacity: 1; }
#clearFiltersRoot input[aria-invalid="true"] { border-color: #9f352b; }
.cf-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.cf-presets button { background: #fff; border: 1px solid #8da392; border-radius: 6px; min-height: 44px; padding: 8px 4px; color: #2b4c39; font-size: 16px; line-height: 1.3; font-weight: 600; white-space: nowrap; }
.cf-presets button:hover { border-color: #31553d; background: #eaf0e9; }
.cf-presets button[aria-pressed="true"] { color: #fff; background: #214b33; border-color: #214b33; }
.cf-error, .cf-legacy { font-size: 15px; line-height: 1.5; margin: 8px 0 0; }
.cf-error { color: #8f2e25; }
.cf-legacy { color: #435d4b; }
.cf-extras { margin-top: 20px; border-top: 1px solid #d5dfd6; padding-top: 10px; }
.cf-extras summary { display: flex; align-items: center; gap: 8px; width: fit-content; min-height: 44px; cursor: pointer; font-size: 16px; font-weight: 600; color: #36543e; list-style: none; }
.cf-extras summary::-webkit-details-marker { display: none; }
.cf-extras summary .cf-icon { width: 17px; height: 17px; }
.cf-extras[open] summary .cf-icon { transform: rotate(180deg); }
.cf-extra-count { min-width: 23px; height: 23px; border-radius: 12px; background: #dbe8da; text-align: center; font-size: 13px; line-height: 23px; }
.cf-extra-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 720px; padding-top: 12px; }
.cf-applied { padding: 20px 0 18px; border-bottom: 1px solid #dce3dc; }
.cf-applied-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; font-size: 15px; color: #4c6152; }
.cf-reset { background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; color: #365640; font-size: 15px; line-height: 1.4; min-height: 44px; padding: 9px 0; font-weight: 500; }
.cf-reset:hover { color: #102f1a; }
.cf-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cf-chips:not(:empty) { margin-top: 6px; }
.cf-chip { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; max-width: 100%; padding: 10px 13px; border: 1px solid #a8bda9; border-radius: 7px; background: #ecf3e9; color: #24482f; font-size: 15px; line-height: 1.4; text-align: left; }
.cf-chip strong { font-weight: 600; }
.cf-chip:hover { background: #dfead9; border-color: #648566; }
.cf-chip .cf-icon { width: 17px; height: 17px; }
.cf-no-filters { font-size: 15px; color: #5d6f61; margin: 8px 0 0; }
.cf-results { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 20px 0 22px; }
.cf-count { font-size: 21px; font-weight: 600; color: #183d28; margin: 0; }
.cf-sort { display: flex; gap: 10px; align-items: center; }
.cf-sort label { white-space: nowrap; margin: 0; font-size: 15px; font-weight: 500; color: #536757; }
.cf-sort select { width: 210px; min-height: 48px; font-size: 16px; padding: 10px 32px 10px 12px; }
.cf-mobile-toolbar { display: none; }
.cf-dialog { max-width: 560px; width: 100%; margin: 0 auto; padding: 0; position: fixed; inset: auto 0 0; max-height: 92vh; max-height: 92dvh; border: 0; border-radius: 16px 16px 0 0; color: #13382c; background: #fff; }
.cf-dialog[open] { display: flex; flex-direction: column; }
.cf-dialog::backdrop { background: rgba(12, 32, 23, .58); }
.cf-dialog-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 20px 16px; border-bottom: 1px solid #dfe5de; }
.cf-dialog-head h3 { margin: 0; font-size: 24px; line-height: 1.25; color: #153c27; }
.cf-dialog-head p { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: #536657; }
.cf-close { margin-left: auto; width: 44px; min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid #c4d1c5; border-radius: 7px; background: #f5f7f3; color: #284f32; }
.cf-dialog-body { overflow-y: auto; overscroll-behavior: contain; padding: 20px; }
.cf-dialog .cf-main { display: flex; flex-direction: column; gap: 20px; }
.cf-dialog .cf-field { width: 100%; }
.cf-dialog .cf-presets button { font-size: 15px; }
.cf-dialog .cf-extra-fields { grid-template-columns: 1fr; gap: 20px; }
.cf-draft-reset { margin-top: 10px; }
.cf-dialog-foot { flex-shrink: 0; padding: 10px 20px max(18px, env(safe-area-inset-bottom)); border-top: 1px solid #d5dfd4; background: #fff; }
.cf-draft-count { margin: 0 0 10px; color: #4c6151; font-size: 15px; line-height: 1.4; }
.cf-dialog-actions { display: grid; grid-template-columns: 1fr 2.1fr; gap: 10px; }
.cf-cancel, .cf-apply, .cf-open { min-height: 52px; border-radius: 7px; padding: 12px 14px; font-size: 16px; font-weight: 600; line-height: 1.35; }
.cf-cancel { border: 1.5px solid #9eb29f; color: #36523c; background: #fff; }
.cf-apply, .cf-open { background: #173e2a; border: 1.5px solid #173e2a; color: #fff; }
.cf-apply:hover, .cf-open:hover { background: #285638; }
.cf-apply:disabled { opacity: .5; cursor: not-allowed; }
#clearFiltersRoot button { cursor: pointer; font-family: inherit; }
#clearFiltersRoot :focus-visible { outline: 3px solid #547750; outline-offset: 3px; }
#clearFiltersRoot input:focus-visible, #clearFiltersRoot select:focus-visible { outline: 3px solid #66865b; outline-offset: 2px; border-color: #244d2d; }
.cf-price-note { max-width: 1136px; margin: 24px auto 0; padding: 18px 0 0; border-top: 1px solid #cbd6ca; font-size: 15px; line-height: 1.65; color: #425442; }
@media (max-width: 1180px) and (min-width: 1001px) { .cf-main { gap: 16px; } .cf-panel { padding: 20px; } .cf-field label { font-size: 15px; } .cf-presets button { font-size: 15px; } }
@media (max-width: 1000px) {
  .cf-desktop { display: none; }
  #clearFiltersRoot { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .cf-mobile-toolbar { display: block; grid-column: 1; grid-row: 1; align-self: end; }
  .cf-open { width: 100%; display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; }
  .cf-open .cf-icon { filter: brightness(0) invert(1); }
  .cf-badge { display: inline-grid; place-items: center; background: #fff; color: #21432b; min-width: 23px; height: 23px; padding: 0 4px; border-radius: 12px; font-size: 13px; }
  .cf-results { display: contents; }
  .cf-sort { grid-column: 2; grid-row: 1; display: block; }
  .cf-sort label { margin-bottom: 6px; font-size: 14px; }
  .cf-sort select { width: 100%; min-height: 52px; font-size: 15px; }
  .cf-applied { grid-column: 1 / -1; grid-row: 2; padding: 16px 0; }
  .cf-applied-head { font-size: 14px; }
  .cf-count { grid-column: 1 / -1; grid-row: 3; font-size: 20px; margin: 18px 0; }
  .cf-chip { font-size: 15px; min-height: 46px; }
  .cf-no-filters { font-size: 15px; }
  .cf-price-note { margin: 22px 16px 0; padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) { #clearFiltersRoot *, #clearFiltersRoot *::before, #clearFiltersRoot *::after { scroll-behavior: auto !important; transition: none !important; } }
