/* BFD website menu fix v1: same palette and controls as industries. */
html body.ct-design-page :is(.onec-site-header,.onec-mobile-menu){background:#fff!important;color:#202735!important;border-color:#dce4ef!important}
html body.ct-design-page :is(.onec-site-header__nav,.onec-mobile-menu) a,html body.ct-design-page .onec-site-header__lang{color:#202735!important}
html body.ct-design-page .onec-site-header__logo svg{filter:none}
html body.ct-design-page .onec-site-header__burger span{background:#202735!important}
html body.ct-design-page .onec-site-header__actions{gap:9px!important}
html body.ct-design-page .ct-theme{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;flex:none;width:38px;height:38px;margin:0;padding:0;border:1px solid #dce4ef;border-radius:50%;background:#f4f7fb;color:#202735;font:19px/1 Arial,Helvetica,sans-serif;cursor:pointer;appearance:none}
html body.ct-design-page .ct-theme:focus-visible{outline:2px solid #79baff;outline-offset:4px}
html[data-ba-theme=dark] body.ct-design-page :is(.onec-site-header,.onec-mobile-menu){background:#101a27!important;color:#edf2fa!important;border-color:#2b394d!important}
html[data-ba-theme=dark] body.ct-design-page :is(.onec-site-header__nav,.onec-mobile-menu) a,html[data-ba-theme=dark] body.ct-design-page .onec-site-header__lang{color:#ccd9eb!important}
html[data-ba-theme=dark] body.ct-design-page .onec-site-header__logo svg{filter:brightness(0) invert(1)}
html[data-ba-theme=dark] body.ct-design-page .onec-site-header__burger span{background:#fff!important}
html[data-ba-theme=dark] body.ct-design-page .ct-theme{background:#1b2636;color:#f6dda3;border-color:#3c4e68}
@media(max-width:650px){html body.ct-design-page .ct-theme{width:32px;height:32px}}
body.ct-design-page{--ct-bg:#0b1017;--ct-fg:#edf2fa;--ct-muted:#a9b6c8;--ct-line:#293749;--ct-panel:#131e2d;--ct-accent:#91b8ee;background:var(--ct-bg);color:var(--ct-fg);font-family:Helvetica,Arial,sans-serif}
html[data-ba-theme=light] body.ct-design-page{--ct-bg:#fff;--ct-fg:#202735;--ct-muted:#59697e;--ct-line:#dce4ef;--ct-panel:#f4f7fb;--ct-accent:#315a99}
#ct-page,#ct-page *{box-sizing:border-box}#ct-page{padding-bottom:100px}#ct-page h1,#ct-page h2,#ct-page h3{color:var(--ct-fg);font-weight:400;letter-spacing:-.045em;margin:0}#ct-page a{color:inherit;text-decoration:none}#ct-page p{color:var(--ct-muted);line-height:1.65;margin:0}#ct-page :is(a,button):focus-visible{outline:3px solid var(--ct-accent);outline-offset:5px}.ct-wrap{width:min(1360px,88%);margin-inline:auto}.ct-intro{padding-block:95px 80px}.ct-kicker{font-size:11px!important;letter-spacing:.15em;color:var(--ct-accent)!important;text-transform:uppercase;margin-bottom:26px!important}#ct-page h1{font-size:clamp(48px,6.3vw,94px);line-height:1.02;max-width:1100px}.ct-lead{font-size:20px!important;max-width:630px;margin-top:30px!important}.ct-groups{border-top:1px solid var(--ct-line)}.ct-group{display:grid;grid-template-columns:.9fr 1.4fr;gap:11%;padding-block:65px 75px;border-bottom:1px solid var(--ct-line)}.ct-group-heading{position:relative;padding-top:5px}.ct-index{display:block;font-size:12px;letter-spacing:.12em;color:var(--ct-muted);margin-bottom:30px}.ct-art{display:block;width:116px;height:101px;color:var(--ct-accent);margin-bottom:28px}.ct-group-crm .ct-art{color:#a7b2db}.ct-group-extra .ct-art{color:#86b4ac}html[data-ba-theme=light] .ct-group-crm .ct-art{color:#666e99}html[data-ba-theme=light] .ct-group-extra .ct-art{color:#46776c}#ct-page h2{font-size:clamp(29px,3vw,45px);line-height:1.15}.ct-group-heading p{font-size:16px;max-width:330px;margin-top:18px!important}.ct-links{align-self:center;min-width:0;display:grid;gap:10px}#ct-page .ct-service{display:flex;gap:25px;justify-content:space-between;align-items:center;padding:30px 32px;border:1px solid transparent;border-radius:20px;background:var(--ct-panel);transition:border-color .2s,transform .2s}.ct-service:hover{border-color:var(--ct-accent)!important;transform:translateX(4px)}#ct-page h3{font-size:27px;line-height:1.2}.ct-service p{font-size:15px;max-width:440px;margin-top:9px!important}.ct-arrow{flex:none;display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--ct-line);border-radius:50%;font-size:24px;color:var(--ct-accent)}.ct-help{display:flex;gap:50px;align-items:center;justify-content:space-between;padding-top:85px}.ct-help h2{font-size:32px!important}.ct-help p{font-size:16px;max-width:540px;margin-top:15px!important}.ct-button{display:inline-flex;align-items:center;justify-content:center;gap:24px;flex:none;padding:17px 25px;border:1px solid #415877;border-radius:40px;background:#243954;color:#edf2fa;font:14px/1.3 Helvetica,Arial,sans-serif;cursor:pointer}.ct-button:hover{background:#304a6c}html[data-ba-theme=light] .ct-button{background:#20376d;border-color:#20376d;color:#fff}html[data-ba-theme=light] .ct-button:hover{background:#2c4884}
@media(max-width:900px){.ct-group{gap:6%;grid-template-columns:.8fr 1.2fr}.ct-intro{padding-block:65px}.ct-service{padding:24px!important}.ct-help{gap:25px}#ct-page h3{font-size:24px}}
@media(max-width:650px){.ct-wrap{width:90%}.ct-intro{padding-block:48px}.ct-lead{font-size:18px!important}.ct-group{grid-template-columns:1fr;gap:28px;padding-block:40px}.ct-group-heading{padding-right:82px}.ct-art{position:absolute;right:0;top:35px;width:65px;height:58px}.ct-index{margin-bottom:18px}.ct-group-heading p{max-width:100%;font-size:15px}.ct-service{padding:24px 20px!important;gap:14px}.ct-service p{font-size:14px}.ct-arrow{width:32px;height:32px;font-size:20px}.ct-help{flex-direction:column;align-items:flex-start;padding-top:48px}.ct-help h2{font-size:28px!important}#ct-page{padding-bottom:60px}.ct-service:hover{transform:none}}
@media(prefers-reduced-motion:reduce){.ct-service{transition:none!important;transform:none!important}}

/* Contacts: generous spacing, readable direct actions, no stock portraits. */
.ct-connect{padding:48px 0 70px;border-block:1px solid var(--ct-line)}.ct-direct{display:grid;grid-template-columns:1.1fr 1fr;gap:50px}.ct-direct p,.ct-messaging>p{font-size:14px;margin-bottom:14px!important}.ct-email{font-size:clamp(32px,4.4vw,64px);letter-spacing:-.055em;line-height:1.2}.ct-email span{color:var(--ct-accent)}.ct-phone{font-size:clamp(26px,3.4vw,48px);letter-spacing:-.04em;line-height:1.5}.ct-messaging{margin-top:48px}.ct-messengers{display:flex;gap:14px;flex-wrap:wrap}.ct-messenger{display:flex;justify-content:space-between;gap:40px;align-items:center;padding:19px 25px;border:1px solid var(--ct-line);border-radius:100px;font-size:16px;transition:background .2s,border-color .2s}.ct-messenger:hover{background:var(--ct-panel);border-color:var(--ct-accent)}.ct-people{padding-block:100px 80px}.ct-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:45px}.ct-person{border:1px solid var(--ct-line);background:var(--ct-panel);border-radius:24px;padding:32px;min-width:0;display:flex;flex-direction:column}.ct-role{font-size:13px;min-height:44px}.ct-person h3{font-size:30px!important;line-height:1.2;margin:25px 0 36px!important;max-width:230px}.ct-person a{font-size:16px;overflow-wrap:anywhere;margin-top:auto;color:var(--ct-accent)!important}.ct-help{border-top:1px solid var(--ct-line)}
@media(max-width:900px){.ct-grid{gap:12px}.ct-person{padding:24px 20px}.ct-person h3{font-size:26px!important}.ct-person a{font-size:14px}.ct-direct{gap:25px}}
@media(max-width:650px){.ct-direct{grid-template-columns:1fr;gap:32px}.ct-connect{padding-block:30px 45px}.ct-messaging{margin-top:35px}.ct-messenger{padding:16px 20px;gap:25px;font-size:14px}.ct-people{padding-block:55px}.ct-grid{grid-template-columns:1fr;margin-top:28px}.ct-role{min-height:0}.ct-person h3{max-width:none;margin:18px 0 26px!important}.ct-person a{font-size:16px}}

/* BFD contacts form fix v1: native Fancybox button keeps its close action. */
html body.ct-design-page #modal-order :is(.f-button.is-close-btn,.fancybox-close-small),
html body.ct-design-page .fancybox__container:has(#modal-order) .f-button.is-close-btn {
 color:#263750!important;background:#f1f4f8!important;border:1px solid #bdcadb!important;opacity:1!important;
 width:44px!important;height:44px!important;padding:0!important;
}
html[data-ba-theme=dark] body.ct-design-page #modal-order :is(.f-button.is-close-btn,.fancybox-close-small),
html[data-ba-theme=dark] body.ct-design-page .fancybox__container:has(#modal-order) .f-button.is-close-btn {
 color:#edf2fa!important;background:#213149!important;border-color:#50627b!important;
}
html body.ct-design-page #modal-order :is(.f-button.is-close-btn,.fancybox-close-small)::before,
html body.ct-design-page .fancybox__container:has(#modal-order) .f-button.is-close-btn::before {
 content:"×"!important;display:grid!important;place-items:center!important;position:absolute!important;inset:0!important;
 font:30px/1 Arial,sans-serif!important;color:inherit!important;pointer-events:none!important;background:none!important;transform:none!important;
}
html body.ct-design-page #modal-order :is(.f-button.is-close-btn,.fancybox-close-small) svg,
html body.ct-design-page .fancybox__container:has(#modal-order) .f-button.is-close-btn svg{visibility:hidden!important}
html body.ct-design-page #modal-order :is(.f-button.is-close-btn,.fancybox-close-small):focus-visible{outline:2px solid #79baff!important;outline-offset:3px}
html body.ct-design-page #modal-order .onec-order-form__checks{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:16px!important}
html body.ct-design-page #modal-order input[name=tinkoff]{appearance:auto!important;position:static!important;opacity:1!important;width:20px!important;height:20px!important;accent-color:#4679bc;flex:none}


/* BFD contacts form layout v3 */
html body.ct-design-page #modal-order.onec-order-modal {
  box-sizing: border-box !important;
  max-height: calc(100vh - 32px) !important;
  max-height: calc(100dvh - 32px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain;
}
html body.ct-design-page #modal-order .onec-order-form__checks {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 14px !important;
}
html body.ct-design-page #modal-order .onec-order-check {
  position: relative !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
html body.ct-design-page #modal-order .onec-order-check > input[type=checkbox] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
html body.ct-design-page #modal-order .onec-order-check:focus-within::before {
  outline: 2px solid #79baff;
  outline-offset: 3px;
}
html body.ct-design-page #modal-order .onec-order-submit {
  flex-shrink: 0 !important;
}
