

/* Start:/bitrix/templates/franchise/css/home.css?179541284057804*/
/* home.css — версия 327 (состав исправлен в 328). Только главная страница. Общие кнопки, карточки и сетки вынесены в ui.css (подключается
   раньше этого файла); до версии 327 всё это было одним файлом home.css, который подключали 32 страницы. */
.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: var(--fs-xs); margin: 0 0 14px; }
.hm-hero__lead { font-size: var(--fs-lead); color: var(--ink-soft); line-height: var(--lh-body); 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-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: var(--fs-sm); }
/* версия 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: var(--fs-sm); line-height: var(--lh-snug); color: var(--ink-soft); }
.hm-hero__src { margin: 12px 0 0; font-size: var(--fs-xs); line-height: var(--lh-snug); 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;
}
/* --------------------------- ПОДБОРКИ --------------------------- */
.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); }
/* ---------------- ПАНЕЛЬ ПОДБОРА И ГОРОДОВ (под шагами «Как выбрать франшизу») ---------------- */
/* Одна синяя панель в ширину страницы: слева приглашение в подбор, справа города (.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: var(--fw-head); font-size: var(--fs-h2); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); color: #fff; margin: 0 0 8px; }
.hm-pick__lead { margin: 0; max-width: 460px; color: rgba(255,255,255,.86); line-height: var(--lh-ui); }
.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: var(--fs-text); line-height: var(--lh-head); letter-spacing: -.01em; color: #fff; margin: 0; }
.hm-pick__all { font-weight: 600; font-size: var(--fs-sm); 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: var(--fs-sm); line-height: var(--lh-head); 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: var(--fs-caps); opacity: .75; }
/* ------------------- книги портала (версия 189) -------------------
   Карточка: слева «обложка» — цветная книжка с корешком (без картинок: CSS и значок набора), справа — объём, название,
   описание, три главы-входа и кнопка. Две книги — в два столбца, одна — во всю ширину; на узком экране — столбиком. */
.hm-books { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hm-books--1 { grid-template-columns: 1fr; }
.hm-book { display: flex; gap: 24px; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.hm-book__cover { position: relative; flex: 0 0 128px; height: 168px; border-radius: 6px 12px 12px 6px; overflow: hidden; text-decoration: none;
    background: linear-gradient(150deg, #1b6ae5, #0d4ba0 70%); box-shadow: 0 10px 22px rgba(13,75,160,.22), inset -3px 0 0 rgba(255,255,255,.12); }
.hm-book--business .hm-book__cover { background: linear-gradient(150deg, #f5a623, #e07c00 75%); box-shadow: 0 10px 22px rgba(224,124,0,.22), inset -3px 0 0 rgba(255,255,255,.14); }
.hm-book__cover::before { content: ''; position: absolute; left: 12px; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.28); }
.hm-book__spine { position: absolute; left: 22px; right: 8px; top: 16px; font-family: var(--font-d); font-weight: 800; font-size: var(--fs-caps); line-height: var(--lh-head);
    letter-spacing: 0; text-transform: uppercase; color: #fff; overflow-wrap: anywhere; }
.hm-book__ico { position: absolute; left: 24px; bottom: 14px; color: rgba(255,255,255,.9); display: flex; }
.hm-book__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.hm-book__meta { margin: 0 0 4px; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.hm-book__title { margin: 0 0 8px; font-family: var(--font-d); font-weight: var(--fw-head); font-size: var(--fs-h4); letter-spacing: var(--ls-head); line-height: var(--lh-head); }
.hm-book__title a { color: var(--ink); text-decoration: none; }
.hm-book__title a:hover { color: var(--green-deep); }
.hm-book__desc { margin: 0 0 14px; color: var(--ink-soft); font-size: var(--fs-ui); line-height: var(--lh-ui); }
.hm-book__picks { list-style: none; margin: 0 0 18px; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.hm-book__picks li { position: relative; padding-left: 18px; font-size: var(--fs-ui); line-height: var(--lh-snug); }
.hm-book__picks li::before { content: '→'; position: absolute; left: 0; color: var(--green); }
.hm-book__picks a { color: var(--ink); text-decoration: none; }
.hm-book__picks a:hover { color: var(--green-deep); text-decoration: underline; }
.hm-book__more { margin-top: auto; align-self: flex-start; }
@media (max-width: 1000px) {
    .hm-books { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .hm-book { flex-direction: column; gap: 16px; padding: 20px; }
    .hm-book__cover { flex: 0 0 auto; width: 128px; height: 96px; }
}
/* --------------------------- адаптив --------------------------- */
@media (max-width: 900px) {
    .hm-hero__inner { grid-template-columns: 1fr; }
    .hm-hero__art { display: none; }
}
@media (max-width: 560px) {
    .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%; }
}
/* ============================================================
   ГЛАВНАЯ: первый экран со ссылками и стеной логотипов, быстрый подбор, бюджет,
   подборки под ситуацию, шаги, истории, города, блок для франчайзеров (/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: var(--fs-xs); }
.hm-more { display: flex; justify-content: center; margin-top: var(--sp-h2-after); }
/* ---- первый экран ---- */
/* заголовок длиннее прежнего — кегль чуть меньше, чтобы на большом экране он занимал три строки, а не четыре */
.hm-hero .hm-hero__title { font-size: var(--fs-display); line-height: var(--lh-tight); }
.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: var(--fs-ui); 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: var(--fs-ui); line-height: var(--lh-head); letter-spacing: -.01em; color: var(--ink); }
.hm-point__d { font-size: var(--fs-sm); line-height: var(--lh-snug); 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: var(--fs-caps); 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: var(--fs-sm); 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: var(--fs-display); }
/* в половине экрана три списка и кнопка в одну строку не помещаются: кнопка — отдельной строкой во всю ширину */
.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: var(--fs-read); 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: var(--fs-read); line-height: var(--lh-head); letter-spacing: -.01em; overflow-wrap: anywhere; }
.hm-month__meta { color: #c9d6ec; font-size: var(--fs-sm); line-height: var(--lh-snug); }
.hm-month__go { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--green-deep); font-size: var(--fs-read); 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; }
.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 */
    .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); }
}
/* ---- быстрый подбор под первым экраном: две колонки ссылок — «Подборки» и «Часто ищут» ---- */
/* У колонки заголовок и ссылка «все»; ссылки — «таблетки» с иконкой набора сайта. С версии 253 на компьютере колонки идут
   строками (правило ниже), до 900 px — друг под другом, метки листаются вбок. */
/* 253: фон серый, метки белые. Раньше блок был белым, и следом шла белая полоса «Категории» — два белых блока подряд,
   граница — только тонкая линия; чередование фона главной сбивалось. Отступы — 32 по шкале (было 30 / 32). */
.hm-quick { background: var(--bg); padding: 32px 0; }
.hm-quick .hm-chip { background: var(--surface); }
.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; }
/* версия 253: на компьютере колонки — строками одна под другой: слева подпись («Подборки», «Часто ищут» и ссылка «Весь
   каталог»), справа метки во всю ширину. В двух колонках слева было 5 меток, справа 13 — под левыми оставалось пустое
   место на три ряда. */
@media (min-width: 901px) {
    .hm-quick__grid { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
    .hm-quick__col { display: grid; grid-template-columns: 140px minmax(0, 1fr); column-gap: 24px; align-items: start; }
    .hm-quick__col + .hm-quick__col { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
    .hm-quick__head { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px; margin: 7px 0 0; }
}
.hm-quick__h { font-family: var(--font-d); font-weight: var(--fw-sub); font-size: var(--fs-h5); letter-spacing: var(--ls-sub); color: var(--ink); line-height: var(--lh-head); }
.hm-quick__all { font-weight: 600; font-size: var(--fs-sm); 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: var(--fs-sm); line-height: var(--lh-head); 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: var(--fs-caps); color: var(--muted); }
/* ---- категории с числом франшиз ---- */
.cat-grid--count { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
/* 253: как без чисел — 4 в ряд, а не 5 (12 категорий — без неполного ряда) */
.cat-tile__body { display: flex; flex-direction: column; min-width: 0; }
.cat-tile__count { color: var(--muted); font-size: var(--fs-xs); 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: var(--fs-sm); }
/* ---- подборки под ситуацию ---- */
/* Сетка из 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); }
.hm-aud__name { font-family: var(--font-d); font-weight: 700; font-size: var(--fs-text); line-height: var(--lh-head); overflow-wrap: anywhere; }
.hm-aud__desc { color: var(--ink-soft); font-size: var(--fs-sm); line-height: var(--lh-snug); }
.hm-aud__count { margin-top: auto; padding-top: 10px; color: var(--green-deep); font-weight: 600; font-size: var(--fs-sm); }
/* ---- как выбрать франшизу: шаги цепочкой ---- */
/* Шаг — иконка набора сайта на белой плитке с номером в углу, заголовок и пояснение; между плитками пунктир.
   На узком экране цепочка идёт сверху вниз. */
/* 253: сверху 12 px — номер шага выступает над плиткой на 9 px и почти касался линии заголовка (было 12–15 px вместо 24) */
.hm-steps { list-style: none; margin: 0; padding: 12px 0 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(--btn);
    color: #fff; font-family: var(--font-d); font-weight: 800; font-size: var(--fs-xs); 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: var(--fs-text); line-height: var(--lh-head); }
.hm-step__d { color: var(--ink-soft); font-size: var(--fs-sm); line-height: var(--lh-ui); }
/* ---- истории франчайзи ---- */
.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: var(--fs-ui); }
.hm-story__who span { color: var(--muted); font-size: var(--fs-xs); }
.hm-story__title { font-family: var(--font-d); font-weight: 700; font-size: var(--fs-text); line-height: var(--lh-head); }
.hm-story__text { color: var(--ink-soft); font-size: var(--fs-sm); line-height: var(--lh-ui); }
.hm-story__more { margin-top: auto; padding-top: 4px; color: var(--green-deep); font-weight: 600; font-size: var(--fs-sm); }
/* (отдельного блока «Города» на главной больше нет: города — в панели подбора, .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: var(--fs-caps); letter-spacing: .08em; text-transform: uppercase; color: var(--green-deep); }
.hm-b2b .hm-b2b__title { font-family: var(--font-d); font-weight: var(--fw-head); font-size: var(--fs-h2); letter-spacing: var(--ls-tight); margin: 0 0 8px; color: var(--ink); line-height: var(--lh-tight); }
.hm-b2b__lead { margin: 0; color: var(--ink-soft); line-height: var(--lh-ui); }
.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: var(--fs-sm); 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: 24px 0; }
    /* 253: по шкале (было 22 / 20) */
    .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) {
    .hm-month { padding: 16px 14px 14px; border-radius: 18px; }
    .hm-month__name { font-size: 16px; }
    .hm-month__meta { font-size: var(--fs-xs); }
    /* преимущества — списком: иконка слева, справа заголовок и пояснение; между пунктами тонкая черта */
    .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-hero .hm-finder__sel { flex-basis: 100%; }
    .hm-aud { gap: 10px; }
    .hm-aud__card { padding: 14px; }
    .hm-aud__name { font-size: var(--fs-ui); }
    .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-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: var(--fs-sm); }
    .hm-budget__tile { padding: 12px; gap: 12px; }
    .hm-budget__sum { font-size: 16px; white-space: normal; }
}
.hd-eyebrow--sm { margin-bottom: 6px; font-size: var(--fs-xs); }
/* ============================================================
   ВЕРСИЯ 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: var(--fs-sm); }
.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__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; }
/* 251: на тёмном первом экране кнопка остаётся ярко-синей — --btn на тёмном фоне почти не виден (около 2 : 1) */
.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-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: var(--lh-tight); 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: var(--fs-xs); line-height: var(--lh-snug); 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; }
}
/* версия 253: две цифры и три преимущества — цифрам хватает узкой ячейки, преимуществам нужна шире: в равных ячейках
   «Работаем с 2014 года / 12 лет подбираем франшизы» занимало четыре строки. На планшете — цифры в первом ряду (по
   половине), преимущества во втором (по трети), без неполного ряда. */
@media (min-width: 1200px) {
    .hm-hero__points--5.hm-hero__points--s2 { grid-template-columns: repeat(2, minmax(0, .8fr)) repeat(3, minmax(0, 1.2fr)); }
}
@media (min-width: 701px) and (max-width: 1199px) {
    .hm-hero__points--5.hm-hero__points--s2 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .hm-hero__points--5.hm-hero__points--s2 .hm-point--stat { grid-column: span 3; }
    .hm-hero__points--5.hm-hero__points--s2 .hm-point:not(.hm-point--stat) { grid-column: span 2; }
    .hm-hero__points--5.hm-hero__points--s2 .hm-point:nth-child(n)::before { content: ''; }
    .hm-hero__points--5.hm-hero__points--s2 .hm-point:nth-child(1)::before,
    .hm-hero__points--5.hm-hero__points--s2 .hm-point:nth-child(3)::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), а преимущества теряли иконки. Теперь всё списком во всю ширину: цифра —
   число слева и подпись справа по базовой линии, преимущество — иконка и текст; между пунктами тонкая черта. */
    .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: var(--fs-xs); line-height: var(--lh-head); }
    .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: var(--fs-caps); }
}

/* End */


/* Start:/bitrix/templates/franchise/css/catalog.css?179541284035350*/
/* ============================================================
   Каталог — стили (дополняет ui.css: переменные и .fr-card/.fr-grid)
   Путь: /local/templates/{ШАБЛОН}/css/catalog.css
   ============================================================ */
.cat-page { font-family: var(--font-b); color: var(--ink); padding: 28px 20px 0; }
/* 254: снизу 0 */
/* хлебные крошки */
.cat-bc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--muted); margin-bottom: 22px; }
.cat-bc a { color: var(--muted); text-decoration: none; }
.cat-bc a:hover { color: var(--green-deep); }
.cat-bc b { color: var(--ink); font-weight: 600; }
/* заголовок страницы */
.cat-pagehead { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.cat-h1 { font-family: var(--font-d); font-weight: var(--fw-head); font-size: var(--fs-h1); letter-spacing: var(--ls-tight); margin: 0; line-height: var(--lh-tight); }
.cat-count { color: var(--muted); font-size: var(--fs-ui); margin: 0; }
.cat-count b { color: var(--ink); font-family: var(--font-d); }
/* панель фильтра: бюджет, паушальный взнос, роялти, окупаемость, город, сортировка + отметки «Новинки» и «Проверено»
   (правки версии 96 для шести списков — в конце файла) */
.cat-field { display: flex; flex-direction: column; gap: 6px; }
.cat-field > span { font-size: var(--fs-caps); color: var(--muted); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.cat-field select {
    font-family: inherit; font-size: var(--fs-ui); color: var(--ink); font-weight: 500;
    border: 1px solid var(--line); border-radius: 10px; padding: 11px 38px 11px 14px;
    background: #fbfcfe; appearance: none; cursor: pointer; min-width: 168px;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a8499' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
.cat-field select:focus { outline: none; border-color: var(--green); }
.cat-field select:focus-visible { outline: 3px solid rgba(27, 106, 229, .3); outline-offset: 1px; }
.cat-check input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
/* скрыт визуально, доступен с клавиатуры */
.cat-check span {
    display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px;
    border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe;
    font-size: var(--fs-ui); font-weight: 500; color: var(--ink); white-space: nowrap;
}
.cat-check span::before {
    content: ""; flex: 0 0 auto; width: 16px; height: 16px; border: 1.5px solid #b9c2d3; border-radius: 4px; background: #fff;
}
.cat-check:hover span { border-color: #b9c7e6; }
.cat-check input:checked + span { border-color: var(--btn); background: #eef4ff; color: var(--green-deep); }
.cat-check input:checked + span::before {
    border-color: var(--btn);   /* 251: было --green */
    background: var(--btn) url("data:image/svg+xml,%3Csvg width='10' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l3 3 5-6' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
}
.cat-tag { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 7px 10px 7px 14px; border-radius: 999px;
    background: #eef3fd; border: 1px solid rgba(27,106,229,.28); color: var(--green-deep); font-size: var(--fs-sm); font-weight: 600; line-height: var(--lh-head);
    text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.cat-tag span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-tag svg { flex: 0 0 auto; opacity: .7; }
.cat-tag:hover svg { opacity: 1; }
.cat-results.is-loading::after { content: ''; position: absolute; left: 50%; top: 60px; width: 36px; height: 36px; margin-left: -18px; border-radius: 50%;
    border: 3px solid rgba(27,106,229,.2); border-top-color: var(--green); animation: catSpin .7s linear infinite; }
@keyframes catSpin { to { transform: rotate(360deg); } }
/* пустой результат */
.cat-empty {
    text-align: center; color: var(--ink-soft); background: var(--surface);
    border: 1px dashed var(--line); border-radius: var(--radius); padding: 48px 24px;
}
.cat-empty p { margin: 0 0 6px; }
.cat-empty a { color: var(--green-deep); }
/* SEO-текст */
/* версия 254: SEO-текст — по стандарту, как на главной (.hm-seo): «текст разделов» 17 px цветом --ink (был 15 px, серый),
   колонка --measure, отступы абзацев, пунктов и подзаголовков из шкалы, ссылки — полупрозрачное подчёркивание */
.cat-seo { color: var(--ink); line-height: var(--lh-read); font-size: var(--fs-text); }
.cat-seo--top { margin-bottom: 24px; }
/* Версия 130: вводка на странице каталога, категории и подборки (.cat-intro) — колонкой до 760 px, крупнее;
   на экране две строки и кнопка «Читать дальше» в конце второй (класс .is-clamped ставит скрипт страницы —
   site_root/catalog/index.php; без скриптов текст виден целиком). Две строки = 2 × 1.6em. */
.cat-intro { max-width: 760px; font-size: var(--fs-lead); line-height: var(--lh-body); color: var(--ink-soft); }
/* 254: цвет подводки — сам (раньше брался у .cat-seo) */
.cat-intro > :first-child { margin-top: 0; }
.cat-intro > :last-child { margin-bottom: 0; }
.cat-intro > :nth-last-child(2) { margin-bottom: 0; }
.cat-seo--bottom { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.cat-seo h2, .cat-seo h3 { font-family: var(--font-d); color: var(--ink); }
/* версия 245: заголовки SEO-текста — по шкале (раньше браузерные 1,5 и 1,17 от мелкого текста) */
.cat-seo h2 { margin: var(--sp-h2-before) 0 var(--sp-h2-after); font-size: var(--fs-h3); line-height: var(--lh-head); letter-spacing: var(--ls-head); font-weight: var(--fw-head); }
.cat-seo h3 { font-size: var(--fs-h5); line-height: var(--lh-head); letter-spacing: var(--ls-sub); font-weight: var(--fw-sub); }
.cat-seo > * { max-width: var(--measure); }
.cat-seo h3 { margin: var(--sp-h4-before) 0 var(--sp-h4-after); }
.cat-seo p, .cat-seo ul:not([class]), .cat-seo ol:not([class]) { margin: 0 0 var(--sp-p); }
.cat-seo li:not([class]) { margin-bottom: var(--sp-li); }
/* :not([class]) — списки-компоненты (.rt-how__list) не трогаем */
.cat-seo b, .cat-seo strong { color: var(--ink); font-weight: 600; }
.cat-seo a { color: var(--green-deep); font-weight: 400; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: rgba(13, 75, 160, .4); }
.cat-seo a:hover { text-decoration-color: currentColor; }
.cat-seo > :last-child { margin-bottom: 0; }
/* текст из редактора: картинки не шире колонки, широкая таблица прокручивается сама */
.cat-seo img { max-width: 100%; height: auto; }
.cat-seo table { display: block; overflow-x: auto; max-width: 100%; }
/* пагинация: шаблон system.pagenavigation «round» (.bx-pagination); страницы комплекта используют «modern» — стили в конце файла */
.bx-pagination { margin-top: 30px; }
.bx-pagination .bx-pagination-container ul { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; justify-content: center; }
.bx-pagination .bx-pagination-container li span,
.bx-pagination .bx-pagination-container li a {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
    color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--fs-sm);
}
.bx-pagination .bx-pagination-container li a:hover { border-color: var(--green); color: var(--green-deep); }
.bx-pagination .bx-pagination-container li.bx-active span { background: var(--btn); border-color: var(--btn); color: #fff; }
@media (max-width: 560px) {
    /* 251: было --green */
/* кнопка «Фильтр и сортировка» — только на телефоне (см. ниже); показывает её скрипт страницы */
    .cat-filterbtn svg { color: var(--green-deep); }
    .cat-filterbtn i { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--btn); color: #fff; font-size: var(--fs-caps); line-height: 20px; text-align: center; }
    /* списки — по два в ряд */
    .cat-field select { width: 100%; min-width: 0; }
    .cat-check span { justify-content: center; }
}
/* ============================================================
   ПОДБОРКИ (витрина /selection/) + РЕЙТИНГ (/rating/) + чипы.
   Грузятся вместе с catalog.css; используют общие токены.
   Версия 126: витрины /selection/ больше нет (подборки — страницы каталога), правила .sel-* ниже
   на страницах комплекта не используются; строка подборок в каталоге — .cat-sels.
   ============================================================ */
/* чипы (дублируют .bl-chip из blog.css — на случай, если blog.css не подключён) */
.bl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.bl-chip { font-family: var(--font-d); font-weight: 600; font-size: var(--fs-sm); 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 { display: inline-flex; align-items: center; gap: 6px; background: var(--btn); border-color: var(--btn); color: #fff; }
/* версия 249: выбранная метка — цвет кнопок (--btn) с галочкой: «выбрано» видно и без цвета. Была ярко-синей (--green). */
.bl-chip.is-active::before { content: ''; flex: none; width: 12px; height: 12px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.bl-chips--sub .bl-chip { font-size: var(--fs-xs); padding-top: 6px; padding-bottom: 6px; }
.bl-chips--sub .bl-chip.is-active { background: var(--surface); border-color: var(--btn); color: var(--btn); }
/* 251: рамка была --green; галочка — из общего правила, цветом текста */
/* сворачивание длинной строки: лишние кнопки скрыты, пока строка свёрнута (класс ставит скрипт страницы) */
.bl-chips.is-collapsed .bl-chip--extra { display: none; }
.bl-chip--toggle { cursor: pointer; font-family: var(--font-d); border-style: dashed; color: var(--green-deep); }
.bl-chips--sub .bl-chip--toggle { font-size: var(--fs-xs); }
.bl-chip--toggle[hidden] { display: none; }
@media (max-width: 560px) {
    /* Телефон: категории — одной строкой, которая листается пальцем от края до края экрана (раньше ссылки шли в
       5–6 рядов и вместе с фильтром занимали весь первый экран). Кнопка «Ещё N» здесь не нужна — видны все ссылки;
       выбранную категорию подводит к началу строки js/layout.js. */
    .cat-page .bl-chips { flex-wrap: nowrap; overflow-x: auto; margin-left: -20px; margin-right: -20px; padding: 4px 20px 6px;
        scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    /* версия 179: лента режется по краю экрана без полосы прокрутки — справа растворение, видно, что она листается.
       Только когда ленте есть куда листаться (.has-more ставит скрипт страницы каталога), иначе растворялся бы край
       последней кнопки короткой ленты */
    .cat-page .bl-chips.has-more { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), rgba(0,0,0,0) 100%);
        mask-image: linear-gradient(90deg, #000 calc(100% - 44px), rgba(0,0,0,0) 100%); }
    .cat-page .bl-chips::-webkit-scrollbar { display: none; }
    .cat-page .bl-chip { flex: 0 0 auto; white-space: nowrap; }
    .cat-page .bl-chips.is-collapsed .bl-chip--extra, .cat-page .bl-chips.is-collapsed .bl-chip--extra-m { display: inline-block; }
    .cat-page .bl-chip--toggle { display: none; }
    /* версия 179: ленты компактнее — кнопки 13,5 px и 34 px высотой, между лентами 8 px (было 15 px / 46 px / 26 px:
       две ленты и кнопка фильтра занимали ~190 px до первой карточки) */
    .cat-page .bl-chips { gap: 6px; margin-bottom: 8px; padding-bottom: 4px; }
    /* верхние 4 px — выше, под рамку фокуса */
    .cat-page .bl-chip, .cat-page .bl-chips--sub .bl-chip { font-size: var(--fs-sm); padding: 7px 12px; line-height: var(--lh-head); }
    .cat-page .cat-quick, .cat-page .cat-sels, .cat-page .cat-subcats, .cat-page .cat-maincats { margin-top: 0; }
    /* включённый отбор или открытая подборка — первым в ленте, чтобы не искать его за краем экрана (подпись «Подборки:» ещё левее) */
    .cat-page .bl-chips .bl-chip.is-active { order: -1; }
    .cat-page .bl-chip--all::after { content: ' ▾'; font-size: var(--fs-caps); }
    .cat-page .bl-chips.is-open { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; }
    /* конец ленты отборов: «Все фильтры» со счётчиком открывает форму; кнопка «Фильтр и сортировка» в своей полосе тогда не нужна —
       в полосе остаётся только «Сбросить», и полоса видна, только когда есть что сбрасывать */
    .cat-page .bl-chip--filter { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-family: var(--font-d); color: var(--ink); background: var(--surface); order: -3; }
    /* первой в ленте: видна без прокрутки */
    .cat-page .bl-chip--filter svg { color: var(--green-deep); }
}
/* витрина подборок: две группы с заголовками; карточка — иконка набора сайта слева, справа название, пояснение и
   число франшиз (раньше карточки были без иконок, а у половины не было и пояснения — оставалась пустая плитка) */
.sel-h2 { font-family: var(--font-d); font-weight: var(--fw-head); font-size: var(--fs-h4); letter-spacing: var(--ls-head); margin: var(--sp-h3-before) 0 var(--sp-h3-after); color: var(--ink); line-height: var(--lh-head); }
.sel-h2:first-of-type { margin-top: 8px; }
.sel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sel-card { display: flex; align-items: flex-start; gap: 16px; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
    text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.sel-card:hover { box-shadow: var(--shadow-h); transform: translateY(-2px); border-color: rgba(27,106,229,.35); }
.sel-card:focus-visible { outline: 3px solid rgba(27,106,229,.4); outline-offset: 2px; }
.sel-card__ico { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: var(--green-deep); background: rgba(27,106,229,.10); }
.sel-card__ico .ic { width: 28px; height: 28px; stroke-width: 1.5; }
.sel-card__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.sel-card__title { font-family: var(--font-d); font-weight: 700; font-size: var(--fs-text); line-height: var(--lh-head); }
.sel-card__desc { color: var(--ink-soft); font-size: var(--fs-sm); line-height: var(--lh-snug); }
.sel-card__count { margin-top: 3px; color: var(--green-deep); font-weight: 600; font-size: var(--fs-sm); }
.sel-card__count b { font-family: var(--font-d); }
/* Размер логотипа задан в пикселях, а не в процентах: .rt-logo — grid с автоматической строкой, и max-height: 100%
   в ней не действует — квадратный или вытянутый вверх логотип вырастал до ширины рамки и обрезался снизу. */
.rt-logo img { display: block; width: auto; height: auto; max-width: 60px; max-height: 44px; object-fit: contain; }
.rt-figs span { display: flex; flex-direction: column; width: 148px; }
.rt-score__n b { font-family: var(--font-d); font-weight: 800; font-size: 22px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.rt-score__n i { font-style: normal; color: var(--muted); font-size: var(--fs-caps); }
.rt-score__bar u { display: block; height: 100%; border-radius: 3px; background: var(--green); }
.rt-row--top .rt-score__bar u { background: var(--amber); }
.rt-figs i { font-style: normal; color: var(--muted); font-size: var(--fs-caps); }
.rt-figs b { font-family: var(--font-d); font-weight: 600; font-size: var(--fs-sm); }
.rt-rating b { font-family: var(--font-d); font-weight: 700; font-size: var(--fs-md); color: var(--ink); white-space: nowrap; }
@media (max-width: 1100px) {
    /* Кнопка строки — ещё и .hm-btn--ghost: под курсором она заливается тёмно-синим. Раньше здесь стоял тёмно-синий
   цвет текста — на такой же заливке надпись пропадала, оставалась одна точка иконки (исправлено в версии 107). */
    .rt-figs span { width: 124px; }
}
@media (max-width: 920px) {
    .sel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rt-figs span { width: auto; }
}
@media (max-width: 560px) {
    .sel-grid { grid-template-columns: minmax(0, 1fr); }
    .sel-card { padding: 16px; gap: 14px; }
    .sel-card__ico { flex-basis: 46px; width: 46px; height: 46px; }
}
/* ============================================================
   ГОРОДА (витрина /region/). Грузится вместе с catalog.css.
   ============================================================ */
.city-subh + .city-pop { margin-bottom: 40px; }
.city-regions--flat .city-region { margin: 0; }
.city-regions--flat .city-list li { break-inside: avoid; border-bottom: 1px solid var(--line); padding: 3px 0; }
.city-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.city-list a { color: var(--ink); text-decoration: none; font-size: var(--fs-ui); padding: 4px 0; }
.city-list a:hover { color: var(--green-deep); }
.city-list i { font-style: normal; color: var(--muted); font-size: var(--fs-caps); }
/* пагинация bitrix (шаблон system.pagenavigation «modern») — каталог, подборки, города */
.fr-pager { margin-top: 32px; }
.cat-page .modern-page-navigation { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cat-page .modern-page-navigation a,
.cat-page .modern-page-navigation span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px;
    border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); }
.cat-page .modern-page-navigation a:hover { border-color: var(--green); color: var(--green-deep); }
.cat-page .modern-page-navigation .modern-page-current { background: var(--btn); border-color: var(--btn); color: #fff; }
/* 251: было --green */
.cat-page .modern-page-navigation .modern-page-title { border: 0; background: none; padding: 0 6px 0 0; min-width: 0; color: var(--muted); font-weight: 500; }
/* версия 179, телефон: без подписи «Страницы:», кнопки компактнее и по центру — раньше «14» и «След.» уходили на вторую
   строку к левому краю. Многоточие — без рамки. Под списком у страницы был двойной отступ (64 px своих + 64 px у
   подвала) — на телефоне свой отступ меньше. */
@media (max-width: 560px) {
    .cat-page { padding-bottom: 0; }
    .fr-pager { margin-top: 24px; }
    .cat-page .modern-page-navigation { justify-content: center; gap: 6px; }
    .cat-page .modern-page-navigation .modern-page-title { display: none; }
    .cat-page .modern-page-navigation a, .cat-page .modern-page-navigation span { min-width: 38px; height: 38px; padding: 0 9px; font-size: var(--fs-sm); }
    .cat-page .modern-page-navigation .modern-page-dots { min-width: 24px; padding: 0 2px; border: 0; background: none; color: var(--muted); }
}
/* «Рекомендуемые» (ручные промо категории и PRO/Premium): первый ряд списка с заголовком, от остальных карточек
   отделён тонкой чертой. Раньше блок стоял в белой рамке во всю ширину — с одной–двумя карточками рамка была пустой. */
.cat-faq { margin-top: 40px; }
.cat-faq__h { font-family: var(--font-d); font-weight: var(--fw-head); font-size: var(--fs-h3); letter-spacing: var(--ls-head); margin: 0 0 var(--sp-h2-after); color: var(--ink); line-height: var(--lh-head); }
.cat-faq__item { border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; margin-bottom: 10px; background: var(--surface); }
.cat-faq__item summary { cursor: pointer; font-family: var(--font-d); font-weight: 600; padding: 12px 0; list-style: none; }
.cat-faq__item summary::-webkit-details-marker { display: none; }
.cat-faq__item[open] summary { color: var(--green-deep); }
.cat-faq__a { padding: 0 0 14px; color: var(--ink-soft); line-height: var(--lh-body); }
.cat-faq__a > :first-child { margin-top: 0; }
.cat-faq__a > :last-child { margin-bottom: 0; }
/* Версия 128: в списках каталога (каталог, категории, подборки, страницы городов, результат подбора) — три карточки
   в ряд. Версия 129: число колонок задано явно — от 768 px три (раньше третья появлялась с 826 px: блок
   «Рекомендуемые» из трёх карточек на планшете стоял «две и одна»), 561–767 px — две. Телефон (до 560 px) не
   затронут: там карточки идут в одну колонку (css/ui.css). */
@media (min-width: 561px) {
    /* dense: если плитка-полоса оказалась не после целого ряда (страница из кеша, собранная до обновления, —
       плитки в ней после 8-й и 16-й карточки), место перед полосой занимают следующие карточки, пустот нет */
    .cat-page .fr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; }
}
@media (min-width: 768px) {
    .cat-page .fr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* «Рекомендуемые» из четырёх карточек — одним рядом, а не «три и одна». С версии 129 мест в блоке три (или шесть);
   четыре карточки бывают, когда мест шесть, а платных франшиз в категории четыре. */
@media (min-width: 1000px) {
    .cat-page .cat-featured--n4 .fr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* «Рекомендуемые» из трёх карточек там, где колонок две (561–767 px): третья карточка осталась бы одна во втором
   ряду. Скрывать её нельзя — место оплачено, — поэтому ряд листается вбок: видны две карточки и край третьей. */
@media (min-width: 561px) and (max-width: 767.98px) {
    .cat-page .cat-featured--n3 .fr-grid { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
        margin: 0 -20px; padding: 4px 20px 14px; scroll-padding: 0 20px; scrollbar-width: thin; }
    .cat-page .cat-featured--n3 .fr-grid > .fr-card { flex: 0 0 calc((100% - 18px) / 2.2); scroll-snap-align: start; }
}
/* подкатегории на странице родительской категории и основные категории на странице всего каталога
   (чипы .bl-chip — выше в этом файле) */
.cat-subcats, .cat-maincats { margin: 4px 0 0; }
/* Версия 130: строка под заголовком выключена (catalog.head_line) — число франшиз остаётся только для экранного
   диктора: он читает его, когда список обновился фильтром. На экране его нет и места оно не занимает. */
.cat-pagehead .cat-count.cat-count--sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 560px) {
    .cat-count { line-height: var(--lh-body); }
}
/* быстрые отборы: ярлыки с числом франшиз; включённый — залит */
.cat-quick { margin: 10px 0 0; }
.cat-quick__chip:focus-visible, .cat-quick__all:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.cat-quick__all { border-style: dashed; color: var(--green-deep); }
/* Версия 126: подборки «под ситуацию» («Для начинающих», «Домашний бизнес»…) — строка ссылок под быстрыми отборами
   на странице всего каталога и на странице такой подборки. Кнопки поменьше (.bl-chips--sub), впереди подпись. */
.cat-sels { margin: 10px 0 0; align-items: center; }
/* плитка между карточками: не похожа ни на карточку, ни на рекламный баннер. С версии 129 и в сетке, и в списке
   широких карточек это полоса во всю ширину (раскладка полосы — css/ui.css, .fr-grid > .fr-tile) */
.fr-tile { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 0;
    padding: 22px 20px; border-radius: var(--radius); border: 1px dashed #b9cdf5; background: #f5f9ff; color: var(--ink); }
.fr-tile--request { background: var(--surface); border-color: var(--line); border-style: solid; }
.fr-tile__h { font-family: var(--font-d); font-weight: var(--fw-sub); font-size: var(--fs-h5); line-height: var(--lh-head); letter-spacing: var(--ls-sub); }
.fr-tile__text { margin: 0; color: var(--ink-soft); font-size: var(--fs-sm); line-height: var(--lh-ui); }
.fr-tile__btn { margin-top: 6px; text-align: center; }
@media (max-width: 560px) {
    .fr-tile { padding: 16px; gap: 6px; }
}
.fr-tile--request .fr-tile__btn { box-shadow: inset 0 0 0 1px var(--line); }
.fr-tile--request .fr-tile__btn:hover { box-shadow: inset 0 0 0 1px var(--green); transform: none; color: var(--green-deep); }
/* ============================================================
   ВЕРСИЯ 96
   ============================================================ */
/* Рейтинг: блок «Как считается рейтинг» под списком — части балла и их вес из формулы (App\Franchise\RankScore::publicParts).
   Разметка — /rating/index.php. */
.rt-how a { color: var(--green-deep); }
.rt-how__item b { font-family: var(--font-d); font-weight: 700; font-size: var(--fs-ui); color: var(--ink); }
.rt-how__item i { align-self: start; font-style: normal; font-family: var(--font-d); font-weight: 700; font-size: var(--fs-ui); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rt-how__item span { grid-column: 1 / -1; font-size: var(--fs-sm); color: var(--ink-soft); }
/* Каталог: шесть списков фильтра (добавились «Паушальный взнос» и «Роялти») — на широком экране в одну строку */
@media (min-width: 561px) {
    .cat-field select { min-width: 160px; }
}
@media (max-width: 1240px) and (min-width: 561px) {
    .cat-field { flex: 1 1 150px; min-width: 0; max-width: 230px; }
    /* список, перенесённый на вторую строку, не растягивается на всю ширину */
    .cat-field select { width: 100%; min-width: 0; }
}
@media (min-width: 561px) {
    /* мягкий край под закреплённой строкой; не выше нижнего отступа строки — пока она не закреплена, под ним ничего нет */
    .cat-toolbar--pills::after { content: ''; position: absolute; left: -20px; right: -20px; top: 100%; height: 6px;
        background: linear-gradient(to bottom, var(--bg), rgba(250, 250, 250, 0)); pointer-events: none; }
    .cat-toolbar--pills .cat-field > span { font: inherit; color: inherit; letter-spacing: 0; text-transform: none; }
    .cat-toolbar--pills .cat-field select { position: absolute; left: 0; top: 0; width: 100%; height: 100%; min-width: 0; margin: 0; padding: 0 14px; border: 0; border-radius: 999px;
        background: none; opacity: 0; cursor: pointer; font-size: var(--fs-ui); }
    .cat-toolbar--pills .cat-field--sort > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    /* галочки, если они оставлены в форме настройкой catalog.filter_fields, — той же формы */
    .cat-toolbar--pills .cat-check span { height: 42px; border-radius: 999px; background: var(--surface); font-family: var(--font-d); font-weight: 600; font-size: var(--fs-sm); color: var(--ink-soft); }
}
/* ============================================================
   РЕЙТИНГ (/rating/), версия 132: фильтр из трёх списков, раскрывающаяся строка с кнопкой заявки,
   блок «Рейтинги по категориям» под списком. Разметка — /rating/index.php и шаблон news.list `rating_row`
   (template.php, details.php). Правила прежней строки (.rt-row без .rt-row--x) — выше, в разделе «рейтинг».
   ============================================================ */
/* --- фильтр: «Категория», «Инвестиции», «Сортировать» --- */
.rt-field > span { font-size: var(--fs-caps); color: var(--muted); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.rt-field select { width: 100%; min-width: 0; font-family: inherit; font-size: var(--fs-ui); color: var(--ink); font-weight: 500;
    border: 1px solid var(--line); border-radius: 10px; padding: 11px 38px 11px 14px; background: #fbfcfe; appearance: none; cursor: pointer;
    text-overflow: ellipsis;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a8499' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; }
/* телефон: три строки «подпись — список». Списки по два в ряд обрезали бы «Сначала недорогие» и длинные названия
       категорий, а подписи над списками делали бы фильтр выше */
.rt-details__box dt { color: var(--ink-soft); font-size: var(--fs-sm); }
.rt-details__box dd { margin: 0; font-family: var(--font-d); font-weight: 700; font-size: var(--fs-sm); color: var(--ink); white-space: nowrap; }
.rt-details__rating i { font-style: normal; font-family: var(--font-b); font-weight: 400; font-size: var(--fs-xs); color: var(--muted); }
/* --- ширина окна до 1100 px: «Точек в сети» остаётся только в раскрытом блоке, строка плотнее --- */
.cat-seo--root h2 { font-weight: var(--fw-head); font-size: var(--fs-h3); letter-spacing: var(--ls-head); line-height: var(--lh-head); margin: 0 0 var(--sp-h2-after); }
/* 254: под линией 24 (было 12) */
.cat-seo--root h3 { font-weight: var(--fw-sub); font-size: var(--fs-h5); }
/* 254: отступы и прочее — общие правила .cat-seo выше (было 26 / 8, 860 px, 12 / 14 / 8) */
.cat-seo--root li::marker { color: var(--green); font-weight: 700; }
.cat-seo--root .cat-seo__by { margin-top: var(--sp-block); font-size: var(--fs-xs); color: var(--muted); }

/* End */


/* Start:/bitrix/templates/franchise/css/service.css?179541284033786*/
/* ============================================================
   Страница-услуга «Разместить франшизу».
   Путь: /local/templates/{ШАБЛОН}/css/service.css
   Использует общие токены из layout.css (--ink, --green, --line, --radius …).
   ============================================================ */
.svc { font-family: var(--font-b); color: var(--ink); padding: 24px 20px 0; }
/* 254 */
/* хлебные крошки */
.svc-bc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--muted); margin-bottom: 22px; }
.svc-bc a { color: var(--muted); text-decoration: none; }
.svc-bc a:hover { color: var(--green-deep); }
.svc-bc span { color: var(--muted); }
/* разделитель «/» — того же цвета, что в каталоге (раньше был почти не виден) */
.svc-bc b { color: var(--ink); font-weight: 600; }
/* типографика секций */
.svc-h1 { font-family: var(--font-d); font-weight: var(--fw-head); font-size: var(--fs-display);   /* версия 243: не меньше 28 px (было 26), на планшете ~34 */
    line-height: var(--lh-tight); letter-spacing: var(--ls-tight); margin: 10px 0 16px; }
.svc-h1 em { font-style: normal; color: var(--green); }
/* версия 252: выделенные слова H1 — только цвет */
/* Версия 129: заголовок раздела — как на главной (.hm-h2); вводка под ним — крупнее, с межстрочным интервалом
   и не шире 720 px (раньше шла во всю ширину страницы, до 150 знаков в строке). */
/* версия 243: заголовок раздела не меньше 24 px (было 22 — на телефоне и планшете всего на 3 px крупнее подзаголовка h3) */
.svc-h2 { font-family: var(--font-d); font-weight: var(--fw-head); font-size: var(--fs-h2); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); margin: 0 0 8px; }
.svc-sub { color: var(--ink-soft); font-size: var(--fs-lead); line-height: var(--lh-body); max-width: 720px; margin: 0 0 var(--sp-h2-after); }
/* 254: 24 (было 26) */
.svc-sec > .svc-h2 { margin-bottom: var(--sp-h2-after); }
/* версия 246: под линией; подводка — после линии */
/* ---------------- РАЗДЕЛЫ-ПОЛОСЫ (версия 129) ----------------
   Как на главной: каждый раздел — полоса во всю ширину окна с отступами 56 px сверху и снизу, фон полос чередуется —
   белый и серый (фон страницы). Раньше разделы шли по одному серому фону через 56 px, и длинная страница читалась
   одним полотном. Разметка страниц не менялась: .svc остаётся колонкой 1200 px, а фон полосы выведен за её края
   тенью (box-shadow) и обрезан по высоте раздела (clip-path). Где clip-path не поддерживается, полосы остаются без
   белого фона — отступы те же.
   Белые — чётные <section> внутри .svc: первый <section> — шапка страницы (.svc-hero), поэтому первый раздел под
   ней белый. --band — цвет полосы для вложенных блоков, которым нужен фон «под цвет страницы». */
.svc-sec { margin-top: 0; padding: var(--sp-section) 0; --band: var(--bg); }
.svc > :not(.svc-sec) + .svc-sec { margin-top: var(--sp-h2-before); }
/* первая полоса — с отступом от шапки страницы; 254: 48 / 40 (было 44 / 30) */
/* последняя полоса доходит до подвала: гасит отступ над подвалом (.st-footer, --sp-section). 254: было −136 / −120 под
   прежние поля; на телефоне −120 при зазоре 96 — подвал на 24 px заходил на полосу и закрывал низ формы заявки */
.svc > .svc-sec:last-of-type { margin-bottom: calc(-1 * var(--sp-section)); }
@supports (clip-path: inset(0 -100vmax)) {
    .svc-sec:nth-of-type(even), .svc-sec.svc-leadwrap { box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); background: var(--band); }
    .svc-sec:nth-of-type(even) { --band: var(--surface); }
    /* форма заявки внизу страницы — всегда на подкрашенной полосе: белая карточка формы видна на ней при любом соседе */
    .svc-sec.svc-leadwrap { --band: #eaf0fa; }
}
/* кнопки (локальные, в духе .st-cta / .hm-btn) */
.svc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-d); font-weight: 700; font-size: var(--fs-ui); line-height: 1;
    padding: 14px 24px; border-radius: 12px; text-decoration: none; cursor: pointer;
    border: 1.5px solid transparent; transition: .18s; white-space: nowrap; }
.svc-btn--accent { background: var(--btn); color: #fff; }
.svc-btn--accent:hover { background: var(--btn-deep); }
.svc-btn--ghost { background: #fff; color: var(--btn); border-color: rgba(13,75,160,.45); }
.svc-btn--ghost:hover { background: var(--btn); color: #fff; border-color: var(--btn); }
/* ---------------- HERO ---------------- */
.svc-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
    background: linear-gradient(135deg, #eef3ff 0%, #f5f7fa 60%); border: 1px solid var(--line);
    border-radius: 22px; padding: 44px; }
.svc-eyebrow { display: inline-block; font-family: var(--font-d); font-weight: 700; font-size: var(--fs-caps);
    letter-spacing: .08em; text-transform: uppercase; color: var(--green-deep);
    background: rgba(27,106,229,.1); border-radius: 999px; padding: 6px 14px; }
.svc-hero__lead { color: var(--ink-soft); font-size: var(--fs-lead); line-height: var(--lh-body); margin: 0 0 28px; max-width: 560px; }
/* 254: 28 (было 26) */
.svc-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.svc-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.svc-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px; box-shadow: var(--shadow); }
.svc-stat__n { display: block; font-family: var(--font-d); font-weight: 800; font-size: 26px; color: var(--ink); letter-spacing: -.02em; overflow-wrap: anywhere; }
.svc-stat__t { display: block; color: var(--ink-soft); font-size: var(--fs-sm); line-height: var(--lh-snug); margin-top: 4px; }
/* ---------------- ЧТО ВХОДИТ ---------------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow); transition: .18s; }
.svc-card:hover { box-shadow: var(--shadow-h); transform: translateY(-2px); }
/* значок карточки — иконка набора на плитке (размер и цвет плитки — css/layout.css, .ic-plate) */
.svc-card__ico { margin-bottom: 14px; }
.svc-card__h { font-family: var(--font-d); font-weight: var(--fw-sub); font-size: var(--fs-h5); margin: 0 0 6px; line-height: var(--lh-head); letter-spacing: var(--ls-sub); }
.svc-card__d { color: var(--ink-soft); font-size: var(--fs-ui); line-height: var(--lh-ui); margin: 0; }
/* четыре тарифа — в один ряд (на средней ширине — два ряда по два); ниже 920px, как всегда, в одну колонку */
.svc-plans:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1180px) {
    .svc-plans:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
    .svc-plans:has(> :nth-child(4):last-child) { grid-template-columns: 1fr; }
}
/* версия 248: метка «Популярный» — тёмно-синяя, как кнопки (--btn), с янтарной звездой (--amber) из логотипа.
   Была ярко-синей (--green) и сливалась с синей кнопкой «Обсудить» под ней. Звезда — ::before, шаблон не менялся. */
.svc-plan__badge::before { content: ''; flex: none; width: 12px; height: 12px; background: var(--amber);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4l-5.9 3.1 1.2-6.5L2.5 9.4l6.6-.9z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4l-5.9 3.1 1.2-6.5L2.5 9.4l6.6-.9z'/%3E%3C/svg%3E") center / contain no-repeat; }
.svc-plan__list li { display: flex; gap: 9px; font-size: var(--fs-ui); line-height: var(--lh-snug); color: var(--ink); }
.svc-plan__list li.is-off { color: var(--muted); }
.svc-plan__mark { flex: 0 0 18px; font-weight: 700; }
.svc-plan__list li.is-on .svc-plan__mark { color: var(--green); }
.svc-plan__list li.is-off .svc-plan__mark { color: var(--line); }
/* ---------------- ШАГИ ---------------- */
.svc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: none; }
.svc-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.svc-step__n { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    border-radius: 12px; background: rgba(27,106,229,.1); color: var(--green-deep);
    font-family: var(--font-d); font-weight: 800; font-size: var(--fs-read); margin-bottom: 14px; }
.svc-step__h { font-family: var(--font-d); font-weight: var(--fw-sub); font-size: var(--fs-h6); margin: 0 0 6px; line-height: var(--lh-head); letter-spacing: var(--ls-sub); }
.svc-step__d { color: var(--ink-soft); font-size: var(--fs-ui); line-height: var(--lh-ui); margin: 0; }
/* ---------------- FAQ ---------------- */
.svc-faq { display: grid; gap: 10px; }
.svc-faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.svc-faq__q { font-family: var(--font-d); font-weight: 600; font-size: var(--fs-md); color: var(--ink);
    cursor: pointer; padding: 16px 28px 16px 0; position: relative; list-style: none; }
.svc-faq__q::-webkit-details-marker { display: none; }
.svc-faq__q::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    font-size: 22px; color: var(--green); font-weight: 400; line-height: 1; transition: transform .2s; }
.svc-faq__item[open] .svc-faq__q::after { content: '−'; }
.svc-faq__a { color: var(--ink-soft); font-size: var(--fs-md); line-height: var(--lh-read); padding: 0 0 18px; max-width: 760px; }
/* ---------------- ФОРМА ---------------- */
/* версия 129: раздел с формой — полоса с собственным отступом сверху; ссылка «Оставить заявку» ставит её к верху окна */
.svc-leadwrap, .svc-sec[id] { scroll-margin-top: 0; }
.svc-lead { background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
    padding: 40px; box-shadow: var(--shadow-h); max-width: 760px; margin: 0 auto; }
.svc-lead__head { text-align: center; margin-bottom: 24px; }
/* 254 */
/* версия 164: подписка под формой заявки («Разместить франшизу») — по центру, как карточка формы над ней (раньше
   прижималась влево), и ближе к форме: у полосы с формой свой нижний отступ */
.svc-leadwrap > .svc-sec { padding: 32px 0 0; }
.svc-leadwrap .nl--card { margin-left: auto; margin-right: auto; }
.svc-lead__title { margin-bottom: 8px; }
.svc-lead__sub { color: var(--ink-soft); font-size: var(--fs-lead); line-height: var(--lh-body); margin: 0; }
.svc-form { display: grid; gap: 14px; }
.svc-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.svc-input { font-family: inherit; font-size: var(--fs-ui); color: var(--ink); width: 100%;
    border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fbfcfe;
    outline: none; resize: vertical; transition: .15s; }
.svc-input:focus { border-color: var(--green); background: #fff; }
.svc-consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-xs); color: var(--muted); line-height: var(--lh-ui); }
.svc-consent input { margin-top: 2px; flex: 0 0 auto; }
.svc-consent a { color: var(--green-deep); }
/* подпись бывает длинной («Отправить заявку 4 франшизам») — на узком экране переносится, а не распирает страницу */
.svc-form__submit { width: 100%; margin-top: 4px; white-space: normal; text-align: center; }
.svc-form__note { text-align: center; color: var(--muted); font-size: var(--fs-caps); margin: 0; }
/* состояние «успех» (подменяется JS) */
.svc-lead-ok { text-align: center; padding: 40px 20px; font-family: var(--font-d); font-weight: 600;
    font-size: var(--fs-h5); color: var(--ink); line-height: var(--lh-ui); }
.svc-lead-ok span { display: block; font-family: var(--font-b); font-weight: 400; font-size: var(--fs-ui); color: var(--ink-soft); margin-top: 8px; }
/* ---------------- ХАБ УСЛУГ ---------------- */
.svc-hero--center { grid-template-columns: 1fr; text-align: center; }
.svc-hero--center .svc-eyebrow { margin: 0 auto; }
/* страница размещения: строка ссылок на другие услуги и блок «как мы работаем» */
.svc-more { margin: 18px 0 0; color: var(--ink-soft); font-size: var(--fs-md); line-height: var(--lh-read); }
.svc-more a { color: var(--green-deep); font-weight: 600; text-decoration: none; }
.svc-more a:hover { text-decoration: underline; }
.svc-principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
/* нечётное число пунктов — последний во всю ширину, а не один в левой колонке */
.svc-principles > .svc-principle:last-child:nth-child(odd) { grid-column: 1 / -1; }
.svc-principle { display: flex; gap: 12px; align-items: flex-start; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.svc-principle b { display: block; font-family: var(--font-d); font-weight: 700; font-size: var(--fs-md); margin-bottom: 4px; }
.svc-principle span:not(.svc-plan__mark) { display: block; color: var(--ink-soft); font-size: var(--fs-ui); line-height: var(--lh-ui); }
@media (max-width: 760px) {
    .svc-principles { grid-template-columns: 1fr; }
}
/* очень узкий экран (320–400 px): плитки в шапке услуги компактнее, иначе слово вроде «Кабинет» раздвигало сетку шире экрана */
@media (max-width: 400px) {
    .svc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .svc-stat { padding: 14px; min-width: 0; }
    .svc-stat__n { font-size: 21px; }
    .svc-stat__t { hyphens: auto; overflow-wrap: anywhere; }
    .svc-h1 { hyphens: auto; overflow-wrap: anywhere; }
}
.svc-hub-feat--first .svc-btn--accent { background: #fff; color: var(--green-deep); }
/* десять этапов — по пять в ряд (на средней ширине — как обычно, по два) */
@media (min-width: 1181px) {
    .svc-steps:has(> :nth-child(10):last-child) { grid-template-columns: repeat(5, 1fr); }
    /* пять шагов — в один ряд из пяти (в сетке по четыре пятый оставался один во втором ряду) */
    .svc-steps:has(> :nth-child(5):last-child) { grid-template-columns: repeat(5, 1fr); gap: 14px; }
    .svc-steps:has(> :nth-child(5):last-child) .svc-step { padding: 20px 18px; }
}
/* уже — шаги идут по два: при нечётном числе последний занимает всю строку */
@media (min-width: 561px) and (max-width: 1180px) {
    .svc-steps > .svc-step:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* шесть шагов — два ровных ряда по три, а не четыре и два */
@media (min-width: 1181px) {
    .svc-steps:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, 1fr); }
}
.svc-steps__more a { color: var(--green-deep); font-weight: 600; }
.svc-hub-feat__link b { font-family: var(--font-d); font-weight: 700; font-size: var(--fs-md); }
.svc-hub-feat__link span { color: var(--ink-soft); font-size: var(--fs-ui); line-height: var(--lh-snug); }
/* название услуги — h3 внутри группы (раньше h2): вид прежний */
h3.svc-hub__name { margin-top: 0; }
/* .svc-hub__ico — иконка набора на плитке (css/layout.css, .ic-plate) */
.svc-hub__tag { font-family: var(--font-d); font-weight: 600; font-size: var(--fs-caps); letter-spacing: .03em;
    color: var(--green-deep); background: rgba(27,106,229,.1); border-radius: 999px; padding: 5px 12px; }
.svc-hub-cta { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
    background: linear-gradient(135deg, #eef3ff 0%, #f5f7fa 70%); border: 1px solid var(--line);
    border-radius: 20px; padding: 30px 34px; }
.svc-hub-cta__h { font-family: var(--font-d); font-weight: var(--fw-head); font-size: var(--fs-h4); margin-bottom: 4px; line-height: var(--lh-head); letter-spacing: var(--ls-head); }
.svc-hub-cta p { margin: 0; color: var(--ink-soft); font-size: var(--fs-md); line-height: var(--lh-ui); }
@media (max-width: 920px) {
    /* ---------------- АДАПТИВ ---------------- */
    .svc-hub-cta { flex-direction: column; align-items: flex-start; }
    .svc-hero { grid-template-columns: 1fr; padding: 32px; gap: 28px; }
    .svc-grid { grid-template-columns: repeat(2, 1fr); }
    .svc-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .svc { padding: 20px 16px 0; }
    .svc-hero { padding: 24px; }
    .svc-stats { grid-template-columns: 1fr 1fr; }
    .svc-grid { grid-template-columns: 1fr; }
    .svc-steps { grid-template-columns: 1fr; }
    .svc-lead { padding: 28px 20px; }
    .svc-form__submit { line-height: var(--lh-head); }
    .svc-form__row { grid-template-columns: 1fr; }
}
/* ---------- тарифы размещения: таблица include/tariff_table.php (стили .tf-* — tariffs.css) ---------- */
.svc-terms__factors li { margin-bottom: 8px; }
.svc-terms__list li { display: flex; gap: 10px; align-items: flex-start; }
.svc-terms__list b { display: block; font-family: var(--font-d); font-weight: 700; font-size: var(--fs-ui); margin-bottom: 2px; }
.svc-terms__list span { color: var(--ink-soft); font-size: var(--fs-ui); line-height: var(--lh-ui); }
/* самый узкий экран: длинное слово в плитке шапки («Финмодель») выходило за плитку */
@media (max-width: 380px) {
    .svc-stat__n { font-size: 18px; }
}
/* ============================================================
   ВЕРСИЯ 174: ТЁМНЫЙ ПЕРВЫЙ ЭКРАН (.svc--dark, .svc-hero--dark; site.config.php → services.hero_dark)
   Страницы услуг, «Разместить франшизу» и витрина /services/ — как главная (.hm-hero--dark, css/ui.css): тёмно-синий
   фон с голубой подсветкой справа и тёплой снизу слева, во всю ширину окна сразу под меню. Хлебные крошки, заголовок и
   кнопки — светлые, плитки — полупрозрачные панели.
   Шапка (.svc-hero) остаётся первым <section> колонки .svc — чередование полос ниже не меняется. Фон выведен за края
   колонки рамкой-картинкой с выносом (border-image-outset): вынос не занимает места и не даёт прокрутки вбок, в отличие
   от блока шириной 100vw. Картинка — SVG с теми же тремя градиентами, что у главной (у рамки картинка одна, а у главной
   градиентов три). --svc-out — от края колонки до края окна: 1160 px — колонка .st-wrap (1200 px) без полей по 20 px.
   Поля колонки — 20 px на любой ширине: стили шаблона (layout.css, .st-wrap) Битрикс выводит после стилей страницы, и
   поля 16 px из правила .svc для телефона до страницы не доходят. Где они всё же действуют, вынос на 4 px длиннее —
   лишнее уходит за край окна, прокрутки не даёт.
   ============================================================ */
.svc.svc--dark { padding-top: 0; --svc-out: max(20px, (100vw - 1160px) / 2); }
/* border после border-image нельзя: свойство border сбрасывает и рамку-картинку. Сплошной тёмный фон под картинкой —
   для браузеров без max() в выносе (рамка-картинка там не рисуется): белый текст остаётся на тёмном, хоть и в колонке */
.svc-hero.svc-hero--dark { color: #fff; background: #0f1d33; border: 0; border-radius: 0; padding: 26px 0 64px; row-gap: 30px;
    border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3ClinearGradient id='l' x2='1.2' y2='.4'%3E%3Cstop stop-color='%2316294a'/%3E%3Cstop offset='.6' stop-color='%230f1d33'/%3E%3Cstop offset='1' stop-color='%230b1628'/%3E%3C/linearGradient%3E%3CradialGradient id='a' cx='0' cy='0' r='1' gradientTransform='matrix(.55 0 0 .75 .82 .25)'%3E%3Cstop stop-color='%231b6ae5' stop-opacity='.4'/%3E%3Cstop offset='.7' stop-color='%231b6ae5' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='b' cx='0' cy='0' r='1' gradientTransform='matrix(.45 0 0 .6 .05 1)'%3E%3Cstop stop-color='%23f0a431' stop-opacity='.22'/%3E%3Cstop offset='.7' stop-color='%23f0a431' stop-opacity='0'/%3E%3C/radialGradient%3E%3Crect width='100%25' height='100%25' fill='url(%23l)'/%3E%3Crect width='100%25' height='100%25' fill='url(%23a)'/%3E%3Crect width='100%25' height='100%25' fill='url(%23b)'/%3E%3C/svg%3E") 0 fill / 0 / 0 var(--svc-out); }
.svc-hero--dark .svc-hero__col > :last-child { margin-bottom: 0; }
/* хлебные крошки — первой строкой экрана, над обеими колонками */
.svc-hero--dark > .svc-bc { grid-column: 1 / -1; margin: 0; }
.svc-hero--dark .svc-bc a { color: #9fb0cc; }
.svc-hero--dark .svc-bc a:hover { color: #fff; }
.svc-hero--dark .svc-bc span { color: rgba(255,255,255,.35); }
.svc-hero--dark .svc-bc b { color: #fff; }
.svc-hero--dark .svc-eyebrow { background: none; border-radius: 0; padding: 0; font-size: var(--fs-xs); color: #8fb6ff; }
.svc-hero--dark .svc-h1 { color: #fff; margin-top: 12px; }
/* версия 252: ключевые слова H1 выделены цветом (<em>), как на главной (.hm-hero__title em) — ради конверсии;
   исключение из правила «без цветного текста в заголовках», см. STANDARD.md, раздел 2 */
.svc-hero--dark .svc-h1 em { color: #7fb0ff; }
.svc-hero--dark .svc-hero__lead { color: #b8c4d8; }
/* 251: на тёмном первом экране кнопка остаётся ярко-синей — --btn на #0f1d33 почти не виден (2,0 : 1) */
.svc-hero--dark .svc-btn--accent { background: var(--green); }
.svc-hero--dark .svc-btn--accent:hover { background: #1559c7; box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.svc-hero--dark .svc-btn--ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.35); }
.svc-hero--dark .svc-btn--ghost:hover { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.6); }
.svc-hero--dark .svc-btn:focus-visible, .svc-hero--dark .svc-bc a:focus-visible { outline: 3px solid rgba(127,176,255,.7); outline-offset: 2px; }
.svc-hero--dark .svc-stat { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); box-shadow: none; }
.svc-hero--dark .svc-stat__n { color: #fff; }
.svc-hero--dark .svc-stat__n .ic { --ic-accent: #ffc857; }
.svc-hero--dark .svc-stat__t { color: #b8c4d8; }
/* первая полоса — сразу под экраном, без серого зазора */
.svc.svc--dark > .svc-hero--dark + .svc-sec { margin-top: 0; }
@media (max-width: 920px) {
    .svc-hero.svc-hero--dark { padding: 22px 0 44px; row-gap: 24px; }
}
@media (max-width: 560px) {
    .svc-hero.svc-hero--dark { padding: 18px 0 36px; row-gap: 20px; }
}
/* режим высокой контрастности Windows: цвета текста заменяет система — тёмный фон-картинку убираем */
@media (forced-colors: active) {
    .svc-hero.svc-hero--dark { border-image: none; background: none; }
}
/* печать: без тёмного фона, текст — тёмный, как в светлой шапке */
@media print {
    .svc-hero.svc-hero--dark { border-image: none; background: none; color: var(--ink); }
    .svc-hero--dark .svc-h1, .svc-hero--dark .svc-bc b, .svc-hero--dark .svc-stat__n { color: var(--ink); }
    .svc-hero--dark .svc-h1 em { color: var(--green-deep); }
    .svc-hero--dark .svc-hero__lead, .svc-hero--dark .svc-bc a, .svc-hero--dark .svc-stat__t, .svc-hero--dark .svc-eyebrow { color: var(--ink-soft); }
    .svc-hero--dark .svc-bc span { color: var(--muted); }
    .svc-hero--dark .svc-btn--ghost { color: var(--btn); border-color: rgba(13,75,160,.45); }
}
/* ---------------- ТЕКСТОВЫЕ РАЗДЕЛЫ (версия 188) ----------------
   $svc['sections'] и $svc['stepsNote'] в /services/_render.php: подробный текст страницы услуги — абзацы, подзаголовки,
   списки с галочками, нумерованные списки, таблицы, рисунки. Колонка текста — не шире 860 px (до ~95 знаков в строке),
   таблицы и списки в две колонки — на всю ширину раздела. */
.svc-prose > p, .svc-prose > h3, .svc-prose > ol, .svc-prose > ul:not(.svc-checks--2) { max-width: 860px; }
.svc-prose p { margin: 0 0 var(--sp-p); }
.svc-prose > :last-child { margin-bottom: 0; }
.svc-prose b, .svc-prose strong { color: var(--ink); font-weight: 600; }
.svc-prose a { color: var(--green-deep); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.svc-prose h3 { font-family: var(--font-d); font-weight: var(--fw-head); font-size: var(--fs-h4); line-height: var(--lh-head); letter-spacing: var(--ls-head); color: var(--ink); margin: var(--sp-h3-before) 0 var(--sp-h3-after); }
.svc-checks li { position: relative; padding: 16px 18px 16px 52px; background: var(--surface); border: 1px solid var(--line);
    border-radius: 14px; font-size: var(--fs-md); line-height: var(--lh-ui); color: var(--ink); }
.svc-checks li::before { content: ''; position: absolute; left: 16px; top: 15px; width: 24px; height: 24px; border-radius: 50%;
    background: rgba(27,106,229,.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d4ba0' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat; }
.svc-checks--warn li::before { background: rgba(244,156,8,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b86e00' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v8M12 18.5v.01'/%3E%3C/svg%3E") center / 16px no-repeat; }
.svc-checks li b { display: block; margin-bottom: 2px; }
.svc-num li { counter-increment: svcn; position: relative; padding-left: 50px; min-height: 34px; }
.svc-num li::before { content: counter(svcn); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 10px;
    background: rgba(27,106,229,.1); color: var(--green-deep); font-family: var(--font-d); font-weight: 800; font-size: var(--fs-md);
    display: flex; align-items: center; justify-content: center; }
.svc-table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: var(--fs-ui); line-height: var(--lh-ui); }
.svc-table th, .svc-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.svc-table th { font-family: var(--font-d); font-weight: 700; font-size: var(--fs-sm); color: var(--ink); background: #eef1f5; }
.svc-table td { color: var(--ink-soft); }
.svc-table td:first-child { color: var(--ink); font-weight: 600; }
/* рисунок */
.svc-fig { margin: var(--sp-block) 0; max-width: var(--measure); }
.svc-fig img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.svc-fig figcaption { margin-top: 10px; color: var(--muted); font-size: var(--fs-sm); line-height: var(--lh-ui); }
.svc-card__list li { position: relative; padding-left: 16px; font-size: var(--fs-sm); line-height: var(--lh-snug); color: var(--ink); }
.svc-card__list li::before { content: ''; position: absolute; left: 2px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
/* четыре карточки — в ряд на широком экране, два ряда по две — на среднем */
@media (min-width: 1181px) {
    .svc-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 561px) and (max-width: 1180px) {
    .svc-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .svc-table th, .svc-table td { padding: 12px 14px; }
}
/* версия 242: читаемость текстовых разделов — как у статей и карточки франшизы (версии 237–241).
   Текст — основным тёмным цветом (был серо-синий --ink-soft на всех абзацах подробного текста); колонка 760 px вместо 860
   (было ~95 знаков в строке, стало ~80); 16 px между абзацами вместо 14; под подзаголовком h3 14 px вместо 10.
   Ссылки — обычной жирности 500 вместо 600 и с полупрозрачной линией: на странице их по десятку, полужирные пестрили. */
.svc-prose > p, .svc-prose > h3, .svc-prose > ol, .svc-prose > ul:not(.svc-checks--2), .svc-fig { max-width: var(--measure); }
.svc-prose h3 { text-wrap: balance; }
.svc-prose a { font-weight: 500; text-underline-offset: .2em; text-decoration-color: rgba(13, 75, 160, .4); transition: text-decoration-color .15s; }
.svc-num li { line-height: var(--lh-body); }
/* ответы в FAQ — тоже основным цветом, это такой же текст для чтения */
.svc-faq__a { color: var(--ink); }
.svc-h2 { text-wrap: balance; }
@media (max-width: 560px) {
    .svc-prose :is(p, li), .svc-faq__a { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 6 3 3; }
}
/* семь этапов при четырёх колонках (шире 920 px): последний — обычной ширины, без растягивания на весь ряд */
@media (min-width: 921px) {
    .svc-steps:has(> :nth-child(7):last-child) > .svc-step:last-child { grid-column: auto; }
}
/* ============================================================
   ВЕРСИЯ 269: ПЕРВЫЙ ЭКРАН УСЛУГИ — КАК НА «РАЗМЕСТИТЬ ФРАНШИЗУ»
   Справа — «окно» (.pl-window из placement.css) со списком того, что получит клиент: значок, название, одна строка,
   галочка справа. Окно не обрезается снизу (у снимка экрана на «Разместить» внизу растворение — здесь список целиком).
   ============================================================ */
.svc-win__text b { font-family: var(--font-d); font-weight: 700; font-size: var(--fs-md); line-height: var(--lh-head); color: var(--ink); }
.svc-win__text span { font-size: var(--fs-sm); line-height: var(--lh-snug); color: var(--ink-soft); }

/* End */


/* Start:/bitrix/templates/franchise/css/quiz.css?17954128406721*/
/* ============================================================
   Подбор франшизы (квиз) — /podbor-franshizy/
   Путь: /local/templates/{ШАБЛОН}/css/quiz.css
   Токены (--ink, --green, --line, --font-d …) — из layout.css.
   Карточки франшиз в подборке — ui.css (.fr-grid, .fr-card),
   форма заявки — wishlist.css (.wl-lead) + service.css (.svc-form).
   ============================================================ */

.qz-page [hidden] { display: none !important; }   /* .hm-btn задаёт display — атрибут hidden должен побеждать */

/* ---------- заголовок ---------- */
/* Страница вопросов — узкая колонка по центру, как «Помощь», «Вакансии» и вход (раньше была прижата влево, правая
   половина экрана пустовала). Страница результатов ([data-quiz-results]) — во всю ширину: там сетка карточек. */
.qz-page:not([data-quiz-results]) { max-width: 860px; }
.qz-head { margin-bottom: 22px; }
.qz-head__sub { color: var(--ink-soft); font-size: var(--fs-lead); line-height: var(--lh-body); margin: 8px 0 0; max-width: 62ch; }

/* ---------- форма ---------- */
.qz { max-width: 820px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 28px 24px; }

/* прогресс: появляется только со скриптом (вопросы по одному) */
.qz-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.qz-progress__count { flex: 0 0 auto; font-family: var(--font-d); font-weight: 600; font-size: var(--fs-sm); color: var(--muted); }
.qz-progress__track { flex: 1 1 auto; height: 6px; border-radius: 3px; background: var(--bg); overflow: hidden; }
.qz-progress__track i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--green); transition: width .25s ease; }

/* вопрос */
.qz-step { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
.qz--js .qz-step { margin-bottom: 0; }
.qz-step__q { padding: 0; font-family: var(--font-d); font-weight: var(--fw-head); font-size: var(--fs-h3); letter-spacing: var(--ls-head); line-height: var(--lh-head); color: var(--ink); }
.qz-step__q:focus { outline: none; }
.qz-step__hint { color: var(--ink-soft); font-size: var(--fs-ui); line-height: var(--lh-ui); margin: 8px 0 0; max-width: 58ch; }

/* варианты ответа */
.qz-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-top: 18px; }
.qz-opt { position: relative; display: block; cursor: pointer; }
.qz-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }   /* скрыт визуально, но остаётся в фокусе клавиатуры */
.qz-opt span {
    display: flex; align-items: center; min-height: 54px; padding: 12px 16px;
    border: 1.5px solid var(--line); border-radius: 12px; background: #fbfcfe;
    font-family: var(--font-d); font-weight: 600; font-size: var(--fs-ui); line-height: var(--lh-head); color: var(--ink);
    transition: border-color .12s ease, background .12s ease;
}
.qz-opt:hover span { border-color: #b9c7e6; background: #fff; }
.qz-opt input:checked + span { border-color: var(--btn); box-shadow: inset 0 0 0 1px var(--btn); background: #eef4ff; color: var(--green-deep); }
.qz-opt input:focus-visible + span { outline: 3px solid rgba(27, 106, 229, .35); outline-offset: 2px; }
/* «не важно» — тише остальных: это не ответ, а отказ от условия */
.qz-opt--none span { border-style: dashed; background: transparent; font-weight: 500; color: var(--ink-soft); }

/* «другой город» */
.qz-other { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; font-size: var(--fs-ui); color: var(--ink-soft); }
.qz-other select {
    flex: 1 1 240px; max-width: 340px; font-family: inherit; font-size: var(--fs-ui); color: var(--ink);
    border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fbfcfe;
}
.qz-other select:focus-visible { outline: 3px solid rgba(27, 106, 229, .35); outline-offset: 2px; border-color: var(--green); }

/* кнопки */
.qz-nav { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.qz-nav__back {
    font-family: var(--font-d); font-weight: 600; font-size: var(--fs-ui); color: var(--ink-soft);
    background: none; border: 0; padding: 13px 8px; cursor: pointer; margin-right: auto;
}
.qz-nav__back:hover { color: var(--green-deep); }
.qz-nav__next { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); margin-left: auto; }
.qz-nav__next:hover { border-color: var(--green); color: var(--green-deep); }
.qz-nav .hm-btn--accent { margin-left: auto; }
.qz-nav__back:focus-visible, .qz-nav .hm-btn:focus-visible { outline: 3px solid rgba(27, 106, 229, .35); outline-offset: 2px; }

/* ---------- подборка ---------- */
.qz-reshead { margin-bottom: 20px; }
.qz-answers { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; }
.qz-answers__list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.qz-answers__list li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.qz-answers__list li span { font-weight: 400; color: var(--muted); }
.qz-answers__none { margin: 0; color: var(--ink-soft); font-size: var(--fs-ui); }
.qz-answers__edit { font-family: var(--font-d); font-weight: 600; font-size: var(--fs-sm); color: var(--green-deep); }

.qz-note { color: var(--ink-soft); font-size: var(--fs-ui); line-height: var(--lh-ui); margin: 0 0 16px; max-width: 70ch; }
.qz-note a { color: var(--green-deep); }
.qz-near { margin-top: 36px; }
.qz-near__h { font-family: var(--font-d); font-weight: var(--fw-head); font-size: var(--fs-h3); letter-spacing: var(--ls-head); margin: 0 0 var(--sp-h2-after); color: var(--ink); line-height: var(--lh-head); }

@media (max-width: 560px) {
    .qz { padding: 20px 16px 18px; }
    .qz-opts { grid-template-columns: 1fr 1fr; gap: 8px; }
    .qz-opt span { min-height: 50px; padding: 10px 12px; font-size: var(--fs-sm); }
    .qz-nav { flex-wrap: wrap; }
    .qz-nav .hm-btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
    .qz-progress__track i, .qz-opt span { transition: none; }
}

/* End */
/* /bitrix/templates/franchise/css/home.css?179541284057804 */
/* /bitrix/templates/franchise/css/catalog.css?179541284035350 */
/* /bitrix/templates/franchise/css/service.css?179541284033786 */
/* /bitrix/templates/franchise/css/quiz.css?17954128406721 */
