/* ==========================================================================
   front-company.css — сторінка компанії /{slug}/ і перегляд (087; каркас і шапка за затвердженим макетом — 087b, рішення
   власника 06.11.2026: loca_company_profile_2027_версія_3.html — лише вигляд і розташування; resources/views/front/company.php,
   company/*.php, partials/breadcrumbs.php з модифікатором --company). Підключається лише на ній (CompanyPage::CSS).
   Палітра — макета й головної (--front-*, front-base.css; те, чого там немає, — --fc-*); статуси вікон 121–123 — --fl-*.
   Ширина — --front-wrap (як шапка сайту й сторінка комбінації). Дві розкладки (front/company.php, .fc--gallery):
     є фото  — шапка на всю ширину (інформація ≈ 55 % + вітрина ≈ 45 %), смужка, меню; під ними дві колонки;
     без фото — шапка, смужка й меню — у лівій колонці; бічна панель — справа від самого верху.
   Колонки: ліва — 1fr, права — 350 px, липка під шапкою сайту; ≤ 1023 — одна колонка, бічної панелі немає, нижня панель
   телефона (front-lead.css) — лише тут. ≤ 767 — телефон (Р §9). Висоти — за вмістом (фіксована — лише вітрина фото, плитки й місце карти «Контактів» 094).
   Головне правило (Р §0): яскраві лише кнопки дії; рейтинг, статус, крихти, мітки, маршрут — спокійні, сірі.
   ========================================================================== */
body.front.is-company { background: var(--front-bg); }

.is-company .front-main {
    justify-content: flex-start;
    align-items: stretch;
    padding: 0;
}

.front-container.fc {
    width: var(--front-wrap);
    max-width: none;
    margin: 0 auto;
    padding: 0 0 56px;
    color: var(--front-text);
    font-size: 14px;
}

.fc a { text-decoration: none; }

/* ── Рядок крихт: крихти ліворуч, «В обране» і «Поділитися» праворуч (ПК) ── */
.fc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0 10px;
}

/* крихти — один рядок; усі рівні — однаковий сірий текст (Р §1); першою скорочується назва компанії (вона повністю в H1),
   потім категорія — до 6em (як --listing, логіка WP .modern-breadcrumbs); «Головна» — текст на ПК, будиночок на телефоні */
.front-crumbs--company { flex: 0 1 auto; min-width: 0; max-width: 100%; font-size: 13px; }
.front-crumbs--company ol { flex-wrap: nowrap; gap: 0; overflow: hidden; }
.front-crumbs--company 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--company li.front-crumbs-home { flex: none; min-width: 0; }
.front-crumbs--company li:last-child { flex-shrink: 100000; min-width: 3em; }
.front-crumbs--company li + li::before { content: "\203A"; margin: 0 8px; color: var(--front-muted); font-weight: 400; }
.front-crumbs--company .front-crumbs-home-icon { display: none; width: 15px; height: 15px; vertical-align: -2px; }
.front-crumbs--company a { color: var(--front-muted); font-weight: 500; }

.front-crumbs--company a:hover,
.front-crumbs--company a:focus { color: var(--front-text); }

.fc-actions { display: flex; flex: none; align-items: center; gap: 8px; }

.fc-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--front-line);
    border-radius: 9px;
    background: var(--front-surface);
    color: var(--front-text);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}

.fc-action:hover { border-color: var(--front-accent); color: var(--front-accent); }
.fc-action[aria-pressed="true"] { border-color: var(--fc-fav-line); background: var(--fc-fav-bg); color: var(--fc-fav); }
.fc-action[aria-pressed="true"] svg path { fill: currentColor; }

/* ── Картки (шапка, смужка, секції, бічна панель): біла поверхня, рамка, тінь макета ── */
.fc-hero,
.fc-strip,
.fc-sec,
.fc-side-card {
    border: 1px solid var(--front-line);
    background: var(--front-surface);
    box-shadow: var(--fc-shadow);
}

/* ── Колонки: ліва — секції, права — липка бічна панель (350 px); без панелі — ліва на всю ширину ── */
.fc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 18px 22px;
    align-items: start;
}

.fc-layout--wide { grid-template-columns: minmax(0, 1fr); }
.fc-main { --fc-gap: 18px; display: flex; flex-direction: column; gap: var(--fc-gap); min-width: 0; }
/* мітка нижньої панелі після шапки (висоти немає) — без зайвого проміжку колонки */
.fc-main > .flead-sentinel { margin-top: calc(-1 * var(--fc-gap)); }
.fc--gallery .fc-layout { margin-top: 18px; }
.fc-main > * { margin: 0; }
.fc-main:empty { display: none; }

/* ── Шапка (088 → 087b, company/hero.php): ліворуч інформація, праворуч вітрина фото (≈ 45 %) ── */
.fc-hero { position: relative; padding: 24px; border-radius: 22px; }
.fc--gallery .fc-hero { margin-bottom: 12px; }
.fc-hero-grid { display: flex; align-items: stretch; gap: 24px; }
.fc-hero-main { display: flex; flex: 1 1 55%; flex-direction: column; justify-content: space-between; min-width: 0; }

/* логотип ліворуч від назви; на ПК рядки рейтингу й адреси — під назвою; немає логотипа (або зламаний — блок прибирає
   js/front.js) — колонка логотипа нульова, назва ліворуч */
.fc-identity { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; }
.fc-identity > * { grid-column: 2; min-width: 0; }

.fc-logo {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 80px;
    height: 80px;
    margin-right: 16px;
    border: 1px solid var(--front-line);
    border-radius: 18px;
    background: var(--front-mint);
    overflow: hidden;
}

.fc-logo-img { display: block; width: 100%; height: 100%; object-fit: cover; }

.front .fc-title {
    margin: 0 0 5px;
    color: var(--front-heading);
    font-size: 25px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}

/* рейтинг: зірки (partials/stars.php, --hero), число 22 / 800, «(N відгуків)» сірим; сірі мітки поруч */
.fc-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; margin-top: 8px; }
.fc-rate { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-right: 2px; }
.fc-rate-num { color: var(--front-heading); font-size: 22px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.fc-rate-count { color: var(--front-muted); font-size: 13.5px; font-weight: 600; }

.fc-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--fc-panel-bg);
    color: var(--front-text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.fc-pill svg { flex: none; color: var(--front-muted); }

/* адреса й статус: сірий текст; район і «Маршрут» — тонке підкреслення, не акцент */
.fc-meta-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 8px; }
.fc-sub { margin: 0; color: var(--front-muted); font-size: 13.5px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }

.fc .fc-sub-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--fc-underline);
    text-underline-offset: 3px;
}

.fc .fc-sub-link:hover { color: var(--front-text); }
.fc-route { display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; white-space: nowrap; }

.fc-status { display: inline-flex; flex-wrap: wrap; align-items: center; column-gap: 6px; color: var(--front-muted); font-size: 13px; font-weight: 600; line-height: 1.45; }
.fc-status::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--fc-dot-open); }
.fc-status--orange::before { background: var(--fc-dot-pause); }
.fc-status--red::before { background: var(--fc-dot-closed); }
.fc-status--text::before { display: none; }
.fc-status-hours { color: var(--fc-hours); font-weight: 500; white-space: nowrap; }

/* ── Кнопки дії (089 → 087b): головна — зелений градієнт; із записом — номер другою білою кнопкою; номер — один рядок ── */
.fc-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }

.fc-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 22px;
    border: 1px solid var(--front-accent);
    border-radius: 13px;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .15s;
}

.fc-cta-btn svg { flex: none; }
.fc-cta-num { white-space: nowrap; }
.front .fc-cta-main { background: var(--fc-btn-bg); box-shadow: var(--fc-btn-shadow); color: var(--front-surface); }

.front .fc-cta-main:hover,
.front .fc-cta-main:focus { box-shadow: var(--fc-btn-shadow-hover); color: var(--front-surface); transform: translateY(-1px); }

.front .fc-cta-phone { padding: 13px 16px; background: var(--front-surface); color: var(--front-accent); font-size: 14px; }

.front .fc-cta-phone:hover,
.front .fc-cta-phone:focus { background: var(--front-mint); color: var(--front-accent-dark); }

/* сердечко шапки — лише телефон (на ПК — у рядку крихт) */
.fc-hero-fav {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: none;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--front-line);
    border-radius: 50%;
    background: var(--front-surface);
    color: var(--front-text);
    cursor: pointer;
}

.fc-hero-fav[aria-pressed="true"] { border-color: var(--fc-fav-line); background: var(--fc-fav-bg); color: var(--fc-fav); }
.fc-hero-fav[aria-pressed="true"] svg path { fill: currentColor; }

/* ── Вітрина фото (091 → 087b, company/gallery.php): права частина шапки; розкладка за кількістю (data-count), без порожніх
   клітинок; висота — висота шапки, не менше 248 px (фото з object-fit: cover власної висоти не має) ── */
.fc-gallery { position: relative; display: flex; flex: 0 1 45%; flex-direction: column; min-width: 0; min-height: 248px; border-radius: 18px; overflow: hidden; }

.fc-gallery-grid {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: 1.35fr 1fr 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 6px;
    min-height: 0;
}

.fc-gallery-grid[data-count="5"] .fc-gallery-cell:first-child,
.fc-gallery-grid[data-count="4"] .fc-gallery-cell:first-child,
.fc-gallery-grid[data-count="3"] .fc-gallery-cell:first-child { grid-row: 1 / 3; }
.fc-gallery-grid[data-count="4"] .fc-gallery-cell:nth-child(2) { grid-column: 2 / span 2; }
.fc-gallery-grid[data-count="3"] { grid-template-columns: 1.35fr 1fr; }
.fc-gallery-grid[data-count="2"] { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr); }
.fc-gallery-grid[data-count="1"] { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr); }

.fc-gallery-cell {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    background: var(--fc-panel-bg);
    cursor: pointer;
    overflow: hidden;
}

.fc-gallery-cell img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .35s; }
.fc-gallery-cell:hover img { transform: scale(1.05); }

/* «+N, усі N фото»: затемнення, білий текст стовпчиком; варіант ПК / телефона — за шириною */
.fc-gallery-more {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--fc-more);
    color: var(--front-surface);
}

.fc-gallery-more > span { font-size: 18px; font-weight: 800; line-height: 1.2; }
.fc-gallery-more small { font-size: 11px; font-weight: 600; opacity: .88; }
.fc-gallery-more--mobile { display: none; }

/* ── Смужка «Були тут? Поділіться досвідом!» (087b, company/strip.php) ──
   087c (власник 07.11.2026): на ширині ≥ 768 — завжди один рядок: ліворуч «Були тут?» (займає решту й стискається — підзаголовок
   переноситься всередині своєї частини), праворуч сіра капсула (не стискається й не переноситься, кнопки в рядок). Адаптація — за
   шириною самої смужки (container query: та сама ширина екрана дає різну смужку — з фото вона на всю ширину, без фото — ліва колонка
   біля бічної панелі, на 1024 — 596 px): вужче 803 px (капсула в рядок 469 + проміжок + плитка + заголовок 230 в один рядок) —
   питання стає над кнопками всередині тієї ж капсули праворуч; вужче 640 px — менші заголовок, підзаголовок і проміжки.
   Телефон (≤ 767) — як затверджено (Р §9): тексти зверху, під ними капсула (медіа-запит нижче). */
.fc-strip {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 20px;
    border-radius: 16px;
    container-type: inline-size;
}

.fc--gallery .fc-strip { margin-bottom: 0; }
.fc-strip-lead { display: flex; flex: 1 1 auto; align-items: center; gap: 12px; min-width: 0; }

.fc-strip-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--front-mint);
    color: var(--front-accent);
}

.fc-strip-texts { min-width: 0; }
.fc-strip-title { margin: 0; color: var(--front-heading); font-size: 14.5px; font-weight: 800; line-height: 1.4; }
.fc-strip-text { margin: 0; color: var(--front-muted); font-size: 12.5px; line-height: 1.45; }

.fc-poll {
    display: inline-flex;
    flex: none;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    padding: 4px 8px 4px 12px;
    border-radius: 10px;
    background: var(--fc-panel-bg);
    color: var(--front-text);
    font-size: 12.5px;
    font-weight: 700;
}

.fc-poll-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid var(--front-line);
    border-radius: 7px;
    background: var(--front-surface);
    color: var(--front-text);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}

.fc-poll-btn:hover { border-color: var(--front-accent); color: var(--front-accent); }
.fc-poll-btn svg { flex: none; }

/* 087c: вузька смужка (≥ 768; ширина вмісту смужки — без padding 2 × 20): < 763 — питання над кнопками в тій самій капсулі праворуч;
   < 600 — менші заголовок, підзаголовок і проміжки (1024 без фото: заголовок в один рядок, підзаголовок — у своїй частині) */
@media (min-width: 768px) {
    .fc-poll-q { white-space: nowrap; }

    @container (max-width: 762px) {
        .fc-poll { display: grid; grid-template-columns: repeat(3, auto); row-gap: 5px; padding: 8px 10px; }
        .fc-poll-q { grid-column: 1 / -1; }
    }

    @container (max-width: 599px) {
        .fc-strip-lead { gap: 10px; }
        .fc-strip-title { font-size: 13.5px; }
        .fc-strip-text { font-size: 12px; }
    }
}

/* ── Меню розділів (090, company/anchors.php; Р §0, §4, §10; макет .sticky-anchors — лише вигляд) ──
   Липке під липкою шапкою сайту, на всю ширину свого місця: з фото — над двома колонками, без фото — у лівій колонці. Тло — тло
   сторінки (вміст під ним не просвічує), тонка лінія знизу (тінню всередині, щоб зелена лінія активного лягала поверх неї, а не
   обрізалась гортанням); без картки, рамки, тіні. Висота меню — одна змінна --fc-nav-h (висота пункту): від неї — top бічної
   панелі й відступ розділу під меню після переходу за якорем. Пункти в один рядок без переносу, що не влазить — гортається
   вбік без смуги прокрутки (WP overflow-x: auto). Пункт — сірий жирний 13,5, наведення — темний; активний (aria-current) —
   темний текст і зелена лінія 2 px знизу, без заливки; лічильник — сіра «пігулка» 11 px (і в активного). Кнопка «Залишити
   відгук» — біла, сіра рамка, жовта зірка, 36 px за вмістом (8 + 18 + 8 + рамки); наведення — зелені рамка й текст, світло-зелене тло; ≤ 1023 — її немає (нижня
   панель). Шар 40 — над вмістом, під шапкою сайту (50), нижньою панеллю телефона (45) і вікнами (110). */
.fc { --fc-nav-h: 42px; }

.fc-nav {
    position: sticky;
    top: var(--front-header-top);   /* під видимою шапкою (163b-2c: на телефоні шапка ховається — меню стає вгорі) */
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    background: var(--front-bg);
    box-shadow: inset 0 -1px 0 var(--front-line);
}

.fc--gallery .fc-nav { margin-top: 12px; }

.fc-nav-track {
    display: flex;
    flex: 1 1 auto;
    gap: 4px;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.fc-nav-track::-webkit-scrollbar { display: none; }

.fc .fc-nav-link {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    height: var(--fc-nav-h);
    padding: 0 12px;
    border-bottom: 2px solid transparent;
    color: var(--front-muted);
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
}

.fc .fc-nav-link:hover { color: var(--front-text); }
.fc .fc-nav-link[aria-current="true"] { border-bottom-color: var(--front-accent); color: var(--front-text); }
.front .fc-nav-link:focus-visible { outline-offset: -3px; }

/* лічильник лишається на --front-chip-soft (094c): меню стоїть на тлі сторінки --front-bg (#fbfcf8), легка підкладка --fc-panel-bg
   (#f8f9f6) на ньому не видна — пігулка зникла б, лишилась би гола цифра поруч з назвою */
.fc-nav-count {
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--front-chip-soft);
    color: var(--front-muted);
    font-size: 11px;
    line-height: 1.4;
}

.fc-nav-review {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--front-line);
    border-radius: var(--front-radius-btn);
    background: var(--front-surface);
    color: var(--front-text);
    font: inherit;
    font-size: 12.5px;
    font-weight: 800;
    line-height: 18px;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
}

.fc-nav-review svg { flex: none; color: var(--front-star); }
.fc-nav-review:hover { border-color: var(--front-accent); background: var(--front-mint); color: var(--front-accent); }

/* розділ після переходу за якорем — під шапкою й меню (з фото меню — сусід колонок і «Схожих», без фото — сусід секцій лівої
   колонки); бічна панель у розкладці з фото — під меню, а не під ним */
.fc-nav ~ [id],
.fc-nav ~ * [id] { scroll-margin-top: calc(var(--front-header-top) + var(--fc-nav-h) + 12px); }
.fc-nav ~ .fc-layout .fc-side { top: calc(var(--front-header-h) + var(--fc-nav-h) + 16px); }

/* ── Бічна панель (087b, company/side.php): липка під шапкою сайту ── */
.fc-side { position: sticky; top: calc(var(--front-header-h) + 16px); min-width: 0; }
.fc-side-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 22px; }
.fc-side-info { display: flex; flex-direction: column; gap: 8px; }
.fc-side-info:not(:last-child) { padding-bottom: 12px; border-bottom: 1px solid var(--front-line); }
.fc-side-status { margin: 0; }

.fc .fc-side-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--front-heading);
    font-size: 17px;
    font-weight: 800;
    white-space: nowrap;
}

.fc-side-phone svg { color: var(--front-accent); }
.fc .fc-side-phone:hover { color: var(--front-accent); }
.fc-side-address { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: var(--front-muted); font-size: 13px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.fc-side-address svg { flex: none; margin-top: 2px; }

.front .fc-side-book {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border: 0;
    border-radius: 11px;
    background: var(--fc-btn-bg);
    box-shadow: var(--fc-btn-shadow);
    color: var(--front-surface);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.fc-side-lead-text { margin: 0 0 8px; color: var(--front-muted); font-size: 12.5px; font-weight: 600; line-height: 1.45; }

/* форма заявки (partials/lead-form.php, режим side): поля стовпчиком, кнопка на всю ширину, рядок-згода під нею */
.flead--side .flead-fields { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.flead--side .flead-input { padding: 9px 12px; border: 1px solid var(--front-line); border-radius: 10px; background: var(--front-bg); font-size: 13px; }
.flead--side .flead-input:focus { border-color: var(--front-accent); background: var(--front-surface); }
.flead--side .flead-message { margin-bottom: 8px; }
.flead--side .flead-submit { gap: 8px; width: 100%; padding: 11px; border-radius: 11px; background: var(--front-accent); font-size: 13.5px; font-weight: 800; }
.flead--side .flead-submit:hover { background: var(--front-accent-dark); }
.flead--side .fui-consent { margin: 8px 0 0; font-size: 11.5px; line-height: 1.4; }
.flead--side .flead-success { padding: 8px 10px; border-radius: 9px; font-size: 12.5px; font-weight: 700; }

/* ── Нижня панель телефона (087b п. 7; front-lead.css .flead-panel): лише ≤ 1023 px; без адресата заявки — кнопки ── */
.fc-panel-actions { display: flex; gap: 8px; }

.fc .fc-panel-btn,
.fc-panel-btn {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--front-accent);
    border-radius: 11px;
    background: var(--front-surface);
    color: var(--front-accent);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.fc-panel-btn svg { flex: none; }
.front .fc-panel-btn--call { background: var(--fc-btn-bg); color: var(--front-surface); }
.front .fc-panel-btn--call:hover { color: var(--front-surface); }

/* форма панелі (120) — кольори кнопки дії сторінки (палітра макета) */
.flead-panel.fc-panel .flead-submit { background: var(--front-accent); }
.flead-panel.fc-panel .flead-submit:hover { background: var(--front-accent-dark); }
.flead-panel.fc-panel .flead-input:focus { border-color: var(--front-accent); }
.flead-panel.fc-panel .flead-input:focus-visible { box-shadow: 0 0 0 1px var(--front-accent); }

@media (min-width: 1024px) {
    .fc-panel { display: none; }
}

/* ── Вікно онлайн-запису (089; #bookingModal, .booking-popup :13): на ПК — уся площа вікна (--wide, як карта 084a);
   заголовок 20 px 700 і підзаголовок 14 px по центру; iframe — від 500 px, висоту з sw-height ставить js/front.js атрибутом ── */
.fmodal--booking .fmodal-panel { padding: 24px; }
.fmodal--booking .fmodal-head { position: relative; justify-content: center; margin: 0 0 8px; padding: 0 32px; border-bottom: 0; }
.fmodal--booking .fmodal-title { font-size: 20px; font-weight: 700; text-align: center; }
.fmodal--booking .fmodal-close { position: absolute; top: 0; right: 0; margin: 0; }
.fmodal--booking .fmodal-body { min-height: 0; overflow-y: auto; }
.fc-booking-sub { margin: 0 0 20px; color: var(--fl-text-light); font-size: 14px; line-height: 1.5; text-align: center; }
.fc-booking-wrap { width: 100%; }

.fc-booking-wrap iframe {
    display: block;
    width: 100%;
    min-height: 500px;
    border: 0;
}

/* ── Вікно фото (091; #galleryPopup :133–149): спільне front-modal --gallery — темний фон на весь екран, фото по центру ── */
.fmodal--gallery.is-open { align-items: stretch; padding: 0; }
.fmodal--gallery .fmodal-overlay { background: var(--fl-gallery-backdrop); }

/* панель прозора й пропускає кліки на фон (закриття, як WP); елементи керування — клікабельні */
.fmodal--gallery .fmodal-panel {
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-height: none;
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    pointer-events: none;
}

.fmodal--gallery .fmodal-panel > * { pointer-events: auto; }

.fc-gbox-img { max-width: 90vw; max-height: calc(85vh - 70px); border-radius: 4px; object-fit: contain; }

.fc-gbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    display: inline-flex;
    padding: 0;
    border: 0;
    background: none;
    color: var(--fl-surface);
    cursor: pointer;
}

.fc-gbox-arrow {
    position: absolute;
    top: 50%;
    display: inline-flex;
    padding: 12px 16px;
    border: 0;
    border-radius: 8px;
    background: var(--fl-gallery-arrow);
    color: var(--fl-surface);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .2s;
}

.fc-gbox-arrow:hover { background: var(--fl-gallery-arrow-hover); }
.fc-gbox-arrow--prev { left: 16px; }
.fc-gbox-arrow--next { right: 16px; }

/* стрічка мініатюр: прокрутка без смуги; активна — рамка акценту */
.fc-gbox-strip {
    display: flex;
    flex-shrink: 0;
    gap: 6px;
    max-width: 80vw;
    padding: 6px;
    border-radius: 8px;
    background: var(--fl-gallery-strip);
    overflow-x: auto;
    scrollbar-width: none;
}

.fc-gbox-strip::-webkit-scrollbar { display: none; }

.fc-gbox-thumb {
    flex-shrink: 0;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 4px;
    background: none;
    cursor: pointer;
    opacity: .5;
    overflow: hidden;
    transition: opacity .2s, border-color .2s;
}

.fc-gbox-thumb img { display: block; width: 60px; height: 44px; object-fit: cover; }
.fc-gbox-thumb:hover { opacity: .85; }
.fc-gbox-thumb.is-active { border-color: var(--fl-accent); opacity: 1; }

.fc-gbox-dots { display: none; flex-shrink: 0; justify-content: center; gap: 6px; }

.fc-gbox-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--fl-gallery-dot);
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.fc-gbox-dot.is-active { background: var(--fl-accent); transform: scale(1.3); }

/* ── Рамка секції (092; partials/section.php) — одна для 092–098: картка лівої колонки за макетом (біла, рамка, радіус 22,
   padding 24); заголовок h2 19 / 800 з іконкою в м'якій плитці й лінією знизу; кнопки заголовка (121–123) — праворуч, спокійні
   сірі (рамка, тло паперу), ≤ 767 — лише іконка 34 × 34 (назва — aria-label) ── */
.fc-sec { padding: 24px; border-radius: 22px; }

.fc-sh {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--front-line);
}

.front .fc-sh-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin: 0;
    color: var(--front-heading);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.02em;
}

.fc-sh-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--front-mint);
    color: var(--front-accent);
}

.fc-sh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; }

.fc-sh-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border: 1px solid var(--front-line);
    border-radius: 8px;
    background: var(--front-bg);
    color: var(--front-muted);
    font: inherit;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: color .15s, background .15s, border-color .15s;
}

/* наведення — стан, не підкладка блоку (094c): лишається --front-chip-soft — у спокої кнопка на тлі паперу --front-bg (#fbfcf8), легке
   --fc-panel-bg (#f8f9f6) від нього майже не відрізняється, і відгуку на курсор не було б */
.fc-sh-action:hover { border-color: var(--fc-soft-line); background: var(--front-chip-soft); color: var(--front-text); }
.fc-sh-action svg { flex-shrink: 0; }

.fc-sb { padding: 0; }

/* ── «Про компанію» (092; WP .company-description — текст, .phone-link, .company-meta, .meta-tag) ── */
.fc-desc { color: var(--front-text); font-size: 15px; line-height: 1.68; overflow-wrap: anywhere; }

.fc-desc p,
.fc-desc ul,
.fc-desc ol { margin: 0 0 12px; }

.fc-desc ul,
.fc-desc ol { padding-left: 24px; }

.fc-desc li > ul,
.fc-desc li > ol { margin-bottom: 0; }

.fc-desc > :last-child { margin-bottom: 0; }

/* телефон опису: акцент 600 у рамці, без підкреслення; наведення — темний акцент з підкресленням */
.fc-desc .fc-phone-link {
    margin: 0 2px;
    padding: 0 5px;
    border: 1px solid var(--front-line);
    border-radius: 5px;
    color: var(--front-accent);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s;
}

.fc-desc .fc-phone-link:hover { color: var(--front-accent-dark); text-decoration: underline; }

/* «Категорії:» — 20 від тексту; чип з іконкою «зовнішнє посилання» */
.fc-meta { color: var(--front-text); font-size: 14px; line-height: 1.65; }
.fc-desc + .fc-meta { margin-top: 20px; }
.fc-meta-label { margin-right: 4px; color: var(--front-muted); font-weight: 600; }

.fc-meta .fc-meta-tag {
    display: inline-flex;
    align-items: center;
    margin: 0 8px 8px 0;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--fc-panel-bg);
    color: var(--front-text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.fc-meta .fc-meta-tag:hover { background: var(--front-mint); color: var(--front-accent); }
.fc-meta-tag svg { flex-shrink: 0; margin-right: 4px; }

/* ── «Послуги та ціни» (093, company/services.php; макет .price-group / .price-group-head / .price-row, логіка WP .sp-*) ──
   Група — картка в рамці (радіус 16, 12 між групами); голова — легке тло --fc-panel-bg (094c; макет --soft), назва 14 / 800, праворуч
   сіра мітка «N послуг» 12 px. Рядок — назва ліворуч (14 / 700, довга — переноситься), ціна праворуч (не переноситься): число —
   акцент 15 / 800 (як WP — зелена ціна), «від» / «до» — сірі 12 / 600 (макет em), одиниця — сіра 12 / 600 (WP .sp-item-unit);
   рядки — тонка лінія зверху (крім першого без голови). Група без голови (позиції до першої групи) — та сама картка. Без вкладок,
   кнопок, опису (рішення власника 04.11.2026). ≤ 767 — назва на всю ширину, ціна під нею ліворуч (Р §10). ── */
.fc-price-group {
    overflow: hidden;
    border: 1px solid var(--front-line);
    border-radius: 16px;
    background: var(--front-surface);
}

.fc-price-group + .fc-price-group { margin-top: 12px; }

.fc-price-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: var(--fc-panel-bg);
    color: var(--front-heading);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
}

.fc-price-head-title { min-width: 0; overflow-wrap: anywhere; }
.fc-price-head-count { flex: none; color: var(--front-muted); font-size: 12px; font-weight: 600; white-space: nowrap; }

.fc-price-list { margin: 0; padding: 0; list-style: none; }

.fc-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid var(--front-line);
    transition: background .15s;
}

.fc-price-list:first-child > .fc-price-row:first-child { border-top: 0; }
.fc-price-row:hover { background: var(--front-bg); }

.fc-price-name { min-width: 0; color: var(--front-text); font-size: 14px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }

.fc-price-val {
    flex: none;
    color: var(--front-accent);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
    white-space: nowrap;
}

.fc-price-pre,
.fc-price-unit { color: var(--front-muted); font-size: 12px; font-weight: 600; }

/* ── «Контакти, адреса та графік роботи» (094, company/contacts.php; логіка WP .contacts-grid / .soc-btns-row / .map-container) ──
   Вигляд — картки затвердженого зразка (094b, власник 07.11.2026: _MOCKUPS_AND_SPECS/094b-kontakty-kartky.html, «Підкладка 3»;
   приклад 2 — багато телефонів, приклад 1 — телефон). ПК — дві колонки, лише коли є обидві: ліворуч картки (телефон, адреса,
   email + сайт), праворуч — лише картка графіка; під обома на всю ширину — соцмережі; нижче — H3 «Карта» і карта.
   Картка — світла підкладка --fc-panel-bg (без рамки), радіус 16, відступ 16, між картками 12; біла квадратна плитка з іконкою
   акцентного кольору (рамка --front-line, радіус 10; розмір — за padding, без фіксованої висоти); підпис — великі сірі 11,5 / 700
   з розрядкою. Телефони й адреса — 17 / 800; номери — кожен з нового рядка, від 2 — дві колонки за шириною номерів
   (minmax(0, max-content): без розтягування й порожнечі між колонками; задовгий номер переноситься в межах колонки, бічної прокрутки
   немає). Район — сірим під адресою. «Прокласти маршрут» — біла кнопка з рамкою, 13 / 700, акцент. Email і сайт — одна картка,
   два рядки зі своїми плитками, між ними — лінія; значення 15 / 700, довгі ламаються. Графік — той самий стиль картки: «день —
   години», години праворуч жирні, вихідний — сірий, перерва — дрібно під годинами; «сьогодні» (скрипт) — білий рядок на підкладці.
   Соцмережі — без підкладки, за лінією зверху; групи — одна за одною за своєю шириною з переносом; чіпи — як були (094, доробка
   07.11). Карта — фіксована висота 300 px (WP .map-container iframe; місце тримається до завантаження — сторінка не стрибає),
   радіус 16; без JS — посилання «Відкрити карту» посередині. Заголовок: статус — спокійний (той самий компонент), «Поділитися» —
   лише ≤ 767; ≤ 767 — статус окремим рядком під назвою. ── */
.fc-contacts-share { display: none; }

.fc-contacts-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px 24px; align-items: start; }
.fc-contacts-grid--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

.fc-ccol { display: grid; gap: 12px; min-width: 0; }

.fc-ccard {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    padding: 16px;
    border-radius: 16px;
    background: var(--fc-panel-bg);
}

.fc-ccard--rows { flex-direction: column; gap: 0; }

.fc-crow { display: flex; align-items: center; gap: 14px; width: 100%; min-width: 0; padding: 10px 0; }
.fc-crow:first-child { padding-top: 0; }
.fc-crow:last-child { padding-bottom: 0; }
.fc-crow + .fc-crow { border-top: 1px solid var(--front-line); }

.fc-cicon {
    display: flex;
    flex: none;
    padding: 10px;
    border: 1px solid var(--front-line);
    border-radius: 10px;
    background: var(--front-surface);
    color: var(--front-accent);
}

.fc-cicon svg { display: block; }

.fc-cbody { display: flex; flex: 1; flex-direction: column; align-items: flex-start; min-width: 0; }

.fc-clabel {
    display: block;
    margin: 1px 0 4px;
    color: var(--front-muted);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.fc-crow .fc-clabel { margin: 0; }

.fc-cphones { display: grid; grid-template-columns: minmax(0, max-content); gap: 2px 28px; max-width: 100%; }
.fc-cphones--two { grid-template-columns: repeat(2, minmax(0, max-content)); }

.fc-cvalues { display: flex; flex-wrap: wrap; gap: 0 14px; min-width: 0; }

.fc .fc-cval,
.fc-ctext { color: var(--front-heading); font-size: 17px; font-weight: 800; line-height: 1.45; overflow-wrap: anywhere; }
.fc .fc-cval:hover { color: var(--front-accent); }
.fc .fc-crow .fc-cval { font-size: 15px; font-weight: 700; }

.fc-csub { margin-top: 2px; color: var(--front-muted); font-size: 13px; line-height: 1.45; }

.fc .fc-croute {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    margin-top: 10px;
    padding: 8px 14px;
    border: 1px solid var(--front-line);
    border-radius: 10px;
    background: var(--front-surface);
    color: var(--front-accent);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    transition: border-color .15s;
}

.fc .fc-croute:hover { border-color: var(--front-accent); }
.fc-croute svg { flex: none; }

.fc-csocial {
    display: flex;
    flex-wrap: wrap;
    grid-column: 1 / -1;
    gap: 14px 40px;
    min-width: 0;
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px solid var(--front-line);
}

.fc-csocial:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.fc-cgroup { min-width: 0; max-width: 100%; }

.fc-cname { display: block; color: var(--front-muted); font-size: 12px; font-weight: 500; line-height: 1.3; }

.fc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

.fc .fc-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 5px 11px;
    border: 1px solid var(--front-line);
    border-radius: 999px;
    background: var(--front-surface);
    color: var(--front-heading);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    transition: color .15s, border-color .15s;
}

.fc .fc-chip:hover { border-color: var(--front-accent); color: var(--front-accent); }
.fc-chip svg { flex: none; color: var(--front-muted); }
.fc .fc-chip:hover svg { color: var(--front-accent); }
.fc-chip span { min-width: 0; overflow-wrap: anywhere; }

.fc-sched { min-width: 0; padding: 16px 18px; border-radius: 16px; background: var(--fc-panel-bg); }

.fc-sched .fc-clabel { margin: 2px 0 6px; }

.fc-sched-table { width: 100%; border-collapse: separate; border-spacing: 0; color: var(--front-text); font-size: 14px; line-height: 1.45; }
.fc-sched-table tr + tr th,
.fc-sched-table tr + tr td { border-top: 1px solid var(--front-line); }
.fc-sched-table th,
.fc-sched-table td { padding: 7px 0; vertical-align: top; }
.fc-sched-table th { padding-right: 12px; font-weight: 500; text-align: left; }
.fc-sched-hours { color: var(--front-heading); font-weight: 700; text-align: right; white-space: nowrap; }
.fc-sched-hours--off { color: var(--front-muted); font-weight: 500; }
.fc-sched-break { display: block; color: var(--front-muted); font-size: 11.5px; font-weight: 600; }
.fc-sched-table tr.is-today { color: var(--front-heading); }
.fc-sched-table tr.is-today th,
.fc-sched-table tr.is-today td { background: var(--front-surface); font-weight: 800; }
.fc-sched-table tr.is-today th { padding-left: 8px; border-radius: 8px 0 0 8px; }
.fc-sched-table tr.is-today td { padding-right: 8px; border-radius: 0 8px 8px 0; }
.fc-sched-today { color: var(--front-accent); font-size: 13px; font-weight: 600; }
.fc-sched-text { margin: 0; color: var(--front-heading); font-size: 14px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }

.fc-map-box { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--front-line); }
.fc-map-box:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.front .fc-map-title { margin: 0 0 10px; color: var(--front-heading); font-size: 17px; font-weight: 800; line-height: 1.3; }

.fc-map {
    position: relative;
    display: grid;
    place-items: center;
    height: 300px;
    overflow: hidden;
    border: 1px solid var(--front-line);
    border-radius: 16px;
    background: var(--fc-panel-bg);
}

.fc-map-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.fc .fc-map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--front-line);
    border-radius: 10px;
    background: var(--front-surface);
    color: var(--front-accent);
    font-size: 13px;
    font-weight: 800;
}

.fc .fc-map-link:hover { border-color: var(--front-accent); background: var(--front-mint); }

/* ── «Інші філіали» (096, company/branches.php; вигляд — макет .branches-grid / .branch-card / .branch-name / .branch-meta / .badge-verified,
   доробка 07.11.2026 — рішення власника «як у макеті»; логіка WP .branch-contacts) ──
   Заголовок — H3 рамки (той самий вигляд .fc-sh-title). Сітка — до 3 колонок, не вужче 220 px (вузька ліва колонка — скільки
   вміщується), проміжок 12; телефон — 1 колонка. Картка — легке тло --fc-panel-bg (094c; макет --soft #f0f2ec), рамка --front-line,
   радіус 16, padding 14, flex-колонка зверху вниз з проміжком 8 (087c — без розсування: вільне місце короткої картки — під вмістом,
   рядка дій унизу немає — посилання сама адреса): мітка «Філіал N» (макет .badge-verified: м'ятне тло, акцент,
   11 / 800, пігулка) і «район · адреса» 13,5 / 800 з сірою шпилькою; посилання на сторінку філіалу — та сама адреса зі стрілкою вгору-праворуч,
   наведення — акцент і підкреслення; під нею — рядки 12 px сірі з іконками 12 px (телефон — темніший, наведення — акцент). Картки ряду
   однакової висоти (ряд рівний знизу), вміст кожної — зверху. Картки після третьої — .is-hidden (ставить скрипт); кнопка
   «Показати всі» — спокійна контурна. ── */
.fc-branch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(max(220px, calc((100% - 24px) / 3)), 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fc-branch {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--front-line);
    border-radius: 16px;
    background: var(--fc-panel-bg);
}

.fc-branch.is-hidden { display: none; }

.fc-branch-head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }

.fc-branch-label {
    display: inline-flex;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--front-mint);
    color: var(--front-accent);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
}

.fc-branch-name { display: flex; align-items: flex-start; gap: 6px; min-width: 0; }
.fc-branch-pin { display: flex; flex: none; margin-top: 2px; color: var(--front-muted); }
.fc-branch-addr { min-width: 0; color: var(--front-heading); font-size: 13.5px; font-weight: 800; line-height: 1.4; overflow-wrap: anywhere; }
.fc-branch-arrow { display: inline-flex; margin-left: 4px; color: var(--front-muted); vertical-align: -1px; }
.fc .fc-branch-addr--link:hover { color: var(--front-accent); text-decoration: underline; text-underline-offset: 3px; }
.fc .fc-branch-addr--link:hover .fc-branch-arrow { color: var(--front-accent); }

.fc-branch-meta { display: grid; gap: 3px; min-width: 0; color: var(--front-muted); font-size: 12px; line-height: 1.45; }
.fc .fc-branch-row { display: inline-flex; align-items: flex-start; gap: 6px; min-width: 0; color: var(--front-muted); }
.fc-branch-row svg { flex: none; margin-top: 2px; }
.fc-branch-row span { min-width: 0; overflow-wrap: anywhere; }
.fc .fc-branch-phone { justify-self: start; color: var(--front-text); font-weight: 600; }
.fc .fc-branch-phone:hover { color: var(--front-accent); }

/* ── «Схожі компанії» (098, company/similar.php + partials/company-card-similar.php; вигляд — макет .similar-section / .similar-grid /
   .sim-card / .sim-cta, рішення власника §0, §0а, §12.2) ──
   Секція — та сама рамка .fc-sec під колонками на всю ширину (відступ зверху — як проміжок колонок, 18). Заголовок — текст (div, той самий
   вигляд .fc-sh-title). Сітка — 3 колонки, проміжок 14; ≤ 767 — 1 колонка. Картка — легке тло --fc-panel-bg (як картки філіалів 096),
   рамка --front-line, радіус 16, padding 16, flex-колонка: вміст зверху, рядок статусу й телефону — унизу (margin-top: auto), лінія над
   ним; картки ряду однакової висоти (ряд рівний знизу). Зверху вниз: мітка «ТОП» окремим рядком (лише ТОП; як бейдж карток списків
   .cc-badge, градієнт --fl-top), назва 15 / 800, під нею ліворуч квадратики sm + «4.9» + «(N відгуків)» сірим (доробка 08.11.2026 —
   як картки списків, не в правому верхньому куті), «район · адреса» 12 сірим.
   Статус — кольором тексту, як картки списків (--fl-open-text / --fl-pause-text / --fl-off-text), телефон — акцент зі стрілкою. ── */
.fc-sec--similar { margin-top: 18px; }

.fc-sim-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.fc-sim {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--front-line);
    border-radius: 16px;
    background: var(--fc-panel-bg);
}

.fc-sim-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }

.fc-sim-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--fl-top), var(--fl-top-dark));
    color: var(--front-surface);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
}

.fc-sim-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 0; color: var(--front-muted); font-size: 12px; font-weight: 600; }
.fc-sim-rating b { color: var(--front-text); font-weight: 800; }

.fc .fc-sim-title { color: var(--front-heading); font-size: 15px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.fc a.fc-sim-title:hover { color: var(--front-accent); }
.fc-sim-addr { margin: 0; color: var(--front-muted); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }

.fc-sim-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--front-line);
    font-size: 12px;
    font-weight: 800;
}

.fc-sim-status--green { color: var(--fl-open-text); }
.fc-sim-status--orange { color: var(--fl-pause-text); }
.fc-sim-status--red { color: var(--fl-off-text); }
.fc-sim-status--text { color: var(--fl-schedule-text); font-weight: 600; }
.fc .fc-sim-phone { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: var(--front-accent); white-space: nowrap; }
.fc .fc-sim-phone:hover { color: var(--front-accent-dark); }
.fc-sim-phone svg { flex: none; }

/* ── «Для власника бізнесу» (122b, company/owner.php; змінено власником 09.11.2026 — 122c / 113c, варіант 2) — легка картка, як інші
   картки сторінки: тло --fc-panel-bg, рамка 1 px --front-line, радіус секцій 18; без градієнта й тіні. flex з переносом: текст (не вужче
   260 px) і кнопка поруч, не вміщається — кнопка під текстом. Мітка — маленька мʼятна пігулка 11 / 800 (--front-mint, текст акцентом);
   заголовок — текст 16 / 800, темний (не H-тег, §12.1); абзац 13 сірий --front-muted. Кнопка «Підтвердити права (1 хв)» із замком —
   спокійна .front-btn--quiet (front-base.css, як «Опублікувати відгук»); тут — лише розміри 40 px (padding 11 + рамка, без фіксованої
   висоти), радіус 11, 13 px. Місце — після відгуків на всіх ширинах (порядок розмітки, без order). ── */
.fc-owner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 18px;
    padding: 18px 22px;
    border: 1px solid var(--front-line);
    border-radius: 18px;
    background: var(--fc-panel-bg);
}

.fc-owner-info { flex: 1 1 260px; min-width: 0; }

.fc-owner-badge {
    display: inline-flex;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--front-mint);
    color: var(--front-accent);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
}

.fc-owner-title { margin: 6px 0 4px; color: var(--front-heading); font-size: 16px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.fc-owner-text { margin: 0; color: var(--front-muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }

.fc-owner-btn {
    gap: 7px;
    min-height: 0;
    padding: 11px 16px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 800;
    white-space: normal;
}

.fc-reviews-more,
.fc-branches-more {
    display: block;
    margin: 14px auto 0;
    padding: 9px 16px;
    border: 1px solid var(--front-line);
    border-radius: var(--front-radius-btn);
    background: var(--front-surface);
    color: var(--front-heading);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}

.fc-reviews-more:hover,
.fc-branches-more:hover { border-color: var(--front-accent); color: var(--front-accent); }
.fc-reviews-more:disabled { cursor: progress; opacity: .7; }
.fc-reviews-more[hidden],
.fc-branches-more[hidden] { display: none; }

/* ── «Відгуки» (097; front/company/reviews.php і partials/review-card.php; вигляд — макет #company-reviews :584–622, :1492–1560, телефон
   :1878–1880; рішення власника §0, §0а, §6а, §10) — спокійно: сірі мітки й підписи, м'які підкладки; акцент — лише рекомендація
   «так», смужки розподілу й гілка офіційної відповіді. Квадратні зірки картки оцінки — класи вікна відгуку (.frv-star, css/front-review.css),
   тут лише розмір ── */

/* мітка кількості в заголовку рамки (partials/section.php, $secBadge; макет .sec-count) — сіра пігулка поруч з назвою, не в тексті; тло — --front-chip-soft,
   як лічильник меню (094c): секція — біла картка, легка підкладка --fc-panel-bg на ній не видна (лишилась би гола цифра) */
.fc-sh-count {
    flex: none;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--front-chip-soft);
    color: var(--front-muted);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0;
}

/* «Додати відгук» із зіркою (макет .btn-neutral): спокійна кнопка з рамкою, текст — завжди (і на телефоні) */
.fc-sh-action--review { padding: 8px 13px; border-radius: 10px; background: var(--front-surface); color: var(--front-text); font-size: 12.5px; }
.fc-sh-action--review:hover { border-color: var(--front-accent); background: var(--front-surface); color: var(--front-accent); }

/* плашка «прийом відгуків закрито до …» (WP .reviews-closed-msg — червона; тут м'яка тепла, §0) */
.fc-rclosed {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--fc-dot-pause) 22%, var(--front-surface));
    border-radius: 12px;
    background: color-mix(in srgb, var(--fc-dot-pause) 6%, var(--fc-panel-bg));
    color: var(--front-text);
    font-size: 13.5px;
    line-height: 1.55;
}

.fc-rclosed p { margin: 0; overflow-wrap: anywhere; }
.fc-rclosed strong { color: var(--front-heading); }
.fc-rclosed-icon { flex: none; margin-top: 1px; color: var(--fc-dot-pause); }

/* останній елемент блоку (плашка при 0 відгуків — доробка 08.11.2026; картка оцінки без відгуків) — без нижнього поля: під ним лише відступ картки секції */
.fc-rclosed:last-child,
.fc-rate-card:last-child,
.fc-rsum:last-child { margin-bottom: 0; }

/* картка вибору оцінки (макет .rate-card): H3, 5 квадратних зірок (кнопки вікна відгуку), підпис наведення */
.fc-rate-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid var(--front-line);
    border-radius: 16px;
    background: var(--front-surface);
    box-shadow: var(--fc-shadow);
}

.front .fc-rate-card-title { margin: 0; font-size: 14.5px; font-weight: 800; line-height: 1.4; letter-spacing: 0; }
.fc-rate-pick { display: inline-flex; flex: none; align-items: center; gap: 6px; }
.fc-rate-pick .fc-rate-star { width: 40px; height: 40px; padding: 0; border-radius: 11px; font: inherit; -webkit-appearance: none; appearance: none; }
.front .fc-rate-star:focus-visible { outline: 3px solid var(--front-focus); outline-offset: 2px; }
.fc-rate-hint { min-width: 120px; margin: 0; color: var(--front-muted); font-size: 12.5px; font-weight: 700; line-height: 1.4; }
.fc-rate-hint.is-ok { color: var(--front-accent); }

/* підсумок (макет .reviews-summary): число, зірки до десятої (partials/stars.php, hero), «N оцінок · M рекомендують», розподіл 5…1 */
.fc-rsum {
    display: grid;
    grid-template-columns: minmax(180px, max-content) minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    margin: 0 0 16px;
    padding: 16px;
    border-radius: 16px;
    background: var(--fc-panel-bg);
}

.fc-rsum-score { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-right: 16px; border-right: 1px solid var(--front-line); text-align: center; }
.fc-rsum-num { margin: 0; color: var(--front-heading); font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.fc-rsum-line { margin: 0; color: var(--front-muted); font-size: 12px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.fc-rbars { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.fc-rbar-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 30px; align-items: center; gap: 8px; color: var(--front-text); font-size: 12px; font-weight: 700; line-height: 1.4; }
.fc-rbar-label { display: inline-flex; align-items: center; gap: 4px; }
.fc-rbar-label svg { flex: none; fill: var(--front-muted); }
.fc-rbar-num { color: var(--front-muted); text-align: right; }

/* смужка розподілу — <progress> (частка без style=): доріжка сіра, заповнення — акцент */
.fc-rbar { display: block; width: 100%; height: 8px; overflow: hidden; border: 0; border-radius: 999px; background: var(--fc-star-empty); color: var(--front-accent); -webkit-appearance: none; appearance: none; }
.fc-rbar::-webkit-progress-bar { border-radius: 999px; background: var(--fc-star-empty); }
.fc-rbar::-webkit-progress-value { border-radius: 999px; background: var(--front-accent); }
.fc-rbar::-moz-progress-bar { border-radius: 999px; background: var(--front-accent); }

/* картка відгуку (макет .review-card) */
.fc-reviews-list { display: grid; gap: 12px; }
.fc-review { padding: 18px; border: 1px solid var(--front-line); border-radius: 16px; background: var(--front-surface); }
.fc-review:focus { outline: none; }
.fc-review-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.fc-review-author { display: flex; align-items: center; gap: 10px; min-width: 0; }

/* автор з акаунтом (124; WP company-card.css .review-author--clickable): увесь блок — кнопка вікна картки автора; наведення —
   світло-зелене тло з радіусом 8 (відступ 4 / 6 компенсовано полем, блок не зсувається), фокус клавіатури — як інші кнопки сторінки */
.fc-review-author--card {
    margin: -4px -6px;
    padding: 4px 6px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background .15s;
}
.fc-review-author--card:hover { background: var(--fc-author-hover); }
.front .fc-review-author--card:focus-visible { outline: 3px solid var(--front-focus); outline-offset: 2px; }
.fc-review-verified { display: inline-block; flex: none; margin-left: 3px; color: var(--fl-accent); vertical-align: -2px; }

.fc-review-ava {
    position: relative;
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--front-mint);
    color: var(--front-accent);
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
}

.fc-review-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fc-review-ava:has(> .fc-review-img) { background: var(--front-surface); }
.fc-review-ava:has(> .fc-review-img) .fc-review-letter { visibility: hidden; }
.fc-review-who { display: flex; flex-direction: column; min-width: 0; }
.fc-review-name { color: var(--front-heading); font-size: 14px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.fc-review-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; color: var(--front-muted); font-size: 12px; line-height: 1.5; }
.fc-review-rec { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.fc-review-rec--yes { color: var(--front-accent); font-weight: 700; }
.fc-review-rec svg { flex: none; }
.fc-review-text { margin: 0; color: var(--front-text); font-size: 14px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }

/* «+ Переваги» / «− Недоліки» — дві колонки; одна — на всю ширину */
.fc-review-pc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.fc-review-head + .fc-review-pc { margin-top: 4px; }
.fc-review-note { padding: 10px 12px; border: 1px solid transparent; border-radius: 12px; color: var(--front-text); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.fc-review-note:only-child { grid-column: 1 / -1; }
.fc-review-note p { margin: 0; white-space: pre-line; }
.fc-review-note--pros { border-color: color-mix(in srgb, var(--front-accent) 14%, var(--front-surface)); background: color-mix(in srgb, var(--front-mint) 55%, var(--front-surface)); }
.fc-review-note--cons { border-color: color-mix(in srgb, var(--front-danger) 14%, var(--front-surface)); background: color-mix(in srgb, var(--front-danger) 4%, var(--front-surface)); }
.fc-review-note-label { display: block; margin-bottom: 3px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.fc-review-note--pros .fc-review-note-label { color: var(--front-accent); }
.fc-review-note--cons .fc-review-note-label { color: var(--front-danger); }

/* офіційна відповідь (Р §10; макет .owner-reply-branch): заокруглені кути й зелена смуга зліва, що теж заокруглена */
.fc-reply { margin: 12px 0 0 20px; padding: 12px 14px; border-left: 3px solid var(--front-accent); border-radius: 12px; background: var(--fc-panel-bg); font-size: 13px; }
.fc-reply-head { display: flex; align-items: center; gap: 6px; margin: 0 0 3px; color: var(--front-accent); font-size: 12px; font-weight: 800; line-height: 1.4; overflow-wrap: anywhere; }
.fc-reply-head svg { flex: none; }
.fc-reply-text { margin: 0; color: var(--front-text); line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }

/* «Показати ще (ще N)» — вигляд кнопки «Показати всі філіали» (.fc-branches-more, вище); помилка — текст над нею */
.fc-reviews-error { margin: 12px 0 0; color: var(--front-danger); font-size: 13px; font-weight: 600; line-height: 1.4; text-align: center; }

/* «Показати на карті ↓» бічної панелі (094, Р §5) — спокійне посилання під адресою */
.fc .fc-side-map {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 4px;
    margin: -2px 0 0 23px;
    color: var(--front-muted);
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--front-line);
    text-underline-offset: 3px;
}

.fc .fc-side-map:hover { color: var(--front-accent); text-decoration-color: currentColor; }

/* ── Вікно «Це мій бізнес» (122, partials/claim-modal.php; WP #claimPopup, company-card.css :179–182) ──
   Панель — спільна front-modal (500 px, padding 24). Заголовок 18 / 600 з замком акцентом, проміжок 8 (WP .claim-popup-title); текст —
   14 / 1.7 основним кольором, абзаци, списки й цитата з відступом 12 — як вікно «Просування» 123 (той самий профіль очистки; WP
   .claim-popup-body, wpautop; у пісочниці текст має список і цитату); кнопка — головна кнопка фронту .front-btn
   (WP .cc-btn-primary) на всю ширину, 16 зверху (WP .claim-popup-btn: block, 100 %, margin-top 16); вміст довший за екран —
   гортається у вікні. */
.fmodal--claim .fmodal-body { margin: -4px; padding: 4px; overflow-y: auto; overscroll-behavior: contain; }
.fclaim-title { display: flex; align-items: center; gap: 8px; }
.fclaim-title svg { flex: none; color: var(--fl-accent); }
.fclaim-text { color: var(--fl-text); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.fclaim-text p { margin: 0 0 12px; }
.fclaim-text ul,
.fclaim-text ol { margin: 0 0 12px; padding-left: 20px; }
.fclaim-text li { margin: 0 0 6px; }
.fclaim-text blockquote { margin: 0 0 12px; padding-left: 1.5em; border-left: 4px solid var(--fl-accent); }
.fclaim-text > :last-child { margin-bottom: 0; }
.fclaim-text a { color: var(--fl-accent); }
.fclaim-btn { display: flex; width: 100%; margin-top: 16px; white-space: normal; text-align: center; }

/* ── Вікно «Запропонувати зміни» (121, partials/report-modal.php; WP #reportPopup, company-card.css :185–197 і .form-group :1) ──
   Панель — спільна front-modal (500 px, padding 24, заголовок 18 / 600 — як WP .review-popup / .report-popup-title). Вкладки — рядок
   на всю ширину, лінія знизу, кожна flex 1: 10 8, 13 / 500 другорядним кольором, по центру; активна — акцент і смуга 2 px знизу;
   наведення — основний текст; 16 під вкладками. Причини — радіо в стовпчик, 6 0, 14, проміжок 6 (10 під групою). Поля — 8 10, рамка
   .5 px, радіус 8, 13 px, фокус — рамка акценту (WP — помаранчевий --primary-color; тут акцент, як заявка 120); текст 64 px без
   розтягування — висота за rows="3" (WP height 64 / max 64 — фіксованої висоти не беремо, ADMIN_UI.md §5), 10 під ним. Підказка під email — 14 курсивом другорядним кольором. Кнопка — на всю ширину,
   12, акцент, радіус 8, 13 / 500, 15 зверху; наведення --fl-lead-hover. Успіх — 10 12, тло й текст акценту, радіус 8, 13 px.
   Помилки — .has-error + .form-error під полем (ADMIN_UI.md §3; WP — плашка над кнопкою), відповідь сервера — рядок кольором помилки. */
.fmodal--report .fmodal-body { margin: -4px; padding: 4px; overflow-y: auto; overscroll-behavior: contain; }
.frep-tabs { display: flex; margin: 0 0 16px; border-bottom: 1px solid var(--fl-line); }

.frep-tab {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 8px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: var(--fl-text-light);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
    cursor: pointer;
    transition: color .2s, border-color .2s;
}

.frep-tab:hover { color: var(--fl-text); }
.frep-tab[aria-selected="true"] { border-bottom-color: var(--fl-accent); color: var(--fl-accent); }
.front .frep-tab:focus-visible { outline: 3px solid var(--front-focus); outline-offset: -3px; }

.frep-form { display: flex; flex-direction: column; margin: 0; }
.frep-form[hidden], .frep-tabs[hidden], .frep-panel[hidden], .frep-success[hidden], .frep-message[hidden] { display: none; }
.frep-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin: 0 0 10px; }
.frep-reasons { padding: 0; border: 0; gap: 0; }

.frep-radio { display: flex; align-items: center; gap: 6px; padding: 6px 0; color: var(--fl-text); font-size: 14px; cursor: pointer; }
.frep-radio input { flex: none; margin: 0; accent-color: var(--fl-accent); }

.frep-input {
    width: 100%;
    padding: 8px 10px;
    border: .5px solid var(--fl-line);
    border-radius: 8px;
    background: var(--fl-surface);
    color: var(--fl-text);
    font: inherit;
    font-size: 13px;
    line-height: 1.5;
    transition: border-color .2s;
}

.frep-input::placeholder { color: var(--fl-schedule-text); }
.frep-input:focus { outline: none; border-color: var(--fl-accent); }
.frep-input:focus-visible { box-shadow: 0 0 0 1px var(--fl-accent); }
.frep-text { resize: none; }
.frep-field.has-error .frep-input { border-color: var(--front-danger); }
.frep-field .form-error { margin: 0; color: var(--front-danger); font-size: 12px; line-height: 1.4; }
.frep-hint { margin: 0; color: var(--fl-text-light); font-size: 14px; font-style: italic; line-height: 1.45; }

.frep-message { margin: 0 0 8px; color: var(--front-danger); font-size: 13px; line-height: 1.45; }

.frep-submit {
    width: 100%;
    margin-top: 5px;
    padding: 12px;
    border: 0;
    border-radius: 8px;
    background: var(--fl-accent);
    color: var(--fl-surface);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s;
}

.frep-submit:hover { background: var(--fl-lead-hover); }
.frep-submit:disabled { background: var(--fl-accent); cursor: default; opacity: .6; }
.front .frep-submit:focus-visible,
.front .frep .fui-consent a:focus-visible { outline: 3px solid var(--front-focus); outline-offset: 1px; }
.frep .fui-consent { margin-top: 10px; color: var(--fl-text-light); text-align: center; }

.frep-success {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--fl-accent-bg);
    color: var(--fl-accent-dark);
    font-size: 13px;
    line-height: 1.45;
    outline: none;
}

.frep-success svg { flex: none; }

/* підписи полів — лише для екранних читачів (у WP — тільки підказки в полях); пастка PublicForm::TRAP — поза екраном */
.frep-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.frep-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ПК (087g, рішення власника 17.11.2026 за знімками прототипу): ліва частина — зверху вниз, «Зателефонувати» одразу під адресою;
   вітрина не роздувається — висота 248 px, одне фото — рамка 320 × 220, два — до 40 %; три й більше — 45 %, як було. Кількість — data-count
   сітки (front-gallery.js перераховує її при зламаному фото). Нижче 1024 — розкладка шапки без змін. */
@media (min-width: 1024px) {
    .fc-hero-grid { align-items: flex-start; }
    .fc-hero-main { justify-content: flex-start; gap: 18px; }
    .fc-gallery { min-height: 0; height: 248px; }
    .fc-gallery:has(.fc-gallery-grid[data-count="1"]) { flex: 0 0 320px; height: 220px; }
    .fc-gallery:has(.fc-gallery-grid[data-count="2"]) { flex: 0 1 40%; }
}

/* ── Вузькі екрани: одна колонка, бічної панелі немає (дії — нижня панель); вітрина — під інформацією шапки ── */
@media (max-width: 1023px) {
    .fc-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .fc-main { --fc-gap: 16px; }
    .fc-side { display: none; }
    .fc-nav-review { display: none; }
    .fc-hero-grid { flex-direction: column; gap: 18px; }
    .fc-hero-main,
    .fc-gallery { flex: none; }
    .fc-gallery { height: 248px; }
}

/* вікна (091, 089) — як були */
@media (max-width: 768px) {
    .fc-gbox-arrow { display: none; }
    .fc-gbox-dots { display: flex; }
    .fmodal--booking.is-open { align-items: flex-end; }
    .fmodal--booking .fmodal-panel { height: auto; max-height: 90vh; padding: 20px 16px; border-radius: 12px 12px 0 0; }
}

/* ── Телефон (Р §9) ── */
@media (max-width: 767px) {
    /* крихти: будиночок › категорія › назва з «…»; дій у рядку немає */
    .fc-top { padding: 10px 0 8px; }
    .fc-actions { display: none; }
    .front-crumbs--company { width: 100%; }
    .front-crumbs--company li + li::before { margin: 0 6px; }
    .front-crumbs--company .front-crumbs-home-icon { display: inline-block; }
    .front-crumbs--company .front-crumbs-home-text { display: none; }

    .fc-hero,
    .fc-sec { padding: 16px; border-radius: 18px; }

    /* шапка: логотип і H1 у першому рядку; рейтинг, адреса, статус — на всю ширину від лівого краю; сердечко — угорі праворуч */
    .fc-hero-fav { display: grid; }
    .fc-logo { grid-row: 1; align-self: center; width: 60px; height: 60px; margin-right: 12px; border-radius: 14px; }
    .front .fc-title { grid-row: 1; align-self: center; margin: 0; padding-right: 40px; font-size: 20px; }
    .fc-trust,
    .fc-meta-row { grid-column: 1 / -1; }
    .fc-trust { margin-top: 12px; }
    .fstars--hero .fstar { width: 24px; height: 24px; border-radius: 7px; }
    .fstars--hero { --fstar: 13px; }
    .fc-rate-num { font-size: 19px; }

    /* дві кнопки дії — в один рядок по половині, одна — на всю ширину */
    .fc-cta { flex-wrap: nowrap; gap: 8px; margin-top: 14px; }
    .fc-cta-btn { flex: 1 1 0; min-width: 0; padding: 12px 10px; font-size: 14px; gap: 6px; }
    .front .fc-cta-phone { padding: 12px 10px; }

    /* вітрина: 1 — одне; 2 — два поруч; 3 — велике на всю ширину + два; 4+ — 2 × 2, «+N» на 4-й */
    .fc-gallery { height: auto; min-height: 0; }
    .fc-gallery-grid { flex: none; grid-template-columns: 1fr 1fr; grid-template-rows: 125px 110px; }
    .fc-gallery-grid[data-count] .fc-gallery-cell:first-child,
    .fc-gallery-grid[data-count="4"] .fc-gallery-cell:nth-child(2) { grid-column: auto; grid-row: auto; }
    .fc-gallery-grid[data-count="3"] { grid-template-columns: 1fr 1fr; grid-template-rows: 150px 110px; }
    .fc-gallery-grid[data-count="3"] .fc-gallery-cell:first-child { grid-column: 1 / -1; }
    .fc-gallery-grid[data-count="2"] { grid-template-rows: 170px; }
    .fc-gallery-grid[data-count="1"] { grid-template-columns: 1fr; grid-template-rows: 220px; }
    .fc-gallery-cell:nth-child(n+5) { display: none; }
    .fc-gallery-more--desktop { display: none; }
    .fc-gallery-more--mobile { display: flex; }

    /* смужка: іконка й тексти зверху; капсула — питання, під ним три кнопки в рядок (третя ширша) */
    .fc-strip { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px; }
    .fc-poll { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.7fr); gap: 6px; width: 100%; padding: 10px; }
    .fc-poll-q { grid-column: 1 / -1; }
    .fc-poll-btn { justify-content: center; padding: 9px 8px; }

    /* меню розділів (Р §10): лінія активного — по ширині слова, проміжки між пунктами вдвічі менші, ніж на ПК (28 → 14) */
    .fc-nav-track { gap: 14px; }
    .fc .fc-nav-link { padding: 0; }

    /* «Про компанію»: лише іконки (назва — aria-label) */
    .fc-sh-action { justify-content: center; width: 34px; height: 34px; padding: 0; }
    .fc-sh-action svg { width: 17px; height: 17px; }
    .fc-sh-action-text { display: none; }

    /* прайс (Р §10): назва на всю ширину, ціна під нею ліворуч */
    .fc-price-head,
    .fc-price-row { padding: 12px 14px; }
    .fc-price-row { flex-direction: column; align-items: flex-start; gap: 4px; }

    /* «Контакти» (Р §9, зразок 094b «Приклад 1 — телефон»): одна колонка, «Поділитися» в заголовку (вікно fc-share) — у рядку
       назви праворуч; статус — окремим рядком під назвою, від тексту назви (плитка іконки 34 + проміжок 10); номери — одна колонка;
       групи соцмереж — одна під одною */
    .fc-sec--contacts .fc-sh { position: relative; }
    .fc-sec--contacts .fc-sh-title { padding-right: 44px; }
    .fc-sec--contacts .fc-sh-actions { flex-basis: 100%; margin-left: 0; padding-left: 44px; }
    .fc-contacts-share { position: absolute; top: 0; right: 0; display: inline-flex; }
    .fc-contacts-grid--split { grid-template-columns: minmax(0, 1fr); }
    .fc-cphones--two { grid-template-columns: minmax(0, max-content); }
    .fc-csocial { flex-direction: column; }

    /* «Інші філіали» (Р §10, макет): одна колонка, кожна картка за своїм вмістом */
    .fc-branch-grid { grid-template-columns: minmax(0, 1fr); }
    .fc-sim-grid { grid-template-columns: minmax(0, 1fr); }
    /* блок «Для власника бізнесу» (122c): після відгуків — порядком розмітки; на телефоні — padding секцій телефона */
    .fc-owner { padding: 16px; }

    /* «Відгуки» (Р §6а, макет :1878–1880): «Додати відгук» — з текстом (головна дія блоку); картка оцінки на всю ширину — H3, зірки в
       один ряд, підпис нижче; підсумок і «Переваги / Недоліки» — одна колонка */
    .fc-sh-action--review { width: auto; height: auto; padding: 8px 12px; }
    .fc-sh-action--review svg { width: 14px; height: 14px; }
    .fc-sh-action--review .fc-sh-action-text { display: inline; }
    .fc-rate-card { flex-direction: column; align-items: flex-start; gap: 10px; }
    .fc-rsum { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .fc-rsum-score { padding: 0 0 12px; border-right: 0; border-bottom: 1px solid var(--front-line); }
    .fc-review { padding: 14px; }
    /* шапка картки: зірки — окремим рядком під імʼям (від тексту імені); дата й «Рекомендує компанію» — двома рядками, без крапки між ними */
    .fc-review-head { flex-wrap: wrap; row-gap: 6px; }
    .fc-review-author { flex: 1 1 100%; }
    .fc-review-author:has(> .fc-review-ava) + .fstars { margin-left: 50px; }
    .fc-review-meta { flex-direction: column; align-items: flex-start; }
    .fc-review-dot { display: none; }
    .fc-review-pc { grid-template-columns: minmax(0, 1fr); }
    .fc-reply { margin-left: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .fc-gallery-cell img,
    .fc-cta-btn,
    .fc .fc-nav-link,
    .fc-nav-review,
    .fc-price-row,
    .fc .fc-chip,
    .fc .fc-croute,
    .fc-reviews-more,
    .fc-branches-more { transition: none; }
}

/* 163b-2c: на телефоні шапка ховається при прокрутці (html.is-fh-hidden) — меню розділів їде вгору разом з нею */
@media (max-width: 800px) {
    .fc-nav { transition: top .2s ease; }
}

@media (max-width: 800px) and (prefers-reduced-motion: reduce) {
    .fc-nav { transition: none; }
}
