/* ==========================================================================
   front-listing.css — сторінка комбінації /{loc}/{cat}/ і району (079–084b; новий вигляд — 084c-1, задачі/084c-1/прототип.html;
   resources/views/front/listing.php, partials/breadcrumbs.php з модифікатором --listing, pagination.php, share.php,
   listing-map.php). Підключається через $page['css'] після front-cards.css (стилі картки .cc — там).
   Палітра й компоненти — головної 077d (токени --front-*, front-base.css); статуси, ТОП, таблиці SEO-тексту й карта — --fl-*.
   Ширина — --front-wrap (як шапка й підвал). Липкі: шапка сайту (--front-header-h) → панель .fl-bar (--fl-bar-h: один рядок —
   54 px; панель ПК перейшла у 2 рядки (вузький ПК 801–1100: «Знайдено N» + «Показати всі» + інструменти не вміщаються; райони — ні, 083a) — клас is-bar-wrap кореня від js/front-listing.js — 100 px;
   ≤ 800 — один рядок (163b-2c): кількість, «Район (N)», кнопка меню сортування — 54 px; без inline-стилів) → карта праворуч і якорі
   (scroll-margin-top). Шапка на телефоні ховається при прокрутці (163b-2c) — top панелі й --fl-sticky — від --front-header-top (висота
   видимої шапки, front-base.css).
   Режими каталогу — клас кореня: без класу — «Карта» (ПК ≥ 1101: одна колонка карток + карта), .is-grid — «Сітка» (3 колонки),
   .is-nomap — точок немає (сітка, перемикача й карти немає). 768–1100 — 2 колонки, < 768 — 1; карта — вікном.
   ========================================================================== */
body.front.is-listing { background: var(--front-bg); }

.is-listing .front-main {
    justify-content: flex-start;
    align-items: stretch;
    padding: 0;
}

.front-container.fl {
    --fl-bar-h: 54px;
    --fl-sticky: calc(var(--front-header-top) + var(--fl-bar-h));
    max-width: none;
    padding: 0 0 72px;
    color: var(--front-text);
}

.front-container.fl.is-bar-wrap { --fl-bar-h: 100px; }

.fl-wrap { width: var(--front-wrap); margin: 0 auto; }

.fl a { color: var(--front-accent); text-decoration: none; }
.fl a:hover { color: var(--front-accent-dark); }

.fl h1,
.fl h2,
.fl h3 { color: var(--front-heading); }

/* якорі (каталог, прайс 084c-7) — під липкою шапкою й панеллю */
.fl [id] { scroll-margin-top: calc(var(--fl-sticky) + 12px); }

/* ── Б2 рядок крихт: ліворуч крихти, праворуч статус, «Підняти в ТОП», «Поділитися» ── */
.fl-top {
    display: flex;
    flex-wrap: wrap;            /* не вміщається в рядок — дії переходять під крихти (крихти не стискаються в колонку) */
    align-items: center;
    gap: 8px 12px;
    padding: 22px 0 6px;
    font-size: 13px;
}

/* крихти — завжди один рядок, як WP .modern-breadcrumbs (доробки 5, 8): «Головна» не скорочується; як у WP (обрізання з кінця) першою
   скорочується трикрапкою поточна (вона повністю в H1): flex-shrink 100000 — частка посилань угору менша за піксель, до мінімуму 3em («› О…» — рядок триває);
   посилання вгору лишаються повними й скорочуються лише потім, до 6em (читабельне слово, не одна літера); повна назва — title */
.front-crumbs--listing { flex: 0 1 auto; min-width: 0; max-width: 100%; font-size: 13px; }
.front-crumbs--listing ol { flex-wrap: nowrap; gap: 0; overflow: hidden; }
.front-crumbs--listing li { display: block; flex: 0 1 auto; min-width: 6em; overflow: hidden; color: var(--front-muted); font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.front-crumbs--listing li.front-crumbs-home { flex: none; min-width: 0; }
/* «Головна»: ≥ 768 — текст (прототип), < 768 — іконка дому (як WP .breadcrumb-home; доробка 7); посилання — aria-label */
.front-crumbs--listing .front-crumbs-home-icon { display: none; vertical-align: -2px; }
.front-crumbs--listing li:last-child { flex-shrink: 100000; min-width: 3em; }
.front-crumbs--listing li + li::before { content: "›"; margin: 0 8px; color: var(--front-line); }
.front-crumbs--listing svg { width: 14px; height: 14px; }
.front-crumbs--listing a { color: var(--front-muted); }
.front-crumbs--listing a:hover,
.front-crumbs--listing a:focus { color: var(--front-accent); }
.front-crumbs--listing li:last-child { color: var(--front-accent); font-weight: 600; }

.fl-top-actions { display: flex; flex: none; align-items: center; gap: 4px; margin-left: auto; }

/* «Дані верифіковано…» — чип із зеленою крапкою */
.fl-verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    margin-right: 6px;
    padding: 0 12px;
    border: 1px solid var(--front-line);
    border-radius: 999px;
    background: var(--front-surface);
    color: var(--front-muted);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.fl-verified::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--fl-open); }

/* «Просувати», «Поділитися» (доробки 4–5): стримана іконка-кнопка без тла й рамки, на всіх ширинах лише іконка (текст — у
   aria-label / title) — токени й значення «Це мій бізнес» сторінки компанії в режимі іконки (.fc-sh-action ≤ 768: padding 8px;
   front-company.css тут не підключено): приглушений колір, наведення — акцент. Дія для бізнесу кольором не виділяється */
.fl-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--fl-text-light);
    cursor: pointer;
    transition: color .2s, background .2s;
}

.fl-action:hover { color: var(--fl-accent); opacity: .7; }
.fl-action-icon { flex-shrink: 0; width: 16px; height: 16px; }
svg.fl-action-icon:not([stroke]) { fill: currentColor; }

/* ── Б3 плитка іконки + H1, опис (ПК — повністю; ≤ 1100 — 3 рядки + «Читати далі»); мітки категорії немає (доробка 6) ── */
.fl-hero { padding: 14px 0 22px; }

.fl-head { display: flex; align-items: flex-start; gap: 20px; padding: 2px 0 4px; }

/* плитка — спільна .front-tile (front-base.css, 088: фон і колір іконки, як hero компанії); тут — розмір і радіус макета */
.fl-cat-icon { width: 64px; height: 64px; border-radius: 16px; }

.fl-cat-svg { width: 26px; height: 26px; fill: currentColor; }

.fl-info { flex: 1; min-width: 0; }

.front .fl-title {
    margin: 0 0 12px;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.04em;
    overflow-wrap: anywhere;
}

.fl-desc { max-width: 900px; color: var(--front-ed-text); font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.fl-desc p { margin: 0 0 10px; }
.fl-desc > :last-child { margin-bottom: 0; }

/* «Читати далі» / «Згорнути» (доробка 2, 28.10.2026) — лише ≤ 1100 (медіа нижче); на ПК опис повністю, кнопки немає.
   Кнопка — WP .read-more-btn (combo-styles.css): біла, 13 px, 2px 8px, радіус 20 px, без рамки, наведення — акцент; кольори 077d */
.fl-more {
    display: none;
    margin: 0 0 2px;
    padding: 2px 8px;
    border: 0;
    border-radius: 20px;
    background: var(--front-surface);
    color: var(--front-text);
    font: inherit;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
}

.fl-more:hover { color: var(--front-accent); }

/* ── Б3 «Loca Індекс» праворуч від H1 (084c-7; прототип .idx): темна картка, 4 плитки орієнтирів (price_data.summary), типовий
   графік, «Калькулятор вартості» і «Карта (N)». ПК (≥ 1101) — колонка 380 px, липка під шапкою; H1, опис і напрямки — ліворуч
   (рядки сітки: шапка, напрямки 1fr — висока картка «Індексу» не розсуває опис і напрямки). ≤ 1100 — під напрямками, не липка.
   «Карта (N)»: ПК — якір до каталогу з картою праворуч, ≤ 1100 — кнопка вікна карти (084a); у HTML обидві, показ — CSS ── */
.fl-hero.has-index { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: auto 1fr; column-gap: 28px; align-items: start; }
.fl-hero.has-index > :not(.fl-index) { grid-column: 1; }

.fl-index {
    grid-column: 2;
    grid-row: 1 / span 2;
    position: sticky;
    top: calc(var(--front-header-h) + 12px);
    padding: 20px;
    border-radius: 22px;
    background: var(--front-accent-dark);
    color: var(--front-on-deep);
}

.fl-index-kicker { margin: 0; color: var(--front-on-deep-label); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.fl-index-title { margin: 4px 0 14px; font-size: 16px; font-weight: 800; }
.fl-index-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fl-index-tile { min-width: 0; padding: 12px; border: 1px solid color-mix(in srgb, var(--front-on-deep) 12%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--front-on-deep) 4%, transparent); }
.fl-index-tile span { display: block; color: var(--front-on-deep-muted); font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.fl-index-tile b { display: block; margin-top: 4px; font-size: 16px; line-height: 1.25; }
.fl-index-tile small { display: block; margin-top: 2px; color: var(--front-on-deep-muted); font-size: 11px; line-height: 1.35; }
.fl-index-sched { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; color: var(--front-on-deep-muted); font-size: 12px; line-height: 1.4; }
.fl-index-sched svg { flex: none; }
.fl-index-sched b { color: var(--front-on-deep); }
.fl-index-acts { display: flex; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--front-on-deep) 12%, transparent); }

.fl .fl-index-calc,
.fl-index-map {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.fl .fl-index-calc { flex: 1; background: var(--fl-open); color: var(--front-surface); }
.fl .fl-index-map { background: color-mix(in srgb, var(--front-on-deep) 10%, transparent); color: var(--front-on-deep); cursor: pointer; }
.fl .fl-index-calc:hover,
.fl .fl-index-map:hover { color: var(--front-surface); opacity: .85; }
.fl-index-map--modal { display: none; }

/* ── Б4 напрямки — картки під описом; праворуч від заголовка — «Дивитись прайс ↓» до таблиці (лише коли таблиця є, 084c-7) ── */
.fl-dirs { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--front-line); }
.fl-dirs > .fl-dcards,
.fl-dirs > .fl-dirs-note { grid-column: 1 / -1; }

.front .fl-dirs-title {
    margin: 0 0 12px;
    color: var(--front-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.fl .fl-dirs-price { font-size: 13px; font-weight: 700; white-space: nowrap; }
.fl-dirs-solo { margin: 12px 0 0; text-align: right; }

.fl-dcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }

/* компактна картка — одна на всі ширини (рішення власника 29.10.2026, як картка телефона доробки 3): рядок 1 — іконка + назва (до
   2 рядків, перенос лише між словами), рядок 2 — кількість з формою слова дрібно (вузька картка — переноситься) і в тому самому
   рядку праворуч «від N ₴»; предок — «Ширший вибір послуг» рядком нижче. Висота — за вмістом (~60–75 px), ряд сітки рівний */
.fl .fl-dcard {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: flex-start;
    gap: 3px 6px;
    padding: 10px;
    border: 1px solid var(--front-line);
    border-radius: 14px;
    background: var(--front-surface);
    color: var(--front-text);
}

.fl .fl-dcard:hover { border-color: var(--front-accent); color: var(--front-text); }

.fl-dcard-top { display: contents; }
.fl-dcard-top > span { order: 2; flex: 1 1 0; min-width: 0; color: var(--front-muted); font-size: 11px; font-weight: 600; line-height: 1.3; }

.fl-dcard-icon { order: 0; flex: none; width: 20px; height: 20px; color: var(--front-accent); }
svg.fl-dcard-icon:not([stroke]) { fill: currentColor; }
.fl-dcard-name { order: 1; flex: 1 1 calc(100% - 26px); min-width: 0; font-size: 13px; line-height: 1.2; overflow-wrap: break-word; }
.fl-dcard-price,
.fl-dcard-note { order: 3; margin-left: auto; font-size: 11px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.fl-dcard-price { color: var(--front-accent); }
.fl-dcard-note { flex-basis: 100%; margin-left: 0; color: var(--front-muted); font-size: 11px; font-weight: 600; white-space: normal; }
.fl-dirs-note { margin: 10px 0 0; color: var(--front-muted); font-size: 12px; }

/* ── Б5 панель (липка): знайдено, райони, сортування, «Карта» / «Сітка» ── */
.fl-bar {
    position: sticky;
    top: var(--front-header-top);
    z-index: 35;
    border-block: 1px solid var(--front-line);
    background: var(--front-bg);
}

.fl-bar-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 52px; padding: 6px 0; }

.fl-found { flex: none; margin: 0; font-size: 13px; font-weight: 700; line-height: 32px; white-space: nowrap; }

/* райони — ОДИН список .fl-districts-list (083a, рішення власника 02.11.2026): ПК — вільне місце між «Знайдено N» і
   інструментами; видно стільки районів, скільки вміщається ПОВНІСТЮ в один рядок (рядок висоти чипа; що не вмістилось —
   переноситься в другий рядок, обрізаний overflow: clip — не hidden, фокус не прокручує список; ::before нульової ширини й висоти чипа —
   перший елемент рядка, тож навіть перший задовгий район переноситься, а не обрізається). Інструменти через райони не
   переходять у другий рядок (contain: inline-size — список не розпирає панель; мінімум — кнопка «Показати всі»).
   «Показати всі (N)» — праворуч; усе вмістилось — is-fit (js/front-listing.js), кнопки немає; без JS — видима.
   is-open — той самий список повністю панеллю поверх карток під панеллю, на всю ширину (position: absolute відносно липкої
   .fl-bar — макет не зсувається; вища за екран — прокрутка всередині). Телефон — увесь список такою самою панеллю */
.fl-districts { display: flex; flex: 1 1 0; align-items: center; gap: 6px; min-width: 0; }

.fl-districts-list {
    display: flex;
    flex: 1 1 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 6px;
    min-width: 0;
    height: 32px;
    overflow: clip;
    overflow-clip-margin: 8px;
    contain: inline-size;
}

.fl-districts-list::before { content: ""; flex: none; height: 32px; margin-right: -6px; }
.fl-districts.is-open .fl-districts-list::before { content: none; }

.fl .fl-district {
    display: inline-block;
    height: 32px;
    line-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--front-chip-soft);
    color: var(--front-text);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.fl .fl-district:hover { color: var(--front-accent); }

.fl-districts.is-open .fl-districts-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 36;
    gap: 6px;
    width: var(--front-wrap);
    height: auto;
    max-height: calc(100vh - var(--fl-sticky) - 16px);
    margin: 0 auto;
    padding: 12px;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--front-line);
    border-top: 0;
    border-radius: 0 0 16px 16px;
    background: var(--front-surface);
    box-shadow: var(--front-shadow-pop);
}

.fl-districts-toggle {
    flex: none;
    margin-left: auto;
    padding: 0 6px;
    border: 0;
    background: none;
    color: var(--front-accent);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
    cursor: pointer;
}

.fl-districts.is-fit:not(.is-open) .fl-districts-toggle { display: none; }

.fl-districts-btn {
    display: none;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--front-line);
    border-radius: 999px;
    background: var(--front-surface);
    color: var(--front-text);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.fl-districts-btn[aria-expanded="true"] { border-color: var(--front-accent); color: var(--front-accent); }

/* сортування (080) і перемикач вигляду — сегменти на м'якому тлі, ≥ 13 px */
.fl-sort,
.fl-view { display: flex; flex: none; gap: 2px; padding: 3px; border-radius: 12px; background: var(--front-chip-soft); }

/* сортування й вигляд — одним блоком праворуч (при переносі панелі — разом, у другий рядок) */
.fl-bar-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-left: auto; }

/* кнопка меню сортування (163b-2c) — лише телефон ≤ 800: там .fl-sort — випадне меню (нижче); на ПК — вкладки, кнопки немає */
.fl-sort-toggle { display: none; }

.fl .fl-sort-btn,
.fl-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    background: none;
    color: var(--front-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.fl .fl-sort-btn:hover,
.fl-view-btn:hover { color: var(--front-text); }

.fl .fl-sort-btn.is-active,
.fl-view-btn[aria-pressed="true"] { background: var(--front-surface); color: var(--front-text); box-shadow: var(--front-card-shadow); }

.fl-view-btn { font-weight: 700; }

/* 084c-2a: кожна кнопка сортування — у своїй формі GET; форма не створює коробки (кнопки — пункти сегмента, як були посилання);
   на час fetch кнопки заблоковані (js/front-listing.js) */
.fl-form { display: contents; }
.fl .fl-sort-btn:disabled { cursor: progress; }

/* ── Б6 H2 + каталог ── */
.fl-catalog { padding: 26px 0 10px; }

.front .fl-h2 { margin: 0 0 18px; font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -.03em; overflow-wrap: anywhere; }

.fl-split { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 24px; align-items: start; }

.fl-grid { display: grid; gap: 14px; align-items: stretch; }

.fl.is-grid .fl-split { grid-template-columns: minmax(0, 1fr); }
.fl.is-grid .fl-mapcol { display: none; }
.fl.is-grid .fl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* колонка списку (082a): картки сторінки й під ними схожі компанії — сітка й картки ті самі (.fl-grid, front-cards.css); тут лише
   відступ заголовка блоку від карток (як H2 каталогу від панелі) і посилання «Усі N …» під ними */
.fl-list { min-width: 0; }
.fl-others { margin-top: 26px; }
.fl-others-all { margin: 14px 0 0; }

/* карта праворуч: стоїть на місці під панеллю; висота — екран мінус шапка й панель */
.fl-mapcol { position: sticky; top: calc(var(--fl-sticky) + 16px); }

.fl-mapbox {
    position: relative;
    display: flex;
    height: calc(100vh - var(--fl-sticky) - 40px);
    min-height: 420px;
    max-height: 760px;
    border: 1px solid var(--front-line);
    border-radius: 18px;
    background: var(--front-chip-soft);
    overflow: hidden;
}

.fl-map { flex: 1 1 auto; min-height: 0; background: var(--front-chip-soft); }

.fl-map-full {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 500;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--front-line);
    border-radius: 8px;
    background: var(--front-surface);
    color: var(--front-text);
    cursor: pointer;
}

.fl-map-full:hover { color: var(--front-accent); }

/* підказка Ctrl + колесо: 1,5 с поверх карти (js/front-map.js, клас is-on) */
.fl-map-hint {
    position: absolute;
    inset: 0;
    z-index: 600;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 16px;
    background: var(--front-overlay);
    color: var(--front-surface);
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}

.fl-map-hint.is-on { opacity: 1; }

/* ── Б8 прогрес + «Показати ще» + нумерація (partials/pagination.php) ── */
.fl-pages { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 0 8px; }

.fl-progress { width: min(560px, 100%); }

.fl-progress-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 12px;
    margin: 0;
    color: var(--front-muted);
    font-size: 13px;
    font-weight: 600;
}

.fl-progress-bar {
    display: block;
    width: 100%;
    height: 8px;
    margin-top: 8px;
    border: 0;
    border-radius: 999px;
    background: var(--front-chip-soft);
    color: var(--fl-open);
    overflow: hidden;
    appearance: none;
}

.fl-progress-bar::-webkit-progress-bar { border-radius: 999px; background: var(--front-chip-soft); }
.fl-progress-bar::-webkit-progress-value { border-radius: 999px; background: var(--fl-open); }
.fl-progress-bar::-moz-progress-bar { border-radius: 999px; background: var(--fl-open); }

/* «Показати ще» (117; макет 2027 Б8 — кнопка між прогресом і нумерацією): спокійна .front-btn--quiet з плюсом (113d, власник 09.11.2026 —
   як «Опублікувати відгук»: тло --front-quiet, текст акцентом, без тіні; акцент сторінки — лише кнопки конверсії); довгий текст
   (форма слова категорії) переноситься по центру; на час запиту — приглушена й не натискається; помилка — рядок під нею */
.fl-next { max-width: 100%; white-space: normal; text-align: center; }
.fl-next[aria-disabled="true"] { opacity: .6; pointer-events: none; }
.fl-next-error { margin: 0; color: var(--front-danger); font-size: 13px; font-weight: 600; text-align: center; }

.fp { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }

.fp-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--front-line);
    border-radius: 12px;
    background: var(--front-surface);
    color: var(--front-text);
    font-size: 13px;
    font-weight: 700;
}

.fl a.fp-item { color: var(--front-text); }
.fl a.fp-item:hover { border-color: var(--front-accent); color: var(--front-accent); }
/* поточна сторінка (113d, власник 09.11.2026): світло-мʼятний квадрат — тло --front-quiet, ледь видна зеленувато-сіра рамка 1 px (та сама,
   що в поточного кроку вікна відгуку, --fl-review-step-line), цифра акцентом жирна */
.fp-item.is-current { border-color: var(--fl-review-step-line); background: var(--front-quiet); color: var(--front-accent); font-weight: 800; }
.fp-dots { border-color: transparent; background: none; }

/* ── Б9 SEO-текст (лише сторінка 1 комбінації) ── */
.fl-seo { padding: 48px 0 8px; }

.fl-eyebrow { margin: 0 0 8px; color: var(--front-accent); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }

.fl-text { max-width: 980px; color: var(--front-ed-text); font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.fl-seo .fl-text { overflow-x: auto; }
.fl-text h2 { margin: 0 0 12px; color: var(--front-heading); font-size: 28px; font-weight: 800; line-height: 1.15; letter-spacing: -.03em; }
.fl-text h3 { margin: 18px 0 8px; color: var(--front-heading); font-size: 18px; line-height: 1.35; }
.fl-text img { max-width: 100%; height: auto; }

/* стара таблиця прайсу, яку перенос не розібрав (084c-5: виводиться як є); нова — .fl-pt нижче */
.fl-text table:not(.fl-pt) {
    width: 100%;
    margin: 16px 0;
    border: 1px solid var(--front-line);
    border-radius: 16px;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--front-surface);
    font-size: 14px;
    overflow: hidden;
    overflow-wrap: normal;
}

.fl-text table:not(.fl-pt) th,
.fl-text table:not(.fl-pt) td { padding: 12px 18px; border-bottom: 1px solid var(--front-line); text-align: left; }
.fl-text table:not(.fl-pt) tr:last-child td { border-bottom: 0; }
.fl-text table:not(.fl-pt) thead th,
.fl-text table:not(.fl-pt) tr:first-child td { background: var(--front-panel); color: var(--front-muted); font-size: 12px; font-weight: 700; }
.fl-text table:not(.fl-pt) td:last-child { color: var(--front-accent); font-weight: 700; }
.fl-text table:not(.fl-pt) strong { font-weight: 700; }

/* таблиця прайсу з даних (084c-5, PriceData::table(); прототип .pt): шапка <th> на панелі 12 px, ціна — акцент, жирна; розділ
   списку — рядок на всю ширину, як шапка; клас тарифу — <th scope="row"> з підписом (note) під назвою. Вузький екран — як WP
   (.seo-text table): таблиця стискається в ширину, текст переноситься; прокрутка контейнера (.fl-seo .fl-text) — лише запасна */
.fl-pt {
    width: 100%;
    margin: 16px 0;
    border: 1px solid var(--front-line);
    border-radius: 16px;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--front-surface);
    font-size: 14px;
    overflow: hidden;
    overflow-wrap: normal;
}

.fl-pt th,
.fl-pt td { padding: 12px 16px; border-bottom: 1px solid var(--front-line); text-align: left; vertical-align: top; }
.fl-pt thead th,
.fl-pt .fl-pt-sec th { background: var(--front-panel); color: var(--front-muted); font-size: 12px; font-weight: 700; }
.fl-pt tbody tr:last-child > * { border-bottom: 0; }
.fl-pt tbody th { color: var(--front-heading); font-weight: 700; }
.fl-pt .fl-pt-pr { color: var(--front-accent); font-weight: 800; white-space: nowrap; }
.fl-pt-note { display: block; margin-top: 2px; color: var(--front-muted); font-size: 12px; font-weight: 500; }
.fl-pt .fl-pt-extra td { color: var(--front-muted); }
.fl-pt .fl-pt-extra .fl-pt-pr { color: var(--front-text); font-weight: 600; }
/* колонка «Дія» (084c-7, прототип .pt td.act): «Розрахувати →» — посилання до калькулятора, опція — сірим; ≤ 540 — схована */
.fl-pt .fl-pt-act { text-align: right; white-space: nowrap; }
.fl-pt td.fl-pt-act a { font-size: 12px; font-weight: 700; }
.fl-pt td.fl-pt-act span { color: var(--front-muted); font-size: 12px; }

/* ── Б9 калькулятор праворуч від SEO-тексту й таблиці (084c-7; прототип .pricegrid / .calc): ПК — колонка 400 px, липкий під шапкою
   й панеллю, не вищий за екран (доробка 1, 30.10.2026): шапка калькулятора зверху, список опцій (.fl-calc-body) гортається, підсумок
   + «Обрати компанію ↑» + примітка (.fl-calc-foot) — закріплені внизу панелі, видно завжди; не вміщається — над підсумком «ще N послуг ↓»
   (js/front-price-calc.js). ≤ 1100 — під таблицею, список повністю, підсумок під ним. Опції — сервером, вибір і підсумок — JS ── */
.fl-pricegrid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; padding-top: 48px; }
.fl-pricegrid > .fl-seo { min-width: 0; padding-top: 0; }

.fl-calc {
    position: sticky;
    top: calc(var(--fl-sticky) + 12px);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - var(--fl-sticky) - 24px);
    padding: 20px;
    border: 1px solid var(--front-line);
    border-radius: 22px;
    background: var(--front-panel);
}

.fl-calc > * { flex: none; }
/* список — єдина частина, що гортається (відступ — щоб обвідка фокусу плитки не обрізалась) */
.fl-calc > .fl-calc-body { flex: 0 1 auto; min-height: 0; margin: 0 -6px; padding: 2px 6px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.fl-calc-more { align-self: center; margin: 8px 0 0; padding: 4px 12px; border: 1px solid var(--front-line); border-radius: 999px; background: var(--front-surface); color: var(--front-accent); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.fl-calc-more:hover { border-color: var(--front-accent); }
.fl-calc-more[hidden],
.fl-calc-total[hidden] { display: none; }

.fl-calc-kicker { margin: 0; color: var(--front-accent); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.fl-calc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 4px 0 14px; }
.fl-calc-title { margin: 0; color: var(--front-heading); font-size: 17px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.fl-calc-badge { flex: none; padding: 3px 10px; border: 1px solid var(--front-line); border-radius: 999px; background: var(--front-surface); color: var(--front-muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.fl-calc-step { margin: 12px 0 8px; color: var(--front-heading); font-size: 13px; font-weight: 800; }
.fl-calc-body > .fl-calc-step:first-child { margin-top: 0; }
.fl-calc-sec { grid-column: 1 / -1; margin: 4px 0; color: var(--front-muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

/* плитки вибору (основна послуга / клас) — радіокнопка схована візуально, фокус клавіатури — на плитці */
.fl-calc-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fl-calc-opt { position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px; border: 1px solid var(--front-line); border-radius: 14px; background: var(--front-surface); font-size: 13px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; cursor: pointer; }
.fl-calc-opt input { position: absolute; opacity: 0; pointer-events: none; }
.fl-calc-opt small { color: var(--front-muted); font-size: 12px; font-weight: 600; }
.fl-calc-opt.is-on { border-color: var(--fl-open); background: var(--fl-open-bg); }
.fl-calc-opt:focus-within { outline: 2px solid var(--front-focus); outline-offset: 2px; }

/* галочки (опції, «кошик») і поля кількості (км, хв, позиція з одиницею) */
.fl-calc-chk,
.fl-calc-qty { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; padding: 10px 12px; border: 1px solid var(--front-line); border-radius: 12px; background: var(--front-surface); font-size: 13px; line-height: 1.35; }
.fl-calc-chk { cursor: pointer; }
.fl-calc-qty { padding: 8px 12px; }
.fl-calc-chk span { display: flex; align-items: center; gap: 10px; min-width: 0; overflow-wrap: anywhere; }
.fl-calc-qty span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.fl-calc-chk input { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--front-accent); }
.fl-calc-chk b { flex: none; font-size: 12px; white-space: nowrap; }
.fl-calc-qty small { color: var(--front-muted); font-size: 12px; font-weight: 600; }
.fl-calc-qty input { flex: none; width: 70px; height: 32px; padding: 0 8px; border: 1px solid var(--front-line); border-radius: 8px; background: var(--front-surface); color: var(--front-text); font: inherit; text-align: right; }
.fl-calc-list > :last-child,
.fl-calc-qtys > :last-child { margin-bottom: 0; }

/* підсумок — темна плашка: «Орієнтовний бюджет (…)», сума, «Обрати компанію ↑» (якір до каталогу) */
.fl-calc-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding: 16px; border-radius: 16px; background: var(--front-accent-dark); color: var(--front-on-deep); }
.fl-calc-total > div { min-width: 0; }
.fl-calc-total small { display: block; color: var(--front-on-deep-muted); font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.fl-calc-total b { display: block; font-size: 22px; line-height: 1.25; }
.fl .fl-calc-go { flex: none; padding: 9px 14px; border-radius: 12px; background: var(--fl-open); color: var(--front-surface); font-size: 12px; font-weight: 800; }
.fl .fl-calc-go:hover { color: var(--front-surface); opacity: .85; }
.fl-calc-fine { margin: 10px 0 0; color: var(--front-muted); font-size: 11px; }

/* якорі «Калькулятор вартості», «Дивитись прайс ↓» — блок, до якого привели, коротко підсвічується (прототип .flash) */
.fl-calc:target,
.fl-seo:target { animation: fl-flash 1.2s ease; }
@keyframes fl-flash { 0%, 60% { box-shadow: 0 0 0 4px var(--front-star); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ── Б10 перелінковка — 2 картки поруч ── */
.fl-related { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 48px; }

.fl-relcard { padding: 20px; border: 1px solid var(--front-line); border-radius: 22px; background: var(--front-surface); }

.fl-relcard-head { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--front-line); }

.fl-tile-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--front-mint);
    color: var(--front-accent);
    font-weight: 800;
}

.front .fl-relcard-title { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.3; letter-spacing: -.02em; overflow-wrap: anywhere; }

.fl-rellist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.fl .fl-rel {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid var(--front-line);
    border-radius: 12px;
    color: var(--front-text);
    font-size: 13px;
    font-weight: 600;
}

.fl-rel span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-rel b { flex: none; color: var(--front-muted); font-weight: 600; }
.fl .fl-rel:hover { border-color: var(--front-accent); color: var(--front-accent); }

/* ── Б11 часті питання ── */
.fl-faq { margin-top: 48px; padding: 24px; border: 1px solid var(--front-line); border-radius: 22px; background: var(--front-surface); }

.fl-faq-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--front-line); }
.front .fl-faq-title { margin: 0; font-size: 22px; font-weight: 800; }
.fl-faq-sub { margin-left: auto; color: var(--front-muted); font-size: 12px; text-align: right; }

.fl-faq-item { border-bottom: 1px solid var(--front-line); }
.fl-faq-item:last-child { border-bottom: 0; }

.fl-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 0;
    list-style: none;
    cursor: pointer;
}

.fl-faq-item summary::-webkit-details-marker { display: none; }
.front .fl-faq-q { margin: 0; font-size: 15px; font-weight: 800; line-height: 1.4; }

.fl-faq-arrow {
    display: grid;
    flex: none;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--front-chip-soft);
    color: var(--front-muted);
    transition: transform .2s;
}

.fl-faq-item[open] .fl-faq-arrow { transform: rotate(180deg); }

.fl-faq-a { padding: 0 0 18px; color: var(--front-ed-text); line-height: 1.65; overflow-wrap: anywhere; }
.fl-faq-a p { margin: 0 0 8px; }
.fl-faq-a > :last-child { margin-bottom: 0; }

/* плашка відгуку на місці картинки відповіді */
.fl-revbox {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 12px 0 4px;
    padding: 14px 16px;
    border: 1px solid var(--front-line);
    border-radius: 16px;
    background: var(--front-ed);
}

.fl-revbox-star {
    display: grid;
    flex: none;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--front-butter);
    color: var(--front-star);
    fill: currentColor;
}

.fl-revbox-text { min-width: 0; }
.fl-revbox-text b { display: block; color: var(--front-text); font-size: 14px; }
.fl-revbox-text small { display: block; color: var(--front-muted); font-size: 12px; line-height: 1.45; }

.fl .fl-revbox-btn {
    flex: none;
    margin-left: auto;
    padding: 10px 16px;
    border: 1px solid var(--front-line);
    border-radius: 12px;
    background: var(--front-surface);
    color: var(--front-text);
    font-size: 13px;
    font-weight: 800;
}

.fl .fl-revbox-btn:hover { border-color: var(--front-accent); color: var(--front-accent); }

/* ── Плаваючі кнопки — один ряд по центру внизу (місце й під «Порівняння» 084c-3); поки на екрані cookie-банер 075c — над ним
   (--front-bottom-inset) ── */
.fl-floats {
    position: fixed;
    bottom: calc(18px + var(--front-bottom-inset, 0px));
    left: 50%;
    z-index: 45;
    display: flex;
    justify-content: center;
    gap: 10px;
    transform: translateX(-50%);
    pointer-events: none;
    transition: bottom .3s;
}

.fl-floats > * { pointer-events: auto; }

/* кнопка «Карта» з хрестиком (163b-2b): обгортка — місце кнопки в ряду; хрестик — кружечок 22 px у правому верхньому куті кнопки, зона
   дотику 32 × 32; лише ≤ 800 (нижче); [hidden] — кнопку сховано до перезавантаження */
.fl-float-box { position: relative; display: flex; }
.fl-float-box[hidden] { display: none; }

.fl-float-close {
    position: absolute;
    top: -12px;
    right: -12px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--front-surface);
    cursor: pointer;
}

.fl-float-close svg {
    box-sizing: content-box;
    padding: 5px;
    border: 2px solid var(--front-surface);
    border-radius: 50%;
    background: var(--front-muted);
}

.fl-float-close:focus-visible { outline: 3px solid var(--front-focus); outline-offset: -3px; border-radius: 50%; }

.fl-float-map {
    display: none;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: var(--front-accent-dark);
    color: var(--front-surface);
    font: inherit;
    font-weight: 800;
    box-shadow: var(--front-shadow-pop);
    cursor: pointer;
}

.fl.is-grid:not(.is-nomap) .fl-float-map { display: inline-flex; }

/* ── Вікно карти (084a): той самий контейнер карти, перенесений у вікно ── */
.fmodal-body[data-map-slot] { flex: 1 1 auto; display: flex; flex-direction: column; }
.fmodal-body[data-map-slot] .fl-map { flex: 1 1 auto; }

/* приглушення карти (084d, доробка 1, власник 17.11.2026, «варіант 2 — легке»): лише шар картинок карти — мітки, вікно, кнопки й
   підпис OpenStreetMap лежать в інших шарах і не приглушуються; колонка, «На весь екран» і телефон — той самий контейнер */
.fl-map .leaflet-tile-pane { filter: saturate(.55) brightness(1.04); }

/* мітка (084d, власник 17.11.2026, «варіант 1»): крапля 30 × 38 (SVG з js/front-map.js) — заливка акцентом, біла обвідка 2,5 px і
   біла крапка в центрі, м'яка тінь; вістря — на координаті (iconAnchor). Група — кружок 34 px з числом, та сама заливка й обвідка.
   Золота й ×1,25 — is-hot (курсор на картці компанії) і is-open (відкрите її вікно), поверх сусідніх. Leaflet ставить мітці
   transform: translate3d — тому збільшується вміст (SVG / кружок), від вістря / центру. Фокус клавіатури — видима обвідка. */
.fmap-pin svg {
    display: block;
    overflow: visible;
    filter: drop-shadow(var(--fl-cta-shadow));
    transform-origin: 50% 100%;
    transition: transform .15s;
}
.fmap-pin-body { fill: var(--front-accent); stroke: var(--front-surface); stroke-width: 2.5; stroke-linejoin: round; transition: fill .15s; }
.fmap-pin-dot { fill: var(--front-surface); }

/* leaflet.css підвантажується пізніше й ставить .leaflet-marker-icon { display: block } — число центрується без flex */
.fmap-group-n {
    display: block;
    height: 100%;
    border: 2.5px solid var(--front-surface);
    border-radius: 50%;
    background: var(--front-accent);
    color: var(--front-surface);
    font-family: var(--front-font);
    font-size: 12px;
    font-weight: 800;
    line-height: 29px;
    text-align: center;
    box-shadow: var(--fl-cta-shadow);
    transition: transform .15s, background .15s;
}

.fmap-pin.is-hot,
.fmap-pin.is-open,
.fmap-group.is-hot,
.fmap-group.is-open { z-index: 1000 !important; }
.fmap-pin.is-hot svg,
.fmap-pin.is-open svg,
.fmap-group.is-hot .fmap-group-n,
.fmap-group.is-open .fmap-group-n { transform: scale(1.25); }
.fmap-pin.is-hot .fmap-pin-body,
.fmap-pin.is-open .fmap-pin-body { fill: var(--front-star); }
.fmap-group.is-hot .fmap-group-n,
.fmap-group.is-open .fmap-group-n { background: var(--front-star); }
.fl-map .fmap-pin:focus-visible,
.fl-map .fmap-group:focus-visible { outline: 2px solid var(--front-accent-dark); outline-offset: 3px; border-radius: var(--front-radius-sm); }

/* вікно компанії (084d) — маленька картка сайту: рамка 1 px, радіус 14, тінь вікон, шрифт сайту, відступ 12, ширина ≈ 250
   (js/front-map.js; на вузькій карті — карта мінус поля). Стандартний вигляд leaflet.css перекрито в межах карти — вищою
   специфічністю, бо leaflet.css підвантажується пізніше (вендорний файл не змінюється). */
.fl-map .leaflet-popup-content-wrapper {
    padding: 0;
    border: 1px solid var(--front-line);
    border-radius: 14px;
    background: var(--front-surface);
    color: var(--front-text);
    box-shadow: var(--front-shadow-pop);
}
.fl-map .leaflet-popup-content { margin: 12px; font-family: var(--front-font); font-size: 13px; line-height: 1.4; }
/* хвостик — білий, з тією самою рамкою; перекриває рамку вікна на стику */
.fl-map .leaflet-popup-tip { border: 1px solid var(--front-line); background: var(--front-surface); box-shadow: none; }
.fl-map.leaflet-container a.leaflet-popup-close-button {
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: var(--front-radius-sm);
    color: var(--front-muted);
    font: 400 20px/28px var(--front-font);
    transition: color .15s, background .15s;
}
.fl-map.leaflet-container a.leaflet-popup-close-button:hover,
.fl-map.leaflet-container a.leaflet-popup-close-button:focus-visible { background: var(--front-quiet); color: var(--front-accent); }

/* вміст: назва 15 жирна · рейтинг (копія з картки: квадратики .fstars, число, «(N відгуків)») · статус (клас кольору картки
   cc-status--*) · адреса сіра 12 · «Детальніше →» — спокійна кнопка сайту (.front-btn--quiet) на всю ширину */
.fmap-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.fmap-name { padding-right: 26px; color: var(--front-text); font-size: 15px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.fmap-rating { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; color: var(--front-muted); font-size: 12px; font-weight: 600; }
.fmap-rating b { color: var(--front-text); }
.fmap-status { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; font-weight: 700; line-height: 1.45; }
.fmap-status > svg { flex: none; margin-top: calc((1.45em - 14px) / 2); }
.fmap-address { color: var(--front-muted); font-size: 12px; overflow-wrap: anywhere; }
.front .fmap-card .fmap-more { align-self: stretch; min-height: 38px; margin-top: 4px; padding: 9px 14px; white-space: normal; }

/* вікно групи: список рядків «назва · рейтинг · Детальніше →», прокрутка — як було */
.fmap-list { max-height: 240px; margin: 0; padding: 0 4px 0 0; overflow-y: auto; list-style: none; }
.fmap-list li + li { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--front-line); }
.fmap-list li:first-child .fmap-name { padding-right: 26px; }
.fmap-card--row { gap: 4px; }
.fmap-card--row .fmap-name { padding-right: 0; font-size: 14px; }
.front .fl-map a.fmap-link { color: var(--front-accent); font-size: 12px; font-weight: 700; text-decoration: none; }
.front .fl-map a.fmap-link:hover { color: var(--front-accent-dark); }

/* ── Планшет і телефон ── */
@media (max-width: 1100px) {
    .fl-view,
    .fl-mapcol { display: none; }
    .fl-split,
    .fl.is-grid .fl-split { grid-template-columns: minmax(0, 1fr); }
    .fl-grid,
    .fl.is-grid .fl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fl:not(.is-nomap) .fl-float-map { display: inline-flex; }
    /* опис — перші 3 рядки (висота рядка 1.65) + перехід у фон; весь текст лишається в HTML */
    .fl-desc { position: relative; max-height: calc(1.65em * 3); overflow: hidden; }
    .fl-desc::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 1.65em; background: linear-gradient(to bottom, transparent, var(--front-bg)); pointer-events: none; }
    .fl-desc.is-open,
    .fl-desc.is-short { max-height: none; }
    .fl-desc.is-open::after,
    .fl-desc.is-short::after { content: none; }
    .fl-more { display: inline-block; }
    .fl-desc.is-short + .fl-more { display: none; }
    /* «Loca Індекс» — під напрямками, не липкий; «Карта (N)» — вікно карти; калькулятор — під таблицею */
    .fl-hero.has-index { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
    .fl-index { grid-column: 1; grid-row: auto; position: static; margin-top: 18px; }
    .fl-index-map--anchor { display: none; }
    .fl .fl-index-map--modal { display: inline-flex; }
    .fl-pricegrid { grid-template-columns: minmax(0, 1fr); }
    .fl-calc { position: static; display: block; max-height: none; }
    .fl-calc > .fl-calc-body { margin: 0; padding: 0; overflow: visible; }
    .fl-calc-more { display: none; }
}

@media (max-width: 900px) {
    .fl-related { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 800px) {
    /* 163b-2c (рішення власника 12.11.2026): липне ОДНА смуга — ліворуч кількість («Знайдено N …», той самий текст), праворуч «Район (N)»
       (райони — панеллю вниз, як були) і квадратна кнопка меню сортування; рядок — 54 px, як на ПК. Приховування кількості 163b-2b — прибрано */
    .front-container.fl,
    .front-container.fl.is-bar-wrap { --fl-bar-h: 54px; }
    .fl-bar { transition: top .2s ease; }
    .fl:not(.is-nomap) .fl-float-close { display: flex; }
    .fl-bar-in { flex-wrap: nowrap; gap: 8px; }
    /* кількість — той самий текст; не вміщається в рядок (320 px з «Район (N)») — переноситься на другий рядок усередині тієї самої смуги
       (2 × 16 px ≤ 52), без обрізання */
    .fl-found { display: -webkit-box; flex: 1 1 auto; min-width: 0; margin-right: auto; overflow: hidden; line-height: 16px; white-space: normal;
        -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    /* райони — увесь список панеллю (кнопка «Район (N)»); у рядку — лише кнопка */
    .fl-districts { display: none; flex-wrap: wrap; position: absolute; top: 100%; left: 0; right: 0; z-index: 36; width: var(--front-wrap); max-height: calc(100vh - var(--fl-sticky) - 16px); margin: 0 auto;
        padding: 12px; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--front-line); border-top: 0; border-radius: 0 0 16px 16px; background: var(--front-surface); box-shadow: var(--front-shadow-pop); }
    .fl-districts.is-open { display: flex; }
    .fl-districts-list,
    .fl-districts.is-open .fl-districts-list { display: contents; }
    .fl-districts-toggle { display: none; }
    .fl-districts-btn { display: inline-flex; flex: none; }
    /* меню сортування: квадратна кнопка 40 × 40, меню — під нею праворуч; пункти — ті самі кнопки форм сортування (40 px заввишки), вибраний —
       з галочкою */
    .fl-bar-tools { position: relative; flex: none; margin-left: 0; }
    .fl-sort-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--front-line);
        border-radius: 10px; background: var(--front-surface); color: var(--front-text); cursor: pointer; }
    .fl-sort-toggle[aria-expanded="true"] { border-color: var(--front-accent); color: var(--front-accent); }
    .fl-sort { display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 37; flex-direction: column; gap: 2px; min-width: 210px; padding: 6px;
        border: 1px solid var(--front-line); border-radius: 14px; background: var(--front-surface); box-shadow: var(--front-shadow-pop); }
    .fl-sort.is-open { display: flex; }
    .fl .fl-sort-btn { justify-content: flex-start; width: 100%; height: 40px; padding: 0 12px; color: var(--front-text); font-size: 14px; }
    .fl .fl-sort-btn:hover { background: var(--front-soft); }
    .fl .fl-sort-btn.is-active { background: none; box-shadow: none; font-weight: 700; }
    /* галочка вибраного — праворуч пункту (рамка 2 px, повернута; без символу й картинки) */
    .fl .fl-sort-btn.is-active::after { content: ""; width: 5px; height: 10px; margin: -3px 2px 0 auto; border: solid var(--front-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
    /* телефон і вузький планшет — компактні заголовки (рішення власника 28.10.2026, доробка 4; WP на телефоні — 18 px) */
    .front .fl-title { font-size: 24px; letter-spacing: -.02em; }
    .fl-cat-icon { width: 52px; height: 52px; border-radius: 13px; }
    .front .fl-h2 { font-size: 20px; }
}

/* таблиця прайсу (084c-5) на вузькому екрані — як WP .seo-text table (≤ 768: менший шрифт і відступи, таблиця в ширину) */
@media (max-width: 768px) {
    .fl-pt th,
    .fl-pt td { padding: 8px 10px; font-size: 13px; }
    .fl-pt thead th,
    .fl-pt .fl-pt-sec th { font-size: 12px; }
    .fl-pt--tariff .fl-pt-pr { white-space: normal; }
}

@media (max-width: 767px) {
    .fl-grid,
    .fl.is-grid .fl-grid { grid-template-columns: minmax(0, 1fr); }
    .fl-revbox { flex-wrap: wrap; }
    .fl .fl-revbox-btn { width: 100%; margin-left: 0; text-align: center; }
    .fl-faq-head { flex-wrap: wrap; }
    .fl-faq-sub { width: 100%; margin-left: 0; text-align: left; }
    /* рядок крихт (доробка 4): рядок 1 — крихти; рядок 2 — «Дані верифіковано» ліворуч і дві іконки праворуч (ціль 32 × 32);
       вузький екран — чип у 2 рядки, іконки лишаються в рядку */
    /* крихти — як WP на телефоні (доробки 6–7): «⌂ › [комбінація на районі ›] поточна»; ховається лише батьківська рубрика (у WP її
       немає) — у HTML лишається (SEO, BreadcrumbList); спершу скорочується поточна, посилання вгору — лише потім (доробка 8) */
    .front-crumbs--listing li.front-crumbs-parent { display: none; }
    .front-crumbs--listing .front-crumbs-home-icon { display: inline-block; }
    .front-crumbs--listing .front-crumbs-home-text { display: none; }
    .fl-top-actions { gap: 0; width: 100%; margin-left: 0; }
    .fl-verified { flex: 0 1 auto; min-width: 0; height: auto; min-height: 32px; gap: 5px; margin-right: auto; padding: 4px 10px; border-radius: 16px; white-space: normal; }
    /* заголовки — компактно (доробка 5, рішення власника): H1 18 px, як WP .combo-title на ≤ 768; H2 каталогу 16 px; плитка менша */
    .fl-head { gap: 10px; }
    .front .fl-title { margin-bottom: 8px; font-size: 18px; line-height: 1.25; letter-spacing: -.01em; }
    .front .fl-h2 { font-size: 16px; }
    .fl-cat-icon { width: 36px; height: 36px; border-radius: 10px; }
    .fl-cat-svg { width: 18px; height: 18px; }
    /* напрямки (доробка 3, 28.10.2026): горизонтальна стрічка у 2 ряди зі свайпом (≈ 140 px), на екрані — перші 4 картки (2 × 2) +
       край наступного стовпчика; порядок посилань той самий (заповнення по стовпчиках), усі <a href> у HTML; без JS. 1–2 картки — один ряд */
    .fl-dcards { grid-template-rows: repeat(2, auto); grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 2);
        gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 4px; }
    .fl-dcards:not(:has(> :nth-child(3))) { grid-template-rows: auto; }
    /* компактна картка (та сама, що ≥ 768, щільніше): іконка + назва (до 2 рядків), під ними кількість і «від N ₴» (примітка
       «Ширший вибір послуг» — лише ≥ 768); висота — за вмістом, ряд рівний (рядок сітки) */
    .fl .fl-dcard { gap: 2px 6px; padding: 7px 8px; scroll-snap-align: start; }
    .fl-dcard-top { display: contents; text-align: left; }
    .fl-dcard-icon { width: 18px; height: 18px; }
    .fl-dcard-top > span { line-height: 1.2; }
    .fl-dcard-name { flex-basis: calc(100% - 24px); line-height: 1.2; }
    .fl-dcard-price { line-height: 1.2; }
    .fl-dcard-note { display: none; }
}

@media (max-width: 540px) {
    .fl-pt th,
    .fl-pt td { padding: 6px 8px; font-size: 12px; }
    .fl-pt.fl-pt--tariff th,
    .fl-pt.fl-pt--tariff td { padding: 6px 4px; font-size: 11px; }
    .fl-pt-note { font-size: 11px; }
    .fl-pt .fl-pt-act { display: none; }
    /* підсумок калькулятора — сума й кнопка одна під одною (вузька колонка: підпис і сума не ламаються на 4 рядки) */
    .fl-calc-total { flex-wrap: wrap; }
    .fl-calc-total > div { flex: 1 1 100%; }
    .fl .fl-calc-go { flex: 1 1 100%; text-align: center; }
    .fl-desc { font-size: 14px; }
    .fl-rellist { grid-template-columns: minmax(0, 1fr); }
    .fl-faq { padding: 18px; }
    .fl-text h2 { font-size: 22px; }
    .fl-text table:not(.fl-pt) th,
    .fl-text table:not(.fl-pt) td { padding: 8px 10px; font-size: 13px; }
    .fp-prev,
    .fp-next { gap: 0; font-size: 0; }
}
