

/* Start:/bitrix/templates/franchise/css/home.css?179217972194288*/
/* ============================================================
   Главная — стили портала франшиз
   Путь: /local/templates/{ШАБЛОН}/css/home.css
   Шрифты: Onest (заголовки) + Golos Text (текст) — Cyrillic-native. Лежат в шаблоне: css/fonts.css и fonts/*.woff2,
   подключаются в header.php (раньше грузились с Google Fonts — и здесь, через @import, и в шапке).
   ============================================================ */

:root {
    --ink:        #1a2b4a;   /* основной тёмный */
    --ink-soft:   #4a5a78;
    --muted:      #7a8499;
    --line:       #e6e9f0;
    --bg:         #f3f3f4;   /* фон страниц и плашек: с версии 109 нейтральный светло-серый (был серо-голубой #f5f7fa) */
    --surface:    #ffffff;
    --green:      #1b6ae5;   /* акцент роста/денег */
    --green-deep: #0d4ba0;
    --amber:      #f59e0b;   /* «Проверено» */
    --radius:     16px;
    --shadow:     0 6px 24px rgba(26, 43, 74, .07);
    --shadow-h:   0 14px 38px rgba(26, 43, 74, .14);
    --font-d:     'Onest', system-ui, sans-serif;
    --font-b:     'Golos Text', system-ui, sans-serif;
}

/* базовый сброс для области главной */
.hm-hero, .hm-section { font-family: var(--font-b); color: var(--ink); }
.hm-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.hm-h2 {
    font-family: var(--font-d);
    font-weight: 800;
    font-size: clamp(22px, 2.6vw, 32px);
    letter-spacing: -.02em;
    margin: 0;
}
.hm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.hm-link { color: var(--green-deep); font-weight: 600; text-decoration: none; white-space: nowrap; }
.hm-link:hover { color: var(--green); }

.hm-section { padding: 56px 0; }
.hm-section--alt { background: var(--bg); }
/* (баннерного слота Premium между секциями больше нет: баннеры — в первом экране, блок «Франшизы месяца», .hm-month) */

/* ---------------------------- HERO ---------------------------- */
.hm-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(120% 120% at 100% 0, rgba(27,106,229,.10), transparent 55%),
        radial-gradient(90% 90% at 0 100%, rgba(26,43,74,.05), transparent 60%),
        var(--surface);
    border-bottom: 1px solid var(--line);
}
.hm-hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; padding: 64px 20px 60px; }
.hm-eyebrow { font-weight: 600; color: var(--green-deep); letter-spacing: .04em; text-transform: uppercase; font-size: 13px; margin: 0 0 14px; }
.hm-hero__title {
    font-family: var(--font-d);
    font-weight: 800;
    font-size: clamp(30px, 4.4vw, 54px);
    line-height: 1.05;
    letter-spacing: -.03em;
    margin: 0 0 18px;
}
.hm-hero__title em { font-style: normal; color: var(--green); }
.hm-hero__lead { font-size: clamp(15px, 1.4vw, 18px); color: var(--ink-soft); line-height: 1.55; max-width: 540px; margin: 0 0 28px; }

.hm-finder { display: flex; flex-wrap: wrap; gap: 10px; background: var(--surface); padding: 10px; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); max-width: 600px; }
.hm-finder__sel {
    flex: 1 1 160px;
    font-family: inherit; font-size: 15px; color: var(--ink);
    border: 1px solid var(--line); border-radius: 10px;
    padding: 12px 14px; background: #fbfcfe; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a8499' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
    cursor: pointer;
}
.hm-finder__sel:focus { outline: none; border-color: var(--green); }

.hm-btn {
    font-family: var(--font-d); font-weight: 700; font-size: 15px;
    border: 0; border-radius: 10px; padding: 13px 24px; cursor: pointer;
    text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.hm-btn--accent { background: var(--btn); color: #fff; flex: 0 0 auto; }
.hm-btn--accent:hover { background: var(--btn-deep); transform: translateY(-1px); box-shadow: 0 8px 20px var(--btn-shadow); }
.hm-btn--light { background: #fff; color: var(--ink); }
.hm-btn--light:hover { transform: translateY(-1px); box-shadow: var(--shadow-h); }

.hm-hero__stats { list-style: none; display: flex; gap: 36px; padding: 0; margin: 30px 0 0; }
.hm-hero__stats b { font-family: var(--font-d); font-size: 24px; display: block; letter-spacing: -.02em; }
.hm-hero__stats span { color: var(--muted); font-size: 14px; }
/* версия 164: «Портал в цифрах» под ссылками первого экрана — три цифры в ряд, под ними откуда они (App\Site\PortalStats) */
.hm-hero__live { margin: 30px 0 0; max-width: 600px; }
.hm-hero__stats--live { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; margin: 0; }
.hm-hero__stats--live li { min-width: 0; padding-left: 14px; border-left: 3px solid var(--green); }
.hm-hero__stats--live b { overflow-wrap: anywhere; color: var(--ink); }
.hm-hero__stats--live span { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.35; color: var(--ink-soft); }
.hm-hero__src { margin: 12px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }

.hm-hero__art {
    height: 320px; border-radius: 22px;
    background:
        radial-gradient(60% 60% at 70% 30%, rgba(27,106,229,.35), transparent 70%),
        radial-gradient(50% 50% at 20% 80%, rgba(240,164,49,.35), transparent 70%),
        linear-gradient(135deg, #16294a, #0f1d33);
    box-shadow: var(--shadow-h);
    position: relative;
}
.hm-hero__art::after {
    content: ""; position: absolute; inset: 0; border-radius: 22px;
    background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
    background-size: 16px 16px; mix-blend-mode: overlay;
}

/* -------------------------- КАТЕГОРИИ -------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.cat-tile {
    display: flex; align-items: center; gap: 10px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
    padding: 14px 12px 14px 14px; text-decoration: none; color: var(--ink);
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.cat-tile:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-tile__ic {
    width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px;
    display: grid; place-items: center; color: var(--green-deep);
    background: rgba(27,106,229,.10);
}
.cat-tile__ic img { width: 22px; height: 22px; object-fit: contain; }
.cat-tile__ic .ic { width: 26px; height: 26px; stroke-width: 1.6; }
.cat-tile__name { font-weight: 600; font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }

/* --------------------------- КАРТОЧКИ --------------------------- */
.fr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.fr-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px; text-decoration: none; color: var(--ink);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.fr-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); border-color: transparent; }
/* Метка стоит ПОД кнопками «в избранное / к сравнению» (.fr-card__acts, wishlist.css):
   раньше обе были в правом верхнем углу, и кнопки закрывали метку. */
.fr-card__badge {
    position: absolute; top: 52px; right: 10px;
    background: var(--amber); color: #3a2400; font-family: var(--font-d); font-weight: 700;
    font-size: 11px; letter-spacing: .02em; padding: 4px 9px; border-radius: 999px;
}
.fr-card__logo { height: 64px; display: flex; align-items: center; margin-bottom: 14px; }
.fr-card__logo img { max-height: 64px; max-width: 150px; object-fit: contain; }
.fr-card__logo-ph {
    width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(135deg, #16294a, #0f1d33); color: #fff;
    font-family: var(--font-d); font-weight: 800; font-size: 26px;
}
.fr-card__name { font-family: var(--font-d); font-weight: 700; font-size: 17px; line-height: 1.25; letter-spacing: -.01em; margin-bottom: 6px; }
.fr-card__rating { color: var(--amber); font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.fr-card__meta { display: grid; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); margin-top: auto; }
.fr-card__metarow { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.fr-card__metarow > span { color: var(--muted); font-size: 13px; }   /* > span: версия 179 — внутри <b> теперь тоже span (.fr-card__v) */
.fr-card__metarow b { font-family: var(--font-d); font-weight: 700; font-size: 15px; }
/* версия 96: в карточке четыре показателя (добавились «Прибыль в мес.» и «Точек в сети»). Значение не рвётся
   посередине («12 500 000» и «₽» на разных строках): если подпись и значение не помещаются в одну строку (узкий
   телефон, очень большое число), значение целиком уходит на следующую строку и остаётся у правого края. */
.fr-card__metarow { flex-wrap: wrap; }
.fr-card__metarow b { white-space: nowrap; margin-left: auto; }
.fr-card__cta {
    margin-top: 4px; text-align: center; font-weight: 600; font-size: 14px;
    color: var(--green-deep); border: 1px solid rgba(27,106,229,.35); border-radius: 10px; padding: 10px;
    transition: background .15s ease, color .15s ease;
}
.fr-card:hover .fr-card__cta { background: var(--btn); color: #fff; border-color: var(--btn); }

/* --------------------------- ПОДБОРКИ --------------------------- */
.hm-sel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.hm-sel {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--ink); color: #fff; font-family: var(--font-d); font-weight: 600;
    border-radius: 12px; padding: 18px 20px; text-decoration: none;
    transition: transform .15s ease, background .15s ease;
}
.hm-sel span { color: var(--green); transition: transform .15s ease; }
.hm-sel:hover { transform: translateY(-2px); background: #0f1d33; }
.hm-sel:hover span { transform: translateX(4px); }

/* ---------------------------- ОТЗЫВЫ ---------------------------- */
.rev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.rev-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 0; box-shadow: var(--shadow); }
.rev-card__stars { color: var(--amber); letter-spacing: 2px; margin-bottom: 12px; }
.rev-card__text { font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 16px; }
.rev-card__author { display: flex; gap: 8px; align-items: baseline; font-size: 14px; }
.rev-card__author b { font-family: var(--font-d); }
.rev-card__author span { color: var(--muted); }

/* ---------------- ПАНЕЛЬ ПОДБОРА И ГОРОДОВ (под шагами «Как выбрать франшизу») ---------------- */
/* Одна синяя панель в ширину страницы: слева приглашение в подбор, справа города (.hm-pick--cities). Раньше это были
   синяя полоса во всю ширину экрана (.hm-cta) и отдельный блок «Франшизы в вашем городе». Городов нет — в панели
   только подбор: текст слева, кнопка справа. */
.hm-pick { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr); border-radius: 22px; overflow: hidden; color: #fff; font-family: var(--font-b);
    background: radial-gradient(60% 130% at 0 0, rgba(27,106,229,.55), transparent 62%), linear-gradient(120deg, #16294a 0%, #1a4fae 62%, #1b6ae5 100%);
    box-shadow: var(--shadow-h); }
.hm-pick--cities { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.hm-pick__main { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 28px; padding: 34px 38px; }
.hm-pick--cities .hm-pick__main { flex-direction: column; align-items: flex-start; justify-content: center; flex-wrap: nowrap; }
.hm-pick__copy { min-width: 0; }
.hm-pick .hm-pick__title { font-family: var(--font-d); font-weight: 800; font-size: clamp(21px, 2.3vw, 27px); line-height: 1.2; letter-spacing: -.02em; color: #fff; margin: 0 0 8px; }
.hm-pick__lead { margin: 0; max-width: 460px; color: rgba(255,255,255,.86); line-height: 1.5; }
.hm-pick__cities { display: flex; flex-direction: column; justify-content: center; padding: 34px 38px; background: rgba(9, 22, 48, .22); border-left: 1px solid rgba(255,255,255,.14); }
.hm-pick__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.hm-pick .hm-pick__h { font-family: var(--font-d); font-weight: 700; font-size: 17px; line-height: 1.3; letter-spacing: -.01em; color: #fff; margin: 0; }
.hm-pick__all { font-weight: 600; font-size: 14px; color: #fff; text-decoration: none; white-space: nowrap; }
.hm-pick__all:hover { text-decoration: underline; }
.hm-pick__list { display: flex; flex-wrap: wrap; gap: 8px; }
.hm-pick__city { display: inline-flex; align-items: baseline; gap: 7px; padding: 8px 15px; border-radius: 999px; background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.24); color: #fff; font-weight: 600; font-size: 14px; line-height: 1.3; text-decoration: none; white-space: nowrap;
    transition: background .15s ease, color .15s ease, border-color .15s ease; }
.hm-pick__city:hover { background: #fff; border-color: #fff; color: var(--green-deep); }
.hm-pick__city i { font-style: normal; font-weight: 500; font-size: 12px; opacity: .75; }
.hm-pick__city:focus-visible, .hm-pick__all:focus-visible, .hm-pick .hm-btn:focus-visible { outline: 3px solid rgba(255,255,255,.7); outline-offset: 2px; }

/* ---------------------------- SEO-текст ---------------------------- */
.hm-seo { color: var(--ink-soft); line-height: 1.7; font-size: 15px; }
.hm-seo h2, .hm-seo h3 { font-family: var(--font-d); color: var(--ink); }

/* --------------------------- адаптив --------------------------- */
@media (max-width: 900px) {
    .hm-hero__inner { grid-template-columns: 1fr; }
    .hm-hero__art { display: none; }
}
@media (max-width: 560px) {
    .hm-section { padding: 40px 0; }
    .hm-hero__inner { padding: 40px 20px 48px; }
    .hm-hero__stats { gap: 22px; }
    .hm-hero__stats--live { grid-template-columns: 1fr; gap: 10px; }
    .hm-hero__stats--live li { display: flex; align-items: baseline; gap: 10px; }
    .hm-hero__stats--live b { flex: 0 0 auto; font-size: 22px; }
    .hm-hero__stats--live span { margin: 0; }
    .hm-finder__sel { flex-basis: 100%; }
    .hm-btn--accent { width: 100%; }
}

/* --------------------------- КАРТОЧКА С БАННЕРОМ --------------------------- */
/* Шаблон news.list `franchise_card`: сверху баннер («Картинка для анонса», у партнёрских карточек) или логотип, внизу кнопка
   с галочкой «в общую заявку» (js/cards.js). Карточки избранного (wishlist.js) остались прежними. */
.fr-card--m { padding: 12px 12px 14px; }
.fr-card__media { position: relative; aspect-ratio: 15 / 8; border-radius: 12px; overflow: hidden; background: #eef2f8;
    display: grid; place-items: center; margin-bottom: 12px; }
.fr-card__banner { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* версия 178: у логотипа в <img> теперь стоят width/height копии (п. 2.1 SEO-аудита) — width/height: auto, чтобы
   они только резервировали место, а размер на экране по-прежнему задавали max-width/max-height */
.fr-card__medialogo { width: auto; height: auto; max-width: 62%; max-height: 62%; object-fit: contain; }
.fr-cta__box:focus-visible, .fr-cta__btn:focus-visible { outline: 3px solid rgba(27, 106, 229, .45); outline-offset: 2px; }
.fr-card--m .fr-card__badge { position: static; white-space: nowrap; }
/* «Проверено» со щитом */
.fr-card__badge--vf { display: inline-flex; align-items: center; gap: 4px; }
/* Метка Premium (тариф, App\Franchise\Tariff). Дубль .tf-badge из tariffs.css: карточка выводится и на страницах,
   где tariffs.css не подключён (/franshiza/, города, рейтинг, подборки), а home.css есть везде, где есть .fr-card. */
.tf-badge { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-d); font-weight: 700; font-size: 11px;
    letter-spacing: .03em; text-transform: uppercase; color: #92400e; background: #fef3c7; border-radius: 6px; padding: 3px 7px; white-space: nowrap; }
/* две сетки карточек подряд (Premium-карточки отдельным списком перед остальными): отступ как между строками сетки */
.fr-grid + .fr-grid { margin-top: 18px; }
/* категория над названием */
.fr-card__cat { margin: 0 4px 3px; font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--green-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-card--archive .fr-card__cat { color: var(--muted); }
.fr-card--m .fr-card__name { margin: 0 4px 4px; }
.fr-card__tag { margin: 0 4px 10px; color: var(--ink-soft); font-size: 14px; line-height: 1.4;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.fr-card--m .fr-card__meta { margin: auto 4px 0; padding: 12px 0 10px; }
/* Версия 129: строка переносится. Оценка, Premium и «Проверено» вместе с двумя кнопками не помещаются в карточку
   уже 340 px — раньше кнопка сравнения выходила за карточку, а оценка «★ 4.8» ломалась на две строки. */
.fr-card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 4px 12px; min-height: 34px; }
.fr-card--m .fr-card__rating { margin: 0; white-space: nowrap; }
.fr-card--m .fr-card__acts { position: static; margin-left: auto; }
.fr-card--m .fr-card__cta { margin-top: 0; }

/* кнопка карточки из двух частей: слева текст — отметить франшизу и открыть форму заявки; справа «+» — добавить
   в общую заявку (у отмеченной — галочка, кнопка оранжевая). Раньше слева стоял пустой белый квадрат-галочка.
   С версии 107 кнопка тёмно-синяя, как остальные кнопки сайта (--btn), под курсором темнее (--btn-deep); раньше
   была ярко-синей и темнела до нынешнего цвета. */
.fr-cta { position: relative; display: flex; align-items: stretch; padding: 0; background: var(--btn); border-color: var(--btn); color: #fff;
    transition: background .15s ease, border-color .15s ease; }
.fr-card:hover .fr-cta { background: var(--btn-deep); border-color: var(--btn-deep); }
.fr-cta__box, .fr-cta__btn { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.fr-cta__btn { flex: 1 1 auto; min-width: 0; font-weight: 600; font-size: 14px; padding: 12px 10px 12px 14px; text-align: center; border-radius: 9px 0 0 9px; }
.fr-cta__box { position: relative; flex: 0 0 44px; display: grid; place-items: center; padding: 0; border-left: 1px solid rgba(255, 255, 255, .3);
    border-radius: 0 9px 9px 0; background: rgba(9, 40, 92, .22); transition: background .15s ease; }
.fr-cta__box:hover { background: rgba(9, 40, 92, .45); }
.fr-cta__box .fr-cta__plus { display: block; }
.fr-cta__box .fr-cta__check { display: none; }
/* отмечена для общей заявки */
.fr-card.is-picked { border-color: #d9480f; }
.fr-card.is-picked .fr-cta, .fr-card.is-picked:hover .fr-cta { background: #d9480f; border-color: #d9480f; }
.fr-card.is-picked .fr-cta__box .fr-cta__plus { display: none; }
.fr-card.is-picked .fr-cta__box .fr-cta__check { display: block; }
.fr-card.is-picked .fr-cta__box { background: rgba(110, 30, 0, .25); }
.fr-card.is-picked .fr-cta__box:hover { background: rgba(110, 30, 0, .45); }
/* подсказка над «+»: при наведении мышью и при переходе клавишей Tab. На экране без мыши (телефон) не показывается —
   там после нажатия внизу появляется панель «Выбрано франшиз: N». */
.fr-cta__box::after { content: attr(data-tip); position: absolute; right: 0; bottom: calc(100% + 9px); z-index: 4; width: max-content; max-width: 212px;
    padding: 8px 11px; border-radius: 10px; background: var(--ink); color: #fff; font-family: var(--font-b); font-weight: 500; font-size: 12.5px; line-height: 1.35;
    text-align: left; white-space: normal; box-shadow: 0 8px 24px rgba(26, 43, 74, .25); opacity: 0; visibility: hidden; transform: translateY(4px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s; pointer-events: none; }
.fr-cta__box::before { content: ''; position: absolute; right: 16px; bottom: calc(100% + 4px); z-index: 4; width: 10px; height: 10px; background: var(--ink);
    transform: rotate(45deg); opacity: 0; visibility: hidden; transition: opacity .15s ease, visibility .15s; pointer-events: none; }
.fr-card.is-picked .fr-cta__box::after { content: attr(data-tip-on); }
.fr-cta__box:focus-visible::after, .fr-cta__box:focus-visible::before { opacity: 1; visibility: visible; transform: translateY(0); }
.fr-cta__box:focus-visible::before { transform: rotate(45deg); }
@media (hover: hover) {
    .fr-cta__box:hover::after { opacity: 1; visibility: visible; transform: translateY(0); }
    .fr-cta__box:hover::before { opacity: 1; visibility: visible; }
}
@media (prefers-reduced-motion: reduce) { .fr-cta__box::after, .fr-cta__box::before { transition: none; } }
/* «+» включает js/cards.js (класс pk-on на <html>). Без него — на страницах со своей формой «заявка всем»,
   без панели или если скрипт не загрузился — «+» нет, кнопка ведёт на страницу франшизы. */
html:not(.pk-on) .fr-cta__box { display: none; }
html:not(.pk-on) .fr-cta__btn { padding-right: 14px; border-radius: 9px; }

/* --------------------------- КАРТОЧКА НА ТЕЛЕФОНЕ --------------------------- */
/* Версия 179 — «витрина». В списках (каталог, категория, город, подборка, «Похожие») карточка на телефоне: баннер во всю
   ширину 2:1 (у франшизы без баннера — плашка с логотипом 7:2), на нём метки (оценка, Premium, «Проверено»/«Архив») и
   кнопки «в избранное / к сравнению»; под ним категория заглавными, название крупно, показатели плитками в ряд
   (инвестиции — синей, окупаемость, прибыль), кнопка заявки во всю ширину. Короткое описание и «Точек в сети» не
   выводятся — они есть на странице франшизы. Суммы — короткой записью («от 19 млн ₽», .fr-card__v--short): полная
   в плитку 100 px не помещается. Высота ≈ 330 px, две карточки на экран.
   До 179 была компактная карточка (картинка 112 px слева, два показателя справа, ≈200 px).
   На главной карточки листаются вбок (.hm-popular) и остаются обычными. */
.fr-card__v--short { display: none; }
@media (max-width: 560px) {
    :not(.hm-popular) > .fr-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    :not(.hm-popular) > .fr-grid > .fr-card--m { display: flex; flex-direction: column; padding: 10px 10px 12px; }
    :not(.hm-popular) > .fr-grid > .fr-card--m > .fr-card__media { order: 1; aspect-ratio: 2 / 1; margin: 0 0 10px; border-radius: 12px; }
    :not(.hm-popular) > .fr-grid > .fr-card--m:not(.fr-card--banner) > .fr-card__media { aspect-ratio: 7 / 2; }
    :not(.hm-popular) > .fr-grid > .fr-card--m > .fr-card__media .fr-card__medialogo { max-width: 46%; max-height: 58%; }
    :not(.hm-popular) > .fr-grid > .fr-card--m > .fr-card__media .fr-card__logo-ph { width: 56px; height: 56px; border-radius: 14px; font-size: 26px; }
    :not(.hm-popular) > .fr-grid > .fr-card--m > .fr-card__cat { order: 2; margin: 0 4px 2px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; white-space: normal; }
    :not(.hm-popular) > .fr-grid > .fr-card--m > .fr-card__name { order: 3; margin: 0 4px 10px; font-weight: 800; font-size: 20px; line-height: 1.2; letter-spacing: -.01em; }
    :not(.hm-popular) > .fr-grid > .fr-card--m > .fr-card__tag { display: none; }
    /* показатели — плитками в ряд: 2 или 3 (с прибылью), поровну по ширине */
    :not(.hm-popular) > .fr-grid > .fr-card--m > .fr-card__meta { order: 4; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin: 0 0 10px; padding: 0; border-top: 0; }
    :not(.hm-popular) > .fr-grid > .fr-card--m > .fr-card__meta .fr-card__metarow { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; box-sizing: border-box; background: var(--bg); border-radius: 10px; padding: 9px 10px; }
    :not(.hm-popular) > .fr-grid > .fr-card--m > .fr-card__meta .fr-card__metarow:first-child { background: #eef4ff; }
    :not(.hm-popular) > .fr-grid > .fr-card--m > .fr-card__meta .fr-card__metarow:first-child b { color: var(--green-deep); }
    :not(.hm-popular) > .fr-grid > .fr-card--m > .fr-card__meta .fr-card__metarow--points { display: none; }   /* «Точек в сети» — по классу: без «Прибыли» она третья */
    :not(.hm-popular) > .fr-grid > .fr-card--m > .fr-card__meta .fr-card__metarow > span { font-size: 11.5px; line-height: 1.3; color: #5f6b82; }
    :not(.hm-popular) > .fr-grid > .fr-card--m > .fr-card__meta .fr-card__metarow b { margin: auto 0 0; font-weight: 800; font-size: 14px; line-height: 1.3; white-space: nowrap; }   /* auto: значения по нижнему краю, даже если подпись в две строки */
    :not(.hm-popular) > .fr-grid > .fr-card--m .fr-card__v--full { display: none; }
    :not(.hm-popular) > .fr-grid > .fr-card--m .fr-card__v--short { display: inline; }
    /* метки и кнопки — поверх картинки: слева метки, справа кнопки */
    :not(.hm-popular) > .fr-grid > .fr-card--m > .fr-card__foot { position: absolute; left: 20px; right: 20px; top: 20px; z-index: 3; margin: 0; min-height: 0; padding-right: 84px; flex-wrap: wrap; align-items: flex-start; gap: 6px; }   /* padding-right: место под кнопки; метки, если не помещаются, переносятся под них */
    :not(.hm-popular) > .fr-grid > .fr-card--m > .fr-card__foot .fr-card__rating { font-size: 12px; font-weight: 700; color: #fff; background: rgba(26,43,74,.72); border-radius: 999px; padding: 5px 9px; }
    :not(.hm-popular) > .fr-grid > .fr-card--m > .fr-card__foot .fr-card__badge,
    :not(.hm-popular) > .fr-grid > .fr-card--m > .fr-card__foot .tf-badge { font-size: 12px; padding: 5px 9px; }
    :not(.hm-popular) > .fr-grid > .fr-card--m > .fr-card__foot .fr-card__badge--archive { background: #e5e7eb; }
    :not(.hm-popular) > .fr-grid > .fr-card--m > .fr-card__foot .fr-card__acts { position: absolute; right: 0; top: 0; margin: 0; }
    :not(.hm-popular) > .fr-grid > .fr-card--m > .fr-card__foot .fr-act { width: 36px; height: 36px; border-color: transparent; background: rgba(255,255,255,.92); box-shadow: 0 1px 4px rgba(26,43,74,.18); }
    :not(.hm-popular) > .fr-grid > .fr-card--m:not(.fr-card--banner) > .fr-card__foot .fr-act { border-color: var(--line); background: #fff; box-shadow: none; }
    :not(.hm-popular) > .fr-grid > .fr-card--m > .fr-card__cta { order: 5; margin: 0; }
}
/* самый узкий экран: плитки уже — суммы чуть мельче */
@media (max-width: 360px) {
    :not(.hm-popular) > .fr-grid > .fr-card--m > .fr-card__meta { gap: 5px; }
    :not(.hm-popular) > .fr-grid > .fr-card--m > .fr-card__meta .fr-card__metarow { padding: 8px 8px; }
    :not(.hm-popular) > .fr-grid > .fr-card--m > .fr-card__meta .fr-card__metarow b { font-size: 13px; }
    :not(.hm-popular) > .fr-grid > .fr-card--m > .fr-card__meta .fr-card__metarow > span { font-size: 11px; }
}

/* --------------------------- ТИП КАРТОЧКИ --------------------------- */
/* Архивная франшиза (App\Franchise\CardType): серая пометка вместо «Проверено», приглушённый логотип. */
.fr-card__badge--archive { background: #e5e7eb; color: #4b5563; }
.fr-card--archive .fr-card__logo, .fr-card--archive .fr-card__medialogo, .fr-card--archive .fr-card__media .fr-card__logo-ph { filter: grayscale(1); opacity: .65; }
.fr-card--archive .fr-card__name { color: var(--ink-soft); }

/* ============================================================
   ГЛАВНАЯ: первый экран со ссылками и стеной логотипов, быстрый подбор, бюджет,
   подборки под ситуацию, шаги, истории, города, блок для франчайзеров (/index.php).
   Только новые классы — существующие блоки и другие страницы не затронуты.
   ============================================================ */
.hm-quick { font-family: var(--font-b); color: var(--ink); }
/* фон секций на главной чередуется: серый (фон страницы) и белый */
.hm-section--w { background: var(--surface); }
.hm-note { color: var(--muted); font-size: 13px; }
.hm-more { display: flex; justify-content: center; margin-top: 26px; }
.hm-btn--ghost { background: var(--surface); color: var(--btn); border: 1.5px solid rgba(13,75,160,.45); }
.hm-btn--ghost:hover { background: var(--btn); color: #fff; border-color: var(--btn); }

/* ---- первый экран ---- */
/* заголовок длиннее прежнего — кегль чуть меньше, чтобы на большом экране он занимал три строки, а не четыре */
.hm-hero .hm-hero__title { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.08; }
.hm-hero .hm-finder { max-width: 700px; }
/* три списка делят строку поровну, кнопка — по своей ширине; не помещаются — переносятся */
.hm-hero .hm-finder__sel { flex: 1 1 0; min-width: 140px; padding-right: 34px; text-overflow: ellipsis; }
.hm-hero__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; }
.hm-hero__link { font-family: var(--font-d); font-weight: 700; font-size: 15px; color: var(--green-deep); text-decoration: none; }
.hm-hero__link:hover { color: var(--green); }
.hm-hero__link--muted { color: var(--ink-soft); font-weight: 600; }
/* преимущества портала — полоса под первым экраном во всю ширину. Пункт (.hm-point): иконка набора сайта на белой
   плитке, заголовок и пояснение. Колонки равные, между ними тонкая черта; на планшете — 2×2, на телефоне — списком. */
.hm-hero__band { border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(27,106,229,.07), rgba(27,106,229,.03)); }
.hm-hero__points { list-style: none; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 28px; }
.hm-hero__points--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* версия 169: число пунктов задаёт site.config.php → usp.home — одна или две ячейки тоже на всю ширину полосы */
.hm-hero__points--1 { grid-template-columns: minmax(0, 1fr); }
.hm-hero__points--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hm-point { position: relative; display: flex; align-items: center; gap: 14px; min-width: 0; padding: 22px 0; }
.hm-point + .hm-point::before { content: ''; position: absolute; left: -14px; top: 22px; bottom: 22px; width: 1px; background: rgba(26,43,74,.10); }
.hm-point__ico { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--green-deep);
    background: var(--surface); border: 1px solid rgba(27,106,229,.16); box-shadow: 0 4px 14px rgba(27,106,229,.10); }
.hm-point__ico .ic { width: 26px; height: 26px; stroke-width: 1.6; }
.hm-point__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hm-point__h { font-family: var(--font-d); font-weight: 700; font-size: 15px; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); }
.hm-point__d { font-size: 13.5px; line-height: 1.35; color: var(--ink-soft); }
/* стена логотипов франшиз (вместо декоративной панели, когда логотипов не меньше шести) */
.hm-wall { border-radius: 22px; padding: 22px; box-shadow: var(--shadow-h);
    background:
        radial-gradient(60% 60% at 70% 30%, rgba(27,106,229,.35), transparent 70%),
        radial-gradient(50% 50% at 20% 80%, rgba(240,164,49,.30), transparent 70%),
        linear-gradient(135deg, #16294a, #0f1d33); }
.hm-wall__h { font-family: var(--font-d); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #c9d6ec; margin-bottom: 14px; }
.hm-wall__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
/* логотип вписывается в ячейку целиком: размеры заданы от самой ячейки, а не в процентах от высоты строки */
.hm-wall__cell { position: relative; display: block; aspect-ratio: 3 / 2; background: #fff; border-radius: 12px; transition: transform .15s ease, box-shadow .15s ease; }
.hm-wall__cell:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.hm-wall__cell img { position: absolute; left: 12%; top: 14%; width: 76%; height: 72%; object-fit: contain; }
.hm-wall__all { display: inline-block; margin-top: 16px; font-family: var(--font-d); font-weight: 700; font-size: 14px; color: #fff; text-decoration: none; }
.hm-wall__all:hover { text-decoration: underline; }

/* ---- «Франшизы месяца»: баннеры Premium-франшиз в первом экране (вместо стены логотипов, когда баннеры есть) ---- */
/* С этим блоком первый экран делится пополам: баннеру нужна ширина, иначе текст на нём не прочитать. */
.hm-hero__inner--month { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.hm-hero__inner--month .hm-hero__title { font-size: clamp(28px, 3.3vw, 42px); }
/* в половине экрана три списка и кнопка в одну строку не помещаются: кнопка — отдельной строкой во всю ширину */
.hm-hero__inner--month .hm-finder .hm-btn { flex: 1 1 100%; }
.hm-month { min-width: 0; border-radius: 22px; padding: 20px 20px 18px; box-shadow: var(--shadow-h);
    background:
        radial-gradient(60% 60% at 70% 30%, rgba(27,106,229,.35), transparent 70%),
        radial-gradient(50% 50% at 20% 80%, rgba(240,164,49,.30), transparent 70%),
        linear-gradient(135deg, #16294a, #0f1d33); }
.hm-month__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; margin-bottom: 12px; }
.hm-month__h { margin: 0; }
.hm-month__nav { display: flex; gap: 6px; }
.hm-month__nav[hidden], .hm-month__dots[hidden] { display: none; }
/* версия 169: пауза автосмены — значок «пауза», после остановки — «воспроизвести» */
.hm-month__pause[hidden] { display: none; }
.hm-month__pause { display: inline-grid; place-items: center; }
.hm-month__pause .hm-month__play-i, .hm-month__pause.is-paused .hm-month__pause-i { display: none; }
.hm-month__pause.is-paused .hm-month__play-i { display: block; }
.hm-month__arrow { width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 18px; line-height: 1; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; padding: 0 0 2px; transition: background .15s ease; }
.hm-month__arrow:hover, .hm-month__arrow:focus-visible { background: rgba(255,255,255,.28); outline: none; }
/* лента: по одному баннеру на экран, листается прокруткой с «прилипанием»; полоса прокрутки скрыта */
.hm-month__track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; border-radius: 14px; }
.hm-month__track::-webkit-scrollbar { display: none; }
.hm-month__track:focus-visible { outline: 3px solid rgba(255,255,255,.55); outline-offset: 3px; }
.hm-month__slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: #fff; }
/* рамка 2:1; картинка другой пропорции показывается целиком, поля заполняет её размытая копия (--cover ставит страница) */
.hm-month__pic { position: relative; display: block; aspect-ratio: 2 / 1; border-radius: 14px; overflow: hidden; background: #0f1d33; }
.hm-month__pic::before { content: ''; position: absolute; inset: -24px; background: var(--cover, none) center / cover no-repeat; filter: blur(20px) brightness(.8); }
.hm-month__pic img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
.hm-month__mark { position: absolute; top: 8px; right: 10px; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: rgba(15,29,51,.6); padding: 3px 7px; border-radius: 6px; }
/* у франшизы нет ни баннера, ни «Картинки для анонса»: логотип на светлом поле (как в стене логотипов)… */
.hm-month__pic--logo { display: grid; place-items: center; background: linear-gradient(160deg, #fff 55%, #eaf1fc); }
.hm-month__pic--logo::before, .hm-month__pic--ph::before { content: none; }
.hm-month__pic--logo img { width: auto; height: auto; max-width: 58%; max-height: 54%; }
/* …а нет и логотипа — первая буква названия */
.hm-month__pic--ph { display: grid; place-items: center;
    background: radial-gradient(70% 90% at 85% 10%, rgba(255,255,255,.22), transparent 60%), linear-gradient(135deg, #1b6ae5, #0d4ba0); }
.hm-month__letter { font-family: var(--font-d); font-weight: 800; font-size: clamp(64px, 9vw, 120px); line-height: 1; color: #fff; }
.hm-month__cap { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.hm-month__text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hm-month__name { font-family: var(--font-d); font-weight: 700; font-size: 18px; line-height: 1.25; letter-spacing: -.01em; overflow-wrap: anywhere; }
.hm-month__meta { color: #c9d6ec; font-size: 14px; line-height: 1.4; }
.hm-month__go { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--green-deep); font-size: 18px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; transition: transform .15s ease; }
.hm-month__slide:hover .hm-month__go { transform: translateX(3px); }
.hm-month__slide:focus-visible { outline: 3px solid rgba(255,255,255,.55); outline-offset: 3px; border-radius: 14px; }
.hm-month__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); }
.hm-month__all { margin-top: 0; margin-left: auto; }
.hm-month__dots { display: flex; align-items: center; gap: 2px; }
/* точка — маленькая, а область нажатия 24×24 */
.hm-month__dot { width: 24px; height: 24px; border: 0; padding: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.hm-month__dot::before { content: ''; width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.35); transition: width .2s ease, background .2s ease; }
.hm-month__dot.is-active::before { width: 20px; background: #fff; }
.hm-month__dot:focus-visible { outline: 2px solid #fff; outline-offset: -2px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { .hm-month__go, .hm-month__dot::before { transition: none; } }
/* уже 1024 px половины экрана не хватает ни поиску, ни баннеру: блок встаёт под текст во всю ширину
   (реклама — на телефоне его не прячем, в отличие от стены логотипов) */
@media (max-width: 1023px) {
    .hm-hero__inner--month { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
/* преимущества: уже 1024 px четыре пункта в строку не помещаются — сетка 2×2 */
@media (max-width: 1023px) {
    .hm-hero__points, .hm-hero__points--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 8px; padding-bottom: 8px; }
    .hm-point { padding: 14px 0; }
    .hm-point + .hm-point::before { top: 14px; bottom: 14px; }
    .hm-point:nth-child(odd)::before { content: none; }
    .hm-hero__points--1 { grid-template-columns: minmax(0, 1fr); }
}

/* ---- быстрый подбор под первым экраном: две колонки ссылок — «Подборки» и «Часто ищут» ---- */
/* У колонки заголовок и ссылка «все» справа; ссылки — «таблетки» с иконкой набора сайта. Колонки делит тонкая черта;
   правая шире: в ней ссылок больше. Одна колонка (.hm-quick__grid--one) занимает всю ширину. */
.hm-quick { background: var(--surface); border-bottom: 1px solid var(--line); padding: 30px 0 32px; }
.hm-quick__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 36px; }
.hm-quick__grid--one { grid-template-columns: minmax(0, 1fr); }
.hm-quick__col { min-width: 0; }
.hm-quick__col + .hm-quick__col { border-left: 1px solid var(--line); padding-left: 36px; }
.hm-quick__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.hm-quick__h { font-family: var(--font-d); font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: var(--ink); }
.hm-quick__all { font-weight: 600; font-size: 14px; color: var(--green-deep); text-decoration: none; white-space: nowrap; }
.hm-quick__all:hover { color: var(--green); }
.hm-quick__chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.hm-chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; line-height: 1.3; color: var(--ink); background: var(--bg);
    border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px 8px 11px; text-decoration: none; white-space: nowrap;
    transition: border-color .15s ease, color .15s ease, background .15s ease, box-shadow .15s ease; }
.hm-chip .ic { width: 18px; height: 18px; color: var(--green-deep); }
.hm-chip:hover { border-color: rgba(27,106,229,.55); color: var(--green-deep); background: var(--surface); box-shadow: 0 4px 14px rgba(27,106,229,.12); }
.hm-chip:focus-visible, .hm-quick__all:focus-visible { outline: 3px solid rgba(27,106,229,.45); outline-offset: 2px; }
.hm-chip i { font-style: normal; font-weight: 500; font-size: 12px; color: var(--muted); }

/* ---- категории с числом франшиз ---- */
.cat-grid--count { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.cat-tile__body { display: flex; flex-direction: column; min-width: 0; }
.cat-tile__count { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* ---- популярные франшизы и новинки: Premium-карточки и остальные — в одной сетке ---- */
/* Версия 129: в ряду три карточки (было до четырёх); до 768 px — две; на телефоне блок листается вбок (ниже).
   Основное правило — две колонки, три включаются от 768 px: на дробной ширине между 560 и 561 px (масштаб
   браузера), где не действует ни правило телефона, ни правило планшета, три узкие колонки не появятся. */
.hm-popular { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hm-popular > .fr-grid { display: contents; }
@media (min-width: 768px) {
    .hm-popular { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 560.02px) and (max-width: 767.98px) {
    /* блок из одного ряда («Новинки», три карточки): в две колонки третья осталась бы одна — не выводится */
    .hm-popular--row .fr-card:nth-child(n+3) { display: none; }
}

/* ---- по бюджету: шкала ---- */
/* Пороги — в одной панели по возрастанию, между ними тонкая черта. Над суммой столбики, как у уровня сигнала:
   закрашено столько, каков порог по счёту (высоту столбика ставит страница). На узком экране — строками. */
.hm-budget { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line);
    border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.hm-budget__tile { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 22px 22px 20px; text-decoration: none; color: var(--ink); transition: background .15s ease; }
.hm-budget__tile + .hm-budget__tile { border-left: 1px solid var(--line); }
.hm-budget__tile:hover { background: rgba(27,106,229,.06); }
.hm-budget__tile:focus-visible { outline: 3px solid rgba(27,106,229,.45); outline-offset: -3px; }
.hm-budget__bars { display: flex; align-items: flex-end; gap: 4px; height: 34px; }
.hm-budget__bars i { flex: 0 0 7px; border-radius: 3px; background: rgba(27,106,229,.15); transition: background .15s ease; }
.hm-budget__bars i.is-on { background: var(--green); }
.hm-budget__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hm-budget__sum { font-family: var(--font-d); font-weight: 800; font-size: 20px; letter-spacing: -.01em; white-space: nowrap; }
.hm-budget__count { color: var(--green-deep); font-weight: 600; font-size: 14px; }

/* ---- подборки под ситуацию ---- */
/* Сетка из 12 долей: ширина карточки зависит от их числа (.hm-aud--N ставит страница), чтобы в рядах не оставалось
   пустых мест: 2 — по две, 3 и 6 — по три, 4 и 8 — по четыре, 5 — три и две, 7 — четыре и три. */
.hm-aud { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.hm-aud__card { grid-column: span 3; display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.hm-aud--2 .hm-aud__card, .hm-aud--5 .hm-aud__card:nth-child(n+4) { grid-column: span 6; }
.hm-aud--3 .hm-aud__card, .hm-aud--5 .hm-aud__card, .hm-aud--6 .hm-aud__card, .hm-aud--7 .hm-aud__card:nth-child(n+5) { grid-column: span 4; }
.hm-aud__card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(27,106,229,.35); }
/* значок подборки — иконка набора на плитке (css/layout.css, .ic-plate) */
.hm-aud__ico { margin-bottom: 8px; }
.hm-aud__name { font-family: var(--font-d); font-weight: 700; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.hm-aud__desc { color: var(--ink-soft); font-size: 14px; line-height: 1.45; }
.hm-aud__count { margin-top: auto; padding-top: 10px; color: var(--green-deep); font-weight: 600; font-size: 14px; }

/* ---- как выбрать франшизу: шаги цепочкой ---- */
/* Шаг — иконка набора сайта на белой плитке с номером в углу, заголовок и пояснение; между плитками пунктир.
   На узком экране цепочка идёт сверху вниз. */
.hm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.hm-step { position: relative; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hm-step:not(:last-child)::after { content: ''; position: absolute; top: 28px; left: 72px; right: -16px; border-top: 2px dashed rgba(27,106,229,.30); }
.hm-step__mark { position: relative; flex: 0 0 56px; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: var(--green-deep);
    background: var(--surface); border: 1px solid rgba(27,106,229,.18); box-shadow: 0 4px 14px rgba(27,106,229,.10); }
.hm-step__mark .ic { width: 26px; height: 26px; stroke-width: 1.6; }
.hm-step__n { position: absolute; top: -9px; right: -9px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--green);
    color: #fff; font-family: var(--font-d); font-weight: 800; font-size: 12.5px; line-height: 1; box-shadow: 0 2px 6px rgba(27,106,229,.35); }
.hm-step__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hm-step__h { font-family: var(--font-d); font-weight: 700; font-size: 17px; line-height: 1.3; }
.hm-step__d { color: var(--ink-soft); font-size: 14px; line-height: 1.5; }

/* ---- истории франчайзи ---- */
.hm-stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 18px; }
.hm-story { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.hm-story:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); }
.hm-story__head { display: flex; align-items: center; gap: 12px; }
.hm-story__photo { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 50%; object-fit: cover; }
.hm-story__photo--ph { display: grid; place-items: center; background: linear-gradient(135deg, #16294a, #0f1d33); color: #fff;
    font-family: var(--font-d); font-weight: 800; font-size: 22px; }
.hm-story__who { display: flex; flex-direction: column; min-width: 0; }
.hm-story__who b { font-family: var(--font-d); font-weight: 700; font-size: 15px; }
.hm-story__who span { color: var(--muted); font-size: 13px; }
.hm-story__title { font-family: var(--font-d); font-weight: 700; font-size: 17px; line-height: 1.3; }
.hm-story__text { color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
.hm-story__more { margin-top: auto; padding-top: 4px; color: var(--green-deep); font-weight: 600; font-size: 14px; }

/* (отдельного блока «Города» на главной больше нет: города — в панели подбора, .hm-pick__cities) */

/* ---- франчайзерам: светлая панель внутри секции (раньше — тёмная полоса во всю ширину) ---- */
.hm-b2b { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 22px 44px; padding: 36px 40px; border-radius: 22px;
    font-family: var(--font-b); color: var(--ink); border: 1px solid rgba(27,106,229,.18);
    background: radial-gradient(70% 150% at 100% 0, rgba(27,106,229,.16), transparent 60%), linear-gradient(135deg, #eaf1fd, #f5f8ff); }
/* первая строка — текст и кнопка, вторая — ссылки на услуги */
.hm-b2b__copy { flex: 1 1 420px; min-width: 0; max-width: 640px; }
.hm-b2b__eyebrow { margin: 0 0 8px; font-family: var(--font-d); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--green-deep); }
.hm-b2b .hm-b2b__title { font-family: var(--font-d); font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.02em; margin: 0 0 8px; color: var(--ink); }
.hm-b2b__lead { margin: 0; color: var(--ink-soft); line-height: 1.55; }
.hm-b2b__acts { flex: 0 0 auto; }
.hm-b2b__links { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px; }
/* «таблетка» на цветной панели — белая */
.hm-chip--w { background: var(--surface); border-color: rgba(27,106,229,.20); }

@media (max-width: 1100px) {
    .hm-hero .hm-finder .hm-btn { flex: 1 1 100%; }      /* кнопка — отдельной строкой во всю ширину, а не обрубком слева */
    .hm-hero .hm-finder__sel { padding-left: 12px; padding-right: 28px; background-position: right 10px center; }
}
/* три списка в одну строку в узкой колонке: шрифт и поля чуть меньше — «Любой бюджет» не обрезается многоточием */
@media (min-width: 901px) and (max-width: 1100px) {
    .hm-hero .hm-finder__sel { font-size: 14px; padding-left: 10px; padding-right: 26px; background-position: right 9px center; }
}
/* шкала бюджета: до 1100 px — плотнее; уже 820 px пороги в строку не помещаются — идут строками сверху вниз */
@media (max-width: 1100px) {
    .hm-budget__tile { padding: 18px 16px 16px; }
    .hm-budget__sum { font-size: 17px; }
}
@media (max-width: 820px) {
    .hm-budget { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); }
    .hm-budget__tile { flex-direction: row; align-items: center; gap: 16px; padding: 14px 18px; }
    .hm-budget__tile + .hm-budget__tile { border-left: 0; border-top: 1px solid var(--line); }
    .hm-budget__bars { flex: 0 0 auto; height: 26px; }
    .hm-budget__bars i { flex-basis: 6px; }
    .hm-budget__text { flex: 1 1 auto; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; }
    .hm-budget__sum { font-size: 18px; }
    .hm-budget__count { white-space: nowrap; }
}
@media (max-width: 900px) {
    .hm-wall { display: none; }                      /* как декоративная панель: на узком экране первый экран — только текст и поиск */
    /* подборки — в две колонки; при нечётном числе последняя карточка занимает всю строку */
    .hm-aud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-aud .hm-aud__card:nth-child(n) { grid-column: auto; }
    .hm-aud .hm-aud__card:last-child:nth-child(odd) { grid-column: 1 / -1; }
    /* шаги — цепочкой сверху вниз: плитка слева, текст справа, пунктир между плитками */
    .hm-steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .hm-step { flex-direction: row; gap: 16px; padding-bottom: 24px; }
    .hm-step:last-child { padding-bottom: 0; }
    .hm-step:not(:last-child)::after { top: 64px; bottom: 8px; left: 27px; right: auto; border-top: 0; border-left: 2px dashed rgba(27,106,229,.30); }
    .hm-step__body { padding-top: 4px; }
    /* панель подбора: города — под приглашением */
    .hm-pick { margin-top: 32px; }
    .hm-pick--cities { grid-template-columns: minmax(0, 1fr); }
    .hm-pick__main, .hm-pick__cities { padding: 28px 28px; }
    .hm-pick__cities { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
    .hm-b2b { padding: 30px 28px; }
    /* быстрый подбор: колонки друг под другом; строка ссылок листается пальцем от края до края экрана, а не
       занимает пол-экрана (отрицательные поля возвращают ей поля страницы) */
    .hm-quick { padding: 22px 0 20px; }
    .hm-quick__grid { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
    .hm-quick__col + .hm-quick__col { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
    .hm-quick__head { margin-bottom: 12px; }
    .hm-quick__chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 6px 20px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
        /* версия 179: ряд режется по краю экрана без полосы прокрутки — справа растворение, чтобы было видно, что лента листается */
        -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), rgba(0,0,0,0) 100%);
        mask-image: linear-gradient(90deg, #000 calc(100% - 44px), rgba(0,0,0,0) 100%); }
    .hm-quick__chips::-webkit-scrollbar { display: none; }
    .hm-chip { flex: 0 0 auto; }
}
@media (max-width: 560px) {
    /* версия 179: заголовок секции и ссылка «все» — всегда столбиком. Раньше flex-wrap: у коротких заголовков ссылка
       стояла справа в строке, у длинных («Бизнес-идеи с расчётами») переносилась под заголовок — два разных вида */
    .hm-head { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 18px; }
    .hm-month { padding: 16px 14px 14px; border-radius: 18px; }
    .hm-month__name { font-size: 16px; }
    .hm-month__meta { font-size: 13px; }
    /* преимущества — списком: иконка слева, справа заголовок и пояснение; между пунктами тонкая черта */
    .hm-hero__points, .hm-hero__points--2, .hm-hero__points--3 { grid-template-columns: minmax(0, 1fr); padding-top: 6px; padding-bottom: 6px; }
    .hm-point { padding: 12px 0; gap: 12px; }
    .hm-point + .hm-point::before, .hm-point:nth-child(odd)::before { content: ''; left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1px; }
    .hm-point:first-child::before { content: none; }
    .hm-point__ico { flex-basis: 42px; width: 42px; height: 42px; border-radius: 12px; }
    .hm-point__ico .ic { width: 23px; height: 23px; }
    .hm-quick__h { font-size: 17px; }
    .hm-hero .hm-finder__sel { flex-basis: 100%; }
    .hm-aud { gap: 10px; }
    .hm-aud__card { padding: 14px; }
    .hm-aud__name { font-size: 15px; }
    .hm-aud__desc { display: none; }
    .hm-budget__tile { padding: 13px 14px; gap: 14px; }
    .hm-budget__sum { font-size: 17px; }
    .hm-budget__more { display: none; }                 /* на телефоне от «Смотреть франшизы →» остаётся стрелка */
    .hm-pick { border-radius: 18px; }
    .hm-pick__main, .hm-pick__cities { padding: 24px 20px; }
    .hm-pick .hm-btn { width: 100%; }
    .hm-step__mark { flex-basis: 50px; width: 50px; height: 50px; border-radius: 14px; }
    .hm-step:not(:last-child)::after { top: 58px; left: 24px; }
    /* категории — в две колонки, без значка */
    .hm-section .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .hm-section .cat-tile { padding: 12px 14px; }
    .hm-section .cat-tile__ic { display: none; }
    /* карточки франшиз на телефоне листаются вбок: восемь карточек друг под другом занимали несколько экранов */
    .hm-popular { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 6px 20px 12px;
        scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .hm-popular::-webkit-scrollbar { display: none; }
    .hm-popular .fr-card { flex: 0 0 82%; scroll-snap-align: center; }
    .hm-b2b { padding: 26px 20px; border-radius: 18px; }
    .hm-b2b__acts, .hm-b2b__acts .hm-btn { width: 100%; }
    .hm-more .hm-btn { width: 100%; }
}
/* самый узкий экран (320 px): длинная сумма («до 5 000 000 ₽») переносится, а не раздвигает страницу */
@media (max-width: 380px) {
    .hm-aud__card { padding: 12px; }                    /* длинное слово («Антикризисные») помещается в карточку целиком */
    .hm-aud__name { font-size: 14px; }
    .hm-budget__tile { padding: 12px; gap: 12px; }
    .hm-budget__sum { font-size: 16px; white-space: normal; }
}

/* ============================================================
   ВЕРСИЯ 105: ШИРОКАЯ КАРТОЧКА ФРАНШИЗЫ
   Шаблон news.list `franchise_card` с параметром CARD_VIEW = 'wide' (разметка карточки — wide.php рядом с шаблоном).
   Список идёт в одну колонку (.fr-list), карточка во всю ширину (.fr-card--w): слева баннер или логотип, тот, кто
   ответит на заявку, отметка о проверке и факты о компании; справа категория, название с коротким описанием,
   начало подробного описания, шесть показателей и крупная кнопка заявки. Вид включает настройка catalog.card_view.
   До 900 px колонки складываются в одну, порядок блоков задан свойством order.
   ============================================================ */
.fr-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.fr-list + .fr-list, .fr-grid + .fr-list, .fr-list + .fr-grid { margin-top: 18px; }

.fr-card--w { --w-muted: #5f6b82;   /* подписи: темнее --muted, на светлой плашке читаются уверенно */
    display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: 24px; padding: 16px; box-shadow: var(--shadow); }
/* большая карточка не «подпрыгивает» под курсором и не красит кнопку, пока курсор не на ней самой */
.fr-card--w:hover { transform: none; border-color: var(--line); box-shadow: var(--shadow-h); }
.fr-card--w.is-picked, .fr-card--w.is-picked:hover { border-color: #d9480f; }
.fr-w__side { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-width: 0; }
.fr-w__main { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 4px 4px 0 0; }

/* картинка: баннер 15:8 (то же соотношение, что у обычной карточки) или логотип на светлой подложке */
.fr-w__media { position: relative; display: grid; place-items: center; aspect-ratio: 15 / 8; border-radius: 12px; overflow: hidden; background: #eef2f8; }
.fr-w__banner { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fr-w__media--logo { aspect-ratio: auto; flex: 1 1 180px; min-height: 180px; }
/* высота логотипа — в пикселях: у блока без заданной высоты проценты не действуют, высокий логотип вылезал бы за подложку */
.fr-w__logo { display: block; width: auto; height: auto; max-width: 56%; max-height: 140px; object-fit: contain; }
.fr-w__media .fr-card__logo-ph { width: 84px; height: 84px; border-radius: 18px; font-size: 38px; }
.fr-w__media:focus-visible { outline: 3px solid rgba(27, 106, 229, .45); outline-offset: 2px; }
.fr-card--w.fr-card--archive .fr-w__logo, .fr-card--w.fr-card--archive .fr-w__banner,
.fr-card--w.fr-card--archive .fr-w__media .fr-card__logo-ph { filter: grayscale(1); opacity: .65; }

/* кто ответит на заявку и отметка о проверке (или оценка по отзывам) */
.fr-w__people { display: flex; flex-wrap: wrap; gap: 8px; }
.fr-w__person, .fr-w__trust { flex: 1 1 220px; min-width: 0; box-sizing: border-box; background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.fr-w__person { display: flex; align-items: center; gap: 12px; }
.fr-w__trust { display: flex; flex-direction: column; justify-content: center; }
.fr-w__ava { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
    background: #dbe5f3; color: var(--ink-soft); font-family: var(--font-d); font-weight: 800; font-size: 18px; line-height: 1; }
.fr-w__ava img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fr-w__ptext { display: block; min-width: 0; }
.fr-w__ptext b, .fr-w__trust b { display: flex; align-items: center; gap: 6px; font-family: var(--font-d); font-weight: 700; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.fr-w__ptext i, .fr-w__trust i { display: block; font-style: normal; font-size: 12.5px; line-height: 1.35; color: var(--ink-soft); }
/* юридическое лицо и дата проверки: до двух строк, длинное название обрезается */
.fr-w__trust i { color: var(--w-muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.fr-w__shield { flex: 0 0 auto; color: var(--green); }
.fr-w__star { flex: 0 0 auto; color: var(--amber); }

/* факты: города, год запуска франшизы, год основания */
.fr-w__facts { display: flex; flex-wrap: wrap; gap: 8px; }
.fr-w__fact { flex: 1 1 110px; min-width: 0; box-sizing: border-box; background: var(--bg); border-radius: 12px; padding: 10px 14px; }
.fr-w__fact b { display: flex; align-items: center; gap: 5px; font-family: var(--font-d); font-weight: 700; font-size: 16px; line-height: 1.3; white-space: nowrap; }
.fr-w__fact span { display: block; font-size: 12px; line-height: 1.3; color: var(--w-muted); }

/* правая колонка */
.fr-w__top { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.fr-w__labels { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.fr-w__cat { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--green-deep); }
.fr-card--w.fr-card--archive .fr-w__cat { color: var(--muted); }
.fr-card--w .fr-card__badge { position: static; white-space: nowrap; }
.fr-card--w .fr-card__acts { position: static; flex: 0 0 auto; }
.fr-card--w .fr-act { width: 44px; height: 44px; }
.fr-card--w .fr-act__i { font-size: 18px; }
/* название — ссылка на страницу франшизы, под ним короткое описание тем же кеглем */
.fr-w__title { margin: 0; font-family: var(--font-d); font-weight: 700; font-size: 24px; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); overflow-wrap: anywhere; }
.fr-w__title a { color: var(--green); text-decoration: none; }
.fr-w__title a:hover { color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; }
.fr-w__title a:focus-visible { outline: 3px solid rgba(27, 106, 229, .45); outline-offset: 2px; border-radius: 4px; }
.fr-w__title span { display: block; }
.fr-card--w.fr-card--archive .fr-w__title a { color: var(--ink-soft); }
.fr-w__desc { margin: 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.6;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }

/* показатели: шесть плиток, инвестиции выделены */
.fr-w__tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.fr-w__tile { flex: 1 1 150px; min-width: 0; box-sizing: border-box; background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.fr-w__tile span { display: block; font-size: 12.5px; line-height: 1.3; color: var(--w-muted); }
.fr-w__tile b { display: block; margin-top: 2px; font-family: var(--font-d); font-weight: 800; font-size: 19px; line-height: 1.35; letter-spacing: -.01em; white-space: nowrap; }
.fr-w__tile--main { background: #eef4ff; }
.fr-w__tile--main span { color: var(--ink-soft); }
.fr-w__tile--main b { color: var(--green-deep); }
.fr-w__tile.is-empty b { color: var(--w-muted); font-weight: 700; }
/* версия 128: четыре показателя (без «Прибыли» и «Точек в сети») — по два в ряд на любой ширине: в четыре
   колонки сумма вида «от 12 500 000 ₽» на планшете не помещается, а в три четвёртый показатель остаётся один */
.fr-w__tiles.fr-w__tiles--n4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* кнопка заявки: та же двойная кнопка, что у обычной карточки, но крупнее */
.fr-w__cta { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.fr-w__note { font-size: 13px; line-height: 1.4; color: var(--w-muted); text-align: center; }
.fr-card--w .fr-cta { margin: 0; min-height: 60px; border-radius: 12px; }
.fr-card--w:hover .fr-cta { background: var(--btn); border-color: var(--btn); }
.fr-card--w .fr-cta:hover { background: var(--btn-deep); border-color: var(--btn-deep); }
.fr-card--w.is-picked .fr-cta, .fr-card--w.is-picked:hover .fr-cta, .fr-card--w.is-picked .fr-cta:hover { background: #d9480f; border-color: #d9480f; }
.fr-card--w .fr-cta__btn { font-family: var(--font-d); font-weight: 700; font-size: 17px; padding: 14px 12px 14px 18px; border-radius: 11px 0 0 11px; }
.fr-card--w .fr-cta__box { flex-basis: 60px; border-radius: 0 11px 11px 0; }
html:not(.pk-on) .fr-card--w .fr-cta__btn { padding-right: 18px; border-radius: 11px; }
/* карточка, которая заявок не принимает (архив, справочная): вместо кнопки — ссылка на страницу */
.fr-w__more { display: flex; align-items: center; justify-content: center; min-height: 52px; box-sizing: border-box; padding: 10px 18px;
    border: 1px solid rgba(27, 106, 229, .35); border-radius: 12px; color: var(--green-deep); font-family: var(--font-d); font-weight: 700; font-size: 16px;
    text-decoration: none; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.fr-w__more:hover { background: var(--btn); border-color: var(--btn); color: #fff; }
.fr-w__more:focus-visible { outline: 3px solid rgba(27, 106, 229, .45); outline-offset: 2px; }

/* Плитки «Подобрать франшизу» и «Не нашли подходящую?» — полосой во всю ширину списка: и среди широких карточек,
   и (версия 129) в сетке. В сетке плитка раньше занимала ячейку размером с карточку и сдвигала остальные: 24 карточки
   и одна-две плитки не делились на ряды, последний ряд страницы был неполным. Место полосы — после целого числа
   рядов (шаблон franchise_card: кратное шести). */
.fr-grid > .fr-tile { grid-column: 1 / -1; }
.fr-list > .fr-tile, .fr-grid > .fr-tile { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px 20px; padding: 18px 22px; }
.fr-list > .fr-tile .fr-tile__h, .fr-grid > .fr-tile .fr-tile__h { flex: 0 0 auto; }
.fr-list > .fr-tile .fr-tile__text, .fr-grid > .fr-tile .fr-tile__text { flex: 1 1 320px; min-width: 0; }
.fr-list > .fr-tile .fr-tile__btn, .fr-grid > .fr-tile .fr-tile__btn { flex: 0 0 auto; margin-top: 0; }

/* Планшет и телефон: обёртки колонок «растворяются» (display: contents), блоки карточки встают в общий порядок —
   картинка, название, показатели, представитель, факты, кнопка. */
@media (max-width: 900px) {
    .fr-w__side, .fr-w__main { display: contents; }
    .fr-w__media { grid-area: media; order: 1; }
    .fr-w__top { grid-area: top; order: 2; }
    .fr-w__title { grid-area: title; order: 3; }
    .fr-w__desc { grid-area: desc; order: 4; }
    .fr-w__tiles { grid-area: tiles; order: 5; }
    .fr-w__people { grid-area: people; order: 6; }
    .fr-w__facts { grid-area: facts; order: 7; }
    .fr-w__cta { grid-area: cta; order: 8; margin-top: 4px; }
    .fr-w__media--logo { flex: 0 0 auto; min-height: 0; }
}
/* планшет: картинка слева, название и описание справа от неё, остальное — во всю ширину; показатели по три в ряд.
   Границы планшета и телефона — 561 / 560.98 px, без зазора: при дробной ширине окна (масштаб браузера) между 560
   и 561 px не действовало ни одно из правил раскладки и блоки карточки ложились друг на друга (версия 116).
   Расстояние между строками — отступами блоков, а не gap: описания, представителя или фактов у карточки может
   не быть, и пустая строка сетки с двумя gap давала двойной промежуток (версия 116). */
@media (max-width: 900px) and (min-width: 561px) {
    .fr-card--w { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0 20px;
        grid-template-areas: "media top" "media title" "media desc" "tiles tiles" "people people" "facts facts" "cta cta"; }
    .fr-w__title, .fr-w__desc, .fr-w__tiles, .fr-w__people, .fr-w__facts { margin-top: 12px; }
    .fr-w__cta { margin-top: 16px; }
    .fr-w__media { align-self: start; }
    .fr-w__media--logo { aspect-ratio: 15 / 8; }
    .fr-w__logo { max-height: 110px; }
    .fr-w__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* телефон: одна колонка (560.98 — см. комментарий к планшету) */
@media (max-width: 560.98px) {
    .fr-list { gap: 12px; }
    .fr-card--w { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
    .fr-w__media--logo { aspect-ratio: 3 / 1; }
    .fr-w__media--logo .fr-w__logo { max-height: 64px; }
    .fr-w__media--logo .fr-card__logo-ph { width: 64px; height: 64px; border-radius: 14px; font-size: 30px; }
    .fr-w__top { min-height: 40px; }
    .fr-card--w .fr-act { width: 40px; height: 40px; }
    .fr-w__title { font-size: 20px; }
    .fr-w__desc { font-size: 15px; line-height: 1.5; -webkit-line-clamp: 2; line-clamp: 2; }
    /* показатели — строго по два в ряд: три не помещаются, а один в ряду растягивался бы на всю ширину */
    .fr-w__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fr-w__tile { padding: 10px 12px; }
    .fr-w__tile b { font-size: 17px; }
    .fr-w__person, .fr-w__trust { flex-basis: 100%; padding: 10px 12px; }
    /* города и годы на телефоне не показываем: карточка и так длиннее экрана, эти сведения есть на странице франшизы.
       Оценку по отзывам (она стоит среди фактов, когда место отметки о доверии занято «Франшиза проверена») — оставляем:
       иначе на телефоне у проверенной франшизы рейтинга не было бы нигде (версия 116). */
    .fr-w__facts:not(.fr-w__facts--rated), .fr-w__facts--rated .fr-w__fact:not(.fr-w__fact--rating) { display: none; }
    .fr-w__note { font-size: 12.5px; }
    .fr-card--w .fr-cta { min-height: 54px; }
    .fr-card--w .fr-cta__btn { font-size: 16px; padding: 12px 10px 12px 14px; }
    .fr-card--w .fr-cta__box { flex-basis: 54px; }
    .fr-list > .fr-tile, .fr-grid > .fr-tile { padding: 16px; }
    .fr-list > .fr-tile .fr-tile__btn, .fr-grid > .fr-tile .fr-tile__btn { flex: 1 1 100%; }
}
/* самый узкий экран: длинная сумма («от 12 500 000 ₽») не раздвигает плитку. Версия 129: и не выходит за неё —
   поля плитки уже, а сумма, которая всё равно не помещается в строку, переносится (раньше вылезала на 3–16 px). */
@media (max-width: 360px) {
    .fr-w__tile { padding: 10px; }
    .fr-w__tile b { font-size: 15px; white-space: normal; }
    .fr-w__tile span { font-size: 12px; }
}

/* ============================================================
   ВЕРСИЯ 108: ЗАГОЛОВКИ С ВЫДЕЛЕННЫМ СЛОВОМ
   Надзаголовок (.hd-eyebrow) — мелкая строка заглавными над заголовком; выделенное слово (.hd-accent) — тёмно-синее.
   Разметку выделения собирает App\Site\Heading. Здесь же — заголовок широкой карточки в том же ключе: категория
   заглавными, название крупно и тёмно-синим, короткое описание отдельной строкой. Стили заголовков страницы
   каталога — css/catalog.css.
   ============================================================ */
.hd-eyebrow { margin: 0 0 8px; font-family: var(--font-b); font-size: 13px; font-weight: 600; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; color: var(--green-deep); }
.hd-eyebrow--sm { margin-bottom: 6px; font-size: 12.5px; }
.hd-accent { color: var(--green-deep); }

.fr-w__cat { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }
.fr-w__title { font-weight: 800; font-size: 28px; line-height: 1.2; letter-spacing: -.02em; }
.fr-w__title a { color: var(--green-deep); }
.fr-w__title a:hover { color: var(--green); }
.fr-w__title span { margin-top: 6px; font-weight: 600; font-size: 18px; line-height: 1.4; letter-spacing: -.01em; }
@media (max-width: 560px) {
    .fr-w__title { font-size: 22px; }
    .fr-w__title span { margin-top: 4px; font-size: 16px; }
}

/* ============================================================
   ВЕРСИЯ 165: «ФРАНШИЗЫ МЕСЯЦА» — БАННЕР ВО ВСЮ КАРТОЧКУ (.hm-month--full, home.month_style = 'full')
   Баннер занимает всю карточку: картинка целиком (не обрезается) между плашкой «Франшиза месяца» сверху и подписью
   снизу, поля вокруг — её размытая копия. Название, инвестиции, окупаемость и «Подробнее» — поверх картинки на
   тёмном градиенте; стрелки — в углу, точки — внизу по центру. Ссылки «Рейтинг франшиз» в блоке нет — он в меню.
   ============================================================ */
.hm-month__go-t { display: none; }
.hm-month.hm-month--full { position: relative; display: flex; padding: 0; overflow: hidden; min-height: 440px; background: #0f1d33; }
.hm-month--full .hm-month__head { position: absolute; top: 18px; left: 18px; right: 18px; z-index: 3; margin: 0; pointer-events: none; }
.hm-month--full .hm-month__h { padding: 6px 12px; border-radius: 999px; background: rgba(10,18,32,.6); color: #fff; }
.hm-month--full .hm-month__nav { pointer-events: auto; }
.hm-month--full .hm-month__arrow { width: 34px; height: 34px; background: rgba(10,18,32,.55); }
.hm-month--full .hm-month__arrow:hover, .hm-month--full .hm-month__arrow:focus-visible { background: rgba(10,18,32,.8); }
.hm-month--full .hm-month__arrow:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.hm-month--full .hm-month__track { flex: 1 1 auto; border-radius: 0; }
.hm-month--full .hm-month__track:focus-visible { outline-offset: -3px; border-radius: 22px; }   /* снаружи рамку обрезала бы карточка */
.hm-month--full .hm-month__slide { position: relative; gap: 0; min-height: 440px; }
.hm-month--full .hm-month__slide:focus-visible { outline-offset: -4px; border-radius: 22px; }
.hm-month--full .hm-month__pic { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
/* картинка — целиком, между плашкой сверху (64 px) и подписью снизу (120 px) */
.hm-month--full .hm-month__pic img { position: absolute; top: 64px; left: 16px; width: calc(100% - 32px); height: calc(100% - 184px); object-fit: contain; }
.hm-month--full .hm-month__pic--logo img { left: 20%; width: 60%; max-width: none; max-height: none; }
.hm-month--full .hm-month__pic--ph { padding-bottom: 110px; box-sizing: border-box; }
.hm-month--full .hm-month__mark { top: 60px; right: 18px; }
.hm-month--full .hm-month__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; align-items: flex-end; padding: 72px 20px 46px;
    background: linear-gradient(180deg, rgba(8,14,26,0), rgba(8,14,26,.9) 55%); }
.hm-month--full.hm-month--one .hm-month__cap { padding-bottom: 20px; }
.hm-month--full .hm-month__name { font-size: 20px; }
.hm-month--full .hm-month__meta { color: #d3dcea; }
.hm-month--full .hm-month__go { flex: 0 0 auto; width: auto; height: 42px; padding: 0 16px; gap: 8px; border-radius: 11px;
    font-family: var(--font-d); font-size: 14px; }
.hm-month--full .hm-month__go-t { display: inline; }
.hm-month--full .hm-month__foot { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3; justify-content: center; margin: 0; padding: 0; border: 0; pointer-events: none; }
.hm-month--full .hm-month__dots { pointer-events: auto; }
.hm-month--full .hm-month__all { display: none; }
@media (max-width: 560px) {
    .hm-month.hm-month--full, .hm-month--full .hm-month__slide { min-height: 380px; }
    .hm-month--full .hm-month__head { top: 14px; left: 14px; right: 14px; }
    .hm-month--full .hm-month__pic img { top: 58px; left: 12px; width: calc(100% - 24px); height: calc(100% - 190px); }
    .hm-month--full .hm-month__cap { gap: 12px; padding: 64px 16px 44px; }
    .hm-month--full .hm-month__go { width: 42px; padding: 0; }             /* подпись на одной строке — только стрелка */
    .hm-month--full .hm-month__go-t { display: none; }
    .hm-month--full.hm-month--one .hm-month__cap { padding-bottom: 16px; }
    .hm-month--full .hm-month__name { font-size: 17px; }
}

/* ============================================================
   ВЕРСИЯ 166: ТЁМНЫЙ ПЕРВЫЙ ЭКРАН (.hm-hero--dark, home.hero_dark)
   Фон — тёмно-синий с голубой подсветкой справа и тёплой снизу слева, как обложка презентации и раздела «Всё о
   франчайзинге». Текст белый, подбор — на полупрозрачной панели. Полоса под экраном — глубокий синий во всю ширину:
   «Портал в цифрах» (.hm-point--stat) и преимущества в одну строку, под ними — откуда цифры.
   ============================================================ */
.hm-hero.hm-hero--dark { color: #fff; border-bottom: 0;
    background:
        radial-gradient(55% 75% at 82% 25%, rgba(27,106,229,.40), transparent 70%),
        radial-gradient(45% 60% at 5% 100%, rgba(240,164,49,.22), transparent 70%),
        linear-gradient(135deg, #16294a 0%, #0f1d33 60%, #0b1628 100%); }
.hm-hero--dark .hm-eyebrow { color: #8fb6ff; font-weight: 700; letter-spacing: .08em; }
.hm-hero--dark .hm-hero__title { color: #fff; }
.hm-hero--dark .hm-hero__title em { color: #7fb0ff; }
.hm-hero--dark .hm-hero__lead { color: #b8c4d8; }
.hm-hero--dark .hm-finder { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); box-shadow: none; }
.hm-hero--dark .hm-finder__sel { background-color: #13243f; border-color: rgba(255,255,255,.16); color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239fb0cc' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); }
.hm-hero--dark .hm-finder__sel:focus { border-color: #7fb0ff; }
.hm-hero--dark .hm-finder__sel option { color: var(--ink); background: #fff; }
.hm-hero--dark .hm-finder .hm-btn--accent { background: var(--green); }
.hm-hero--dark .hm-finder .hm-btn--accent:hover { background: #1559c7; box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.hm-hero--dark .hm-btn:focus-visible, .hm-hero--dark .hm-finder__sel:focus-visible { outline: 3px solid rgba(127,176,255,.7); outline-offset: 2px; }
.hm-hero--dark .hm-hero__link { color: #fff; }
.hm-hero--dark .hm-hero__link:hover { color: #9cc2ff; }
.hm-hero--dark .hm-hero__link--muted { color: #b8c4d8; }
/* цифры каталога (home.show_counts) и «Портал в цифрах» в колонке — если они всё же там (без полосы) */
.hm-hero--dark .hm-hero__stats b, .hm-hero--dark .hm-hero__stats--live b { color: #fff; }
.hm-hero--dark .hm-hero__stats span, .hm-hero--dark .hm-hero__stats--live span { color: #b8c4d8; }
.hm-hero--dark .hm-hero__stats--live li { border-left-color: #7fb0ff; }
.hm-hero--dark .hm-hero__src { color: #8b9ab3; }
/* баннер и стена логотипов — тёмные карточки на тёмном фоне: светлая кромка и тень глубже */
.hm-hero--dark .hm-month, .hm-hero--dark .hm-wall { box-shadow: 0 24px 60px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.12); }
.hm-hero--dark .hm-hero__art { box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }

/* полоса под экраном */
.hm-hero--dark .hm-hero__band { background: #0a1426; border-top: 1px solid rgba(255,255,255,.08); }
.hm-hero--dark .hm-point + .hm-point::before { background: rgba(255,255,255,.10); }
.hm-hero--dark .hm-point__ico { background: rgba(127,176,255,.12); border-color: rgba(127,176,255,.22); box-shadow: none; color: #9cc2ff; }
.hm-hero--dark .hm-point__ico .ic { --ic-accent: #ffc857; }
.hm-hero--dark .hm-point__h { color: #fff; }
.hm-hero--dark .hm-point__d { color: #b8c4d8; }
.hm-point__n { font-family: var(--font-d); font-weight: 800; font-size: 28px; line-height: 1.1; letter-spacing: -.02em; overflow-wrap: anywhere; color: var(--ink); }
.hm-hero--dark .hm-point__n { color: #fff; }
.hm-hero__points--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hm-hero__points--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 24px; }
.hm-hero__points--6 .hm-point + .hm-point::before { left: -12px; }
.hm-hero__points--6 .hm-point__ico { flex-basis: 40px; width: 40px; height: 40px; border-radius: 12px; }
.hm-hero__points--6 .hm-point__ico .ic { width: 22px; height: 22px; }
.hm-hero__points--6 .hm-point { gap: 12px; }
.hm-hero__bandsrc { margin: 0 auto; padding-top: 10px; padding-bottom: 14px; font-size: 12.5px; line-height: 1.45; color: #8b9ab3;
    border-top: 1px solid rgba(255,255,255,.07); }
.hm-hero__bandsrc .ps-more { color: #9cc2ff; }
.hm-hero__band--live .hm-hero__points { padding-top: 2px; padding-bottom: 2px; }
.hm-hero__band--live .hm-point { align-items: flex-start; }
.hm-hero__band--live .hm-point__ico { margin-top: 2px; }
/* до 1200 px шесть ячеек в строку не помещаются — по три (цифры сверху, преимущества снизу) */
@media (max-width: 1199px) {
    .hm-hero__points--5, .hm-hero__points--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    /* черта — у каждой ячейки, кроме первой в ряду (правило 2×2 выше снимало её у нечётных) */
    .hm-hero__points--5 .hm-point:nth-child(n)::before, .hm-hero__points--6 .hm-point:nth-child(n)::before { content: ''; }
    .hm-hero__points--5 .hm-point:nth-child(3n + 1)::before, .hm-hero__points--6 .hm-point:nth-child(3n + 1)::before { content: none; }
}
@media (max-width: 700px) {
    .hm-hero__points--5, .hm-hero__points--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-hero__points--5, .hm-hero__points--6 { column-gap: 18px; padding-top: 6px; padding-bottom: 6px; }
    .hm-hero__points--5 .hm-point::before, .hm-hero__points--6 .hm-point::before { content: none !important; }
    .hm-hero__points--5 .hm-point, .hm-hero__points--6 .hm-point { padding: 12px 0; }
    .hm-point__n { font-size: 24px; }
}
/* версия 179: на телефоне полоса с цифрами строилась сеткой 2×3 вперемешку — во второй строке рядом стояли «212 тыс.»
   (24 px) и «Работаем с 2014 года» (15 px), а преимущества теряли иконки. Теперь всё списком во всю ширину: цифра —
   число слева и подпись справа по базовой линии, преимущество — иконка и текст; между пунктами тонкая черта. */
@media (max-width: 700px) {
    .hm-hero__band--live .hm-hero__points--5, .hm-hero__band--live .hm-hero__points--6 { grid-template-columns: minmax(0, 1fr); column-gap: 0; row-gap: 0; }
    .hm-hero__band--live .hm-point { grid-column: 1 / -1; padding: 11px 0; border-top: 1px solid rgba(26,43,74,.10); }
    .hm-hero__band--live .hm-point:first-child { border-top: 0; }
    .hm-hero--dark .hm-hero__band--live .hm-point { border-top-color: rgba(255,255,255,.10); }
    .hm-hero__band--live .hm-point--stat .hm-point__text { flex-direction: row; align-items: baseline; gap: 12px; }
    .hm-hero__band--live .hm-point--stat .hm-point__n { flex: 0 0 auto; min-width: 108px; font-size: 22px; }
    .hm-hero__band--live .hm-point--stat .hm-point__d { font-size: 13px; line-height: 1.3; }
    .hm-hero__band--live .hm-point:not(.hm-point--stat) { align-items: center; gap: 12px; }
    .hm-hero__band--live .hm-point:not(.hm-point--stat) .hm-point__ico { display: grid; flex-basis: 40px; width: 40px; height: 40px; border-radius: 12px; margin-top: 0; }
    .hm-hero__band--live .hm-point:not(.hm-point--stat) .hm-point__ico .ic { width: 22px; height: 22px; }
}
@media (max-width: 360px) {
    .hm-hero__band--live .hm-point--stat .hm-point__n { min-width: 96px; font-size: 20px; }
    .hm-hero__band--live .hm-point--stat .hm-point__d { font-size: 12px; }
}

/* End */


/* Start:/bitrix/templates/franchise/css/catalog.css?179217972064490*/
/* ============================================================
   Каталог — стили (дополняет home.css: переменные и .fr-card/.fr-grid)
   Путь: /local/templates/{ШАБЛОН}/css/catalog.css
   ============================================================ */

.cat-page { font-family: var(--font-b); color: var(--ink); padding: 28px 20px 64px; }

/* хлебные крошки */
.cat-bc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.cat-bc a { color: var(--muted); text-decoration: none; }
.cat-bc a:hover { color: var(--green-deep); }
.cat-bc b { color: var(--ink); font-weight: 600; }

/* заголовок страницы */
.cat-pagehead { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.cat-h1 { font-family: var(--font-d); font-weight: 800; font-size: clamp(24px, 3vw, 38px); letter-spacing: -.02em; margin: 0; }
.cat-count { color: var(--muted); font-size: 15px; margin: 0; }
.cat-count b { color: var(--ink); font-family: var(--font-d); }

/* панель фильтра: бюджет, паушальный взнос, роялти, окупаемость, город, сортировка + отметки «Новинки» и «Проверено»
   (правки версии 96 для шести списков — в конце файла) */
.cat-toolbar {
    display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
    padding: 16px 18px; margin: 18px 0 26px; box-shadow: var(--shadow);
    position: sticky; top: calc(var(--st-top, 0px) + 8px); z-index: 5;   /* --st-top — закреплённая шапка (js/ux.js) */
    transition: top .22s ease;
}
.cat-field { display: flex; flex-direction: column; gap: 6px; }
.cat-field > span { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.cat-field select {
    font-family: inherit; font-size: 15px; color: var(--ink); font-weight: 500;
    border: 1px solid var(--line); border-radius: 10px; padding: 11px 38px 11px 14px;
    background: #fbfcfe; appearance: none; cursor: pointer; min-width: 168px;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a8499' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
.cat-field select:focus { outline: none; border-color: var(--green); }
.cat-field select:focus-visible { outline: 3px solid rgba(27, 106, 229, .3); outline-offset: 1px; }

/* отметки-переключатели: та же высота, что у списков, стоят с ними в одну строку */
.cat-checks { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-check { position: relative; display: block; cursor: pointer; }
.cat-check input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }   /* скрыт визуально, доступен с клавиатуры */
.cat-check span {
    display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px;
    border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe;
    font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap;
}
.cat-check span::before {
    content: ""; flex: 0 0 auto; width: 16px; height: 16px; border: 1.5px solid #b9c2d3; border-radius: 4px; background: #fff;
}
.cat-check:hover span { border-color: #b9c7e6; }
.cat-check input:checked + span { border-color: var(--green); background: #eef4ff; color: var(--green-deep); }
.cat-check input:checked + span::before {
    border-color: var(--green);
    background: var(--green) url("data:image/svg+xml,%3Csvg width='10' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l3 3 5-6' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
}
.cat-check input:focus-visible + span { outline: 3px solid rgba(27, 106, 229, .3); outline-offset: 1px; }

.cat-reset { align-self: center; margin-left: auto; color: var(--muted); font-size: 14px; text-decoration: none; }
.cat-reset:hover { color: var(--green-deep); }

/* ярлыки выбранных условий над списком: крестик снимает условие (ссылка на список без него) */
.cat-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -8px 0 20px; }
.cat-tag { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 7px 10px 7px 14px; border-radius: 999px;
    background: #eef3fd; border: 1px solid rgba(27,106,229,.28); color: var(--green-deep); font-size: 14px; font-weight: 600; line-height: 1.25;
    text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.cat-tag span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-tag svg { flex: 0 0 auto; opacity: .7; }
.cat-tag:hover { background: #e2ebfc; border-color: var(--green); }
.cat-tag:hover svg { opacity: 1; }
.cat-tag:focus-visible { outline: 3px solid rgba(27,106,229,.35); outline-offset: 2px; }
/* список обновляется без перезагрузки: пока идёт ответ (дольше 150 мс) — приглушён */
.cat-results { position: relative; }
.cat-results:focus { outline: none; }
.cat-results.is-loading { opacity: .5; pointer-events: none; transition: opacity .15s ease .05s; }
.cat-results.is-loading::after { content: ''; position: absolute; left: 50%; top: 60px; width: 36px; height: 36px; margin-left: -18px; border-radius: 50%;
    border: 3px solid rgba(27,106,229,.2); border-top-color: var(--green); animation: catSpin .7s linear infinite; }
@keyframes catSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cat-results.is-loading::after { animation: none; } }
/* «Показать N франшиз» — только на телефоне, внизу раскрытого фильтра */
.cat-apply { display: none; }

/* пустой результат */
.cat-empty {
    text-align: center; color: var(--ink-soft); background: var(--surface);
    border: 1px dashed var(--line); border-radius: var(--radius); padding: 48px 24px;
}
.cat-empty p { margin: 0 0 6px; }
.cat-empty a { color: var(--green-deep); }

/* SEO-текст */
.cat-seo { color: var(--ink-soft); line-height: 1.7; font-size: 15px; }
.cat-seo--top { margin-bottom: 22px; }
/* Версия 130: вводка на странице каталога, категории и подборки (.cat-intro) — колонкой до 760 px, крупнее;
   на экране две строки и кнопка «Читать дальше» в конце второй (класс .is-clamped ставит скрипт страницы —
   site_root/catalog/index.php; без скриптов текст виден целиком). Две строки = 2 × 1.6em. */
.cat-intro { max-width: 760px; font-size: 16px; line-height: 1.6; }
.cat-intro > :first-child { margin-top: 0; }
.cat-intro > :last-child { margin-bottom: 0; }
.cat-intro.is-clamped { position: relative; max-height: 3.2em; overflow: hidden; }
.cat-intro__more { font: inherit; font-family: var(--font-d); font-weight: 600; color: var(--green-deep); background: none; border: 0; padding: 0; cursor: pointer; }
.cat-intro__more:hover { color: var(--green); }
.cat-intro__more:focus-visible { outline: 3px solid rgba(27, 106, 229, .4); outline-offset: 2px; border-radius: 4px; }
/* в свёрнутом виде кнопка стоит в конце второй строки, текст под ней уходит в фон страницы */
.cat-intro.is-clamped .cat-intro__more { position: absolute; right: 0; bottom: 0; padding-left: 64px;
    background: linear-gradient(to right, rgba(243, 243, 244, 0), var(--bg) 48px); }
/* развёрнуто: «Свернуть» — отдельной строкой сразу под текстом (у абзаца перед кнопкой нижнего отступа нет) */
.cat-intro:not(.is-clamped) .cat-intro__more { display: block; margin-top: 6px; }
.cat-intro > :nth-last-child(2) { margin-bottom: 0; }
.cat-seo--bottom { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.cat-seo h2, .cat-seo h3 { font-family: var(--font-d); color: var(--ink); }
/* текст из редактора: картинки не шире колонки, широкая таблица прокручивается сама */
.cat-seo img { max-width: 100%; height: auto; }
.cat-seo table { display: block; overflow-x: auto; max-width: 100%; }

/* пагинация: шаблон system.pagenavigation «round» (.bx-pagination); страницы комплекта используют «modern» — стили в конце файла */
.bx-pagination { margin-top: 30px; }
.bx-pagination .bx-pagination-container ul { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; justify-content: center; }
.bx-pagination .bx-pagination-container li span,
.bx-pagination .bx-pagination-container li a {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
    color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px;
}
.bx-pagination .bx-pagination-container li a:hover { border-color: var(--green); color: var(--green-deep); }
.bx-pagination .bx-pagination-container li.bx-active span { background: var(--green); border-color: var(--green); color: #fff; }

/* кнопка «Фильтр и сортировка» — только на телефоне (см. ниже); показывает её скрипт страницы */
.cat-filterbar { display: none; }
@media (max-width: 560px) {
    /* телефон: фильтр свёрнут под кнопку — первая карточка видна на первом экране */
    .cat-filterbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 16px; }
    .cat-filterbar[hidden] { display: none; }
    .cat-filterbtn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-d); font-weight: 700; font-size: 14px; color: var(--ink);
        background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; cursor: pointer; box-shadow: var(--shadow); }
    .cat-filterbtn svg { color: var(--green-deep); }
    .cat-filterbtn i { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--green); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
    .cat-filterbtn[aria-expanded="true"] { border-color: var(--green); }
    .cat-filterbtn:focus-visible { outline: 3px solid rgba(27, 106, 229, .3); outline-offset: 1px; }
    .cat-filterbar__reset { color: var(--muted); font-size: 14px; text-decoration: none; }
    .cat-toolbar.is-collapsed { display: none; }
    .cat-toolbar { margin-top: 0; }
    .cat-toolbar .cat-reset { display: none; }                    /* «Сбросить» стоит рядом с кнопкой */
    .cat-toolbar { position: static; gap: 12px 10px; padding: 14px; }
    .cat-field { flex: 1 1 calc(50% - 5px); min-width: 0; }      /* списки — по два в ряд */
    .cat-field select { width: 100%; min-width: 0; }
    .cat-checks { width: 100%; }
    .cat-check { flex: 1 1 0; }
    .cat-check span { justify-content: center; }
    .cat-reset { margin: 0; }
    .cat-apply:not([hidden]) { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 12px 16px; border: 0; border-radius: 10px;
        background: var(--btn); color: #fff; font-family: var(--font-d); font-weight: 700; font-size: 15px; cursor: pointer; }
    .cat-apply:focus-visible { outline: 3px solid rgba(27, 106, 229, .35); outline-offset: 2px; }
    .cat-tags { margin-top: -4px; }
    .cat-tag { font-size: 13px; padding: 6px 9px 6px 12px; }
}

/* ============================================================
   ПОДБОРКИ (витрина /selection/) + РЕЙТИНГ (/rating/) + чипы.
   Грузятся вместе с catalog.css; используют общие токены.
   Версия 126: витрины /selection/ больше нет (подборки — страницы каталога), правила .sel-* ниже
   на страницах комплекта не используются; строка подборок в каталоге — .cat-sels.
   ============================================================ */

/* чипы (дублируют .bl-chip из blog.css — на случай, если blog.css не подключён) */
.bl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.bl-chip { font-family: var(--font-d); font-weight: 600; font-size: 14px; color: var(--ink-soft);
    background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; text-decoration: none; transition: .15s; }
.bl-chip:hover { border-color: var(--green); color: var(--green-deep); }
.bl-chip.is-active { background: var(--green); border-color: var(--green); color: #fff; }
/* рейтинг: строка основных категорий и под ней — подкатегории выбранной (кнопки поменьше) */
.bl-chips--tight { margin-bottom: 12px; }
.bl-chips--sub .bl-chip { font-size: 13px; padding-top: 6px; padding-bottom: 6px; }
.bl-chips--sub .bl-chip.is-active { background: var(--surface); border-color: var(--green); color: var(--green-deep); }
/* сворачивание длинной строки: лишние кнопки скрыты, пока строка свёрнута (класс ставит скрипт страницы) */
.bl-chips.is-collapsed .bl-chip--extra { display: none; }
.bl-chip--toggle { cursor: pointer; font-family: var(--font-d); border-style: dashed; color: var(--green-deep); }
.bl-chips--sub .bl-chip--toggle { font-size: 13px; }
.bl-chip--toggle[hidden] { display: none; }
@media (max-width: 560px) {
    /* Телефон: категории — одной строкой, которая листается пальцем от края до края экрана (раньше ссылки шли в
       5–6 рядов и вместе с фильтром занимали весь первый экран). Кнопка «Ещё N» здесь не нужна — видны все ссылки;
       выбранную категорию подводит к началу строки js/layout.js. */
    .cat-page .bl-chips { flex-wrap: nowrap; overflow-x: auto; margin-left: -20px; margin-right: -20px; padding: 4px 20px 6px;
        scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    /* версия 179: лента режется по краю экрана без полосы прокрутки — справа растворение, видно, что она листается.
       Только когда ленте есть куда листаться (.has-more ставит скрипт страницы каталога), иначе растворялся бы край
       последней кнопки короткой ленты */
    .cat-page .bl-chips.has-more { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), rgba(0,0,0,0) 100%);
        mask-image: linear-gradient(90deg, #000 calc(100% - 44px), rgba(0,0,0,0) 100%); }
    .cat-page .bl-chips::-webkit-scrollbar { display: none; }
    .cat-page .bl-chip { flex: 0 0 auto; white-space: nowrap; }
    .cat-page .bl-chips.is-collapsed .bl-chip--extra, .cat-page .bl-chips.is-collapsed .bl-chip--extra-m { display: inline-block; }
    .cat-page .bl-chip--toggle { display: none; }
    /* версия 179: ленты компактнее — кнопки 13,5 px и 34 px высотой, между лентами 8 px (было 15 px / 46 px / 26 px:
       две ленты и кнопка фильтра занимали ~190 px до первой карточки) */
    .cat-page .bl-chips { gap: 6px; margin-bottom: 8px; padding-bottom: 4px; }   /* верхние 4 px — выше, под рамку фокуса */
    .cat-page .bl-chip, .cat-page .bl-chips--sub .bl-chip { font-size: 13.5px; padding: 7px 12px; line-height: 1.3; }
    .cat-page .cat-quick__n { font-size: 11.5px; padding: 3px 6px; }
    .cat-page .cat-quick, .cat-page .cat-sels, .cat-page .cat-subcats, .cat-page .cat-maincats { margin-top: 0; }
    .cat-page .cat-sels__label { font-size: 12.5px; }
    /* включённый отбор или открытая подборка — первым в ленте, чтобы не искать его за краем экрана (подпись «Подборки:» ещё левее) */
    .cat-page .bl-chips .bl-chip.is-active { order: -1; }
    .cat-page .cat-sels__label { order: -2; }
    /* конец ленты: «Все N» разворачивает ленту в несколько рядов (скрипт страницы каталога ставит .is-open) */
    .cat-page .bl-chip--all { cursor: pointer; font-family: var(--font-d); border-style: dashed; color: var(--green-deep); background: var(--surface); order: 1; }
    .cat-page .bl-chip--all::after { content: ' ▾'; font-size: 11px; }
    .cat-page .bl-chips.is-open .bl-chip--all::after { content: ' ▴'; }
    .cat-page .bl-chips.is-open { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; }
    /* конец ленты отборов: «Все фильтры» со счётчиком открывает форму; кнопка «Фильтр и сортировка» в своей полосе тогда не нужна —
       в полосе остаётся только «Сбросить», и полоса видна, только когда есть что сбрасывать */
    .cat-page .bl-chip--filter { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-family: var(--font-d); color: var(--ink); background: var(--surface); order: -3; }   /* первой в ленте: видна без прокрутки */
    .cat-page .bl-chip--filter svg { color: var(--green-deep); }
    .cat-page .bl-chip--filter[aria-expanded="true"] { border-color: var(--green); color: var(--green-deep); }
    .cat-page .bl-chip--filter .cat-quick__n:not([hidden]) { background: var(--green); color: #fff; }
    .cat-page .cat-quick:not([hidden]) ~ .cat-filterbar { margin: 0 0 12px; justify-content: flex-end; }
    .cat-page .cat-quick:not([hidden]) ~ .cat-filterbar .cat-filterbtn { display: none; }
    .cat-page .cat-quick:not([hidden]) ~ .cat-filterbar:has(.cat-filterbar__reset[hidden]) { display: none; }
}
/* кнопки концов лент — только на телефоне */
@media (min-width: 561px) {
    .bl-chip--filter, .bl-chip--all { display: none !important; }
}

/* витрина подборок: две группы с заголовками; карточка — иконка набора сайта слева, справа название, пояснение и
   число франшиз (раньше карточки были без иконок, а у половины не было и пояснения — оставалась пустая плитка) */
.sel-h2 { font-family: var(--font-d); font-weight: 800; font-size: 22px; letter-spacing: -.01em; margin: 34px 0 16px; color: var(--ink); }
.sel-h2:first-of-type { margin-top: 8px; }
.sel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sel-card { display: flex; align-items: flex-start; gap: 16px; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
    text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.sel-card:hover { box-shadow: var(--shadow-h); transform: translateY(-2px); border-color: rgba(27,106,229,.35); }
.sel-card:focus-visible { outline: 3px solid rgba(27,106,229,.4); outline-offset: 2px; }
.sel-card__ico { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: var(--green-deep); background: rgba(27,106,229,.10); }
.sel-card__ico .ic { width: 28px; height: 28px; stroke-width: 1.5; }
.sel-card__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.sel-card__title { font-family: var(--font-d); font-weight: 700; font-size: 17px; line-height: 1.25; }
.sel-card__desc { color: var(--ink-soft); font-size: 14px; line-height: 1.45; }
.sel-card__count { margin-top: 3px; color: var(--green-deep); font-weight: 600; font-size: 13.5px; }
.sel-card__count b { font-family: var(--font-d); }

/* рейтинг (лидерборд) */
.rt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
/* строка: место · логотип · название и категория · вложения и окупаемость · балл портала, оценка и кнопка */
.rt-row { display: grid; grid-template-columns: 44px 72px minmax(0, 1fr) auto auto; align-items: center; gap: 18px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); }
.rt-row--top { border-color: rgba(240,164,49,.5); box-shadow: 0 6px 24px rgba(240,164,49,.12); }
.rt-pos { font-family: var(--font-d); font-weight: 800; font-size: 22px; color: var(--muted); text-align: center; }
.rt-row--top .rt-pos { color: var(--amber); }
.rt-logo { display: grid; place-items: center; width: 72px; height: 56px; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; text-decoration: none; }
/* Размер логотипа задан в пикселях, а не в процентах: .rt-logo — grid с автоматической строкой, и max-height: 100%
   в ней не действует — квадратный или вытянутый вверх логотип вырастал до ширины рамки и обрезался снизу. */
.rt-logo img { display: block; width: auto; height: auto; max-width: 60px; max-height: 44px; object-fit: contain; }
.rt-logo__ph { font-family: var(--font-d); font-weight: 800; font-size: 22px; color: var(--muted); }
.rt-main { min-width: 0; }
.rt-name { font-family: var(--font-d); font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.rt-name:hover { color: var(--green-deep); }
.rt-verified { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--amber); color: #fff; font-size: 11px; }
.rt-cat { margin-top: 3px; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-figs { display: flex; gap: 8px; }
.rt-figs span { display: flex; flex-direction: column; width: 148px; }
.rt-end { display: flex; align-items: center; gap: 18px; }
/* балл портала: число и полоска до 100 */
.rt-score { display: flex; flex-direction: column; gap: 6px; width: 104px; }
.rt-score__n { display: flex; align-items: baseline; gap: 6px; }
.rt-score__n b { font-family: var(--font-d); font-weight: 800; font-size: 22px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.rt-score__n i { font-style: normal; color: var(--muted); font-size: 12px; }
.rt-score__bar { display: block; height: 5px; border-radius: 3px; background: rgba(27,106,229,.14); overflow: hidden; }
.rt-score__bar u { display: block; height: 100%; border-radius: 3px; background: var(--green); }
.rt-row--top .rt-score__bar u { background: var(--amber); }
.rt-figs i { font-style: normal; color: var(--muted); font-size: 12px; }
.rt-figs b { font-family: var(--font-d); font-weight: 600; font-size: 14px; }
.rt-rating b { font-family: var(--font-d); font-weight: 700; font-size: 16px; color: var(--ink); white-space: nowrap; }
.rt-cta { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-d); font-weight: 600; font-size: 14px;
    border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; padding: 10px 18px; white-space: nowrap; transition: .15s; }
/* Кнопка строки — ещё и .hm-btn--ghost: под курсором она заливается тёмно-синим. Раньше здесь стоял тёмно-синий
   цвет текста — на такой же заливке надпись пропадала, оставалась одна точка иконки (исправлено в версии 107). */
.rt-cta:hover { border-color: var(--btn); color: #fff; }

@media (max-width: 1100px) { .rt-figs span { width: 124px; } }
@media (max-width: 920px) {
    .sel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* строка рейтинга — в три ряда: место, логотип и название; показатели; балл и кнопка */
    .rt-row { grid-template-columns: 30px 56px minmax(0, 1fr); gap: 12px 14px; padding: 14px 16px; }
    /* рамка логотипа — по ширине своей колонки (была 72px в колонке 56px и подходила вплотную к названию) */
    .rt-logo { width: 56px; height: 48px; }
    .rt-logo img { max-width: 46px; max-height: 38px; }
    .rt-pos { font-size: 19px; }
    .rt-figs { grid-column: 1 / -1; gap: 20px; }
    .rt-figs span { width: auto; }
    .rt-end { grid-column: 1 / -1; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); }
    .rt-end .rt-cta { margin-left: auto; }
}
@media (max-width: 560px) {
    .sel-grid { grid-template-columns: minmax(0, 1fr); }
    .sel-card { padding: 16px; gap: 14px; }
    .sel-card__ico { flex-basis: 46px; width: 46px; height: 46px; }
}

/* ============================================================
   ГОРОДА (витрина /region/). Грузится вместе с catalog.css.
   ============================================================ */
.city-subh { font-family: var(--font-d); font-weight: 700; font-size: 20px; margin: 8px 0 16px; }
.city-subh + .city-pop { margin-bottom: 36px; }

.city-pop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.city-pop__card { display: flex; flex-direction: column; gap: 4px; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow);
    text-decoration: none; color: inherit; transition: .15s; }
.city-pop__card:hover { box-shadow: var(--shadow-h); transform: translateY(-2px); border-color: rgba(27,106,229,.35); }
.city-pop__name { font-family: var(--font-d); font-weight: 700; font-size: 17px; }
.city-pop__count { color: var(--muted); font-size: 13px; }

.city-regions { columns: 3; column-gap: 32px; }
/* регионы не заполнены — один общий список: идёт в четыре колонки на белой панели */
.city-regions--flat { columns: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 24px; box-shadow: var(--shadow); }
.city-regions--flat .city-region { margin: 0; }
.city-regions--flat .city-list { display: block; columns: 4; column-gap: 40px; }
.city-regions--flat .city-list li { break-inside: avoid; border-bottom: 1px solid var(--line); padding: 3px 0; }
.city-region { break-inside: avoid; margin-bottom: 24px; }
.city-region__name { font-family: var(--font-d); font-weight: 700; font-size: 14px; color: var(--muted);
    letter-spacing: .02em; text-transform: uppercase; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.city-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.city-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.city-list a { color: var(--ink); text-decoration: none; font-size: 15px; padding: 4px 0; }
.city-list a:hover { color: var(--green-deep); }
.city-list i { font-style: normal; color: var(--muted); font-size: 12px; }

@media (max-width: 920px) {
    .city-pop { grid-template-columns: repeat(2, 1fr); }
    .city-regions { columns: 2; }
    .city-regions--flat { columns: auto; }
    .city-regions--flat .city-list { columns: 2; }
}
@media (max-width: 560px) {
    .city-pop { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* minmax: «Санкт-Петербург» на экране 320 px не раздвигает сетку */
    .city-pop__name { overflow-wrap: anywhere; }
    .city-regions { columns: 1; }
    .city-regions--flat { padding: 12px 16px; }
    .city-regions--flat .city-list { columns: 1; }
}

/* пагинация bitrix (шаблон system.pagenavigation «modern») — каталог, подборки, города */
.fr-pager { margin-top: 32px; }
.cat-page .modern-page-navigation { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cat-page .modern-page-navigation a,
.cat-page .modern-page-navigation span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px;
    border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.cat-page .modern-page-navigation a:hover { border-color: var(--green); color: var(--green-deep); }
.cat-page .modern-page-navigation .modern-page-current { background: var(--green); border-color: var(--green); color: #fff; }
.cat-page .modern-page-navigation .modern-page-title { border: 0; background: none; padding: 0 6px 0 0; min-width: 0; color: var(--muted); font-weight: 500; }
/* версия 179, телефон: без подписи «Страницы:», кнопки компактнее и по центру — раньше «14» и «След.» уходили на вторую
   строку к левому краю. Многоточие — без рамки. Под списком у страницы был двойной отступ (64 px своих + 64 px у
   подвала) — на телефоне свой отступ меньше. */
@media (max-width: 560px) {
    .cat-page { padding-bottom: 28px; }
    .fr-pager { margin-top: 24px; }
    .cat-page .modern-page-navigation { justify-content: center; gap: 6px; }
    .cat-page .modern-page-navigation .modern-page-title { display: none; }
    .cat-page .modern-page-navigation a, .cat-page .modern-page-navigation span { min-width: 38px; height: 38px; padding: 0 9px; font-size: 13.5px; }
    .cat-page .modern-page-navigation .modern-page-dots { min-width: 24px; padding: 0 2px; border: 0; background: none; color: var(--muted); }
}

/* «Рекомендуемые» (ручные промо категории и PRO/Premium): первый ряд списка с заголовком, от остальных карточек
   отделён тонкой чертой. Раньше блок стоял в белой рамке во всю ширину — с одной–двумя карточками рамка была пустой. */
.cat-featured { margin: 4px 0 26px; padding: 0 0 26px; border-bottom: 1px solid var(--line); }
.cat-featured__h { display: flex; align-items: center; gap: 8px; font-family: var(--font-d); font-weight: 800; font-size: 20px; letter-spacing: -.01em; margin: 0 0 16px; color: var(--ink); }
.cat-featured__h .ic { color: var(--green-deep); }

/* FAQ категории (свойство FAQ) */
/* «Статьи по теме» на странице категории (карточки статей — article_card из blog.css) */
.cat-articles { margin-top: 40px; }
.cat-articles__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.cat-articles__h { font-family: var(--font-d); font-weight: 800; font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -.01em; margin: 0; color: var(--ink); }
.cat-articles__all { color: var(--green-deep); font-weight: 600; text-decoration: none; white-space: nowrap; }
.cat-articles__all:hover { color: var(--green); }

.cat-faq { margin-top: 40px; }
.cat-faq__h { font-family: var(--font-d); font-weight: 800; font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -.01em; margin: 0 0 16px; color: var(--ink); }
.cat-faq__item { border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; margin-bottom: 10px; background: var(--surface); }
.cat-faq__item summary { cursor: pointer; font-family: var(--font-d); font-weight: 600; padding: 12px 0; list-style: none; }
.cat-faq__item summary::-webkit-details-marker { display: none; }
.cat-faq__item[open] summary { color: var(--green-deep); }
.cat-faq__a { padding: 0 0 14px; color: var(--ink-soft); line-height: 1.6; }
.cat-faq__a > :first-child { margin-top: 0; }
.cat-faq__a > :last-child { margin-bottom: 0; }
.cat-faq__loose { margin-bottom: 14px; color: var(--ink-soft); line-height: 1.6; }

/* Версия 128: в списках каталога (каталог, категории, подборки, страницы городов, результат подбора) — три карточки
   в ряд. Версия 129: число колонок задано явно — от 768 px три (раньше третья появлялась с 826 px: блок
   «Рекомендуемые» из трёх карточек на планшете стоял «две и одна»), 561–767 px — две. Телефон (до 560 px) не
   затронут: там карточки идут в одну колонку (css/home.css). */
@media (min-width: 561px) {
    /* dense: если плитка-полоса оказалась не после целого ряда (страница из кеша, собранная до обновления, —
       плитки в ней после 8-й и 16-й карточки), место перед полосой занимают следующие карточки, пустот нет */
    .cat-page .fr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; }
}
@media (min-width: 768px) {
    .cat-page .fr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* «Рекомендуемые» из четырёх карточек — одним рядом, а не «три и одна». С версии 129 мест в блоке три (или шесть);
   четыре карточки бывают, когда мест шесть, а платных франшиз в категории четыре. */
@media (min-width: 1000px) {
    .cat-page .cat-featured--n4 .fr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* «Рекомендуемые» из трёх карточек там, где колонок две (561–767 px): третья карточка осталась бы одна во втором
   ряду. Скрывать её нельзя — место оплачено, — поэтому ряд листается вбок: видны две карточки и край третьей. */
@media (min-width: 561px) and (max-width: 767.98px) {
    .cat-page .cat-featured--n3 .fr-grid { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
        margin: 0 -20px; padding: 4px 20px 14px; scroll-padding: 0 20px; scrollbar-width: thin; }
    .cat-page .cat-featured--n3 .fr-grid > .fr-card { flex: 0 0 calc((100% - 18px) / 2.2); scroll-snap-align: start; }
}

/* подкатегории на странице родительской категории и основные категории на странице всего каталога
   (чипы .bl-chip — выше в этом файле) */
.cat-subcats, .cat-maincats { margin: 4px 0 0; }

/* ============================================================
   Версия 95: строка под заголовком, быстрые отборы, плитки в сетке карточек.
   Разметка — site_root/catalog/index.php и шаблон списка franchise_card; данные — App\Franchise\CatalogView.
   ============================================================ */

/* «116 франшиз · вложения от 30 000 ₽ · обновлено 5 октября» */
.cat-count__more { white-space: nowrap; }
/* Версия 130: строка под заголовком выключена (catalog.head_line) — число франшиз остаётся только для экранного
   диктора: он читает его, когда список обновился фильтром. На экране его нет и места оно не занимает. */
.cat-pagehead .cat-count.cat-count--sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 560px) { .cat-count { line-height: 1.6; } }

/* быстрые отборы: ярлыки с числом франшиз; включённый — залит */
.cat-quick { margin: 10px 0 0; }
.cat-quick[hidden] { display: none; }
.cat-quick__chip { display: inline-flex; align-items: center; gap: 7px; }
.cat-quick__n { font-style: normal; font-weight: 600; font-size: 12.5px; line-height: 1; color: var(--muted);
    background: var(--bg); border-radius: 999px; padding: 4px 7px; }
.cat-quick__chip:hover .cat-quick__n { color: var(--green-deep); }
.cat-quick__chip.is-active .cat-quick__n { background: rgba(255, 255, 255, .22); color: #fff; }
.cat-quick__chip:focus-visible, .cat-quick__all:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.cat-quick__all { border-style: dashed; color: var(--green-deep); }

/* Версия 126: подборки «под ситуацию» («Для начинающих», «Домашний бизнес»…) — строка ссылок под быстрыми отборами
   на странице всего каталога и на странице такой подборки. Кнопки поменьше (.bl-chips--sub), впереди подпись. */
.cat-sels { margin: 10px 0 0; align-items: center; }
.cat-sels__label { font-family: var(--font-d); font-weight: 600; font-size: 13px; color: var(--ink-soft); margin-right: 2px; }
@media (max-width: 560px) { .cat-sels__label { flex: 0 0 auto; white-space: nowrap; } }

/* плитка между карточками: не похожа ни на карточку, ни на рекламный баннер. С версии 129 и в сетке, и в списке
   широких карточек это полоса во всю ширину (раскладка полосы — css/home.css, .fr-grid > .fr-tile) */
.fr-tile { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 0;
    padding: 22px 20px; border-radius: var(--radius); border: 1px dashed #b9cdf5; background: #f5f9ff; color: var(--ink); }
.fr-tile--request { background: var(--surface); border-color: var(--line); border-style: solid; }
.fr-tile__h { font-family: var(--font-d); font-weight: 800; font-size: 19px; line-height: 1.25; letter-spacing: -.01em; }
.fr-tile__text { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.fr-tile__btn { margin-top: 6px; text-align: center; }
@media (max-width: 560px) {
    .fr-tile { padding: 16px; gap: 6px; }
    .fr-tile__h { font-size: 17px; }
}
.fr-tile--request .fr-tile__btn { box-shadow: inset 0 0 0 1px var(--line); }
.fr-tile--request .fr-tile__btn:hover { box-shadow: inset 0 0 0 1px var(--green); transform: none; color: var(--green-deep); }

/* ============================================================
   ВЕРСИЯ 96
   ============================================================ */
/* Рейтинг: блок «Как считается рейтинг» под списком — части балла и их вес из формулы (App\Franchise\RankScore::publicParts).
   Разметка — /rating/index.php. */
.rt-how { max-width: 860px; }
.rt-how a { color: var(--green-deep); }
.rt-how__list { list-style: none; margin: 14px 0 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.rt-how__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 12px 18px; line-height: 1.45; }
.rt-how__item + .rt-how__item { border-top: 1px solid var(--line); }
.rt-how__item b { font-family: var(--font-d); font-weight: 700; font-size: 15px; color: var(--ink); }
.rt-how__item i { align-self: start; font-style: normal; font-family: var(--font-d); font-weight: 700; font-size: 15px; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rt-how__item span { grid-column: 1 / -1; font-size: 14px; color: var(--ink-soft); }
.rt-how__note { font-size: 14px; margin: 14px 0 0; }

/* Каталог: шесть списков фильтра (добавились «Паушальный взнос» и «Роялти») — на широком экране в одну строку */
@media (min-width: 561px) { .cat-field select { min-width: 160px; } }
.cat-field__wide { font-style: normal; }
/* телефон: списки по два в ряд, подпись «Паушальный взнос» в половину экрана не помещается — остаётся «Взнос» */
@media (max-width: 560px) { .cat-field__wide { display: none; } }
@media (max-width: 1240px) and (min-width: 561px) {
    .cat-toolbar { gap: 12px; }
    .cat-field { flex: 1 1 150px; min-width: 0; max-width: 230px; }   /* список, перенесённый на вторую строку, не растягивается на всю ширину */
    .cat-field select { width: 100%; min-width: 0; }
}


/* ============================================================
   ВЕРСИЯ 108: заголовки страницы каталога с выделенным словом (общие классы .hd-eyebrow и .hd-accent — css/home.css).
   Заголовок страницы крупнее, строка «N франшиз · вложения от … · обновлено …» стоит под ним, а не рядом.
   Только у шапки с модификатором --hd (страница каталога): рейтинг, города, подборки и подбор берут те же классы
   .cat-pagehead / .cat-h1 и остаются прежними.
   ============================================================ */
.cat-pagehead--hd { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 0; }
.cat-pagehead--hd .cat-h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -.03em; }
.cat-pagehead--hd .cat-count { margin-top: 12px; color: var(--ink-soft); font-size: 16px; line-height: 1.5; }
/* «Рекомендуемые франшизы»: без значка, того же размера, что остальные заголовки блоков страницы */
.cat-featured__h { display: block; font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -.02em; }

/* ============================================================
   ВЕРСИЯ 131: ФИЛЬТР ОДНОЙ СТРОКОЙ (catalog.filter_line; разметка и скрипт — site_root/catalog/index.php)
   На экране шире телефона вместо ряда ярлыков быстрых отборов и панели фильтра под ним — одна строка: списки
   фильтра в виде ярлыков («Бюджет», «Паушальный взнос», «Роялти», «Окупаемость»), отметки «Новинки» и «Проверенные»
   и сортировка справа. Первый ряд карточек стоит выше примерно на 130 px.
   .cat-toolbar--line  — форма в этом режиме (класс ставит сервер);
   .cat-toolbar--pills — списки показаны ярлыками (класс ставит скрипт формы; без скриптов форма остаётся панелью);
   .cat-quick--m       — ряд ярлыков быстрых отборов, который остаётся только на телефоне.
   Телефон (до 560 px) не меняется: ряд ярлыков листается, форма свёрнута под кнопку «Фильтр и сортировка».
   ============================================================ */
.cat-toggles { display: contents; }
.cat-toolbar--line:not(.cat-toolbar--pills) .cat-reset { margin-left: 0; }   /* без скриптов: за «Сбросить» стоит сортировка */
.cat-toggles[hidden] { display: none; }
.cat-field__val { display: none; }
@media (max-width: 560px) {
    .cat-toggles { display: none; }                 /* на телефоне эти ярлыки стоят в ряду над формой */
}
@media (min-width: 561px) {
    .cat-page .cat-quick--m { display: none; }
    /* условия, которые видны в самой строке фильтра, ярлыками над списком не повторяются */
    .cat-tag--form, .cat-tags--form { display: none; }

    .cat-toolbar--pills {
        /* поля 8 px сверху и снизу — фон закреплённой строки; внешние отступы уменьшены на эту величину */
        align-items: center; gap: 6px; margin: -6px 0 6px; padding: 8px 0;
        background: var(--bg); border: 0; border-radius: 0;
        /* строка закреплена при прокрутке: фон страницы закрывает карточки под ней, по бокам — на ширину поля страницы (20 px), чтобы закрыть и тень карточек */
        box-shadow: -20px 0 0 var(--bg), 20px 0 0 var(--bg);
        top: var(--st-top, 0px);
    }
    /* мягкий край под закреплённой строкой; не выше нижнего отступа строки — пока она не закреплена, под ним ничего нет */
    .cat-toolbar--pills::after { content: ''; position: absolute; left: -20px; right: -20px; top: 100%; height: 6px;
        background: linear-gradient(to bottom, var(--bg), rgba(243, 243, 244, 0)); pointer-events: none; }

    /* список-ярлык: название поля и выбранное значение; сам список лежит поверх невидимым и открывается нажатием */
    .cat-toolbar--pills .cat-field { position: relative; flex: 0 0 auto; max-width: 100%; flex-direction: row; align-items: center; gap: 5px;
        height: 42px; box-sizing: border-box; padding: 0 31px 0 14px; border: 1px solid var(--line); border-radius: 999px;
        background: var(--surface) url("data:image/svg+xml,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a8499' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center;
        font-family: var(--font-d); font-weight: 600; font-size: 14px; color: var(--ink-soft); white-space: nowrap; cursor: pointer; transition: .15s; }
    .cat-toolbar--pills .cat-field > span { font: inherit; color: inherit; letter-spacing: 0; text-transform: none; }
    .cat-toolbar--pills .cat-field__val { display: inline; font-weight: 700; color: var(--green-deep); overflow: hidden; text-overflow: ellipsis; }
    .cat-toolbar--pills .cat-field__val:empty { display: none; }
    .cat-toolbar--pills .cat-field select { position: absolute; left: 0; top: 0; width: 100%; height: 100%; min-width: 0; margin: 0; padding: 0 14px; border: 0; border-radius: 999px;
        background: none; opacity: 0; cursor: pointer; font-size: 15px; }
    .cat-toolbar--pills .cat-field:hover { border-color: var(--green); color: var(--green-deep); }
    .cat-toolbar--pills .cat-field:focus-within { outline: 3px solid rgba(27, 106, 229, .3); outline-offset: 1px; }
    /* значение выбрано: «Бюджет: до 500 тыс ₽» */
    .cat-toolbar--pills .cat-field.is-set { border-color: var(--green); background-color: #eef4ff; color: var(--green-deep); }
    .cat-toolbar--pills .cat-field.is-set > span::after { content: ':'; }
    /* с выбранным значением название короче: «Взнос: до 300 тыс ₽» — строка дольше остаётся одной */
    .cat-toolbar--pills .cat-field.is-set .cat-field__wide { display: none; }
    .cat-toolbar--pills .cat-field.is-set > span::first-letter { text-transform: uppercase; }
    /* сортировка — справа, в ярлыке только выбранный порядок */
    .cat-toolbar--pills .cat-field--sort { margin-left: auto; }
    .cat-toolbar--pills .cat-field--sort > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .cat-toolbar--pills .cat-field--sort .cat-field__val { font-weight: 600; color: var(--ink); }

    /* «Новинки» и «Проверенные» — те же ярлыки со счётчиком, одной высоты со списками */
    .cat-toolbar--pills .cat-quick__chip { height: 42px; box-sizing: border-box; padding: 0 14px; }
    /* галочки, если они оставлены в форме настройкой catalog.filter_fields, — той же формы */
    .cat-toolbar--pills .cat-check span { height: 42px; border-radius: 999px; background: var(--surface); font-family: var(--font-d); font-weight: 600; font-size: 14px; color: var(--ink-soft); }
    /* «Сбросить» — сразу за условиями, перед сортировкой (в разметке сортировка стоит последней) */
    .cat-toolbar--pills .cat-reset { margin-left: 6px; }
    /* ярлыки условий, которых нет в строке (город из ссылки): отступ рассчитан на прежнюю панель — здесь он не нужен */
    .cat-toolbar--pills ~ .cat-results .cat-tags { margin-top: 4px; }
}
/* Планшет и узкое окно (до 1099 px): «Взнос» вместо «Паушальный взнос» — без условий строка остаётся одной от 980 px */
@media (min-width: 561px) and (max-width: 1099px) {
    .cat-toolbar--pills .cat-field__wide { display: none; }
    .cat-toolbar--pills .cat-field > span::first-letter { text-transform: uppercase; }
}


/* ============================================================
   РЕЙТИНГ (/rating/), версия 132: фильтр из трёх списков, раскрывающаяся строка с кнопкой заявки,
   блок «Рейтинги по категориям» под списком. Разметка — /rating/index.php и шаблон news.list `rating_row`
   (template.php, details.php). Правила прежней строки (.rt-row без .rt-row--x) — выше, в разделе «рейтинг».
   ============================================================ */

/* --- фильтр: «Категория», «Инвестиции», «Сортировать» --- */
.rt-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; background: var(--surface); border: 1px solid var(--line);
    border-radius: 14px; padding: 16px 18px; margin: 6px 0 22px; box-shadow: var(--shadow); }
.rt-field { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rt-field > span { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.rt-field select { width: 100%; min-width: 0; font-family: inherit; font-size: 15px; color: var(--ink); font-weight: 500;
    border: 1px solid var(--line); border-radius: 10px; padding: 11px 38px 11px 14px; background: #fbfcfe; appearance: none; cursor: pointer;
    text-overflow: ellipsis;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a8499' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; }
.rt-field select:hover { border-color: rgba(27, 106, 229, .45); }
.rt-field select:focus { outline: none; border-color: var(--green); }
.rt-field select:focus-visible { outline: 3px solid rgba(27, 106, 229, .3); outline-offset: 1px; }
/* «Показать» нужна только без скриптов: со скриптами выбор в списке сразу открывает страницу (класс ставит скрипт) */
.rt-filter__go { flex: 0 0 auto; padding: 11px 20px; }
.rt-filter.is-js .rt-filter__go { display: none; }
/* значение выбрано стрелками с клавиатуры: страница ещё не открыта, кнопка появляется (класс ставит скрипт) */
.rt-filter.is-js.is-pending .rt-filter__go { display: inline-flex; }
.rt-filter__reset { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--ink-soft); font-size: 14px; }
.rt-filter__reset:hover { color: var(--green-deep); }
@media (max-width: 560px) {
    /* телефон: три строки «подпись — список». Списки по два в ряд обрезали бы «Сначала недорогие» и длинные названия
       категорий, а подписи над списками делали бы фильтр выше */
    .rt-filter { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 8px; padding: 12px 14px; margin-bottom: 16px; }
    .rt-field { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 10px; }
    .rt-field > span { flex: 0 0 96px; }
    .rt-field select { flex: 1 1 auto; width: auto; min-height: 44px; }
    .rt-filter__reset { min-height: 0; justify-content: center; padding: 4px 0; }
}
@media (max-width: 380px) {
    /* узкий телефон: рядом с подписью список обрезал бы «Сначала недорогие» — подпись встаёт над списком */
    .rt-field { flex-direction: column; align-items: stretch; gap: 4px; }
    .rt-field > span { flex: 0 0 auto; }
}

/* --- строка: место · логотип · название · инвестиции и точки · балл · «Подробнее» · кнопка заявки --- */
/* длинное слово в названии («программирования» на телефоне 320 px) переносится, а не выходит за строку */
.rt-row--x .rt-name { overflow-wrap: anywhere; }
.rt-row--x .rt-figs__pts, .rt-row--x .rt-figs__pb { width: 100px; }
.rt-row--x .rt-end { gap: 16px; }
.rt-row--x .rt-score { width: 96px; }
/* «Подробнее» / «Свернуть»: ссылка на страницу франшизы, со скриптами — переключатель блока под строкой.
   Ширина задана: у «Свернуть» текст короче, без неё кнопка заявки сдвигалась бы при раскрытии. */
.rt-more { display: inline-flex; align-items: center; gap: 6px; min-width: 104px; min-height: 44px; font-family: var(--font-d); font-weight: 600; font-size: 14px;
    color: var(--green-deep); text-decoration: none; white-space: nowrap; cursor: pointer; border-radius: 6px; }
.rt-more:hover { color: var(--btn-deep); }
.rt-more:focus-visible { outline: 3px solid rgba(27, 106, 229, .4); outline-offset: 2px; }
.rt-more__t { border-bottom: 1px dashed currentColor; line-height: 1.25; }
.rt-more__t--on, .rt-more[aria-expanded="true"] .rt-more__t--off { display: none; }
.rt-more[aria-expanded="true"] .rt-more__t--on { display: inline; }
.rt-more svg { flex: 0 0 auto; transition: transform .2s ease; }
.rt-more[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .rt-more svg { transition: none; } }
/* кнопка заявки — та же кнопка из двух частей, что у карточки каталога (.fr-cta, css/home.css); ширина одна у всех
   строк, чтобы баллы и «Подробнее» соседних строк стояли в одну колонку */
.rt-pick { flex: 0 0 auto; box-sizing: border-box; width: 192px; min-height: 44px; border-radius: 9px; }
.rt-pick .fr-cta__btn { font-family: var(--font-d); white-space: nowrap; padding-top: 0; padding-bottom: 0; }
.rt-row--x .fr-cta:hover { background: var(--btn-deep); }
/* франшиза отмечена для общей заявки (класс is-picked ставит js/cards.js) — как у карточки каталога */
.rt-row--x.is-picked { border-color: #d9480f; }
.rt-row--x.is-picked .fr-cta, .rt-row--x.is-picked .fr-cta:hover { background: #d9480f; border-color: #d9480f; }
.rt-row--x.is-picked .fr-cta__box .fr-cta__plus { display: none; }
.rt-row--x.is-picked .fr-cta__box .fr-cta__check { display: block; }
.rt-row--x.is-picked .fr-cta__box { background: rgba(110, 30, 0, .25); }
.rt-row--x.is-picked .fr-cta__box:hover { background: rgba(110, 30, 0, .45); }
.rt-row--x.is-picked .fr-cta__box::after { content: attr(data-tip-on); }
/* заявки по карточке не принимаются — на месте кнопки ссылка «О франшизе» */
.rt-pick--link { padding: 0 14px; font-size: 14px; }

/* --- раскрытый блок: описание, два столбца показателей, действия --- */
.rt-details { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 16px; margin: -2px -20px -16px; padding: 18px 20px 20px; border-top: 1px solid var(--line); }
.rt-details[hidden] { display: none; }
.rt-details__text { margin: 0; max-width: 920px; font-size: 15px; line-height: 1.55; color: var(--ink); }
.rt-details__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rt-details__box { margin: 0; padding: 6px 18px; background: var(--bg); border-radius: 12px; }
.rt-details__box > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; }
.rt-details__box > div + div { border-top: 1px solid rgba(26, 43, 74, .07); }
.rt-details__box dt { color: var(--ink-soft); font-size: 14px; }
.rt-details__box dd { margin: 0; font-family: var(--font-d); font-weight: 700; font-size: 14px; color: var(--ink); white-space: nowrap; }
.rt-details__box .is-empty dd { font-weight: 500; color: var(--muted); }
.rt-details__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rt-details__page { min-height: 44px; box-sizing: border-box; padding: 0 18px; font-size: 14px; }
/* «К сравнению» и «В избранное»: подпись меняется, когда франшиза уже добавлена (класс is-active ставит js/wishlist.js) */
.rt-act { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; background: var(--surface); border: 1px solid #cfd5e1;
    border-radius: 10px; font-family: var(--font-b); font-weight: 600; font-size: 14px; color: var(--ink); cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background .15s ease; }
.rt-act:hover { border-color: var(--green); color: var(--green-deep); }
.rt-act:focus-visible { outline: 3px solid rgba(27, 106, 229, .4); outline-offset: 2px; }
.rt-act svg { flex: 0 0 auto; }
.rt-act__on, .rt-act.is-active .rt-act__off { display: none; }
.rt-act.is-active .rt-act__on { display: inline; }
.rt-act.is-active { background: #eef4ff; border-color: var(--green); color: var(--green-deep); }
.rt-details__rating { margin-left: auto; font-family: var(--font-d); font-weight: 700; font-size: 15px; color: var(--ink); white-space: nowrap; }
.rt-details__rating i { font-style: normal; font-family: var(--font-b); font-weight: 400; font-size: 13px; color: var(--muted); }

/* --- ширина окна до 1100 px: «Точек в сети» остаётся только в раскрытом блоке, строка плотнее --- */
@media (max-width: 1100px) {
    .rt-row--x { grid-template-columns: 40px 60px minmax(0, 1fr) auto auto; gap: 14px; }
    .rt-row--x .rt-logo { width: 60px; height: 50px; }
    .rt-row--x .rt-logo img { max-width: 50px; max-height: 40px; }
    .rt-row--x .rt-figs__pts { display: none; }
    .rt-row--x .rt-figs span { width: 132px; }
    /* сортировка по окупаемости: в строке остаётся она, инвестиции — в раскрытом блоке */
    .rt-row--x .rt-figs--pb span:first-child { display: none; }
    .rt-row--x .rt-end { gap: 12px; }
    .rt-row--x .rt-score { width: 84px; }
    .rt-pick { width: 184px; }
    .rt-details { margin-top: 2px; }
}
/* --- до 960 px строка в три ряда: место, логотип и название; показатели; балл, «Подробнее» и кнопка --- */
@media (max-width: 960px) {
    .rt-row--x { grid-template-columns: 30px 56px minmax(0, 1fr); gap: 12px 14px; padding: 14px 16px; }
    .rt-row--x .rt-logo { width: 56px; height: 48px; }
    .rt-row--x .rt-logo img { max-width: 46px; max-height: 38px; }
    .rt-row--x .rt-pos { font-size: 19px; }
    .rt-row--x .rt-figs { grid-column: 1 / -1; gap: 20px; }
    .rt-row--x .rt-figs span, .rt-row--x .rt-figs__pts, .rt-row--x .rt-figs--pb span:first-child { display: flex; width: auto; }
    .rt-row--x .rt-end { grid-column: 1 / -1; flex-wrap: wrap; justify-content: flex-start; gap: 10px 16px; padding-top: 12px; border-top: 1px solid var(--line); }
    .rt-row--x .rt-score { width: 104px; }
    .rt-row--x .rt-score--none { display: none; }
    .rt-row--x .rt-pick { margin-left: auto; width: 192px; }
    .rt-details { margin: 0 -16px -14px; padding: 16px 16px 18px; }
}
@media (max-width: 560px) {
    /* телефон: балл слева, «Подробнее» справа, кнопка заявки — во всю ширину отдельной строкой */
    .rt-row--x .rt-more { margin-left: auto; min-width: 0; }
    .rt-row--x .rt-pick { flex: 1 1 100%; width: auto; margin-left: 0; min-height: 46px; }
    .rt-details__text { font-size: 14.5px; }
    .rt-details__cols { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .rt-details__box { padding: 4px 14px; }
    .rt-details__page { flex: 1 1 100%; }
    .rt-act { flex: 1 1 0; justify-content: center; padding: 0 10px; white-space: nowrap; }
    .rt-details__rating { flex: 1 1 100%; margin-left: 0; }
}

/* --- «Рейтинги по категориям» под списком: те же кнопки категорий, что раньше стояли над ним --- */
.rt-cats { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.rt-cats__h { font-family: var(--font-d); font-weight: 800; font-size: 22px; letter-spacing: -.01em; margin: 0 0 16px; color: var(--ink); }
.rt-cats .bl-chips:last-of-type { margin-bottom: 0; }

/* End */
/* /bitrix/templates/franchise/css/home.css?179217972194288 */
/* /bitrix/templates/franchise/css/catalog.css?179217972064490 */
