/* Фильтр каталога Buy (02.11, этап 5h / 9.2): белая панель. Цвета, шрифт, размеры — переменные ниже. */
:root { --mf-ink: rgb(43, 43, 43); --mf-text: rgb(43, 43, 43); --mf-muted: rgb(120, 116, 108); --mf-line: rgb(220, 216, 208); --mf-bg: #fff; --mf-soft: rgb(246, 245, 242);
  --mf-accent: rgb(1, 34, 71); --mf-on-accent: #fff; --mf-font: "MGA Inter", Inter, system-ui, sans-serif; --mf-size: 14px; --mf-small: 12px; --mf-h: 44px; --mf-radius: 2px; --mf-pad: 24px; }
html .mf-host { height: auto !important; min-height: 0 !important; background: none !important; border: 0 !important; }
html .mf-host > :not(.mf) { display: none !important; }
html body .mf { box-sizing: border-box; width: 100%; padding: var(--mf-pad); background: var(--mf-bg); border: 1px solid var(--mf-line); font-family: var(--mf-font); font-size: var(--mf-size); color: var(--mf-text); text-align: left; }
html body .mf * { box-sizing: border-box; font-family: inherit; }
html body .mf button { font: inherit; cursor: pointer; }
html body .mf-tabs { display: flex; flex-wrap: wrap; gap: 26px; margin-bottom: 18px; }
html body .mf-tab { padding: 0 0 12px; border: 0; background: none; font-size: var(--mf-small) !important; font-weight: 500 !important; letter-spacing: .14em; text-transform: uppercase; color: var(--mf-ink) !important; }
html body .mf-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
html body .mf-btn, html body .mf-show { display: inline-flex; align-items: center; gap: 8px; height: var(--mf-h); padding: 0 16px; border: 1px solid var(--mf-line); border-radius: var(--mf-radius); background: var(--mf-bg); color: var(--mf-ink); white-space: nowrap; }
html body .mf-btn i { font-style: normal; font-size: 10px; opacity: .7; }
html body .mf-btn[aria-expanded="true"], html body .mf-btn:hover { border-color: var(--mf-ink); }
html body .mf-show { margin-left: auto; border-color: var(--mf-accent); background: var(--mf-accent); color: var(--mf-on-accent); font-weight: 500; letter-spacing: .04em; }
html body .mf-dd { position: relative; }
html body .mf-pop { position: absolute; left: 0; top: calc(100% + 6px); z-index: 40; min-width: 260px; max-height: 360px; overflow: auto; padding: 14px; background: var(--mf-bg); border: 1px solid var(--mf-line); box-shadow: 0 12px 32px rgba(1, 34, 71, .12); }
html body .mf-pop[hidden] { display: none; }
html body .mf-search, html body .mf-ref, html body .mf-range input, html body .mf-range select, html body .mf-range--2 input { width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--mf-line); border-radius: var(--mf-radius); background: var(--mf-bg); font-size: var(--mf-size); color: var(--mf-text); }
html body .mf-search { margin-bottom: 10px; }
html body .mf-bed { display: inline-flex; align-items: center; gap: 8px; }
html body .mf-lbl { font-size: var(--mf-small); color: var(--mf-muted); }
html body .mf-seg { display: inline-flex; border: 1px solid var(--mf-line); border-radius: var(--mf-radius); overflow: hidden; }
html body .mf-seg button { height: calc(var(--mf-h) - 2px); min-width: 40px; padding: 0 12px; border: 0; border-left: 1px solid var(--mf-line); background: var(--mf-bg); color: var(--mf-ink); }
html body .mf-seg button:first-child { border-left: 0; }
html body .mf-seg button[aria-checked="true"] { background: var(--mf-accent); color: var(--mf-on-accent); }
html body .mf-seg--wrap { flex-wrap: wrap; }
html body .mf-chks { display: flex; flex-wrap: wrap; gap: 8px; }
html body .mf-chks--col { flex-direction: column; gap: 6px; }
html body .mf-chk { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--mf-line); border-radius: 40px; font-size: var(--mf-small); color: var(--mf-text); cursor: pointer; user-select: none; }
html body .mf-chks--col .mf-chk { border: 0; padding: 4px 0; border-radius: 0; font-size: var(--mf-size); }
html body .mf-chk input { accent-color: var(--mf-accent); margin: 0; }
html body .mf-chk:has(input:checked) { border-color: var(--mf-accent); }
html body .mf-chk.is-off { opacity: .38; }
html body .mf-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
html body .mf-tiles .mf-chk { justify-content: flex-start; height: 48px; border-radius: var(--mf-radius); }
html body .mf-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; min-height: 0; }
html body .mf-chips__list { display: contents; }
html body .mf-chip { padding: 5px 10px; border: 1px solid var(--mf-line); border-radius: 40px; background: var(--mf-soft); font-size: var(--mf-small); color: var(--mf-ink); }
html body .mf-reset { padding: 0; border: 0; background: none; font-size: var(--mf-small); color: var(--mf-ink); text-decoration: underline; text-underline-offset: 3px; }
html body .mf-reset[hidden] { display: none; }
html body .mf-panel { position: fixed; inset: 0; z-index: 200; display: flex; justify-content: flex-end; background: rgba(1, 20, 45, .38); }
html body .mf-panel[hidden] { display: none; }
html body .mf-panel__in { display: flex; flex-direction: column; width: min(560px, 100%); height: 100%; background: var(--mf-bg); }
html body .mf-panel__head { display: flex; align-items: center; justify-content: space-between; padding: 18px var(--mf-pad); border-bottom: 1px solid var(--mf-line); }
html body .mf-panel__head p { margin: 0; font-weight: 500; font-size: 16px; color: var(--mf-ink); }
html body .mf-x { width: 36px; height: 36px; border: 0; background: none; font-size: 26px !important; line-height: 1; color: var(--mf-ink); }
html body .mf-panel__body { flex: 1 1 auto; overflow: auto; padding: 8px var(--mf-pad) 24px; }
html body .mf-panel__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--mf-pad); border-top: 1px solid var(--mf-line); }
html body .mf-panel__foot .mf-show { margin-left: 0; }
html body .mf-grp { margin: 0; padding: 18px 0; border: 0; border-bottom: 1px solid var(--mf-line); }
html body .mf-grp legend { display: block; width: 100%; margin-bottom: 12px; padding: 0; font-weight: 500; font-size: var(--mf-small); letter-spacing: .12em; text-transform: uppercase; color: var(--mf-ink); }
html body .mf-range { display: flex; align-items: center; gap: 8px; clear: both; }
html body .mf-range--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
html body .mf-range--2 label { display: grid; gap: 6px; font-size: var(--mf-small); color: var(--mf-muted); }
html body .mf-unit { font-size: var(--mf-small); color: var(--mf-muted); white-space: nowrap; }
html body .mf-hist { clear: both; display: flex; align-items: flex-end; gap: 2px; height: 48px; margin-bottom: 10px; }
html body .mf-hist i { flex: 1 1 0; background: var(--mf-line); }
html body .mf-ref { clear: both; }
/* телефон: строка — в две колонки, «Ещё фильтры» и «Показать» — на всю ширину; панель — на весь экран */
html.m body .mf { --mf-pad: 14px; --mf-h: 40px; font-size: 13px; }
html.m body .mf-tabs { gap: 16px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
html.m body .mf-bar { display: grid; grid-template-columns: 1fr 1fr; }
html.m body .mf-bed { grid-column: 1 / -1; justify-content: space-between; }
html.m body .mf-btn, html.m body .mf-show { width: 100%; justify-content: center; }
html.m body .mf-show { grid-column: 1 / -1; margin-left: 0; }
html.m body .mf-pop { min-width: 0; width: max(100%, 240px); }
html.m body .mf-panel__in { width: 100%; }
html.m body .mf-bed .mf-seg { flex: 1 1 auto; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
html.m body .mf-seg button { min-width: 0; padding: 0 4px; }
html body .mf-panel { z-index: 2147483000; }   /* выше полоски значков Wix внизу телефона */
html.m body.mf-open #m_QUICK_ACTION_BAR { display: none !important; }
/* панель в <body> — свои шрифт и цвет (вне .mf) */
html body .mf-panel { font-family: var(--mf-font); font-size: var(--mf-size); color: var(--mf-text); text-align: left; }
html body .mf-panel * { box-sizing: border-box; font-family: inherit; }
html body .mf-panel button { font: inherit; cursor: pointer; }
html body .mf-chk span { display: inline; font-size: inherit; color: inherit; }
html body .mf-panel .mf-chk { font-size: var(--mf-small); }
html.m body .mf-panel { --mf-pad: 14px; --mf-h: 40px; }
html body .mf-grp legend { margin-bottom: 0 !important; padding-bottom: 12px !important; }
html body .mf-grp { padding: 16px 0 !important; }
