/* Webinar 270 FAB + modal — плавающая кнопка «Вебинар по 270» и модалка с формой регистрации.
   Внедрено 2026-08-10. Используется на всех страницах, посвящённых Приказу №270. */
.wbn270-fab{position:fixed;right:20px;bottom:24px;z-index:940;display:inline-flex;align-items:center;gap:8px;padding:14px 22px;border:none;border-radius:999px;background:#2563eb;color:#fff;font-family:inherit;font-size:15px;font-weight:800;letter-spacing:.2px;cursor:pointer;box-shadow:0 10px 26px rgba(37,99,235,.45);transition:transform .15s ease,box-shadow .15s ease}
.wbn270-fab:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(37,99,235,.55);background:#1d4ed8}
.wbn270-fab.is-hidden{opacity:0;pointer-events:none;transform:translateY(8px);transition:opacity .2s ease,transform .2s ease}
body:has(.wbn270-modal.is-open) .wbn270-fab{display:none}
/* На страницах с wbn270-fab прячем cta-sticky «Написать нам» — их функции пересекаются */
body.wbn270-fab-active .cdo-sticky-cta{display:none!important}
.wbn270-fab__icon{font-size:17px;line-height:1}
@media (max-width:900px){.wbn270-fab{bottom:76px;right:16px;padding:12px 18px;font-size:14px}}
.wbn270-modal{position:fixed;inset:0;z-index:1000;display:none;align-items:center;justify-content:center;padding:16px}
.wbn270-modal.is-open{display:flex}
.wbn270-modal__overlay{position:absolute;inset:0;background:rgba(11,15,25,.62)}
.wbn270-modal__card{position:relative;z-index:1;width:min(640px,100%);max-height:calc(100vh - 32px);overflow-y:auto;background:#fff;border-radius:18px;padding:28px 28px 24px;box-shadow:0 24px 60px rgba(11,15,25,.35);font-family:inherit;-webkit-overflow-scrolling:touch}
@media (max-width:640px){.wbn270-modal__card{padding:22px 20px 20px}}
.wbn270-modal__close{position:absolute;top:10px;right:12px;width:32px;height:32px;border:none;background:transparent;font-size:24px;line-height:1;color:#697269;cursor:pointer;border-radius:8px}
.wbn270-modal__close:hover{background:#f1f3ec;color:#161b16}
.wbn270-modal__title{margin:0 0 8px;font-size:22px;font-weight:800;color:#0f172a;line-height:1.25}
.wbn270-modal__meta{margin:0 0 16px;padding:12px 14px;background:#eff6ff;border-left:3px solid #2563eb;border-radius:8px;font-size:14px;line-height:1.55;color:#1e3a8a}
.wbn270-modal__meta strong{color:#0f172a}
.wbn270-modal__section{margin:0 0 14px}
.wbn270-modal__h4{margin:0 0 6px;font-size:14px;font-weight:800;color:#0f172a;text-transform:uppercase;letter-spacing:.5px}
.wbn270-modal__list{margin:0;padding-left:18px;font-size:14px;line-height:1.6;color:#334155}
.wbn270-modal__list li{margin:0 0 4px}
.wbn270-modal__speakers{list-style:none;padding:0;margin:0;font-size:13.5px;line-height:1.55;color:#334155}
.wbn270-modal__speakers li{padding:5px 0;border-bottom:1px dashed #e2e8f0}
.wbn270-modal__speakers li:last-child{border-bottom:none}
.wbn270-modal__speakers strong{color:#0f172a}
.wbn270-modal__speakers em{color:#475569;font-style:normal;font-size:13px}
.wbn270-form{margin-top:18px;padding-top:18px;border-top:1px solid #e2e8f0}
.wbn270-form__title{margin:0 0 12px;font-size:16px;font-weight:800;color:#0f172a}
.wbn270-form .cdo-field{display:block;margin:0 0 12px}
.wbn270-form .cdo-field__label{display:block;margin-bottom:5px;font-size:13px;font-weight:600;color:#334155}
.wbn270-form .cdo-req{color:#dc2626}
.wbn270-form input[type="tel"],.wbn270-form input[type="text"],.wbn270-form input[type="email"]{width:100%;box-sizing:border-box;padding:11px 14px;border:1px solid #cbd5e1;border-radius:10px;font-size:16px;font-family:inherit;color:#0f172a;background:#fff}
.wbn270-form input:focus{outline:2px solid rgba(37,99,235,.35);border-color:#2563eb}
.wbn270-form .cdo-submit{width:100%;padding:13px 18px;border:none;border-radius:10px;background:#2563eb;color:#fff;font-size:15px;font-weight:800;font-family:inherit;cursor:pointer;transition:background .15s ease}
.wbn270-form .cdo-submit:hover{background:#1d4ed8}
.wbn270-form .cdo-submit:disabled{background:#94a3b8;cursor:wait}
.wbn270-form .cdo-consent{margin:12px 0 0;font-size:12px;line-height:1.5;color:#64748b}
.wbn270-form .cdo-consent a{color:#2563eb}
.wbn270-form .cdo-honey{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0;pointer-events:none}
.wbn270-form.cdo-form--sent .wbn270-modal__meta,.wbn270-form.cdo-form--sent .wbn270-modal__section,.wbn270-form.cdo-form--sent .wbn270-form__title,.wbn270-form.cdo-form--sent .cdo-field,.wbn270-form.cdo-form--sent .cdo-submit,.wbn270-form.cdo-form--sent .cdo-consent{display:none}
.wbn270-form .cdo-thanks{text-align:center;padding:16px 4px 8px}
.wbn270-form .cdo-thanks__icon{width:56px;height:56px;margin:0 auto 12px;border-radius:50%;background:#2563eb;color:#fff;font-size:28px;font-weight:800;display:flex;align-items:center;justify-content:center}
.wbn270-form .cdo-thanks__title{margin:0 0 10px;font-size:20px;color:#0f172a;font-weight:800}
.wbn270-form .cdo-thanks__sub{margin:0 0 16px;font-size:15px;color:#334155;line-height:1.55}
.wbn270-form .cdo-thanks__sub a{color:#2563eb;font-weight:600}
.wbn270-form .cdo-thanks__close{display:inline-flex;padding:10px 22px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#0f172a;font-size:14px;font-weight:700;font-family:inherit;cursor:pointer}
.wbn270-form .cdo-thanks__close:hover{background:#f1f5f9}
