/* INVENTO — быстрая связь: плавающая кнопка мессенджеров и нижняя панель на мобильных (page-assets/global/contact-bar). */

.fab { position: fixed; right: 24px; bottom: 24px; z-index: var(--z-float); display: none; }
@media (min-width: 1024px) { .fab { display: block; } }
.mega-open .fab { opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
.fab__btn { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--sun); color: var(--ink); box-shadow: 0 18px 40px -12px rgb(226 183 59 / .85); list-style: none; cursor: pointer; transition: scale .2s var(--ease-spring), background-color var(--dur); }
.fab__btn::-webkit-details-marker { display: none; }
.fab__btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; animation: ring 2.6s var(--ease-out) infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgb(244 205 84 / .55); } 80%, 100% { box-shadow: 0 0 0 18px rgb(244 205 84 / 0); } }
.fab__btn:hover { scale: 1.06; background: var(--amber); }
.fab__btn .i { width: 28px; height: 28px; }
.fab__x { display: none; }
.fab[open] .fab__chat { display: none; }
.fab[open] .fab__x { display: block; }
.fab[open] .fab__btn::before { animation: none; }
.fab__menu { position: absolute; right: 0; bottom: 78px; display: grid; justify-items: end; gap: 8px; }
.fab__item { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: var(--r-pill); background: var(--ink); color: var(--paper); border: 1px solid rgb(241 236 233 / .14); font: 800 15px/1 var(--font-body); white-space: nowrap; box-shadow: var(--shadow-lift); animation: fab-in .3s var(--ease-out) both; }
.fab__item:nth-child(2) { animation-delay: .05s; }
.fab__item:nth-child(3) { animation-delay: .1s; }
.fab__item .i { color: var(--sun); }
.fab__item:hover { background: var(--night); color: var(--sun); }
@keyframes fab-in { from { opacity: 0; translate: 0 10px; } }

.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-float); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgb(12 22 29 / .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid rgb(241 236 233 / .1); transform: translateY(110%); visibility: hidden; transition: transform .35s var(--ease-out), visibility 0s .35s; }
.mbar.is-visible { transform: none; visibility: visible; transition: transform .35s var(--ease-out), visibility 0s; }
@media (min-width: 1024px) { .mbar { display: none; } }
.mbar__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 16px; font: 800 15px/1 var(--font-body); }
.mbar__btn--wa { background: rgb(241 236 233 / .1); color: var(--paper); }
.mbar__btn--wa .i { color: var(--sun); }
.mbar__btn--lead { background: var(--sun); color: var(--ink); }

/* Без JS нижняя панель видна сразу */
.no-js .mbar { transform: none; visibility: visible; }
