/* FlowFrame: общие части сайта, версия 2 (ноябрь 2026).
   Шапка, подвал, блок заявки, блок бота, окно заявки, кнопки. Все свои классы с приставкой ffs-,
   чтобы слой одинаково работал и на главной (свои стили), и на страницах старой темы. */
:root{
  --ffs-ink:#0a0e1a;--ffs-ink-soft:#39414f;--ffs-paper:#fafaf7;--ffs-stone:#f1efe8;--ffs-line:#e3e0d6;
  --ffs-yellow:#ffc94a;--ffs-muted:#5a6272;--ffs-ok:#0c6e44;
  --ffs-display:'Manrope','Inter',system-ui,sans-serif;--ffs-text:'Inter',system-ui,-apple-system,sans-serif;
  --ffs-ease:cubic-bezier(.2,.8,.2,1);
}
html{scroll-padding-top:92px}
.ffs-wrap{max-width:1280px;margin:0 auto;padding:0 32px;box-sizing:border-box}
.ffs-top *,.ffs-mnav *,.ffs-foot *,.ffs-start *,.ffs-chat,.ffs-chat *,.ffs-chatbtn,.ffs-chatbtn *{box-sizing:border-box}
.ffs-top a,.ffs-mnav a,.ffs-foot a,.ffs-start a{text-decoration:none;color:inherit}
.ffs-top :focus-visible,.ffs-mnav :focus-visible,.ffs-start :focus-visible{outline:3px solid var(--ffs-ink);outline-offset:3px;border-radius:6px}
.ffs-foot :focus-visible{outline:3px solid var(--ffs-yellow);outline-offset:3px;border-radius:6px}

/* кнопки общего слоя */
.ffs-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-family:var(--ffs-text);font-weight:600;font-size:15px;line-height:1;
  padding:14px 22px;min-height:46px;border-radius:12px;border:2px solid transparent;cursor:pointer;white-space:nowrap;text-decoration:none;
  transition:transform .2s var(--ffs-ease),background .2s,color .2s,border-color .2s}
.ffs-btn:active{transform:translateY(1px)}
.ffs-btn--ink,.ffs-top a.ffs-btn--ink,.ffs-mnav a.ffs-btn--ink{background:var(--ffs-ink);color:#fff;border-color:var(--ffs-ink)}
.ffs-btn--ink:hover,.ffs-top a.ffs-btn--ink:hover{background:var(--ffs-yellow);border-color:var(--ffs-yellow);color:var(--ffs-ink)}
.ffs-btn--line{background:transparent;border-color:var(--ffs-ink);color:var(--ffs-ink)}
.ffs-btn--line:hover{background:var(--ffs-ink);color:#fff}
.ffs-btn--xl{padding:18px 28px;font-size:16px;border-radius:14px;min-height:56px}

/* шапка */
.ffs-top{position:sticky;top:0;z-index:100;background:rgba(250,250,247,.94);border-bottom:1px solid var(--ffs-line);font-family:var(--ffs-text);color:var(--ffs-ink)}
@supports(backdrop-filter:blur(8px)){.ffs-top{background:rgba(250,250,247,.86);backdrop-filter:blur(14px) saturate(160%)}}
.ffs-top__in{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:76px}
.ffs-top__logo{display:flex;align-items:center;min-height:44px;flex:none}
.ffs-top__logo img{height:40px;width:auto;display:block}
.ffs-nav{display:flex;align-items:center;gap:28px;font-size:15px;font-weight:500}
.ffs-nav>a,.ffs-nav__link{color:var(--ffs-ink-soft);white-space:nowrap;transition:color .2s;padding:13px 0;line-height:1.2}
.ffs-nav>a:hover,.ffs-nav__link:hover,.ffs-dd.is-open .ffs-nav__link{color:var(--ffs-ink)}
.ffs-nav>a[aria-current="page"]{color:var(--ffs-ink);font-weight:600}
.ffs-nav__link{display:inline-flex;align-items:center;gap:6px;background:none;border:0;font:inherit;cursor:pointer}
.ffs-nav__link svg,.ffs-acct .ffs-btn svg{width:12px;height:12px;flex:none;transition:transform .2s var(--ffs-ease)}
.ffs-dd.is-open .ffs-nav__link svg,.ffs-acct.is-open .ffs-btn svg{transform:rotate(180deg)}
.ffs-top__right{display:flex;align-items:center;gap:10px;flex:none}
.ffs-dd,.ffs-acct{position:relative}
.ffs-panel{position:absolute;top:calc(100% + 10px);background:#fff;border:1px solid var(--ffs-line);border-radius:16px;padding:8px;
  box-shadow:0 24px 50px -16px rgba(10,14,26,.22);opacity:0;visibility:hidden;transform:translateY(8px);
  transition:opacity .2s var(--ffs-ease),transform .2s var(--ffs-ease),visibility .2s;z-index:5}
.ffs-panel::before{content:"";position:absolute;left:0;right:0;top:-12px;height:12px}
.is-open>.ffs-panel{opacity:1;visibility:visible;transform:none}
@media(hover:hover) and (min-width:1100px){.ffs-dd:hover>.ffs-panel{opacity:1;visibility:visible;transform:none}}
.ffs-dd .ffs-panel{left:-20px;width:620px;display:grid;grid-template-columns:1fr 1fr;gap:2px}
.ffs-acct .ffs-panel{right:0;width:220px}
.ffs-panel a{display:block;border-radius:10px;padding:13px 16px;color:var(--ffs-ink)}
.ffs-panel a:hover{background:var(--ffs-paper)}
.ffs-panel b{display:block;font-size:16px;font-weight:700;line-height:1.25}
.ffs-panel span{display:block;font-size:13px;line-height:1.4;color:var(--ffs-muted);margin-top:3px;font-weight:400}
.ffs-burger{display:none;width:44px;height:44px;border-radius:12px;border:2px solid var(--ffs-ink);background:none;cursor:pointer;padding:12px 10px;flex-direction:column;justify-content:space-between}
.ffs-burger span{display:block;height:2px;background:var(--ffs-ink);transition:transform .25s var(--ffs-ease),opacity .2s}
.ffs-burger[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.ffs-burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.ffs-burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.ffs-top__login-m{display:none;align-items:center;font-weight:600;font-size:15px;padding:10px 8px;min-height:44px}
.ffs-mnav{display:none}
@media(max-width:1279px) and (min-width:1100px){.ffs-nav{gap:20px}.ffs-top__in{gap:16px}.ffs-top .ffs-btn{padding:14px 16px}}
@media(max-width:1099px){
  .ffs-nav,.ffs-top__right .ffs-acct,.ffs-top__right .ffs-btn--ink{display:none}
  .ffs-burger{display:flex}.ffs-top__login-m{display:flex}
  .ffs-top__in{min-height:68px}.ffs-top__logo img{height:32px}
  .ffs-mnav{display:block;position:fixed;inset:68px 0 0 0;background:#fff;z-index:99;padding:8px 20px 120px;overflow:auto;
    transform:translateX(100%);visibility:hidden;transition:transform .3s var(--ffs-ease),visibility .3s;font-family:var(--ffs-text);color:var(--ffs-ink)}
  .ffs-mnav.is-open{transform:none;visibility:visible}
  .ffs-mnav__h{font-size:13px;font-weight:600;color:var(--ffs-muted);margin:18px 0 2px}
  .ffs-mnav a{display:block;font-family:var(--ffs-display);font-weight:700;font-size:20px;line-height:1.2;padding:14px 0;border-bottom:1px solid var(--ffs-line)}
  .ffs-mnav a.ffs-mnav__sub{font-family:var(--ffs-text);font-weight:600;font-size:17px;padding:12px 0}
  .ffs-mnav a.ffs-btn{display:flex;width:100%;margin-top:22px;font-family:var(--ffs-text);font-size:16px;font-weight:600;padding:18px 28px;border:2px solid var(--ffs-ink)}
  .ffs-mnav a.ffs-btn--line{margin-top:10px}
  .ffs-mnav__bot{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:56px;margin-top:10px;padding:0 20px;border:0;border-radius:14px;background:var(--ffs-stone);
    color:var(--ffs-ink);font:600 16px/1 var(--ffs-text);cursor:pointer}
  .ffs-mnav__bot svg{width:20px;height:20px}
  body.ffs-lock{overflow:hidden}
}
@media(max-width:768px){.ffs-wrap{padding:0 16px}}

/* блок заявки внизу страницы */
.ffs-start{padding:112px 0;background:var(--ffs-stone);font-family:var(--ffs-text);color:var(--ffs-ink)}
.ffs-start__grid{display:grid;grid-template-columns:1fr 1fr;gap:72px;align-items:center}
.ffs-start h2{font-family:var(--ffs-display);font-weight:800;font-size:clamp(34px,4.6vw,64px);line-height:1.06;letter-spacing:-.03em;text-wrap:balance;margin:0;color:var(--ffs-ink)}
.ffs-start--compact h2{font-size:clamp(30px,3.5vw,46px);line-height:1.1}
.ffs-start__text p{font-size:19px;line-height:1.5;color:var(--ffs-ink-soft);margin:22px 0 0;max-width:480px}
.ffs-start__text p.ffs-start__alt{font-size:16px;margin-top:20px}
.ffs-start__alt a,.ffs-start__alt button{font:inherit;font-weight:600;color:var(--ffs-ink);background:none;border:0;border-bottom:2px solid var(--ffs-yellow);padding:0 0 1px;cursor:pointer;border-radius:0}
.ffs-start__alt button:hover{border-bottom-color:var(--ffs-ink)}
/* прямые контакты рядом с формой */
.ffs-direct{margin-top:30px;max-width:480px}
.ffs-start__text p.ffs-direct__h{font-size:15px;font-weight:600;color:var(--ffs-muted);margin:0 0 12px}
.ffs-direct__list{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ffs-direct__list a{display:flex;align-items:center;gap:12px;min-height:62px;padding:10px 14px 10px 10px;border-radius:14px;background:#fff;border:1px solid var(--ffs-line);
  transition:border-color .2s,transform .2s var(--ffs-ease)}
.ffs-direct__list a:hover{border-color:var(--ffs-ink)}
.ffs-direct__list a:active{transform:translateY(1px)}
.ffs-direct__list i{width:40px;height:40px;flex:none;border-radius:10px;background:var(--ffs-stone);display:grid;place-items:center;color:var(--ffs-ink)}
.ffs-direct__list svg{width:19px;height:19px}
.ffs-direct__list span{display:block;font-size:13px;line-height:1.3;color:var(--ffs-muted);min-width:0}
.ffs-direct__list b{display:block;font-size:15px;font-weight:600;color:var(--ffs-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:1140px) and (min-width:901px),(max-width:460px){.ffs-direct__list{grid-template-columns:1fr}}
.ffs-form{background:#fff;border:1px solid var(--ffs-line);border-radius:16px;padding:32px;box-shadow:0 40px 70px -44px rgba(10,14,26,.35)}
.ffs-form label{display:block;font-size:14px;font-weight:600;margin:0 0 6px;color:var(--ffs-ink)}
.ffs-form input,.ffs-form textarea{display:block;width:100%;font:inherit;font-size:16px;line-height:1.4;padding:13px 14px;border-radius:12px;border:1px solid #cfccc0;background:#fff;color:var(--ffs-ink);margin:0 0 16px}
.ffs-form textarea{min-height:110px;resize:vertical}
.ffs-form input:focus,.ffs-form textarea:focus{outline:2px solid var(--ffs-yellow);outline-offset:1px;border-color:var(--ffs-ink)}
.ffs-form .ffs-btn{width:100%}
.ffs-form small{display:block;font-size:13px;line-height:1.45;color:var(--ffs-muted);margin-top:14px;text-align:center}
.ffs-form small a{border-bottom:1px solid currentColor}
.ffs-start .b24-form-success{background:#fff;border:1px solid var(--ffs-line);border-radius:16px;padding:40px 32px!important;font-family:var(--ffs-display);font-weight:700;font-size:22px;line-height:1.3;color:var(--ffs-ink)}
@media(max-width:900px){
  .ffs-start{padding:64px 0}
  .ffs-start__grid{grid-template-columns:1fr;gap:32px}
  .ffs-form{padding:22px}
}

/* подвал */
.ffs-foot{background:var(--ffs-ink);color:rgba(255,255,255,.66);padding:64px 0 32px;font-family:var(--ffs-text);font-size:15px;line-height:1.5}
.ffs-foot__grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr 1.1fr;gap:36px}
.ffs-foot__logo{height:52px;width:auto;display:block;margin:0 0 14px}
.ffs-foot__brand p{margin:0;max-width:290px}
.ffs-foot__h{font-family:var(--ffs-display);font-size:15px;font-weight:700;color:#fff;margin:0 0 14px}
.ffs-foot__grid a{display:block;margin:0 0 10px;transition:color .2s}
.ffs-foot a:hover,.ffs-foot__bot:hover{color:var(--ffs-yellow)}
.ffs-foot__bot{display:block;font:inherit;color:inherit;background:none;border:0;padding:0;margin:0 0 10px;cursor:pointer;text-align:left;transition:color .2s}
.ffs-foot__bottom{margin-top:44px;padding-top:24px;border-top:1px solid rgba(255,255,255,.12);font-size:13px;display:flex;justify-content:space-between;gap:8px 24px;flex-wrap:wrap}
.ffs-foot__bottom a{margin-left:20px}
.ffs-foot__bottom a:first-child{margin-left:0}
@media(max-width:1099px){.ffs-foot__grid{grid-template-columns:1fr 1fr 1fr;gap:32px}.ffs-foot__brand{grid-column:1/-1}
  .ffs-foot__grid a,.ffs-foot__bot{margin:0;padding:11px 0}.ffs-foot__h{margin-bottom:4px}.ffs-foot__bottom a{display:inline-block;padding:12px 0}}
@media(max-width:700px){
  .ffs-foot{padding:48px 0 28px}
  .ffs-foot__grid{grid-template-columns:1fr 1fr;gap:28px 20px}
  .ffs-foot__grid a,.ffs-foot__bot{margin:0;padding:11px 0}.ffs-foot__h{margin-bottom:4px}
  .ffs-foot__bottom{flex-direction:column}
  .ffs-foot__bottom a{display:inline-block;padding:12px 0;margin:0 20px 0 0}
}

/* ===== страницы старой темы: то, что общий слой переодевает ===== */
/* кнопки темы: тот же вид и поведение, что у кнопок общего слоя */
.btn.btn--primary{background:var(--ffs-ink);border-color:var(--ffs-ink);color:#fff}
.btn.btn--primary:hover{background:var(--ffs-yellow);border-color:var(--ffs-yellow);color:var(--ffs-ink);box-shadow:none;transform:none}
.btn.btn--ghost{border-color:var(--ffs-ink);color:var(--ffs-ink)}
.btn.btn--ghost:hover{background:var(--ffs-ink);color:#fff;box-shadow:none;transform:none}
.btn:active{transform:translateY(1px)}

/* окно заявки (встроенное в страницы и то, что строит сценарий темы) */
.ff-modal .ff-modal__box,.ff-modal .ff-modal__panel{background:#fff!important;color:var(--ffs-ink)!important;border:1px solid var(--ffs-line)!important;border-radius:16px!important;
  box-shadow:0 40px 80px -30px rgba(10,14,26,.5)!important;font-family:var(--ffs-text)}
.ff-modal .ff-modal__title{font-family:var(--ffs-display)!important;font-weight:800!important;letter-spacing:-.02em;color:var(--ffs-ink)!important}
.ff-modal input,.ff-modal textarea{border-radius:12px!important;border:1px solid #cfccc0!important;background:#fff!important;font-family:var(--ffs-text)!important}
.ff-modal input:focus,.ff-modal textarea:focus{outline:2px solid var(--ffs-yellow)!important;outline-offset:1px;border-color:var(--ffs-ink)!important;box-shadow:none!important}
.ff-modal .ff-modal__submit,.ff-modal button[type="submit"]{background:var(--ffs-ink)!important;color:#fff!important;border:2px solid var(--ffs-ink)!important;border-radius:12px!important;
  font-family:var(--ffs-text)!important;font-weight:600!important;text-transform:none!important;letter-spacing:0!important;box-shadow:none!important;transition:background .2s,color .2s,border-color .2s}
.ff-modal .ff-modal__submit:hover,.ff-modal button[type="submit"]:hover{background:var(--ffs-yellow)!important;border-color:var(--ffs-yellow)!important;color:var(--ffs-ink)!important;transform:none!important}


/* ===== бот: кнопка в углу экрана и окно поверх страницы ===== */
.ffs-chatbtn{position:fixed;right:24px;bottom:24px;z-index:90;display:inline-flex;align-items:center;gap:10px;min-height:54px;padding:7px 20px 7px 7px;border:0;border-radius:100px;
  background:#fff;color:var(--ffs-ink);font:600 15px/1 var(--ffs-text);cursor:pointer;
  box-shadow:0 0 0 1px rgba(10,14,26,.08),0 16px 36px -14px rgba(10,14,26,.4);transition:transform .2s var(--ffs-ease),box-shadow .2s}
.ffs-chatbtn:hover{transform:translateY(-2px);box-shadow:0 0 0 1px rgba(10,14,26,.14),0 22px 40px -14px rgba(10,14,26,.45)}
.ffs-chatbtn:active{transform:none}
.ffs-chatbtn:focus-visible,.ffs-chat :focus-visible{outline:3px solid var(--ffs-ink);outline-offset:3px}
.ffs-chatbtn__ic{width:40px;height:40px;flex:none;border-radius:50%;background:var(--ffs-yellow);display:grid;place-items:center}
.ffs-chatbtn__ic svg{width:20px;height:20px}
body.ffs-chat-on .ffs-chatbtn,body.ffs-lock .ffs-chatbtn{display:none}
.ffs-chat{position:fixed;right:24px;bottom:24px;z-index:1900;width:400px;max-width:calc(100vw - 32px);height:min(620px,calc(100vh - 48px));height:min(620px,calc(100dvh - 48px));
  display:flex;flex-direction:column;overflow:hidden;background:#fff;color:var(--ffs-ink);border-radius:20px;font-family:var(--ffs-text);
  box-shadow:0 0 0 1px rgba(10,14,26,.1),0 40px 80px -24px rgba(10,14,26,.5)}
.ffs-chat[hidden]{display:none}
@media(prefers-reduced-motion:no-preference){.ffs-chat{animation:ffsChatIn .28s var(--ffs-ease)}}
@keyframes ffsChatIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.ffs-chat__head{display:flex;align-items:center;gap:12px;padding:12px 10px 12px 16px;background:var(--ffs-ink);color:#fff;flex:none}
.ffs-chat__head img{width:40px;height:40px;border-radius:50%;object-fit:cover;flex:none;display:block}
.ffs-chat__head b{display:block;font-family:var(--ffs-display);font-weight:800;font-size:16px;line-height:1.2;letter-spacing:-.01em}
.ffs-chat__head span{display:flex;align-items:center;gap:7px;font-size:13px;line-height:1.3;color:rgba(255,255,255,.72);margin-top:3px}
.ffs-chat__head span i{width:7px;height:7px;border-radius:50%;background:#3ddc97;flex:none}
.ffs-chat__close{margin-left:auto;width:44px;height:44px;flex:none;border:0;border-radius:12px;background:none;color:#fff;cursor:pointer;display:grid;place-items:center;transition:background .2s}
.ffs-chat__close:hover{background:rgba(255,255,255,.14)}
.ffs-chat__close svg{width:20px;height:20px}
.ffs-chat .ffs-chat__close:focus-visible{outline-color:var(--ffs-yellow)}
.ffs-chat .chat{display:block;flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;padding:18px 16px 6px;gap:0;background:#fff}
.ffs-chat .chat__msg{display:flex;align-items:flex-end;gap:10px;margin:0 0 12px;transition:opacity .3s var(--ffs-ease),transform .3s var(--ffs-ease)}
.ffs-chat .chat__msg--user{justify-content:flex-end}
.ffs-chat .chat__msg--enter{opacity:0;transform:translateY(6px)}
.ffs-chat .chat__avatar{width:30px;height:30px;flex:none;border:0;border-radius:50%;overflow:hidden;background:var(--ffs-yellow);display:block}
.ffs-chat .chat__avatar img{width:100%;height:100%;object-fit:cover;display:block}
.ffs-chat .chat__bubble{max-width:82%!important;padding:11px 14px;border-radius:16px 16px 16px 4px;background:var(--ffs-stone);color:var(--ffs-ink);font-size:15px;line-height:1.45;border:0;box-shadow:none}
.ffs-chat .chat__msg--user .chat__bubble{background:var(--ffs-ink);color:#fff;border-radius:16px 16px 4px 16px}
.ffs-chat .chat__bubble p{margin:0;color:inherit;font-size:inherit;line-height:inherit}
.ffs-chat .chat__bubble p+p{margin-top:8px}
.ffs-chat .chat__dots{display:flex;gap:5px;padding:5px 2px}
.ffs-chat .chat__dots span{width:7px;height:7px;border-radius:50%;background:#9aa0ab;animation:ffsDot 1.2s infinite ease-in-out both}
.ffs-chat .chat__dots span:nth-child(2){animation-delay:.15s}.ffs-chat .chat__dots span:nth-child(3){animation-delay:.3s}
@keyframes ffsDot{0%,80%,100%{opacity:.3}40%{opacity:1}}
.ffs-chat .chat__input{display:flex;flex-direction:row;align-items:flex-end;gap:8px;margin:0;padding:12px 12px 10px 16px;border-top:1px solid var(--ffs-line);flex:none}
.ffs-chat .chat__field{flex:1 1 auto;min-width:0;min-height:46px;max-height:140px;resize:none;margin:0;font:inherit;font-size:16px;line-height:1.4;padding:11px 14px;border-radius:12px;
  border:1px solid #cfccc0;background:#fff;color:var(--ffs-ink);box-shadow:none}
.ffs-chat .chat__field::placeholder{color:#6b7280}
.ffs-chat .chat__field:focus{outline:2px solid var(--ffs-yellow);outline-offset:1px;border-color:var(--ffs-ink);box-shadow:none}
.ffs-chat__send{width:46px;height:46px;flex:none;border:0;border-radius:12px;background:var(--ffs-ink);color:#fff;cursor:pointer;display:grid;place-items:center;transition:background .2s,color .2s}
.ffs-chat__send:hover{background:var(--ffs-yellow);color:var(--ffs-ink)}
.ffs-chat__send svg{width:20px;height:20px}
.ffs-chat__hint{flex:none;font-size:12px;line-height:1.4;color:var(--ffs-muted);text-align:center;margin:0;padding:0 16px 12px}
.ffs-chat .chat__success-badge{flex:none;order:3;margin:0 12px 12px;padding:10px 14px;border:0;border-radius:12px;background:#e2f3ea;color:var(--ffs-ok);font-size:14px;font-weight:600;line-height:1.4;text-align:center}
@media(max-width:700px){
  .ffs-chat{inset:0;width:auto;max-width:none;height:auto;border-radius:0;z-index:10000;box-shadow:none}
  body.ffs-chat-on{overflow:hidden}
  body.ffs-chat-on .mcta{display:none!important}
  .ffs-chatbtn{right:16px;bottom:16px;padding:7px;min-height:54px}
  .ffs-chatbtn__t{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  body:has(.mcta--visible:not(.ffs-hide)) .ffs-chatbtn{bottom:92px}
}
@media print{.ffs-chatbtn,.ffs-chat{display:none!important}}

@media(prefers-reduced-motion:reduce){.ffs-top *,.ffs-mnav,.ffs-mnav *,.ffs-foot *,.ffs-start *,.ffs-btn,.ffs-chatbtn,.ffs-chat *{transition-duration:.01ms!important;animation-duration:.01ms!important}}
@media(max-width:360px){.ffs-top__logo img{height:27px}.ffs-top__in{gap:8px}.ffs-top__right{gap:4px}}
/* кнопка, прилипшая к низу экрана на телефоне: не мешает открытому меню и форме заявки */
body.ffs-lock .mcta,.mcta.ffs-hide{display:none!important}
/* подписи над заголовками разделов: спокойные, без прописных букв и тёмных плашек */
.section__pill,.page-hero__pill{background:none!important;color:var(--ffs-muted)!important;border:0!important;padding:0!important;box-shadow:none!important;
  font-family:var(--ffs-text);font-size:15px;font-weight:600;letter-spacing:0;text-transform:none}

/* ---------- разделы-каталоги (/integratsii/, /avtomatizaciya/, /dlya/): слева цены и кнопка, справа список ---------- */
.automation-index.ffh{padding:56px 0 96px;background:var(--ffs-paper);font-family:var(--ffs-text);color:var(--ffs-ink)}
.automation-index.ffh>.container{max-width:1280px;padding:0 32px}
.ffh .automation-index__hero{text-align:left;margin:0 0 48px;max-width:none}
.ffh .automation-index__title{font-family:var(--ffs-display);font-weight:800;font-size:clamp(36px,4.6vw,60px);line-height:1.04;letter-spacing:-.03em;color:var(--ffs-ink);margin:0 0 20px;text-wrap:balance}
.ffh .automation-index__subtitle{font-size:20px;line-height:1.55;color:var(--ffs-ink-soft);max-width:740px;margin:0;text-wrap:pretty}
.ffh__body{display:grid;grid-template-columns:292px minmax(0,1fr);gap:64px;align-items:start}
.ffh__side{position:sticky;top:104px;display:flex;flex-direction:column;align-items:flex-start;gap:24px}
.ffh__facts{margin:0;width:100%;border-top:2px solid var(--ffs-ink)}
.ffh__facts div{padding:16px 0;border-bottom:1px solid var(--ffs-line)}
.ffh__facts dt{font-family:var(--ffs-display);font-weight:800;font-size:26px;line-height:1.15;letter-spacing:-.02em;color:var(--ffs-ink)}
.ffh__facts dd{margin:4px 0 0;font-size:15px;line-height:1.45;color:var(--ffs-ink-soft)}
.ffh__side .ffs-btn{min-height:52px;padding:0 24px;font-size:16px}
.ffh__more{font-weight:600;font-size:15px;color:var(--ffs-ink);text-decoration:none;border-bottom:2px solid var(--ffs-yellow);padding-bottom:2px}
.ffh__more:hover{border-bottom-color:var(--ffs-ink)}
.ffh__list{display:flex;flex-direction:column;gap:10px;min-width:0}
.ffh .automation-section--accordion{margin:0;border:1px solid var(--ffs-line);border-radius:16px;background:#fff;box-shadow:none}
.ffh .automation-section--accordion[open]{border-color:#c9c5b8;box-shadow:none}
.ffh .automation-section--accordion>summary{padding:16px 20px}
.ffh .automation-section--accordion>summary:hover{background:var(--ffs-paper)}
.ffh .automation-section--accordion>summary:focus-visible{outline:3px solid var(--ffs-ink);outline-offset:-3px;border-radius:16px}
.ffh .automation-section--accordion .automation-section__title{font-family:var(--ffs-display);font-weight:800;font-size:20px;line-height:1.2;letter-spacing:-.015em;margin:0 0 3px;color:var(--ffs-ink)}
.ffh .automation-section--accordion .automation-section__desc{font-size:14px;line-height:1.4;color:var(--ffs-muted)}
.ffh .automation-section--accordion .automation-section__count{width:auto;min-width:38px;height:32px;padding:0 11px;border-radius:100px;background:var(--ffs-stone);color:var(--ffs-ink);font-family:var(--ffs-text);font-weight:600;font-size:14px}
.ffh .automation-section__svc-badge{width:40px;height:40px;font-size:12px}
.ffh .automation-section--accordion .automation-grid{grid-template-columns:repeat(auto-fill,minmax(236px,1fr));gap:8px;padding:16px 20px 20px}
.ffh .automation-card{min-height:0;padding:13px 16px;border:1px solid var(--ffs-line);border-radius:12px;background:var(--ffs-paper);text-align:left;align-items:flex-start;justify-content:flex-start;gap:0}
.ffh .automation-card:hover{border-color:var(--ffs-ink);background:#fff;transform:none;box-shadow:none}
.ffh .automation-card__service{display:none}
.ffh .automation-card__title{font-family:var(--ffs-text);font-weight:600;font-size:15px;line-height:1.35;margin:0;color:var(--ffs-ink)}
@media(max-width:1020px){
  .ffh__body{grid-template-columns:1fr;gap:36px}
  .ffh__side{position:static;display:grid;grid-template-columns:auto 1fr;column-gap:28px;row-gap:20px;align-items:center;width:100%}
  .ffh__facts{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);column-gap:24px}
  .ffh__facts div{border-bottom:0;padding:16px 0 0}
  .ffh__side .ffs-btn{justify-self:start}
  .ffh__more{justify-self:start;grid-column:2}
}
@media(max-width:700px){
  .automation-index.ffh{padding:36px 0 64px}
  .automation-index.ffh>.container{padding:0 16px}
  .ffh .automation-index__hero{margin-bottom:32px}
  .ffh .automation-index__subtitle{font-size:18px}
  .ffh__side{display:flex;gap:20px}
  .ffh__facts{display:block}
  .ffh__facts div{border-bottom:1px solid var(--ffs-line);padding:14px 0}
  .ffh__facts dt{font-size:22px}
  .ffh__side .ffs-btn{width:100%}
  .ffh .automation-section--accordion>summary{padding:14px 14px}
  .ffh .automation-section--accordion .automation-section__title{font-size:18px}
  .ffh .automation-section--accordion .automation-grid{grid-template-columns:1fr;padding:12px 14px 16px}
}
/* Тема задаёт html и body overflow-x:hidden, из-за этого body становится своей областью прокрутки и «прилипание» не работает:
   шапка на внутренних страницах уезжала, хотя на главной остаётся на экране. clip обрезает так же, но прокрутку не перехватывает. */
@supports (overflow:clip){html body{overflow-x:clip}}

/* ---------- первый экран внутренних страниц темы (.page-hero): по общей сетке, без узкой колонки по центру ---------- */
.page-hero{background:var(--ffs-paper)}
.page-hero .page-hero__inner{max-width:1280px}
.page-hero .page-hero__content{max-width:1100px}
.page-hero .page-hero__subtitle{max-width:720px}
.page-hero .page-hero__title{text-wrap:balance}
.page-hero .page-hero__subtitle{color:var(--ffs-ink-soft)}
.page-hero .page-hero__content>:last-child{margin-bottom:0}

/* канал без ссылки (MAX: пока только номер): выглядит как соседние, но не нажимается */
.ffs-direct__list .ffs-direct__plain{display:flex;align-items:center;gap:12px;min-height:62px;padding:10px 14px 10px 10px;border-radius:14px;background:#fff;border:1px solid var(--ffs-line);box-sizing:border-box}
.ffs-direct__list .ffs-direct__plain b{user-select:all}
.ffs-foot__txt{display:block;margin:0 0 10px}
@media(max-width:1099px){.ffs-foot__txt{margin:0;padding:11px 0}}

/* ---------- массовые страницы (связки, системы, отрасли): шаблон landing-* в новом виде ----------
   Стили шаблона встроены в тело каждой страницы и идут позже этого файла, поэтому у правил ниже впереди body:
   так они сильнее встроенных. Меняется только оформление: жёсткие тени, двойные рамки и прописные подписи уходят. */
body .landing-hero{padding:48px 0 76px;background:var(--ffs-paper)}
body .landing-hero>.container,body .landing-block>.container,body .landing-cta>.container{max-width:1280px}
body .landing-hero h1{font-family:var(--ffs-display);font-weight:800;font-size:clamp(32px,3.9vw,50px);line-height:1.06;letter-spacing:-.03em;color:var(--ffs-ink);text-wrap:balance}
body .landing-hero__sub{font-size:19px;line-height:1.55;color:var(--ffs-ink-soft)}
body .proto-hero{gap:64px}
body .proto-badge{border-radius:100px;padding:7px 14px}
body .proto-cta-note{font-size:14px;color:var(--ffs-muted)}
/* макет в первом экране: светлая карточка на тёмной подложке, как снимок кабинета на главной */
body .proto-hero__visual{border-radius:32px;padding:44px 28px 48px;background:
  radial-gradient(62% 58% at 88% 4%,rgba(255,201,74,.42),rgba(255,201,74,0) 70%),
  radial-gradient(rgba(255,255,255,.1) 1px,transparent 1.6px) 0 0/22px 22px,
  linear-gradient(160deg,#141a2b 0%,var(--ffs-ink) 60%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
body .proto-frame{border:0;border-radius:16px;box-shadow:0 50px 90px -34px rgba(0,0,0,.8),0 0 0 1px rgba(255,255,255,.14)}
body .proto-frame__bar{border-bottom:0;background:#e7e5dc}
body .proto-frame__bar span{border:0;background:#c9c6b9}
body .proto-chip{border:0;border-radius:100px;text-transform:none;letter-spacing:0;font-size:12px;font-weight:600;padding:4px 10px}
body .proto-chip--ok{background:#e3f5ec;color:#0c6e44}
body .proto-doc{border:1px solid var(--ffs-line);border-radius:12px}
body .proto-doc--in{border-color:var(--ffs-yellow);background:#fffdf4;box-shadow:none}
body .proto-doc__ico{border:0;border-radius:8px;background:var(--ffs-stone)}
body .proto-node{border:1px solid #c9c5b8;border-radius:100px;font-weight:600}
body .proto-node--hub{border-color:var(--ffs-yellow)}
/* блоки */
body .landing-block{padding:72px 0;background:#fff}
body .landing-block--alt{background:var(--ffs-paper)}
body .ff-block-head{max-width:860px;margin-bottom:12px}
body .ff-block-head__kicker{font-size:15px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--ffs-muted);margin-bottom:10px}
body .ff-block-head__title{font-family:var(--ffs-display);font-weight:800;font-size:clamp(28px,3.4vw,44px);line-height:1.1;letter-spacing:-.025em;color:var(--ffs-ink)}
body .ff-block-head__sub{font-size:18px;line-height:1.55;color:var(--ffs-ink-soft)}
body .ff-hub-pairs,body .ff-why,body .ff-steps,body .ff-scenarios,body .ff-biz{gap:12px}
body .ff-hub-pair,body .ff-why-card,body .ff-step,body .ff-sc,body .ff-bz{border:1px solid var(--ffs-line);border-radius:16px;box-shadow:none}
body .ff-hub-pair:hover,body .ff-sc:hover{transform:none;box-shadow:none;border-color:var(--ffs-ink)}
body .ff-hub-pair__title{font-size:16px}
body .ff-hub-pair__arrow{font-family:var(--ffs-text);color:var(--ffs-ink)}
body .ff-hub-open{background:var(--ffs-ink)!important;border-color:var(--ffs-ink)}
body .ff-why-card h3{font-family:var(--ffs-display);font-weight:800;font-size:19px;line-height:1.25;letter-spacing:-.01em;color:var(--ffs-ink)}
body .ff-why-card p{font-size:15.5px;line-height:1.55;color:var(--ffs-ink-soft)}
body .ff-step__num{position:static;display:inline-block;background:var(--ffs-stone);color:var(--ffs-ink);font-family:var(--ffs-text);font-size:13px;font-weight:600;border-radius:100px;padding:5px 11px;margin-bottom:4px}
body .ff-step__title{font-family:var(--ffs-display);font-weight:800;font-size:18px;letter-spacing:-.01em;color:var(--ffs-ink)}
body .ff-step__desc{font-size:15px;color:var(--ffs-ink-soft)}
body .ff-sc__buy{border:0;border-radius:12px}
body .ff-sc__open-cta{font-family:var(--ffs-text)}
body .ff-bz__label{font-family:var(--ffs-text);font-size:14px;letter-spacing:0;text-transform:none;color:var(--ffs-muted)}
body .proto-scheme{gap:10px}
body .proto-scheme__node{border:1px solid var(--ffs-line);border-radius:16px;box-shadow:none}
body .proto-scheme__node--hub{border-color:var(--ffs-yellow)}
body .proto-case__box{background:var(--ffs-ink);border:0;border-radius:20px;box-shadow:none}
body .proto-case__label{text-transform:none;letter-spacing:0;font-size:13px;font-weight:600;border:0;background:var(--ffs-yellow);color:var(--ffs-ink);border-radius:100px;padding:6px 12px}
body .proto-case__link{color:#fff;text-decoration:none;border-bottom:2px solid var(--ffs-yellow);padding-bottom:1px}
body .ff-faq__item{border-color:var(--ffs-line)}
body .ff-faq__item summary{font-family:var(--ffs-display);font-weight:800;font-size:19px;line-height:1.3;letter-spacing:-.015em;color:var(--ffs-ink)}
body .ff-faq__answer{font-size:16px;line-height:1.6;color:var(--ffs-ink-soft)}
body .proto-rel{gap:8px}
body .proto-rel a{border:1px solid var(--ffs-line);border-radius:12px;box-shadow:none;background:var(--ffs-paper)}
body .proto-rel a:hover{background:#fff;border-color:var(--ffs-ink)}
body .proto-rel__all{text-align:left}
body .proto-rel__all a{text-decoration:none;border-bottom:2px solid var(--ffs-yellow);padding-bottom:1px;font-weight:600}
body .landing-cta{background:var(--ffs-ink);padding:88px 0}
body .landing-cta h2{font-family:var(--ffs-display);font-weight:800;font-size:clamp(28px,3.4vw,44px);line-height:1.1;letter-spacing:-.025em}
body .landing-cta .btn{background:var(--ffs-yellow);border-color:var(--ffs-yellow);color:var(--ffs-ink)}
body .landing-cta .btn:hover{background:#fff;border-color:#fff;color:var(--ffs-ink)}
@media(max-width:968px){body .proto-hero{gap:36px}body .proto-hero__visual{border-radius:28px;padding:36px 14px 40px}body .proto-frame{box-shadow:0 40px 70px -30px rgba(0,0,0,.8),0 0 0 1px rgba(255,255,255,.14)}}
@media(max-width:700px){body .landing-hero{padding:32px 0 56px}body .landing-block{padding:52px 0}body .landing-cta{padding:64px 0}}

/* ---------- блог: только оформление, тексты статей не меняются ---------- */
.article__cat,.post-card__badge,.featured__cat,.featured__pill,.filter-pill{text-transform:none!important;letter-spacing:0!important}
.article__cat{font-size:13px;font-weight:600;background:var(--ffs-stone);color:var(--ffs-ink-soft)}
.post-card__badge{font-size:12px;font-weight:600}
.featured__pill{font-size:14px;font-weight:600;color:var(--ffs-muted)}
.article__title{font-family:var(--ffs-display);letter-spacing:-.025em;color:var(--ffs-ink);text-wrap:balance}
.article__body a{color:var(--ffs-ink);border-bottom:2px solid var(--ffs-yellow)}
.article__body a:hover{color:var(--ffs-ink);border-bottom-color:var(--ffs-ink)}
.article__body table{white-space:normal}
.article__body th,.article__body td{min-width:150px;vertical-align:top}
.article__body details{border-bottom:1px solid var(--ffs-line);padding:0}
.article__body details:first-of-type{border-top:2px solid var(--ffs-ink);margin-top:16px}
.article__body details summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px 0;font-family:var(--ffs-display);font-weight:800;font-size:18px;line-height:1.3;letter-spacing:-.01em;color:var(--ffs-ink)}
.article__body details summary::-webkit-details-marker{display:none}
.article__body details summary::after{content:"";width:13px;height:13px;flex:none;background:linear-gradient(var(--ffs-ink),var(--ffs-ink)) center/100% 2px no-repeat,linear-gradient(var(--ffs-ink),var(--ffs-ink)) center/2px 100% no-repeat;transition:transform .25s var(--ffs-ease)}
.article__body details[open] summary::after{transform:rotate(45deg)}
.article__body details>div,.article__body details>p{padding:0 32px 18px 0;margin:0;color:var(--ffs-ink-soft)}
.article__back-link{color:var(--ffs-ink);border-bottom:2px solid var(--ffs-yellow)}
.article__back-link:hover{border-bottom-color:var(--ffs-ink)}
.featured__inner:hover,.post-card:hover{transform:none;box-shadow:none;border-color:var(--ffs-ink)}
.post-card__read,.featured__cta{border-bottom:2px solid var(--ffs-yellow)}

/* «Интеграции»: логотипы сервисов у групп и у связок */
.ffh .automation-section__svc-badge.ffh-logo{background:#fff;border:1px solid var(--ffs-line);border-radius:12px;padding:0;overflow:hidden}
.ffh .automation-section__svc-badge.ffh-logo img{width:28px;height:28px;object-fit:contain;display:block;margin:0;border:0;border-radius:6px}
.ffh .automation-card:has(.ffh-clogo){flex-direction:row;align-items:center;gap:12px}
.ffh-clogo{flex:none;width:36px;height:36px;border-radius:10px;background:#fff;border:1px solid var(--ffs-line);display:grid;place-items:center;overflow:hidden}
.ffh-clogo img{width:24px;height:24px;object-fit:contain;display:block;margin:0;border:0;border-radius:5px}
.ffh-clogo--txt{font-size:11px;font-weight:700;color:var(--ffs-ink-soft);background:var(--ffs-stone)}

/* ---------- окно заявки: та же форма, что в блоке внизу страницы ---------- */
.ffs-req{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(10,14,26,.62);overscroll-behavior:contain;font-family:var(--ffs-text);color:var(--ffs-ink)}
.ffs-req[hidden]{display:none}
.ffs-req__box{position:relative;width:100%;max-width:520px;max-height:calc(100dvh - 40px);overflow-y:auto;background:var(--ffs-paper);border-radius:24px;padding:36px 36px 28px;box-shadow:0 60px 120px -40px rgba(0,0,0,.7);animation:ffsReq .22s cubic-bezier(.2,.8,.2,1)}
@keyframes ffsReq{from{opacity:0;transform:translateY(14px)}}
.ffs-req__x{position:absolute;top:14px;right:14px;width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:50%;background:transparent;color:var(--ffs-ink-soft);cursor:pointer;padding:0;transition:background .2s}
.ffs-req__x:hover{background:var(--ffs-stone);color:var(--ffs-ink)}
.ffs-req__x svg{width:20px;height:20px}
.ffs-req__box h2{font-family:var(--ffs-display);font-weight:800;font-size:30px;line-height:1.1;letter-spacing:-.025em;margin:0 44px 10px 0;color:var(--ffs-ink)}
.ffs-req__sub{font-size:16px;line-height:1.5;color:var(--ffs-ink-soft);margin:0 0 22px}
.ffs-req .ffs-form{box-shadow:none;border:1px solid var(--ffs-line);border-radius:20px;padding:22px 22px 18px;background:#fff;max-width:none;width:auto}
.ffs-req .ffs-form textarea{min-height:88px}
.ffs-req__alt{font-size:15px;color:var(--ffs-ink-soft);margin:18px 0 0;text-align:center}
.ffs-req__alt button{font:inherit;font-weight:600;color:var(--ffs-ink);background:none;border:0;border-bottom:2px solid var(--ffs-yellow);padding:0 0 1px;cursor:pointer}
.ffs-req__alt button:hover{border-bottom-color:var(--ffs-ink)}
.ffs-req :focus-visible{outline:3px solid var(--ffs-ink);outline-offset:3px;border-radius:6px}
.ffs-req .b24-form-success{font-size:18px;padding:32px 8px!important}
body.ffs-req-on{overflow:hidden}
body.ffs-req-on .ffs-chatbtn,body.ffs-req-on .mcta{display:none!important}
@media(max-width:560px){.ffs-req{padding:0;align-items:flex-end}.ffs-req__box{max-width:none;max-height:100dvh;border-radius:24px 24px 0 0;padding:28px 18px 22px}.ffs-req__box h2{font-size:26px}}
@media(prefers-reduced-motion:reduce){.ffs-req__box{animation:none}}
@media print{.ffs-req{display:none!important}}

/* строка-ссылка в хабе «Интеграции» в виде строки группы: ведёт на отдельную страницу, а не раскрывается */
.ffh a.ffh-golink{display:block;padding:16px 20px;color:var(--ffs-ink);text-decoration:none}
.ffh a.ffh-golink:hover{background:var(--ffs-paper);border-color:#c9c5b8}
.ffh a.ffh-golink:focus-visible{outline:3px solid var(--ffs-ink);outline-offset:-3px}
.ffh a.ffh-golink .automation-section__head{display:flex;align-items:center;gap:16px;margin:0;border:0;padding:0}
.ffh a.ffh-golink .automation-section__head-text{flex:1 1 auto;min-width:0;display:block}
.ffh a.ffh-golink .automation-section__title{display:block;font-family:var(--ffs-display);font-weight:800;font-size:20px;line-height:1.2;letter-spacing:-.015em;margin:0 0 3px;color:var(--ffs-ink)}
.ffh a.ffh-golink .automation-section__desc{display:block;font-size:14px;line-height:1.4;color:var(--ffs-muted)}
.ffh a.ffh-golink .automation-section__svc-badge{display:grid;place-items:center;flex:none}
.ffh a.ffh-golink .automation-section__count{display:grid;place-items:center;flex:none}
.ffh a.ffh-golink .ffh-golink__arrow{flex:none;transform:none}
@media(max-width:640px){.ffh a.ffh-golink{padding:14px}.ffh a.ffh-golink .automation-section__title{font-size:18px}}

/* свёрнутое продолжение длинного списка ссылок («Все связки с …» на странице системы) */
details.ffs-more{margin-top:12px}
details.ffs-more>summary{display:inline-flex;align-items:center;gap:8px;cursor:pointer;list-style:none;font-weight:600;font-size:15px;
  color:var(--ffs-ink);padding:10px 16px;border:1px solid var(--ffs-line);border-radius:100px;background:#fff}
details.ffs-more>summary::-webkit-details-marker{display:none}
details.ffs-more>summary::after{content:"";width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg)}
details.ffs-more[open]>summary::after{transform:translateY(2px) rotate(-135deg)}
details.ffs-more>summary:hover{background:var(--ffs-paper)}
details.ffs-more>summary:focus-visible{outline:3px solid var(--ffs-ink);outline-offset:2px}
details.ffs-more[open]>summary{margin-bottom:12px}

/* строка про серверы и 152-ФЗ под формулой компании в подвале (15.11.2026) */
.ffs-foot__brand p.ffs-foot__note{margin-top:12px;font-size:13px;line-height:1.5;color:rgba(255,255,255,.62)}
.ffs-nw{white-space:nowrap}
