

/* 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/tariffs.css?17921797219149*/
/* ============================================================
   Тарифы размещения: таблица (include/tariff_table.php),
   баннерный слот Premium (include/banner_slot.php),
   отметки тарифа, форма общей заявки «подберите франшизу»
   (include/request_form.php, .rq-*). Путь: /local/templates/{ШАБЛОН}/css/tariffs.css
   ============================================================ */

/* --- таблица тарифов --- */
.tf-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tf-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; font-size: 15px; min-width: 560px; }
.tf-table th, .tf-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.tf-table tbody tr:last-child th, .tf-table tbody tr:last-child td { border-bottom: 0; }
.tf-table__feature { text-align: left !important; font-weight: 500; color: var(--ink); width: 44%; }
.tf-table__feature small { display: block; font-weight: 400; font-size: 13.5px; color: var(--ink-soft); margin-top: 3px; line-height: 1.4; }
.tf-table thead th { background: var(--bg); font-family: var(--font-d); font-weight: 700; font-size: 15px; }
.tf-table__plan--premium .tf-plan__name { color: var(--green-deep); }
.tf-plan__badge { display: block; margin-top: 4px; font-size: 11px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
  color: var(--green-deep); }
.tf-plan__badge--expired { color: #b45309; }
.tf-table td.is-current, .tf-table th.is-current { background: rgba(27, 106, 229, .06); }
.tf-yes { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 6px;
  background: #dcfce7; color: #15803d; font-weight: 700; font-size: 14px; }
.tf-top { color: var(--amber); font-size: 20px; line-height: 1; }
.tf-no { color: var(--muted); }
.tf-txt { color: var(--ink-soft); }
.tf-table__prices td b { font-family: var(--font-d); font-size: 16px; }
.tf-btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-d); font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: 10px; text-decoration: none; border: 1.5px solid rgba(13,75,160,.45); color: var(--btn);
  background: #fff; transition: .18s; white-space: nowrap; cursor: pointer; }
.tf-btn:hover { background: var(--btn); color: #fff; border-color: var(--btn); }
.tf-btn--accent { background: var(--btn); color: #fff; border-color: var(--btn); }
.tf-btn--accent:hover { background: var(--btn-deep); }
.tf-btn--muted { background: var(--bg); color: var(--muted); border-color: var(--line); cursor: default; }
.tf-btn--muted:hover { background: var(--bg); color: var(--muted); border-color: var(--line); }
.tf-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.tf-legend .tf-yes { width: 18px; height: 18px; font-size: 12px; margin-right: 4px; }
.tf-legend .tf-top { font-size: 16px; margin-right: 4px; }

/* --- баннерный слот Premium --- */
.tf-banner { margin: 28px 0; }
.tf-banner__link { display: block; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow); }
/* широкий слот — рамка 4:1; баннер другой пропорции вписан целиком, поля — его размытая копия (--cover ставит слот) */
.tf-banner__link { aspect-ratio: 4 / 1; background: #0f1d33; }
.tf-banner__link::before { content: ''; position: absolute; inset: -24px; background: var(--cover, none) center / cover no-repeat; filter: blur(20px) brightness(.8); }
.tf-banner__link img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 700px) { .tf-banner__link { aspect-ratio: 5 / 2; } }
/* слот в боковой колонке — картинка в натуральную высоту, как раньше */
.tf-banner--aside .tf-banner__link { aspect-ratio: auto; background: var(--surface); }
.tf-banner--aside .tf-banner__link::before { content: none; }
.tf-banner--aside .tf-banner__link img { height: auto; }
.tf-banner__mark { position: absolute; top: 10px; right: 12px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; background: rgba(26, 43, 74, .55); padding: 3px 8px; border-radius: 6px; }
.tf-banner--aside { margin: 20px 0 0; }

/* --- отметка Premium на карточке в списке --- */
.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; }

/* --- форма общей заявки «Не нашли подходящую франшизу?» (include/request_form.php) --- */
.rq { margin: 36px 0; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); scroll-margin-top: 90px; }
.rq__head { max-width: 640px; margin-bottom: 22px; }
.rq__h { font-family: var(--font-d); font-weight: 700; font-size: 24px; line-height: 1.25; margin: 0 0 8px; color: var(--ink); }
.rq__sub { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.rq-form { display: grid; gap: 16px; }
.rq-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.rq-field { display: grid; gap: 6px; min-width: 0; }
.rq-field--wide { grid-column: 1 / -1; }
.rq-field__label { font-size: 13px; font-weight: 600; color: var(--ink); }
.rq-field__label small { font-weight: 400; color: var(--muted); }
.rq-input { font-family: inherit; font-size: 15px; color: var(--ink); width: 100%; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--bg); outline: none; resize: vertical; transition: .15s; }
.rq-input:focus { border-color: var(--green); background: var(--surface); }
.rq-select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7280' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.rq-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--muted); }
.rq-consent input { margin-top: 2px; flex: 0 0 auto; }
.rq-consent a { color: var(--green-deep); }
.rq-form__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.rq-form__submit { padding: 13px 26px; font-size: 15px; }
.rq-form__note { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); max-width: 360px; }
/* состояние «успех» (подменяется request.js) */
.rq-ok { text-align: center; padding: 28px 16px; font-family: var(--font-d); font-weight: 600; font-size: 19px; color: var(--ink); line-height: 1.5; }
.rq-ok span { display: block; font-family: var(--font-b); font-weight: 400; font-size: 15px; color: var(--ink-soft); margin-top: 8px; }

/* Телефон: название возможности — строкой над значениями, три тарифа делят ширину поровну. Раньше таблица
   прокручивалась вбок, первая колонка занимала почти половину — на экране был один Standard, а «Ваш тариф»
   (PRO или Premium) оставался за краем. */
@media (max-width: 720px) {
  .tf-table { display: block; min-width: 0; }
  .tf-table thead, .tf-table tbody { display: block; }
  .tf-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .tf-table tbody tr:last-child { border-bottom: 0; }
  .tf-table th, .tf-table td { border-bottom: 0; min-width: 0; }
  .tf-table thead .tf-table__feature, .tf-table__cta td:first-child { display: none; }
  .tf-table tbody .tf-table__feature { grid-column: 1 / -1; width: auto; padding-bottom: 2px; font-size: 13.5px; font-weight: 600; }
  .tf-table tbody td { padding-top: 6px; }
  .tf-txt, .tf-table__prices td b { font-size: 13px; overflow-wrap: anywhere; }
  .tf-table th, .tf-table td { padding: 11px 10px; font-size: 14px; }
  .tf-table__feature small { display: none; }
  .tf-btn { padding: 9px 12px; font-size: 13px; }
  .rq { padding: 22px 18px; margin: 28px 0; }
  .rq__h { font-size: 20px; }
  .rq-form__grid { grid-template-columns: 1fr; }
  .rq-form__actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .rq-form__submit { width: 100%; padding: 13px 16px; font-size: 15px; }
  .rq-form__note { max-width: none; text-align: center; }
}

/* End */


/* Start:/bitrix/templates/franchise/css/blog.css?179217972024501*/
/* ============================================================
   Блог: листинг + карточка + детальная статья.
   Путь: /local/templates/{ШАБЛОН}/css/blog.css
   Использует общие токены из layout.css.
   ============================================================ */

.bl-page, .bl-detail { font-family: var(--font-b); color: var(--ink); padding: 26px 20px 72px; }

/* хлебные крошки */
.bl-bc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.bl-bc a { color: var(--muted); text-decoration: none; }
.bl-bc a:hover { color: var(--green-deep); }
.bl-bc span { color: var(--muted); }   /* разделитель «/» — того же цвета, что в каталоге (раньше был почти не виден) */
.bl-bc b { color: var(--ink); font-weight: 600; }

/* шапка листинга */
.bl-head { margin-bottom: 22px; }
.bl-h1 { font-family: var(--font-d); font-weight: 800; font-size: clamp(24px, 3vw, 38px); letter-spacing: -.02em; margin: 0 0 8px; }
.bl-head__sub { color: var(--ink-soft); font-size: 16px; margin: 0; max-width: 640px; }
.bl-h2 { font-family: var(--font-d); font-weight: 700; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -.01em; margin: 0 0 18px; }

/* чипы рубрик */
.bl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.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; }

/* полоса «Всё о франчайзинге» (книга /franchayzing/) на общей странице блога */
.bl-guide { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; margin-bottom: 28px; padding: 18px 22px;
    background: linear-gradient(135deg, #eef3ff 0%, #f5f7fa 70%); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: inherit; transition: .18s; }
.bl-guide:hover { box-shadow: var(--shadow-h); border-color: rgba(27,106,229,.35); }
.bl-guide__text { min-width: 0; display: grid; gap: 3px; }
.bl-guide__text b { font-family: var(--font-d); font-weight: 800; font-size: 17px; }
.bl-guide__text span { color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.bl-guide__more { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-d); font-weight: 700; font-size: 14px; color: var(--green-deep); white-space: nowrap; }
.bl-guide__more .ic { transition: transform .2s; }
.bl-guide:hover .bl-guide__more .ic { transform: translateX(4px); }
@media (max-width: 720px) { .bl-guide { grid-template-columns: auto 1fr; } .bl-guide__more { grid-column: 2; justify-self: start; } }

/* промо-статья */
.bl-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--surface);
    border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow);
    text-decoration: none; color: inherit; margin-bottom: 36px; transition: .18s; }
.bl-feature:hover { box-shadow: var(--shadow-h); }
/* Обложка промо-статьи не обрезается: картинка всегда 15:8. Когда текст справа выше картинки, поля сверху и снизу
   заполняет её размытая копия (адрес — в переменной --cover, её ставит страница блога); без переменной — ровный фон. */
.bl-feature__img { position: relative; overflow: hidden; background: #eef2f8; display: grid; align-items: center; }
.bl-feature__img::before { content: ''; position: absolute; inset: -30px; background: var(--cover, none) center / cover no-repeat; filter: blur(24px); }
.bl-feature__img img { position: relative; width: 100%; height: auto; aspect-ratio: 15 / 8; object-fit: cover; display: block; }
.bl-feature__img .bl-card__img-ph { position: relative; justify-self: center; padding: 60px 0; }
.bl-feature__body { padding: 32px; display: flex; flex-direction: column; }
.bl-feature__tag { align-self: flex-start; font-family: var(--font-d); font-weight: 700; font-size: 12px;
    letter-spacing: .04em; text-transform: uppercase; color: var(--green-deep);
    background: rgba(27,106,229,.1); border-radius: 999px; padding: 5px 12px; margin-bottom: 14px; }
.bl-feature__title { font-family: var(--font-d); font-weight: 800; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.18; margin: 0 0 12px; }
.bl-feature__excerpt { color: var(--ink-soft); font-size: 15px; line-height: 1.6; margin: 0 0 16px; }
.bl-feature__meta { color: var(--muted); font-size: 13px; display: flex; gap: 8px; margin-bottom: 18px; }
.bl-feature__more { margin-top: auto; font-family: var(--font-d); font-weight: 700; color: var(--green-deep); }

/* сетка карточек */
.bl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit;
    display: flex; flex-direction: column; transition: .18s; }
.bl-card:hover { box-shadow: var(--shadow-h); transform: translateY(-3px); }
/* Обложка статьи везде одной пропорции — 15:8 (загружать 1200×640), как баннер франшизы в списках: карточка,
   промо-статья и страница статьи показывают её целиком. Раньше карточка была 16:10 и срезала края обложки. */
.bl-card__img { position: relative; aspect-ratio: 15 / 8; background: #eef2f8; display: grid; place-items: center; }
.bl-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* обложки нет — значок статьи из набора иконок */
.bl-card__img-ph { display: grid; place-items: center; color: #9fb2d3; font-size: 34px; line-height: 1; }
.bl-card__img-ph .ic { stroke-width: 1.3; }
.bl-card__rubric { position: absolute; left: 12px; top: 12px; font-family: var(--font-d); font-weight: 600;
    font-size: 12px; color: var(--ink); background: rgba(255,255,255,.92); border-radius: 8px; padding: 5px 10px; }
.bl-card__body { padding: 18px; display: flex; flex-direction: column; flex: 1 1 auto; }
.bl-card__title { font-family: var(--font-d); font-weight: 700; font-size: 17px; line-height: 1.3; margin: 0 0 8px; }
.bl-card__excerpt { color: var(--ink-soft); font-size: 14px; line-height: 1.55; margin: 0 0 14px; }
.bl-card__meta { margin-top: auto; color: var(--muted); font-size: 13px; display: flex; gap: 6px; }

.bl-empty { text-align: center; color: var(--ink-soft); background: var(--surface);
    border: 1px dashed var(--line); border-radius: var(--radius); padding: 48px 24px; }

/* SEO-текст */
.bl-seo { color: var(--ink-soft); line-height: 1.7; font-size: 15px; }
.bl-seo--top { margin-bottom: 26px; }
.bl-seo--bottom { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.bl-seo h2, .bl-seo h3 { font-family: var(--font-d); color: var(--ink); }

/* ---------------- ДЕТАЛЬНАЯ СТАТЬЯ ---------------- */
.bl-detail { max-width: 1080px; }

/* прогресс чтения */
.bl-progress { position: sticky; top: var(--st-top, 0px); left: 0; height: 3px; background: transparent; z-index: 40; }
.bl-progress i { display: block; height: 100%; width: 0; background: var(--green); transition: width .1s linear; }

.bl-art__head { margin-bottom: 22px; max-width: 760px; }
.bl-art__rubric { display: inline-block; font-family: var(--font-d); font-weight: 600; font-size: 13px;
    color: var(--green-deep); text-decoration: none; margin-bottom: 10px; }
.bl-art__rubric:hover { color: var(--green); }
.bl-art__title { font-family: var(--font-d); font-weight: 800; font-size: clamp(24px, 3vw, 38px); line-height: 1.13; letter-spacing: -.02em; margin: 0 0 16px; }

/* строка автора/даты */
.bl-art__byline { color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bl-art__avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff;
    font-family: var(--font-d); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.bl-art__author { color: var(--ink); font-weight: 600; }
.bl-art__byline > span:not(.bl-art__avatar):not(.bl-art__author):not(.bl-art__dot) { position: relative; padding-left: 16px; }
.bl-art__byline > span:not(.bl-art__avatar):not(.bl-art__author):not(.bl-art__dot)::before {
    content: ''; position: absolute; left: 0; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: var(--line); transform: translateY(-50%); }
.bl-art__dot { display: none; }

.bl-art__cover { border-radius: 18px; overflow: hidden; margin: 10px 0 30px; max-height: 520px; }
/* версия 178: aspect-ratio 15/8 — пропорции копии обложки (ResizeImageGet 1200×640, EXACT): высота известна до загрузки картинки
   и текст под обложкой не сдвигается (CLS). Исходник меньше 1200×640 остаётся своих пропорций — object-fit: cover
   подрезает его до тех же 15/8, как и у карточек списка */
.bl-art__cover img { width: 100%; height: auto; display: block; aspect-ratio: 15 / 8; object-fit: cover; }

/* двухколоночный макет: статья + «липкая» колонка */
.bl-art__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.bl-art__main { min-width: 0; max-width: 760px; }
.bl-art__aside { position: relative; }
.bl-aside-sticky { position: sticky; top: calc(var(--st-top, 0px) + 24px); display: flex; flex-direction: column; gap: 18px; }

/* оглавление */
.bl-toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.bl-toc__title { font-family: var(--font-d); font-weight: 700; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.bl-toc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.bl-toc__item a { display: block; color: var(--ink-soft); text-decoration: none; font-size: 14px; line-height: 1.4;
    padding: 6px 10px; border-left: 2px solid transparent; border-radius: 0 8px 8px 0; transition: .12s; }
.bl-toc__item--h3 a { padding-left: 22px; font-size: 13px; color: var(--muted); }
.bl-toc__item a:hover { color: var(--green-deep); background: #f1f5ff; }
.bl-toc__item a.is-active { color: var(--green-deep); border-left-color: var(--green); background: #f1f5ff; font-weight: 600; }

/* мини-CTA в колонке */
.bl-aside-cta { background: linear-gradient(135deg, #eef3ff 0%, #f5f7fa 70%); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.bl-aside-cta__h { font-family: var(--font-d); font-weight: 800; font-size: 17px; margin-bottom: 4px; }
.bl-aside-cta p { margin: 0 0 14px; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.bl-btn--sm { padding: 11px 18px; font-size: 14px; }
/* баннер Premium-франшизы в колонке (include/banner_slot.php, стили .tf-banner — tariffs.css): отступ даёт gap колонки */
.bl-aside-sticky .tf-banner--aside { margin: 0; }

/* автор под статьёй */
.bl-author { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 18px 20px; margin: 30px 0; box-shadow: var(--shadow); }
.bl-author__avatar { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: #fff;
    font-family: var(--font-d); font-weight: 700; font-size: 20px; display: inline-flex; align-items: center; justify-content: center; }
.bl-author__name { font-family: var(--font-d); font-weight: 700; font-size: 16px; }
.bl-author__role { color: var(--muted); font-size: 13px; }
/* автор из справочника «Авторы блога»: фото, пара строк о нём, ссылка на его страницу */
.bl-author { align-items: flex-start; }
.bl-author__avatar--img, .bl-art__avatar--img { object-fit: cover; background: #eef2f8; padding: 0; }
.bl-author__body { min-width: 0; }
.bl-author__name a { color: inherit; text-decoration: none; }
.bl-author__name a:hover { color: var(--green-deep); }
.bl-author__about { color: var(--ink-soft); font-size: 14px; line-height: 1.55; margin: 8px 0 0; }
.bl-author__more { display: inline-block; margin-top: 8px; color: var(--green-deep); font-weight: 600; font-size: 14px; text-decoration: none; }
a.bl-art__author { text-decoration: none; }
a.bl-art__author:hover { color: var(--green-deep); }

/* шаринг */
.bl-share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.bl-share--bottom { margin: 26px 0 4px; }
.bl-share__label { color: var(--muted); font-size: 14px; margin-right: 4px; }
.bl-share__btn { font-family: var(--font-d); font-weight: 600; font-size: 13px; color: var(--ink-soft);
    background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; cursor: pointer; transition: .15s; }
.bl-share__btn:hover { border-color: var(--green); color: var(--green-deep); }

.bl-art__body { font-size: 17px; line-height: 1.75; color: var(--ink); }
/* у подзаголовков свой межстрочный интервал: раньше они наследовали 1,75 от текста — строки двухстрочного заголовка расходились */
.bl-art__body h2 { font-family: var(--font-d); font-weight: 700; font-size: clamp(22px, 2.6vw, 26px); line-height: 1.25; letter-spacing: -.01em; margin: 36px 0 12px; }
.bl-art__body h3 { font-family: var(--font-d); font-weight: 700; font-size: clamp(19px, 2.2vw, 21px); line-height: 1.3; margin: 28px 0 10px; }
.bl-art__body p { margin: 0 0 18px; }
.bl-art__body ul, .bl-art__body ol { margin: 0 0 18px; padding-left: 22px; }
.bl-art__body li { margin-bottom: 8px; }
.bl-art__body img { max-width: 100%; height: auto; border-radius: 12px; margin: 8px 0; }
/* широкая таблица прокручивается сама, а не растягивает страницу */
.bl-art__body table { display: block; overflow-x: auto; max-width: 100%; }
.bl-art__body a { color: var(--green-deep); }
.bl-art__body blockquote { margin: 22px 0; padding: 16px 22px; border-left: 3px solid var(--green); background: #f1f5ff; border-radius: 0 12px 12px 0; color: var(--ink-soft); }

.bl-art__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0; }
.bl-tag { font-size: 13px; color: var(--ink-soft); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; }
/* тег-ссылка: под статьёй и на странице всех тегов (/blog/tags/) */
.bl-tag--link { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; overflow-wrap: anywhere; text-decoration: none; transition: border-color .15s ease, color .15s ease; }
.bl-tag--link:hover { border-color: var(--green); color: var(--green-deep); }
.bl-tag--link i { font-style: normal; font-size: 12px; color: var(--muted); background: var(--surface); border-radius: 999px; padding: 1px 7px; }
.bl-tagcloud { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.bl-tagcloud .bl-tag { font-size: 15px; padding: 9px 14px; background: var(--surface); }
.bl-chip--tags { margin-left: auto; border-style: dashed; }
.bl-head__sub a { color: var(--green-deep); }

/* --- связь с каталогом: категории франшиз у статьи (App\Site\BlogCategories) --- */
.bl-art__cats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 30px; }
.bl-art__cats-label { font-size: 14px; color: var(--muted); margin-right: 4px; }
.bl-cat { display: inline-flex; align-items: center; font-family: var(--font-d); font-weight: 600; font-size: 14px;
  color: var(--green-deep); background: var(--surface); border: 1px solid var(--green); border-radius: 999px;
  padding: 7px 14px; text-decoration: none; transition: background .15s ease, color .15s ease; }
.bl-cat:hover { background: var(--green); color: #fff; }
/* блок «Франшизы по теме» на странице статьи (карточки — franchise_card из home.css) */
.bl-theme { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.bl-theme__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bl-theme__all { color: var(--green-deep); font-weight: 600; text-decoration: none; white-space: nowrap; }
.bl-theme__all:hover { color: var(--green); }
/* панель темы на /blog/?category= */
.bl-theme-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: -8px 0 22px; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: 15px; }
.bl-theme-bar__label { color: var(--muted); }
.bl-theme-bar__name { font-family: var(--font-d); }
.bl-theme-bar__link { color: var(--green-deep); font-weight: 600; text-decoration: none; }
.bl-theme-bar__link:hover { color: var(--green); }
.bl-theme-bar__reset { margin-left: auto; color: var(--ink-soft); font-size: 14px; }

.bl-art__cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    background: linear-gradient(135deg, #eef3ff 0%, #f5f7fa 70%); border: 1px solid var(--line);
    border-radius: 18px; padding: 26px 28px; margin: 34px 0; }
.bl-art__cta-h { font-family: var(--font-d); font-weight: 800; font-size: 20px; margin-bottom: 4px; }
.bl-art__cta p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.bl-btn { display: inline-flex; align-items: center; font-family: var(--font-d); font-weight: 700; font-size: 15px;
    background: var(--btn); color: #fff; border-radius: 12px; padding: 14px 24px; text-decoration: none; white-space: nowrap; transition: .15s; }
.bl-btn:hover { background: var(--btn-deep); }

.bl-related { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }

/* пагинация bitrix (шаблон system.pagenavigation «modern») — лёгкая стилизация */
.bl-page .modern-page-navigation { margin-top: 32px; display: flex; gap: 6px; flex-wrap: wrap; }
.bl-page .modern-page-navigation a,
.bl-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; }
.bl-page .modern-page-navigation a:hover { border-color: var(--green); color: var(--green-deep); }
.bl-page .modern-page-navigation .modern-page-current { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------------- АДАПТИВ ---------------- */
@media (max-width: 920px) {
    .bl-grid { grid-template-columns: repeat(2, 1fr); }
    .bl-feature { grid-template-columns: 1fr; }
    .bl-art__layout { grid-template-columns: 1fr; gap: 0; }
    .bl-art__aside { order: -1; margin-bottom: 24px; }
    .bl-aside-sticky { position: static; }
    .bl-aside-cta, .bl-aside-sticky .tf-banner { display: none; }   /* в потоке остаётся только оглавление */
    .bl-toc { background: var(--bg); box-shadow: none; }
}
@media (max-width: 560px) {
    .bl-page, .bl-detail { padding: 20px 16px 56px; }
    .bl-grid { grid-template-columns: 1fr; }
    .bl-feature__body { padding: 22px; }
    .bl-art__body { font-size: 16px; }
    .bl-art__cta { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   АВТОРЫ БЛОГА (/blog/authors/): список авторов и страница автора.
   ============================================================ */
.bl-chip--authors { border-style: dashed; }
.bl-chip--tags + .bl-chip--authors { margin-left: 0; }
.bl-chips > .bl-chip--authors:not(.bl-chip--tags ~ .bl-chip--authors) { margin-left: auto; }   /* тегов нет — «Авторы» сами уходят вправо */
/* список авторов */
.bl-people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 18px; }
.bl-people__card { display: flex; gap: 16px; align-items: flex-start; height: 100%; box-sizing: border-box; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.bl-people__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); }
.bl-people__photo { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #eef2f8; }
.bl-people__photo--ph { display: grid; place-items: center; font-family: var(--font-d); font-weight: 800; font-size: 28px; color: var(--green-deep); }
.bl-people__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bl-people__name { font-family: var(--font-d); font-weight: 700; font-size: 18px; line-height: 1.25; }
.bl-people__role { color: var(--muted); font-size: 14px; line-height: 1.4; }
.bl-people__about { color: var(--ink-soft); font-size: 14px; line-height: 1.55; margin-top: 4px;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.bl-people__count { margin-top: 8px; color: var(--green-deep); font-weight: 600; font-size: 14px; }
/* страница автора */
.bl-person { display: flex; gap: 28px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
    padding: 32px; box-shadow: var(--shadow); margin-bottom: 36px; }
.bl-person__photo { flex: 0 0 160px; width: 160px; height: 160px; border-radius: 50%; object-fit: cover; background: #eef2f8; }
.bl-person__photo--ph { display: grid; place-items: center; font-family: var(--font-d); font-weight: 800; font-size: 60px; color: var(--green-deep); }
.bl-person__body { min-width: 0; }
.bl-person__name { margin-bottom: 6px; }
.bl-person__role { color: var(--green-deep); font-family: var(--font-d); font-weight: 600; font-size: 16px; margin: 0 0 12px; }
.bl-person__about { color: var(--ink-soft); font-size: 17px; line-height: 1.6; margin: 0; max-width: 720px; }
.bl-person__links { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bl-person__links a { display: inline-block; font-weight: 600; font-size: 14px; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
    border-radius: 999px; padding: 7px 14px; text-decoration: none; overflow-wrap: anywhere; transition: border-color .15s ease, color .15s ease; }
.bl-person__links a:hover { border-color: var(--green); color: var(--green-deep); }
.bl-person__bio { max-width: 820px; margin-bottom: 40px; font-size: 16px; }
.bl-person__bio img { max-width: 100%; height: auto; }
.bl-person__bio a { color: var(--green-deep); }
.bl-person__count { font-weight: 600; font-size: .6em; color: var(--muted); vertical-align: middle; margin-left: 6px; }
.bl-person__all { margin: 32px 0 0; }
.bl-person__all a { color: var(--green-deep); font-weight: 600; text-decoration: none; }
@media (max-width: 720px) {
    .bl-person { flex-direction: column; gap: 18px; padding: 22px; }
    .bl-person__photo { flex-basis: auto; width: 112px; height: 112px; }
    .bl-person__photo--ph { font-size: 42px; }
    .bl-person__about { font-size: 16px; }
}

/* End */


/* Start:/bitrix/templates/franchise/css/ideas.css?179217972127562*/
/* ============================================================
   «Бизнес-идеи»: каталог идей /biznes-idei/, страница сферы и страница идеи.
   Путь: /local/templates/{ШАБЛОН}/css/ideas.css
   Использует токены layout.css, кнопки home.css (.hm-btn), блоки blog.css (.bl-bc, .bl-chips, .bl-toc,
   .bl-art__body, .bl-aside-cta, .bl-share) и таблицы guide.css (.gd-body). Все свои классы — .bi-*.
   ============================================================ */

.bi-page, .bi-idea { padding-top: 26px; padding-bottom: 72px; font-family: var(--font-b); color: var(--ink); }
.bi-h1 { font-family: var(--font-d); font-weight: 800; font-size: clamp(24px, 3vw, 38px); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 8px; text-wrap: balance; }
.bi-h2 { font-family: var(--font-d); font-weight: 800; font-size: clamp(21px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -.02em; margin: 0; }

/* ---------- обложка общей страницы ---------- */
.bi-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 40px; align-items: center; margin-bottom: 24px;
    padding: 36px 40px; border: 1px solid #f0e3c4; border-radius: 22px;
    background:
        radial-gradient(46% 70% at 96% 6%, rgba(245,158,11,.20), transparent 70%),
        linear-gradient(120deg, #fffaf0 0%, #f3f6fd 100%); }
.bi-hero__text { min-width: 0; }
.bi-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-d); font-weight: 700; font-size: 12px;
    letter-spacing: .08em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 12px; }
.bi-hero__title { font-family: var(--font-d); font-weight: 800; font-size: clamp(30px, 4vw, 46px); line-height: 1.05; letter-spacing: -.025em; margin: 0 0 12px; }
.bi-hero__sub { font-size: 17px; line-height: 1.6; color: var(--ink-soft); max-width: 620px; margin: 0; }
.bi-hero__quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.bi-quick { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px 0 12px; border: 1px solid #dfe4ee; border-radius: 19px; background: var(--surface);
    font-family: var(--font-d); font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: none; white-space: nowrap; transition: border-color .15s ease, color .15s ease, box-shadow .15s ease; }
.bi-quick .ic { color: var(--green-deep); }
.bi-quick:hover { border-color: var(--green); color: var(--green-deep); box-shadow: var(--shadow); }
.bi-quick:focus-visible { outline: 3px solid rgba(27,106,229,.35); outline-offset: 2px; }
.bi-hero__stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 230px; }
.bi-hero__stats li { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px; background: rgba(255,255,255,.82); border: 1px solid var(--line); border-radius: 14px; }
.bi-hero__stats b { font-family: var(--font-d); font-weight: 800; font-size: 22px; letter-spacing: -.02em; white-space: nowrap; }
.bi-hero__stats span { color: var(--ink-soft); font-size: 13.5px; line-height: 1.3; }

/* ---------- заголовок страницы сферы ---------- */
.bi-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 22px; }
.bi-head__ico { margin-top: 2px; }
.bi-head__sub { color: var(--ink-soft); font-size: 16.5px; line-height: 1.6; margin: 0; max-width: 780px; }

/* ---------- сферы (чипы .bl-chip) ---------- */
.bi-spheres { margin-bottom: 14px; }
.bi-spheres .bl-chip i { font-style: normal; font-weight: 600; font-size: 12.5px; color: var(--muted); margin-left: 3px; }
.bi-spheres .bl-chip.is-active i { color: rgba(255,255,255,.8); }

/* ---------- фильтр ---------- */
.bi-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: 0 0 24px; box-shadow: var(--shadow); }
.bi-field { display: flex; flex-direction: column; gap: 6px; }
.bi-field > span { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.bi-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-color: #fbfcfe; appearance: none; cursor: pointer; min-width: 190px;
    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; }
.bi-field select:focus { outline: none; border-color: var(--green); }
.bi-field select:focus-visible { outline: 3px solid rgba(27,106,229,.3); outline-offset: 1px; }
.bi-toolbar__go { height: 44px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--btn); color: #fff; font-family: var(--font-d); font-weight: 700; font-size: 15px; cursor: pointer; }
.bi-toolbar__go:hover { background: var(--btn-deep); }
.bi-toolbar.is-auto .bi-toolbar__go { display: none; }            /* со скриптом список обновляется при выборе */
.bi-toolbar__reset { align-self: center; margin-left: auto; color: var(--muted); font-size: 14px; text-decoration: none; }
.bi-toolbar__reset:hover { color: var(--green-deep); }

/* ---------- список ---------- */
.bi-results { scroll-margin-top: calc(var(--st-top, 0px) + 16px); }
.bi-count { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.bi-count b { color: var(--ink); font-family: var(--font-d); }
.bi-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; }
.bi-tags__count { font-family: var(--font-d); font-weight: 700; font-size: 15px; margin-right: 4px; }
.bi-tag { display: inline-flex; align-items: center; gap: 8px; 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; }
.bi-tag svg { flex: 0 0 auto; opacity: .7; }
.bi-tag:hover { background: #e2ebfc; border-color: var(--green); }
.bi-tag:focus-visible { outline: 3px solid rgba(27,106,229,.35); outline-offset: 2px; }
.bi-empty { text-align: center; color: var(--ink-soft); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 48px 24px; }
.bi-empty p { margin: 0 0 6px; }
.bi-empty a { color: var(--green-deep); }

.bi-group { margin-bottom: 40px; }
.bi-group__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-bottom: 16px; }
/* .ic-plate задан в layout.css, а стили шаблона выводятся после стилей страницы — поэтому селекторы с родителем */
.bi-group__head .bi-group__ico { width: 48px; height: 48px; flex-basis: 48px; border-radius: 14px; }
.bi-group__head .bi-group__ico .ic { width: 30px; height: 30px; }
.bi-group__title { font-family: var(--font-d); font-weight: 800; font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -.02em; line-height: 1.2; margin: 0; }
.bi-group__title a { color: inherit; text-decoration: none; }
.bi-group__title a:hover { color: var(--green-deep); }
.bi-group__meta { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.bi-group__all { display: inline-flex; align-items: center; gap: 6px; color: var(--green-deep); font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.bi-group__all .ic { transition: transform .2s ease; }
.bi-group__all:hover .ic { transform: translateX(4px); }
.bi-group__more { margin: 16px 0 0; }
/* сетка сферы в три колонки (ширина блока 822–1101 px): восемь карточек дали бы ряды 3 + 3 + 2 — показываем шесть */
.bi-group:not(.bi-group--loose) { container-type: inline-size; }
@container (min-width: 822px) and (max-width: 1101.98px) {
    .bi-group:not(.bi-group--loose) .bi-card:nth-child(n+7) { display: none; }
}

.bi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 18px; }
/* «Похожие идеи» — четыре карточки: в ряд, а где не помещаются — два на два (не три и одна) */
@media (min-width: 561px) and (max-width: 1140px) { .bi-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- карточка идеи ---------- */
.bi-card { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
    text-decoration: none; color: var(--ink); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.bi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); border-color: transparent; }
.bi-card:focus-visible { outline: 3px solid rgba(27,106,229,.4); outline-offset: 2px; }
.bi-card__head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.bi-card__ico { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(27,106,229,.09); color: var(--green-deep); }
.bi-card__ico .ic { width: 30px; height: 30px; stroke-width: 1.4; }
.bi-card__tags { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 0; text-align: right; font-size: 12.5px; line-height: 1.3; }
.bi-card__sphere { font-weight: 600; color: var(--green-deep); }
.bi-card__format { color: var(--muted); }
/* обложка (если идее задали «Картинку для анонса»): на всю ширину карточки, сфера и формат — плашкой поверх */
.bi-card__media { display: block; flex: 1 1 100%; margin: -6px -6px 0; aspect-ratio: 15 / 8; border-radius: 12px; overflow: hidden; background: #eef2f8; }
.bi-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bi-card__media + .bi-card__tags { position: absolute; left: 4px; top: 4px; align-items: flex-start; text-align: left; padding: 5px 10px; border-radius: 8px; background: rgba(255,255,255,.92); }
.bi-card__media + .bi-card__tags .bi-card__sphere { color: var(--ink); }
.bi-card__name { font-family: var(--font-d); font-weight: 700; font-size: 17.5px; line-height: 1.25; letter-spacing: -.01em; margin-bottom: 7px; }
.bi-card:hover .bi-card__name { color: var(--green-deep); }
.bi-card__lead { color: var(--ink-soft); font-size: 14px; line-height: 1.5; margin-bottom: 14px;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.bi-card__meta { display: grid; gap: 8px; padding: 13px 0 12px; border-top: 1px solid var(--line); margin-top: auto; }
.bi-card__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bi-card__row span { color: var(--muted); font-size: 13px; }
.bi-card__row b { font-family: var(--font-d); font-weight: 700; font-size: 15px; white-space: nowrap; margin-left: auto; }
.bi-card__chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* метки формата и сложности: карточка и шапка идеи */
.bi-chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 8px; background: #f1f3f7; color: var(--ink-soft); font-size: 12.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.bi-chip--easy   { background: #e7f6ee; color: #17663d; }
.bi-chip--medium { background: #fff3d6; color: #80530a; }
.bi-chip--hard   { background: #fdeceb; color: #a42b1b; }

/* ---------- пояснение о цифрах, CTA, текст ---------- */
.bi-note { display: flex; align-items: flex-start; gap: 10px; margin: 30px 0 0; padding: 14px 16px; border-radius: 12px; background: #f1f5ff; color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
.bi-note .ic { margin-top: 2px; color: var(--green-deep); }
.bi-note a { color: var(--green-deep); }
.bi-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 36px 0 0; padding: 26px 28px;
    background: linear-gradient(135deg, #eef3ff 0%, #f5f7fa 70%); border: 1px solid var(--line); border-radius: 18px; }
.bi-cta__h { font-family: var(--font-d); font-weight: 800; font-size: 20px; margin-bottom: 4px; }
.bi-cta p { margin: 0; color: var(--ink-soft); font-size: 15px; max-width: 620px; line-height: 1.5; }
.bi-cta__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.bi-seo { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--ink-soft); line-height: 1.7; font-size: 15px; max-width: 900px; }
.bi-seo h2, .bi-seo h3 { font-family: var(--font-d); color: var(--ink); line-height: 1.25; }
.bi-seo h2 { font-size: 22px; margin: 0 0 12px; }
.bi-seo a { color: var(--green-deep); }

/* ---------- блок франшиз (include/idea_franchises.php) ---------- */
.bi-fr { margin-top: 44px; padding-top: 34px; border-top: 1px solid var(--line); }
.bi-fr__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 20px; }
.bi-fr__text { margin: 8px 0 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; max-width: 720px; }
.bi-fr__all { color: var(--green-deep); font-weight: 600; text-decoration: none; }
.bi-fr__all:hover { color: var(--green); }
.bi-fr__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ============================================================
   СТРАНИЦА ИДЕИ
   ============================================================ */
.bi-idea__head { max-width: 860px; margin-bottom: 22px; }
.bi-idea__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 14px; }
.bi-idea__kind { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-d); font-weight: 700; font-size: 13px; color: var(--green-deep); margin-right: 4px; }
.bi-idea__time { color: var(--muted); font-size: 13.5px; }
.bi-idea__title { font-family: var(--font-d); font-weight: 800; font-size: clamp(27px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 14px; text-wrap: balance; }
.bi-idea__lead { font-size: 18px; line-height: 1.6; color: var(--ink-soft); margin: 0; }
/* «Важно знать до старта»: лицензии и ограничения регулируемой ниши (свойство идеи WARNING) */
.bi-warn { display: flex; align-items: flex-start; gap: 12px; max-width: 860px; margin: 0 0 22px; padding: 14px 18px; border-radius: 14px;
    background: #fff7e1; border: 1px solid #f1d58f; color: #5c3d06; }
.bi-warn .ic { flex: 0 0 auto; margin-top: 1px; color: #a8700c; }
.bi-warn p { margin: 0; font-size: 15.5px; line-height: 1.55; }
.bi-warn b { font-weight: 700; color: #4a3004; }
.bi-idea__cover { border-radius: 18px; overflow: hidden; margin: 0 0 28px; }
.bi-idea__cover img { width: 100%; height: auto; display: block; }

/* идея в цифрах: три главные плитки (деньги и срок) выделены */
.bi-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 36px; }
.bi-fact { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.bi-fact__label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 600; }
.bi-fact__label .ic { color: var(--green-deep); }
.bi-fact__value { font-family: var(--font-d); font-weight: 700; font-size: 16.5px; line-height: 1.3; overflow-wrap: anywhere; }
.bi-fact__hint { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.bi-fact--main { background: #eaf1fd; border-color: #d5e3fb; }
.bi-fact--main .bi-fact__label { color: var(--ink-soft); }
.bi-fact--main .bi-fact__value { font-size: clamp(18px, 1.9vw, 22px); font-weight: 800; letter-spacing: -.015em; color: var(--green-deep); text-wrap: balance; }

/* две колонки: текст и «липкая» колонка */
.bi-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 52px; align-items: start; }
.bi-main { min-width: 0; max-width: 800px; }
.bi-main .bl-art__body > h2:first-child { margin-top: 0; }
/* колонка не выше окна: на невысоком экране прокручивается сама, иначе низ списка не увидеть до конца текста */
.bi-sticky { position: sticky; top: calc(var(--st-top, 0px) + 24px); display: flex; flex-direction: column; gap: 18px;
    max-height: calc(100vh - var(--st-top, 0px) - 48px); overflow-y: auto; scrollbar-width: thin; padding: 0 2px 2px; margin: 0 -2px; }
.bi-sticky > * { flex: 0 0 auto; }
.bi-more { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px 12px; box-shadow: var(--shadow); }
.bi-more__h { display: flex; align-items: center; gap: 8px; font-family: var(--font-d); font-weight: 800; font-size: 15px; color: var(--ink); text-decoration: none; margin-bottom: 8px; }
.bi-more__h:hover { color: var(--green-deep); }
.bi-more__h .ic { color: var(--green-deep); }
.bi-more ul { list-style: none; margin: 0; padding: 0; }
.bi-more li + li { border-top: 1px solid var(--line); }
.bi-more li a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 9px 4px; color: var(--ink-soft); font-size: 14px; line-height: 1.35; text-decoration: none; }
.bi-more li a:hover { color: var(--green-deep); }
.bi-more li i { font-style: normal; color: var(--muted); font-size: 12.5px; white-space: nowrap; }

/* сильные стороны и риски */
.bi-pr { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 34px 0 0; }
.bi-pr__col { padding: 20px 22px; border-radius: 16px; border: 1px solid; }
.bi-pr__col--pros  { background: #f1faf5; border-color: #cfe9da; }
.bi-pr__col--risks { background: #fff8e8; border-color: #f3dfae; }
.bi-pr__h { display: flex; align-items: center; gap: 8px; font-family: var(--font-d); font-weight: 800; font-size: 16px; margin-bottom: 10px; }
.bi-pr__col--pros .bi-pr__h .ic { color: #17663d; --ic-accent: #2fa868; }
.bi-pr__col--risks .bi-pr__h .ic { color: #80530a; }
.bi-pr ul { margin: 0; padding-left: 20px; }
.bi-pr li { margin-bottom: 8px; line-height: 1.5; font-size: 15px; }
.bi-pr li:last-child { margin-bottom: 0; }

/* вопросы и ответы */
.bi-faq { margin-top: 44px; padding-top: 34px; border-top: 1px solid var(--line); }
.bi-faq .bi-h2 { margin-bottom: 16px; }
.bi-faq__item { max-width: 860px; border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin-bottom: 10px; background: var(--surface); }
.bi-faq__item summary { position: relative; cursor: pointer; font-family: var(--font-d); font-weight: 600; font-size: 16px; line-height: 1.4; padding: 13px 28px 13px 0; list-style: none; }
.bi-faq__item summary::-webkit-details-marker { display: none; }
.bi-faq__item summary::after { content: ''; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; margin-top: -7px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg); transition: transform .15s ease; }
.bi-faq__item[open] summary { color: var(--green-deep); }
.bi-faq__item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.bi-faq__item summary:focus-visible { outline: 3px solid rgba(27,106,229,.35); outline-offset: 2px; border-radius: 6px; }
.bi-faq__a { padding: 0 0 15px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; }

/* похожие идеи */
.bi-similar { margin-top: 44px; padding-top: 34px; border-top: 1px solid var(--line); }
.bi-similar__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 20px; }
.bi-similar__all { color: var(--green-deep); font-weight: 600; text-decoration: none; white-space: nowrap; }
.bi-similar__all:hover { color: var(--green); }

/* ============================================================
   ГЛАВНАЯ: блок «Бизнес-идеи» и ссылки на идеи со страницы категории каталога
   ============================================================ */
.bi-links { margin-top: 40px; }
.bi-links__h { font-family: var(--font-d); font-weight: 800; font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -.01em; margin: 0 0 6px; color: var(--ink); }
.bi-links__sub { margin: 0 0 16px; color: var(--ink-soft); font-size: 15px; }
.bi-links__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 12px; }
/* главная: число колонок подбирается под число сфер, чтобы последний ряд был полным (10 сфер — 5 × 2, 9 — 3 × 3, 8 — 4 × 2) */
/* правила идут от узких экранов к широким и без верхних границ — при дробной ширине окна (масштаб браузера) между ними нет щелей */
@media (min-width: 921px) { .bi-links__list--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 600px) { .bi-links__list--4, .bi-links__list--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1041px) { .bi-links__list--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1181px) {
    .bi-links__list--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
    .bi-links__list--5 .bi-link { padding: 12px; gap: 2px 10px; }
}
.bi-link { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: center; align-content: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line);
    border-radius: 14px; text-decoration: none; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
.bi-link:hover { border-color: rgba(27,106,229,.4); box-shadow: var(--shadow); }
.bi-link__ico { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(27,106,229,.09); color: var(--green-deep); }
.bi-link b { font-family: var(--font-d); font-weight: 700; font-size: 15px; line-height: 1.3; }
.bi-link > span:not(.bi-link__ico) { color: var(--muted); font-size: 13px; }

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
    .bi-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 36px; }
}
@media (max-width: 920px) {
    .bi-hero { grid-template-columns: minmax(0, 1fr); padding: 28px 26px; }
    .bi-hero__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; }
    .bi-hero__stats li { flex-direction: column; gap: 2px; }
    .bi-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* колонка уходит под текст: сначала разбор идеи, потом «что дальше»; оглавление там уже не нужно */
    .bi-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .bi-aside { margin-top: 28px; }
    .bi-sticky { position: static; max-height: none; overflow: visible; }
    .bi-toc { display: none !important; }
    .bi-aside-cta { display: block; }             /* blog.css на узком экране прячет .bl-aside-cta — здесь он нужен */
}
@media (max-width: 720px) {
    .bi-group__head { grid-template-columns: auto minmax(0, 1fr); }
    .bi-group__all { grid-column: 2; justify-self: start; }
    .bi-pr { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .bi-page, .bi-idea { padding-top: 20px; padding-bottom: 56px; }
    .bi-hero { padding: 22px 18px; border-radius: 18px; }
    .bi-hero__sub { font-size: 15.5px; }
    .bi-hero__stats { display: none; }            /* на телефоне первый экран — заголовок, быстрые отборы и сферы */
    /* быстрые отборы и сферы — одной строкой, которая листается пальцем */
    .bi-hero__quick, .bi-spheres { flex-wrap: nowrap; overflow-x: auto; margin-left: -18px; margin-right: -18px; padding: 2px 18px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .bi-spheres { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
    .bi-hero__quick::-webkit-scrollbar, .bi-spheres::-webkit-scrollbar { display: none; }
    .bi-spheres .bl-chip { flex: 0 0 auto; white-space: nowrap; }
    .bi-head { gap: 14px; }
    .bi-head .bi-head__ico { display: none; }
    .bi-toolbar { gap: 12px 10px; padding: 14px; }
    .bi-field { flex: 1 1 calc(50% - 5px); min-width: 0; }
    .bi-field select { width: 100%; min-width: 0; }
    .bi-toolbar__reset { margin: 0; }
    /* компактная карточка: без вводки, цифры — тремя колонками; на общей странице у сферы видны первые четыре идеи,
       остальные — по ссылке «Все идеи сферы» (иначе страница на телефоне — семьдесят карточек подряд) */
    .bi-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .bi-group { margin-bottom: 30px; }
    .bi-group:not(.bi-group--loose) .bi-card:nth-child(n+5) { display: none; }
    .bi-card { padding: 14px; }
    .bi-card:hover { transform: none; }
    .bi-card__head { margin-bottom: 10px; }
    .bi-card__ico { width: 40px; height: 40px; flex-basis: 40px; border-radius: 12px; }
    .bi-card__ico .ic { width: 26px; height: 26px; }
    .bi-card__name { font-size: 16.5px; margin-bottom: 10px; }
    .bi-card__lead { display: none; }
    .bi-card__meta { grid-template-columns: repeat(3, minmax(0, auto)); justify-content: space-between; gap: 10px; padding: 11px 0 10px; }
    .bi-card__row { flex-direction: column; align-items: flex-start; gap: 2px; flex-wrap: nowrap; }
    .bi-card__row span { font-size: 12px; white-space: nowrap; }
    .bi-card__row b { margin-left: 0; font-size: 14px; }
    .bi-facts { gap: 8px; margin-bottom: 28px; }
    .bi-fact { padding: 12px; }
    .bi-idea__lead { font-size: 16.5px; }
    .bi-cta { padding: 20px; }
    .bi-cta__btns, .bi-fr__btns { width: 100%; }
    .bi-cta__btns .hm-btn, .bi-fr__btns .hm-btn { width: 100%; }
}
@media (max-width: 380px) {
    /* совсем узкий экран: цифры карточки снова строками «подпись — значение» */
    .bi-card__meta { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .bi-card__row { flex-direction: row; align-items: baseline; }
    .bi-card__row b { margin-left: auto; }
    .bi-facts { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .bi-card, .bi-quick, .bi-group__all .ic, .bi-faq__item summary::after { transition: none; }
    .bi-card:hover { transform: none; }
}

/* End */
/* /bitrix/templates/franchise/css/home.css?179217972194288 */
/* /bitrix/templates/franchise/css/tariffs.css?17921797219149 */
/* /bitrix/templates/franchise/css/blog.css?179217972024501 */
/* /bitrix/templates/franchise/css/ideas.css?179217972127562 */
