/* ==========================================================================
   home.css — головна (077; вигляд — затверджений макет головної, 077d: _MOCKUPS_AND_SPECS/homepage/styles.css, блоки
   02–10). Обгортка сторінки — .fb-page.hm (front/home.php): блоки сторінки home (049b; front/blocks/*.php) і блоки
   каталогу (partials/home/*.php). Підключається після front-base.css і front-blocks.css; лише токени front-base.css
   (кольори макета — --front-* «Головна (077d)»). Спільне з 086c — у front-base.css: секція й заголовок (.front-section*,
   .front-eyebrow), панель «Для бізнесу» (.front-business*), напрямки міст (.fcat-dest), кнопки (.front-btn*), плитка
   іконки (.front-tile). Ширина — --front-wrap (як шапка й підвал). Ширини макета: 1450+ / ≤ 1100 / 801–1100 / ≤ 800 /
   541–800 / ≤ 540. Без фіксованих висот блоків з текстом (фото-плитки й фото карток — висота макета); картки ряду —
   однакової висоти, рядок дій — унизу; ціль натискання на телефоні ≥ 44 px.
   ========================================================================== */
.is-home .front-main {
    justify-content: flex-start;
    align-items: stretch;
    padding: 0 0 40px;
}

.hm .front-container { width: var(--front-wrap); max-width: none; margin: 0 auto; padding: 0; }

.hm .fb-section { padding: 0; }
.hm .fb-section + .fb-section { border-top: 0; }

/* ── Кругла стрілка (макет .round-arrow) ─────────────────────────────────── */
.hm-round {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--front-card);
    color: var(--front-accent);
}

.front .hm-round { color: var(--front-accent); }
.front .hm-round:hover { background: var(--front-soft); color: var(--front-accent-dark); }

/* ── 02 Hero: надпис, H1 ліворуч, текст праворуч (блок hero без фону) ─────── */
.hm .fb-hero { overflow: visible; padding: 38px 0 0; background: none; text-align: left; }

.hm .fb-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 24px;
    align-items: end;
    margin-bottom: 27px;
}

.hm .fb-hero-eyebrow {
    grid-column: 1;
    margin: 0 0 14px;
    color: var(--front-accent);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .18em;
    line-height: 1.6;
}

.front .hm .fb-hero-title {
    grid-column: 1;
    margin: 0;
    font-size: 57px;
    font-weight: 800;
    line-height: 1.07;
    letter-spacing: -.06em;
    overflow-wrap: anywhere;
}

.hm .fb-hero-text {
    grid-column: 2;
    grid-row: 1 / span 2;
    max-width: 340px;
    margin: 0;
    padding-bottom: 4px;
    font-size: 15px;
    line-height: 1.45;
    letter-spacing: -.025em;
}

/* ── Пошук 078 у вигляді .search-bar: біла смуга з тінню, поле послуги — без рамки, місто — через лінію, кнопка ── */
.hm .sf-section .sf { max-width: none; margin: 0 0 18px; }

.hm .sf-section .sf-fields {
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--front-line);
    border-radius: 14px;
    background: var(--front-surface);
    box-shadow: var(--front-search-shadow);
}

.hm .sf-section .sf-field { gap: 16px; padding: 0 0 0 17px; border: 0; border-radius: 0; background: none; box-shadow: none; }
.hm .sf-section .sf-field + .sf-field { flex: 0 0 230px; gap: 14px; height: 40px; padding: 0 22px; border-left: 1px solid var(--front-line); }
.hm .sf-section .sf-field:focus-within { box-shadow: none; }
.hm .sf-section .sf-input { height: 48px; font-size: 16px; }
.hm .sf-section .sf-field + .sf-field .sf-input { font-size: 15px; }
.hm .sf-section .sf-btn { min-width: 180px; min-height: 54px; padding: 0 20px; gap: 12px; font-size: 15px; }

/* ── Плитки першого екрана (hero_tiles; макет .hero-bento, .quick-categories). Розклад — за тим, що є (:has):
   2 фото — фото 1 на два ряди, фото 2 угорі праворуч, під ним лічильники; 1 фото — фото ліворуч, лічильники праворуч
   стовпчиком; без фото — лічильники рядом; без лічильників — лише фото. Ряди — не нижчі за висоту макета (216 / 154) ── */
.hm-tiles .front-container { display: flex; flex-direction: column; gap: 15px; }

.hm-bento {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "s c";
    gap: 14px;
}

.hm-bento:has(> .hm-photo) {
    grid-template-columns: 1.2fr .94fr;
    grid-template-rows: minmax(216px, auto) minmax(154px, auto);
    grid-template-areas: "a s" "a c";
}

.hm-bento:has(> .hm-photo ~ .hm-photo) {
    grid-template-columns: 1.2fr .58fr .36fr;
    grid-template-areas: "a b b" "a s c";
}

.hm-bento:has(> .hm-photo):not(:has(> .hm-stat)) { grid-template-columns: 1fr; grid-template-rows: minmax(300px, auto); grid-template-areas: "a"; }
.hm-bento:has(> .hm-photo ~ .hm-photo):not(:has(> .hm-stat)) { grid-template-columns: 1.2fr 1fr; grid-template-areas: "a b"; }

.hm-bento > :first-child.hm-photo { grid-area: a; }
.hm-photo + .hm-photo { grid-area: b; }
.hm-stat--companies { grid-area: s; }
.hm-stat--categories { grid-area: c; }
.hm-bento:not(:has(> .hm-stat--companies)) .hm-stat--categories { grid-area: s / s / c / c; }
.hm-bento:not(:has(> .hm-stat--categories)) .hm-stat--companies { grid-area: s / s / c / c; }

.hm-photo,
.hm-stat { position: relative; overflow: hidden; min-width: 0; border-radius: 18px; }

.hm-photo { display: block; color: var(--front-surface); text-decoration: none; }
.front .hm-photo { color: var(--front-surface); }

.hm-photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 43%; }

.hm-photo-label {
    position: absolute;
    left: 20px;
    right: 18px;
    bottom: 18px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.hm-photo-text { padding: 9px 12px; border-radius: 9px; background: var(--front-photo-label); color: var(--front-surface); }
.hm-photo-eyebrow { display: block; margin-bottom: 6px; font-size: 8px; font-weight: 700; letter-spacing: .14em; }
.hm-photo-title { display: block; font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: -.045em; }
.hm-photo .hm-round { margin-left: auto; }
.front .hm-photo:hover .hm-round { background: var(--front-butter); }

.hm-stat { display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; }
.hm-stat--companies { background: var(--front-stat); color: var(--front-stat-text); }
.hm-stat--categories { background: var(--front-butter); color: var(--front-accent-dark); }
.hm-stat-icon { flex: none; margin-bottom: auto; color: var(--front-accent); }
.hm-stat-number { display: block; font-size: 48px; font-weight: 800; line-height: 1.1; letter-spacing: -.065em; white-space: nowrap; }
.hm-stat-word { display: block; margin-top: 6px; font-size: 18px; font-weight: 750; line-height: 1.2; letter-spacing: -.025em; }
.hm-stat--categories .hm-stat-number { padding-top: 12px; font-size: 31px; line-height: 1.05; letter-spacing: -.05em; }
.hm-stat--categories .hm-stat-word { margin-top: 2px; font-size: 14px; line-height: 1.15; }

/* плитка категорій — кнопка вікна категорій (доробка 2): вигляд плитки, кругла стрілка в куті (макет .category-stat) */
button.hm-stat { width: 100%; border: 0; font: inherit; text-align: left; cursor: pointer; }
.hm-stat-round { position: absolute; right: 15px; bottom: 15px; width: 34px; height: 34px; }
button.hm-stat:hover .hm-stat-round { background: var(--front-surface); }

/* Кнопки під плитками (макет .quick-categories; доробка 2): 4 найбільші категорії + «Усі категорії» (ширша) */
.hm-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.22fr); gap: 11px; margin: 0; padding: 0; list-style: none; }
.hm-chips > li { display: flex; min-width: 0; }

.hm-chip {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    min-height: 47px;
    padding: 11px;
    border: 0;
    border-radius: var(--front-radius-btn);
    background: var(--front-chip-soft);
    color: var(--front-heading);
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.hm-chip > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.front a.hm-chip { color: var(--front-heading); }
.front .hm-chip:hover { background: var(--front-butter); color: var(--front-accent-dark); }
.hm-chip-icon { flex: none; width: 22px; height: 22px; fill: currentColor; color: var(--front-accent); }
.hm-chip-arrow { flex: none; color: var(--front-heading); }

/* ── Вікно «Для кожної вашої справи» (доробка 2; знімок власника; одне вікно front-modal, front-base.css .fmodal*):
   світла панель до 875 px, заголовок 32 / 800, кругла кнопка закриття, плитки «іконка · назва · стрілка» у 2 колонки
   (≤ 540 — 1), посилання — <a href> ── */
.fmodal--cats .fmodal-overlay { background: var(--front-overlay); }
.fmodal--cats .fmodal-panel { width: min(875px, 100%); padding: 32px 36px 36px; border-radius: 22px; background: var(--front-bg); }
.fmodal--cats .fmodal-head { align-items: center; margin-bottom: 18px; }
.fmodal--cats .fmodal-title { color: var(--front-heading); font-size: 32px; font-weight: 800; line-height: 1.2; letter-spacing: -.045em; }
.fmodal--cats .fmodal-close { align-items: center; justify-content: center; width: 56px; height: 56px; margin: 0; border-radius: 50%; background: var(--front-chip-soft); color: var(--front-heading); }
.fmodal--cats .fmodal-close:hover { background: var(--front-butter); color: var(--front-heading); }
.fmodal--cats .fmodal-body { overflow: auto; }
.hm-cats-sub { margin: 0 0 24px; color: var(--front-muted); font-size: 16px; line-height: 1.5; }
.hm-cats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.hm-cats-grid > li { display: flex; min-width: 0; }

.front .hm-cats-item {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 18px;
    min-width: 0;
    min-height: 74px;
    padding: 16px 22px 16px 20px;
    border-radius: 12px;
    background: var(--front-chip-soft);
    color: var(--front-heading);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
}

.front .hm-cats-item:hover { background: var(--front-butter); color: var(--front-accent-dark); }
.hm-cats-item > span { min-width: 0; overflow-wrap: anywhere; }
.hm-cats-icon { flex: none; width: 26px; height: 26px; fill: currentColor; color: var(--front-heading); }
.hm-cats-arrow { flex: none; margin-left: auto; }

/* ── Блоки каталогу: секції макета; «половинні» блоки рядом (.hm-pair) ─────── */
.hm-catalog { display: flow-root; }
.hm-catalog > .front-section:first-child { margin-top: 44px; padding-top: 33px; border-top: 1px solid var(--front-line); }

.hm-pair { display: flex; align-items: flex-start; gap: 22px; }
.hm-pair > .hm-block { flex: 1 1 0; min-width: 0; }
.hm-pair > .hm-block--trusted-companies { flex-grow: 1.6; }
.hm-pair > .hm-block--category-combo { align-self: stretch; display: flex; }

.hm-head { margin-bottom: 24px; }
.hm-head-main { min-width: 0; }
.hm-desc { margin: 10px 0 0; color: var(--front-muted); font-size: 13px; line-height: 1.6; }
.hm-aside { max-width: 360px; margin: 0; color: var(--front-muted); font-size: 14px; line-height: 1.65; }
.hm-head--compact { align-items: center; margin-bottom: 22px; }
.hm-head--compact .front-section-title { font-size: 30px; }
.hm-head--compact .front-eyebrow { font-size: 9px; }

/* ── 03 ТОП: картки .company-card — 4 в ряд, позначка «ТОП» .promotion. Фото → логотип → нічого (077f і доробка): фото — на
   всю ширину, 4 : 3, як мале фото preview (без обрізання; замість фіксованих висот макета); без фото — угорі рядок
   .hm-card-top (логотип — квадрат 56 зліва з відступом, бейдж «ТОП» і статус), далі назва, рейтинг, «категорія · місто»,
   дії внизу; з фото — як макет: бейдж на фото, статус під «категорія · місто» (.hm-card-top — display: contents, порядок —
   order). Фото прибралось (зламане) — :has() перестає діяти, картка стає текстовою ── */
.hm-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.hm-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--front-line);
    border-radius: 16px;
    background: var(--front-card);
    box-shadow: var(--front-card-shadow);
}

.hm-card-media { position: relative; aspect-ratio: 4 / 3; }
.hm-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.hm-promo {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 7px;
    border: 1px solid var(--front-promo-line);
    border-radius: 5px;
    background: var(--front-promo-bg);
    color: var(--front-surface);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.2;
}

.hm-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 10px; }
.hm-card-top .hm-promo { position: static; }
.hm-card-top .hm-status { margin: 0; }
.hm-card-logo { display: flex; flex: none; width: 56px; height: 56px; padding: 6px; border: 1px solid var(--front-line); border-radius: 12px; background: var(--front-surface); }
.hm-card-logo-img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hm-card:has(> .hm-card-media) .hm-card-top { display: contents; }
.hm-card:has(> .hm-card-media) .hm-card-top .hm-promo { position: absolute; }
.hm-card:has(> .hm-card-media) .hm-card-top .hm-status { order: 1; margin: 8px 0 0; }
.hm-card:has(> .hm-card-media) .hm-card-actions { order: 2; }

.hm-card-body { display: flex; flex: 1; flex-direction: column; padding: 16px 14px; }

.front .hm-card-title { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.25; letter-spacing: -.045em; overflow-wrap: anywhere; }
.front .hm-card-title a,
.front .hm-leader-title a,
.front .hm-service h3 a { color: var(--front-heading); text-decoration: none; }
.front .hm-card-title a:hover,
.front .hm-leader-title a:hover,
.front .hm-service h3 a:hover { color: var(--front-accent); }

.hm-rating { display: flex; align-items: center; gap: 5px; margin: 8px 0 0; font-size: 11px; white-space: nowrap; }
.hm-rating strong { font-size: 12px; }
.hm-rating > span:not(.fstars) { color: var(--front-muted); }   /* «(N відгуків)»; не зірки (087d: .fstar-fill — свій колір) */
/* зірки — скрізь квадратики спільного partials/stars.php (fstars--sm, css/stars.css): рейтинг компанії (.hm-rating, .hm-leader-score —
   087d) і ціла оцінка відгуку («Останні відгуки» — 087f) */

.hm-meta { margin: 9px 0 0; color: var(--front-muted); font-size: 10px; line-height: 1.5; }

.hm-status { margin: 8px 0 0; font-size: 10px; font-weight: 750; line-height: 1.4; }
.hm-status--green { color: var(--front-accent); }
.hm-status--orange,
.hm-status--red { color: var(--front-muted); }

.hm-card-actions { display: flex; gap: 9px; margin-top: auto; padding-top: 15px; }
.hm-call { flex: 1; min-width: 0; min-height: 40px; padding: 9px; gap: 8px; border-radius: 8px; font-size: 12px; }
.hm-round--soft { width: 39px; height: 40px; margin-left: auto; background: var(--front-round-soft); }

/* ── 04 Напрямки — компонент .fcat-dest (front-base.css); решта пар — компактний список ── */
.hm-head--aside { align-items: flex-end; }

.hm-dest-more { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 28px; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--front-line); list-style: none; }
.hm-dest-more li { min-width: 0; }

.front .hm-dest-more a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 0;
    color: var(--front-heading);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.front .hm-dest-more a:hover { color: var(--front-accent); }
/* пунктир від назви до числа, як у змісті книги (077g): займає лише вільне місце, лінія — на рівні рядка тексту; колір
   (доробка 077g) — між лінією й сірим текстом, ближче до лінії (color-mix наявних токенів, нового кольору немає) */
.front .hm-dest-more a > span:not(.hm-dest-count) { display: flex; flex: 1; align-items: baseline; min-width: 0; }
.front .hm-dest-more a > span:not(.hm-dest-count)::after { content: ""; flex: 1 0 12px; margin-left: 8px; border-bottom: 1px dotted color-mix(in srgb, var(--front-line) 65%, var(--front-muted)); }
.hm-dest-count { flex: none; color: var(--front-muted); font-size: 12px; font-weight: 700; }

/* ── 05 Добірки: панель .collection-panel, міні-картки .service-card; друга панель ряду — інший тон ── */
.hm-panel { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 28px; border: 1px solid var(--front-panel-line); border-radius: 22px; background: var(--front-panel); }
.hm-pair > .hm-block--category-combo + .hm-block--category-combo .hm-panel { border-color: var(--front-panel-alt-line); background: var(--front-panel-alt); }

.hm-panel-head { display: flex; align-items: center; gap: 16px; }
.hm-panel-symbol { width: 58px; height: 66px; border-radius: 15px; background: var(--front-panel-symbol); color: var(--front-accent); }
.hm-pair > .hm-block--category-combo + .hm-block--category-combo .hm-panel-symbol { background: var(--front-panel-alt-symbol); }
.hm-panel-icon { width: 30px; height: 30px; fill: currentColor; }
.hm-panel-titles { min-width: 0; }
.hm-panel-titles .front-eyebrow { margin-bottom: 8px; font-size: 8px; letter-spacing: .14em; }
.front .hm-panel-title { margin: 0; font-size: 29px; font-weight: 800; line-height: 1.18; letter-spacing: -.045em; overflow-wrap: anywhere; }
.hm-panel-head > .hm-round { width: 37px; height: 37px; margin-left: auto; }

.hm-panel-intro { margin: 17px 0 0; color: var(--front-muted); font-size: 12px; line-height: 1.6; }

.hm-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 11px; margin-top: 22px; }
.hm-pair .hm-services { grid-template-columns: 1fr; }

.hm-service { display: flex; flex-direction: column; min-width: 0; padding: 17px 19px 13px; border: 1px solid var(--front-service-line); border-radius: 13px; background: var(--front-card); }
.hm-service-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
/* логотип (077g): квадрат 36 зліва від назви й міста — сітка картки; «ТОП» і статус — на своїх місцях праворуч, телефон — на всю
   ширину внизу (рядок 3 — 1fr: ряд рівний) */
.hm-service:has(> .hm-service-logo) { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 12px; }
.hm-service-logo { display: flex; grid-row: 1 / 3; grid-column: 1; align-self: center; width: 36px; height: 36px; padding: 3px; border: 1px solid var(--front-line); border-radius: 9px; background: var(--front-surface); }
.hm-service-logo-img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hm-service:has(> .hm-service-logo) > .hm-service-title,
.hm-service:has(> .hm-service-logo) > .hm-service-place { grid-column: 2; }
.hm-service:has(> .hm-service-logo) > .hm-service-phone { grid-row: 3; grid-column: 1 / -1; align-self: end; }
.front .hm-service h3 { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.3; letter-spacing: -.025em; overflow-wrap: anywhere; }

.hm-top-badge { flex: none; padding: 4px 7px; border-radius: 5px; background: var(--front-butter); color: var(--front-heading); font-size: 8px; font-weight: 800; letter-spacing: .06em; }

.hm-service-place { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 9px 0 0; color: var(--front-service-muted); font-size: 10px; line-height: 1.4; }
.hm-service-place svg { flex: none; color: var(--front-service-muted); }
.hm-service-place .hm-status { margin: 0 0 0 auto; font-size: 9px; }
.hm-service-place .hm-status--green { color: var(--front-service-status); }

.front .hm-service-phone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--front-service-divider);
    color: var(--front-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .01em;
    text-decoration: none;
}

/* рядок телефону — унизу картки (margin-top: auto), відступ над ним — у попереднього елемента: ряд рівний */
.hm-service:has(> .hm-service-phone) > :nth-last-child(2) { margin-bottom: 11px; }
.front .hm-service-phone:hover { color: var(--front-accent); }
.hm-phone-box { display: flex; flex: none; align-items: center; justify-content: center; width: 31px; height: 31px; border-radius: 8px; background: var(--front-phone-box); color: var(--front-accent); }

.front .hm-panel-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 22px;
    color: var(--front-accent);
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.front .hm-panel-all:hover { color: var(--front-accent-dark); }

/* ── 06 Відгуки: темна панель .trust-panel, переваги, картки .review-card ── */
.hm-trust { padding: 38px; border-radius: 24px; background: var(--front-accent-dark); color: var(--front-on-deep); }
.hm-trust-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.hm-trust .front-eyebrow { color: var(--front-trust-label); }
.front .hm-trust-title { margin: 0; color: var(--front-on-deep); font-size: 36px; font-weight: 800; line-height: 1.15; letter-spacing: -.045em; overflow-wrap: anywhere; }
.hm-trust-aside { flex: none; max-width: 340px; padding-bottom: 3px; }
.hm-trust-aside p { margin: 0 0 19px; color: var(--front-trust-text); font-size: 13px; line-height: 1.7; }
.hm-trust-aside p:last-child { margin-bottom: 0; }
.hm-trust-btn { font-size: 12px; }

.hm-trust-perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 31px 0 0; padding: 24px 0; border-top: 1px solid var(--front-trust-line); border-bottom: 1px solid var(--front-trust-line); list-style: none; }
.hm-trust-perks li { display: flex; align-items: center; gap: 15px; color: var(--front-trust-perk); font-size: 12px; line-height: 1.6; }
.hm-trust-perks svg { flex: none; width: 30px; height: 30px; opacity: .85; }

.hm-reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 31px; }
.hm-trust-perks + .hm-reviews { margin-top: 31px; }

.hm-review { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 20px; border-radius: 15px; background: var(--front-card); color: var(--front-text); }
/* шапка відгуку: кружок, автор і дата, праворуч — зірки (087f). Під автора менше 110 px (вузька картка, телефон 320–360) — зірки цілим
   блоком переносяться на наступний рядок під автора; не стискаються */
.hm-review-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 9px; }
.hm-review-who { display: flex; flex: 1 1 110px; flex-direction: column; gap: 4px; min-width: 0; }
.hm-review-who strong { font-size: 12px; overflow-wrap: anywhere; }
.hm-review-who span { color: var(--front-muted); font-size: 9px; }
.hm-review-text { margin: 17px 0; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.hm-review-text::before { content: "«"; }
.hm-review-text::after { content: "»"; }
.hm-review-about { margin-top: auto; color: var(--front-muted); font-size: 9px; line-height: 1.6; }
.hm-review-top + .hm-review-about { padding-top: 17px; }
.front .hm-review-about a,
.hm-review-about strong { color: var(--front-accent); font-weight: 650; text-decoration: none; }
.front .hm-review-about a:hover { color: var(--front-accent-dark); text-decoration: underline; }

/* ── 07 Найвищі оцінки (.leader) й автори (.contributors). Картка (доробка 077g, рішення власника 24.10.2026): лише логотип —
   квадрат 56 з відступом угорі біля лівого краю, над оцінкою, праворуч від нього нічого (фото не показується — у вузькій
   картці йому немає місця); далі на всю ширину — оцінка, назва, «категорія · місто»; кількість відгуків — унизу (margin-top:
   auto — ряд рівний, підпис на одній лінії). Без логотипа — та сама колонка без нього ── */
.hm-leaders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }

.hm-leader { display: flex; flex-direction: column; min-width: 0; padding: 13px; border: 1px solid var(--front-line); border-radius: 16px; background: var(--front-card); }
.hm-leader-media { flex: none; align-self: flex-start; width: 56px; height: 56px; margin-bottom: 12px; padding: 6px; border: 1px solid var(--front-line); border-radius: 10px; background: var(--front-surface); }
.hm-leader-img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* оцінка: квадратики й число поруч, без плашки (087f, рішення власника 17.11.2026 — як рейтинг картки списків) */
.hm-leader-score { display: inline-flex; align-self: flex-start; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; }
.front .hm-leader-title { margin: 10px 0 0; font-size: 16px; font-weight: 800; line-height: 1.25; letter-spacing: -.035em; overflow-wrap: anywhere; }
.hm-leader-meta { margin: 6px 0 0; color: var(--front-muted); font-size: 10px; line-height: 1.5; }
.hm-leader-caption { display: block; margin-top: auto; padding-top: 11px; border-top: 1px solid var(--front-line); color: var(--front-muted); font-size: 9px; }
/* підпис — унизу картки (ряд рівний), відступ над ним — у попереднього елемента */
.hm-leader > :nth-last-child(2) { margin-bottom: 12px; }

.hm-contrib { padding: 26px; border-radius: 20px; background: var(--front-panel); }
.hm-contrib .front-eyebrow { margin-bottom: 10px; font-size: 8px; }
.front .hm-contrib-title { max-width: 330px; margin: 0; font-size: 26px; font-weight: 800; line-height: 1.17; letter-spacing: -.045em; }
.hm-contrib-intro { margin: 11px 0 0; color: var(--front-muted); font-size: 11px; line-height: 1.6; }
.hm-authors { margin: 4px 0 0; padding: 0; list-style: none; }
.hm-author { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--front-author-line); }
.hm-author:last-child { border-bottom: 0; }
/* кружок автора (077g; «Останні відгуки» — 40, «Активні дописувачі» — 43): аватар поверх першої літери імені; аватара немає чи
   зламаний (js/front.js прибирає img) — літера; один колір для всіх (токени) */
.hm-avatar { position: relative; display: flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; overflow: hidden; border-radius: 50%; background: var(--front-soft); color: var(--front-accent); font-size: 16px; font-weight: 800; line-height: 1; }
.hm-avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-avatar:has(> .hm-avatar-img) { background: var(--front-surface); }
.hm-avatar:has(> .hm-avatar-img) .hm-avatar-letter { visibility: hidden; }
.hm-author .hm-avatar { width: 43px; height: 43px; font-size: 17px; }
.hm-author-name { min-width: 0; font-size: 13px; font-weight: 800; overflow-wrap: anywhere; }
.hm-author-count { flex: none; margin-left: auto; color: var(--front-muted); font-size: 9px; text-align: right; }
.hm-author-count strong { display: block; color: var(--front-heading); font-size: 19px; line-height: 1.1; letter-spacing: -.03em; }

/* ── 08 Категорії: картки .category-card, тони tint-* ───────────────────── */
.hm-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.hm-cats > li { display: flex; min-width: 0; }

.hm-cat {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 13px;
    min-width: 0;
    min-height: 85px;
    padding: 20px 16px;
    border: 1px solid var(--front-line);
    border-radius: 13px;
    background: var(--front-cat);
    color: var(--front-heading);
    text-decoration: none;
}

.front a.hm-cat { color: var(--front-heading); }
.front a.hm-cat:hover { border-color: var(--front-accent); color: var(--front-accent); }
.hm-cat--mint { border-color: var(--front-cat-mint-line); background: var(--front-cat-mint); }
.hm-cat--butter { border-color: var(--front-cat-butter-line); background: var(--front-cat-butter); }
.hm-cat-icon { flex: none; width: 24px; height: 24px; fill: var(--front-accent); }
.hm-cat-name { min-width: 0; font-size: 13px; font-weight: 750; line-height: 1.3; letter-spacing: -.02em; overflow-wrap: anywhere; }
.hm-cat-name small { display: block; margin-top: 7px; color: var(--front-muted); font-size: 10px; font-weight: 500; letter-spacing: 0; }
.hm-cat-arrow { flex: none; margin-left: auto; color: var(--front-muted); }

/* ── 10 Низ сторінки — блок about (доробка 2; макет .about / .editorial-grid): лінія зверху, надпис на всю ширину,
   H2 ліворуч і вступ праворуч; картки 01–04 у 2 колонки (≤ 800 — 03 і 04 на всю ширину, ≤ 540 — одна колонка), ряд рівний ── */
.hm > .hm-about { margin-top: 72px; }
.hm-about > .front-container { padding-top: 50px; border-top: 1px solid var(--front-line); }
.hm-about-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px 45px; align-items: start; }
.hm-about-head .front-eyebrow { grid-column: 1 / -1; margin: 0; }
.front .hm-about-title { margin: 0; font-size: 35px; font-weight: 800; line-height: 1.25; letter-spacing: -.045em; }
.hm-about-text { margin: 0; padding-top: 5px; color: var(--front-muted); font-size: 13px; line-height: 1.9; }
.hm-editorial { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 30px; }
.hm-ed { min-width: 0; padding: 28px; border: 1px solid var(--front-ed-line); border-radius: 18px; background: var(--front-ed); }
.hm-ed--intro { border-color: var(--front-ed-intro-line); background: var(--front-ed-intro); }
.hm-ed--benefits { background: var(--front-ed-benefits); }
.hm-ed--moderation { background: var(--front-ed-moderation); }
.hm-ed-num { display: block; margin-bottom: 20px; color: var(--front-ed-num); font-size: 9px; font-weight: 750; letter-spacing: .12em; }
.front .hm-ed-title { max-width: 440px; margin: 0; font-size: 22px; font-weight: 800; line-height: 1.3; letter-spacing: -.045em; }
.hm-ed-text { margin: 16px 0 0; color: var(--front-ed-text); font-size: 12px; line-height: 1.9; }
.hm-ed-stat { display: flex; align-items: baseline; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--front-ed-stat-line); }
.hm-ed-stat strong { color: var(--front-heading); font-size: 20px; letter-spacing: -.04em; }
.hm-ed-stat span { color: var(--front-ed-stat-text); font-size: 11px; }
.hm-ed-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 23px; }
.hm-ed-cols > div + div { padding-left: 23px; border-left: 1px solid var(--front-ed-cols-line); }
.hm-ed-label { display: block; margin-bottom: 13px; color: var(--front-accent); font-size: 12px; font-weight: 800; }
.hm-ed-list { margin: 0; padding: 0; list-style: none; }
.hm-ed-list li { position: relative; margin-bottom: 10px; padding-left: 12px; color: var(--front-ed-li); font-size: 11px; line-height: 1.55; }
.hm-ed-list li::before { content: ""; position: absolute; top: 7px; left: 0; width: 3px; height: 3px; border-radius: 50%; background: var(--front-ed-dot); }
.hm-ed-trust { display: flex; align-items: center; gap: 10px; margin-top: 23px; color: var(--front-accent); font-size: 12px; font-weight: 750; }
.hm-ed-trust svg { flex: none; }

/* ── SEO-текст WP (rich_text; після доробки 2 схований, адмін може повернути) у типографіці макета .about ── */
.hm > .fb-section:has(.fb-prose) { margin-top: 72px; }
.hm > .fb-section:has(.fb-prose) > .front-container { padding-top: 50px; border-top: 1px solid var(--front-line); }
.hm .fb-prose { max-width: none; color: var(--front-muted); font-size: 13px; line-height: 1.9; }
.front .hm .fb-prose h2 { margin: 40px 0 16px; color: var(--front-heading); font-size: 35px; font-weight: 800; line-height: 1.25; letter-spacing: -.045em; }
.front .hm .fb-prose h3 { margin: 30px 0 12px; color: var(--front-heading); font-size: 22px; font-weight: 800; line-height: 1.3; letter-spacing: -.045em; }
.front .hm .fb-prose h4 { margin: 24px 0 10px; color: var(--front-heading); font-size: 17px; font-weight: 800; line-height: 1.35; }
.hm .fb-prose > :first-child { margin-top: 0; }
.hm .fb-prose p,
.hm .fb-prose ul,
.hm .fb-prose ol { max-width: 860px; }
.hm .fb-prose img { margin: 16px 0; border-radius: 18px; }

/* ── За ширинами (макет @media) ────────────────────────────────────────── */
@media (min-width: 1450px) {
    .front .hm .fb-hero-title { font-size: 63px; }
    .hm-bento:has(> .hm-photo) { grid-template-rows: minmax(230px, auto) minmax(163px, auto); }
}

/* ── Перший екран у висоту вікна (077e, рішення власника 24.10.2026; уточнення архітектора 1 і 2): лише ширини від 1101 px
   (801–1100 і телефон — як були). --hm-t — 0…100px: 0 на висоті вікна 650 і нижче, 100 — з висоти, на якій розміри макета
   вміщаються з відступом ~24 px під кнопками (1101–1449: 864, 1450+: 900); між ними — лінійно. Кожен розмір = мінімум +
   --hm-t × (макет − мінімум) / 100, тож на 100 — рівно макет. Зменшуються лише: відступи над / під заголовком, між пошуком і
   плитками й між плитками й кнопками, H1 (до 40), ряди фото (разом до 260, ряд 1 : ряд 2 — як у макеті), цифри лічильників
   (пропорційно ряду 2), внутрішні відступи плиток-лічильників (до 14), іконка категорій (до 26), відступ над числом
   категорій (до 4). Нижче 650 — мінімуми й звичайна прокрутка. Одиниці — vh: на ширинах від 1101 px панелі адреси, що
   змінює висоту під час прокрутки, немає, тож svh = vh ── */
@media (min-width: 1101px) {
    .hm { --hm-t: calc(clamp(0px, 100vh - 650px, 214px) * 100 / 214); }
    .hm .fb-hero { padding-top: calc(12px + var(--hm-t) * .26); }
    .hm .fb-hero-eyebrow { margin-bottom: calc(8px + var(--hm-t) * .06); }
    .front .hm .fb-hero-title { font-size: calc(40px + var(--hm-t) * .17); }
    .hm .fb-hero-inner { margin-bottom: calc(12px + var(--hm-t) * .15); }
    .hm .sf-section .sf { margin-bottom: calc(10px + var(--hm-t) * .08); }
    .hm-tiles .front-container { gap: calc(8px + var(--hm-t) * .07); }
    .hm-bento:has(> .hm-photo) { grid-template-rows: minmax(calc(152px + var(--hm-t) * .64), auto) minmax(calc(108px + var(--hm-t) * .46), auto); }
    .hm-stat { padding: calc(14px + var(--hm-t) * .08); }
    .hm-stat-number { font-size: calc(34px + var(--hm-t) * .14); }
    .hm-stat--categories .hm-stat-number { padding-top: calc(4px + var(--hm-t) * .08); font-size: calc(21.75px + var(--hm-t) * .0925); }
    .hm-stat-icon { width: calc(26px + var(--hm-t) * .07); height: calc(26px + var(--hm-t) * .07); }
}

@media (min-width: 1450px) {
    .hm { --hm-t: calc(clamp(0px, 100vh - 650px, 250px) * .4); }
    .front .hm .fb-hero-title { font-size: calc(40px + var(--hm-t) * .23); }
    .hm-bento:has(> .hm-photo) { grid-template-rows: minmax(calc(152px + var(--hm-t) * .78), auto) minmax(calc(108px + var(--hm-t) * .55), auto); }
    .hm-stat-number { font-size: calc(32px + var(--hm-t) * .16); }
    .hm-stat--categories .hm-stat-number { font-size: calc(20.5px + var(--hm-t) * .105); }
}

@media (max-width: 1100px) {
    .front .hm .fb-hero-title { font-size: 46px; }
    .hm .fb-hero-text { font-size: 12px; }
    .hm-bento:has(> .hm-photo ~ .hm-photo) { grid-template-columns: 1.15fr .62fr .4fr; }
    .hm-bento:has(> .hm-photo) { grid-template-rows: minmax(205px, auto) minmax(150px, auto); }
    .hm-stat { padding: 20px; }
    .hm-stat-number { font-size: 40px; }
    .hm-photo-title { font-size: 22px; }
    .hm-cards { gap: 12px; }
    .hm-card-body { padding: 14px 11px; }
    .front .hm-card-title { font-size: 18px; }
    .hm-meta { font-size: 9px; }
    .hm-call { font-size: 11px; }
    .hm-dest-more { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hm-panel { padding: 23px; }
    .hm-panel-head { gap: 11px; }
    .front .hm-panel-title { font-size: 25px; }
    .hm-panel-symbol { width: 50px; height: 57px; }
    .hm-panel-head > .hm-round { width: 30px; height: 30px; }
    .hm-panel-intro { font-size: 11px; }
    .front .hm-service h3 { font-size: 14px; }
    .hm-service { padding: 16px; }
    .hm-trust { padding: 29px; }
    .front .hm-trust-title { font-size: 32px; }
    .hm-review { padding: 15px; }
    .hm-pair { gap: 22px; }
    .hm-leaders { gap: 10px; }
    .hm-leader { padding: 10px; }
    .front .hm-leader-title { font-size: 14px; }
    .hm-leader-meta { font-size: 9px; }
    .hm-contrib { padding: 22px; }
    .hm-cat { gap: 10px; padding: 17px 12px; }
    .hm-cat-name { font-size: 11px; }
    .hm-cat-name small { font-size: 9px; }
}

@media (min-width: 801px) and (max-width: 1100px) {
    .hm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-card-body { padding: 18px; }
    .front .hm-card-title { font-size: 21px; }
    .hm-meta { font-size: 12px; }
    .hm-status { font-size: 11px; }
}

@media (max-width: 800px) {
    .hm .fb-hero { padding-top: 30px; }
    .hm .fb-hero-inner { display: block; }
    .front .hm .fb-hero-title { font-size: 49px; }
    .hm .fb-hero-text { max-width: none; margin-top: 17px; padding: 0; font-size: 14px; }
    .hm .sf-section .sf-field + .sf-field { flex-basis: 170px; padding: 0 15px; }
    .hm .sf-section .sf-btn { min-width: 130px; }
    .hm .sf-section .sf-field { gap: 10px; padding-left: 10px; }
    .hm .sf-section .sf-input { font-size: 15px; }

    .hm-bento:has(> .hm-photo),
    .hm-bento:has(> .hm-photo ~ .hm-photo) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-bento:has(> .hm-photo) { grid-template-rows: minmax(300px, auto) minmax(145px, auto); grid-template-areas: "a a" "s c"; }
    .hm-bento:has(> .hm-photo ~ .hm-photo) { grid-template-rows: minmax(300px, auto) minmax(200px, auto) minmax(145px, auto); grid-template-areas: "a a" "b b" "s c"; }
    .hm-bento:has(> .hm-photo):not(:has(> .hm-stat)) { grid-template-rows: minmax(300px, auto); grid-template-areas: "a a"; }
    .hm-bento:has(> .hm-photo ~ .hm-photo):not(:has(> .hm-stat)) { grid-template-rows: minmax(300px, auto) minmax(200px, auto); grid-template-areas: "a a" "b b"; }
    .hm-stat { padding: 22px; }
    .hm-stat-number { font-size: 43px; }
    .hm-stat-word { font-size: 17px; }
    .hm-stat--categories .hm-stat-number { font-size: 40px; }
    .hm-stat--categories .hm-stat-word { font-size: 16px; line-height: 1.2; }
    .hm-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
    .hm-chips > li:last-child { grid-column: span 2; }
    .hm-chip { gap: 9px; min-height: 44px; font-size: 12px; }
    .hm-about-head { display: block; }
    .hm-about-head .front-eyebrow { margin-bottom: 16px; }
    .front .hm-about-title { max-width: 600px; font-size: 32px; }
    .hm-about-text { margin-top: 18px; padding-top: 0; }
    .hm-editorial { gap: 15px; }
    .hm-ed { padding: 23px; }
    .front .hm-ed-title { font-size: 21px; }
    .hm-ed-stat { display: block; }
    .hm-ed-stat > span { display: block; margin-top: 7px; }
    .hm-ed--benefits,
    .hm-ed--moderation { grid-column: span 2; }
    .hm-ed-list li { font-size: 12px; }
    .hm > .hm-about { margin-top: 54px; }

    .hm-catalog > .front-section:first-child { margin-top: 32px; }
    .hm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
    .hm-card-body { padding: 17px; }
    .front .hm-card-title { font-size: 21px; }
    .hm-meta { font-size: 11px; }
    .hm-status { font-size: 11px; }
    .hm-call { min-height: 44px; font-size: 12px; }
    .hm-round--soft { width: 44px; height: 44px; }
    .hm-dest-more { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
    .front .hm-dest-more a { min-height: 44px; align-items: center; padding: 0; }

    .hm-pair { flex-direction: column; align-items: stretch; gap: 18px; }
    .hm-pair > .hm-block { flex: none; }
    .hm-panel { padding: 27px; }
    .front .hm-panel-title { font-size: 29px; }
    .hm-panel-head > .hm-round { width: 44px; height: 44px; }
    .hm-panel-intro { font-size: 12px; }
    .front .hm-service h3 { font-size: 16px; }
    .front .hm-service-phone { min-height: 44px; font-size: 13px; }
    .front .hm-panel-all { min-height: 44px; }

    .hm-trust-head { display: block; }
    .hm-trust-aside { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: none; margin-top: 23px; }
    .hm-trust-aside p { margin: 0; font-size: 12px; }
    .hm-trust-btn { flex: none; gap: 8px; font-size: 11px; }
    .hm-trust-perks { gap: 18px; margin: 25px 0 0; padding: 20px 0; }
    .hm-trust-perks li { gap: 10px; font-size: 10px; }
    .hm-trust-perks svg { width: 25px; height: 25px; }
    .hm-reviews { grid-template-columns: 1fr; gap: 15px; margin-top: 25px; }
    .hm-review { padding: 22px; }
    .hm-review-who strong { font-size: 14px; }
    .hm-review-who span { font-size: 10px; }
    .hm-review-text { margin-top: 18px; font-size: 14px; }
    .hm-review-about { font-size: 10px; }
    .front .hm-review-about a { display: inline-flex; align-items: center; min-height: 44px; }

    .hm-leader { padding: 16px; }
    .front .hm-leader-title { font-size: 17px; }
    .hm-leader-meta { font-size: 11px; }
    .hm-leader-caption { font-size: 9px; }
    .hm-contrib { padding: 27px; }
    .front .hm-contrib-title { max-width: none; }
    .hm-author { padding: 15px 0; }

    .hm-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hm-cat { min-height: 89px; padding: 17px 12px; }
    .hm-cat-name { font-size: 12px; }
    .hm-cat-arrow { display: none; }


    .hm > .fb-section:has(.fb-prose) { margin-top: 54px; }
    .front .hm .fb-prose h2 { font-size: 32px; }
}

@media (min-width: 541px) and (max-width: 800px) {
    .hm-services { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
    .hm .fb-hero { padding-top: 25px; }
    .hm .fb-hero-inner { margin-bottom: 20px; }
    .hm .fb-hero-eyebrow { margin-bottom: 13px; font-size: 8px; letter-spacing: .12em; }
    .front .hm .fb-hero-title { font-size: 36px; line-height: 1.09; letter-spacing: -.055em; }
    .hm .fb-hero-text { margin-top: 14px; font-size: 13px; line-height: 1.55; }

    .hm .sf-section .sf { margin-bottom: 14px; }
    .hm .sf-section .sf-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 7px; border-radius: 13px; }
    .hm .sf-section .sf-field { grid-column: 1 / -1; gap: 11px; margin-bottom: 7px; padding: 0 8px; border-bottom: 1px solid var(--front-line); }
    .hm .sf-section .sf-field + .sf-field { grid-column: 1; height: 44px; margin: 0; padding: 0 9px; gap: 8px; border: 0; }
    .hm .sf-section .sf-field + .sf-field .sf-input { font-size: 14px; }
    .hm .sf-section .sf-btn { min-width: 0; min-height: 44px; padding: 10px; gap: 15px; font-size: 14px; }

    .hm-bento:has(> .hm-photo),
    .hm-bento:has(> .hm-photo ~ .hm-photo) { gap: 10px; }
    .hm-bento:has(> .hm-photo) { grid-template-rows: minmax(208px, auto) minmax(110px, auto); }
    .hm-bento:has(> .hm-photo ~ .hm-photo) { grid-template-rows: minmax(208px, auto) minmax(110px, auto) minmax(110px, auto); grid-template-areas: "a a" "b s" "b c"; }
    .hm-bento:has(> .hm-photo ~ .hm-photo):not(:has(> .hm-stat)) { grid-template-rows: minmax(208px, auto) minmax(208px, auto); grid-template-areas: "a a" "b b"; }
    .hm-bento:has(> .hm-photo ~ .hm-photo):not(:has(> .hm-stat--companies)) .hm-stat--categories,
    .hm-bento:has(> .hm-photo ~ .hm-photo):not(:has(> .hm-stat--categories)) .hm-stat--companies { grid-area: s / s / c / c; }
    .hm-photo,
    .hm-stat { border-radius: 13px; }
    .hm-photo-label { left: 11px; right: 11px; bottom: 11px; gap: 8px; }
    .hm-photo-text { padding: 8px; border-radius: 7px; }
    .hm-photo-eyebrow { margin-bottom: 5px; font-size: 6px; letter-spacing: .13em; }
    .hm-photo-title { font-size: 19px; line-height: 1.15; }
    .hm-photo .hm-round { width: 34px; height: 34px; }
    .hm-photo + .hm-photo .hm-photo-title { font-size: 17px; }
    .hm-stat { padding: 14px; }
    .hm-stat-number { font-size: 31px; letter-spacing: -.07em; }
    .hm-stat-word { margin-top: 6px; font-size: 12px; }
    .hm-stat--categories .hm-stat-number { padding-top: 6px; font-size: 30px; }
    .hm-stat--categories .hm-stat-word { font-size: 12px; }
    .hm-stat-icon { width: 22px; height: 22px; }
    .hm-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .hm-chip { gap: 10px; padding: 10px; font-size: 12px; }
    .hm-chip-icon { width: 21px; height: 21px; }
    .hm-stat-round { right: 10px; bottom: 11px; width: 25px; height: 25px; }
    .hm-stat-round svg { width: 14px; height: 14px; }
    .fmodal--cats .fmodal-panel { padding: 20px 16px 18px; border-radius: 18px; }
    .fmodal--cats .fmodal-title { font-size: 24px; }
    .fmodal--cats .fmodal-close { width: 44px; height: 44px; }
    .hm-cats-sub { margin-bottom: 16px; font-size: 14px; }
    .hm-cats-grid { grid-template-columns: 1fr; gap: 8px; }
    .front .hm-cats-item { gap: 14px; min-height: 56px; padding: 12px 16px; font-size: 15px; }
    .hm-cats-icon { width: 22px; height: 22px; }
    .hm > .hm-about { margin-top: 43px; }
    .hm-about > .front-container { padding-top: 30px; }
    .hm-about-head .front-eyebrow { margin-bottom: 15px; }
    .front .hm-about-title { font-size: 29px; }
    .hm-about-text { margin-top: 17px; }
    .hm-editorial { grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }
    .hm-ed,
    .hm-ed--benefits,
    .hm-ed--moderation { grid-column: auto; padding: 24px 20px; border-radius: 15px; }
    .hm-ed-num { margin-bottom: 17px; font-size: 8px; letter-spacing: .1em; }
    .front .hm-ed-title { font-size: 23px; }
    .hm-ed-text { margin-top: 15px; line-height: 1.95; }
    .hm-ed-stat { margin-top: 20px; padding-top: 18px; }
    .hm-ed-stat strong { font-size: 21px; }
    .hm-ed-cols { grid-template-columns: 1fr; gap: 18px; margin-top: 21px; }
    .hm-ed-cols > div + div { padding: 20px 0 0; border-top: 1px solid var(--front-ed-cols-line); border-left: 0; }
    .hm-ed-label { margin-bottom: 14px; font-size: 13px; }
    .hm-ed-list li { font-size: 12px; line-height: 1.65; margin-bottom: 11px; }
    .hm-ed-trust { margin-top: 20px; font-size: 11px; }
    .hm-chips > li:last-child { grid-column: span 2; }

    .hm-catalog > .front-section:first-child { margin-top: 29px; padding-top: 27px; }
    .hm-desc { margin-top: 9px; font-size: 12px; line-height: 1.65; }
    .hm-aside { margin-top: 14px; font-size: 12px; line-height: 1.6; }
    .hm-cards { grid-template-columns: 1fr; }
    .front .hm-card-title { font-size: 22px; }
    .hm-rating { gap: 6px; margin-top: 9px; font-size: 12px; }
    .hm-rating strong { font-size: 13px; }
    .hm-meta { margin-top: 10px; font-size: 12px; }
    .hm-call { min-height: 45px; font-size: 13px; }
    .hm-round--soft { width: 45px; height: 45px; }
    .hm-promo { font-size: 10px; }
    .hm-dest-more { grid-template-columns: 1fr; }

    .hm-panel { padding: 22px 18px; border-radius: 18px; }
    .hm-panel-head { gap: 12px; }
    .hm-panel-symbol { width: 45px; height: 55px; border-radius: 12px; }
    .hm-panel-icon { width: 26px; height: 26px; }
    .hm-panel-titles .front-eyebrow { font-size: 7px; letter-spacing: .1em; margin-bottom: 7px; }
    .front .hm-panel-title { font-size: 23px; line-height: 1.2; }
    .hm-panel-intro { margin-top: 16px; font-size: 11px; line-height: 1.65; }
    .hm-services { grid-template-columns: 1fr; gap: 10px; margin-top: 18px; }
    .hm-service { padding: 16px; border-radius: 12px; }
    .front .hm-service h3 { font-size: 15px; letter-spacing: -.03em; }
    .hm-service-place { margin-top: 10px; }
    .front .hm-service-phone { font-size: 12px; }
    .front .hm-panel-all { margin-top: 19px; font-size: 11px; }

    .hm-trust { padding: 25px 19px; border-radius: 18px; }
    .hm-trust .front-eyebrow { font-size: 7px; letter-spacing: .13em; }
    .front .hm-trust-title { font-size: 28px; line-height: 1.18; }
    .hm-trust-aside { display: block; margin-top: 17px; }
    .hm-trust-aside p { line-height: 1.7; }
    .hm-trust-btn { width: 100%; min-height: 45px; margin-top: 18px; padding: 12px 9px; }
    .hm-trust-perks { grid-template-columns: 1fr; gap: 17px; margin-top: 23px; padding: 22px 0; }
    .hm-trust-perks li { gap: 12px; font-size: 11px; }
    .hm-trust-perks svg { width: 24px; height: 24px; }
    .hm-reviews { gap: 12px; }
    .hm-review { padding: 17px 15px; border-radius: 12px; }
    .hm-review-who strong { font-size: 12px; }
    .hm-review-who span { font-size: 8px; }
    .hm-review-text { margin: 16px 0; font-size: 12px; }
    .hm-review-about { font-size: 9px; }

    .hm-head--compact { display: flex; margin-bottom: 20px; }
    .hm-head--compact .front-section-title { font-size: 27px; }
    .hm-leaders { grid-template-columns: 1fr; gap: 10px; }
    /* одна колонка (доробка 087d): оцінка з квадратиками (без плашки — 087f) — під назвою, у рядку перед «категорія · місто» (як рейтинг карток
       «ТОП компанії»); праворуч від назви вона забирала ≈ 130 px і назви переносились на 2–3 рядки. Порядок — order, розмітка та сама */
    .hm-leader { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 4px; padding: 13px; border-radius: 13px; }
    .hm-leader-media { margin-bottom: 6px; border-radius: 9px; }
    .front .hm-leader-title { order: 1; margin: 0; font-size: 16px; }
    .hm-leader-score { order: 2; justify-self: start; margin: 4px 0 2px; }
    .hm-leader-meta { order: 3; margin: 0; font-size: 10px; }
    .hm-leader > :nth-last-child(2) { margin-bottom: 0; }
    .hm-leader-caption { order: 4; margin: 0; padding: 0; border: 0; font-size: 8px; }
    .hm-contrib { padding: 24px 20px; border-radius: 18px; }
    .front .hm-contrib-title { font-size: 27px; }
    .hm-contrib-intro { line-height: 1.65; }
    .hm-author-count strong { font-size: 20px; }

    .hm-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .hm-cat { flex-direction: column; align-items: flex-start; gap: 12px; min-height: 119px; padding: 15px 12px; border-radius: 12px; }
    .hm-cat-icon { width: 25px; height: 25px; }
    .hm-cat-name { font-size: 12px; line-height: 1.4; }
    .hm-cat-name small { margin-top: 5px; font-size: 9px; line-height: 1.4; }

    .hm > .fb-section:has(.fb-prose) { margin-top: 43px; }
    .hm > .fb-section:has(.fb-prose) > .front-container { padding-top: 30px; }
    .front .hm .fb-prose h2 { font-size: 29px; }
    .front .hm .fb-prose h3 { font-size: 21px; }
}
