/* =========================================
   БАЗОВЫЕ НАСТРОЙКИ И ПЕРЕМЕННЫЕ
========================================= */
:root {
    --bg-light: #F9F8F6;
    --brand-green: #11281F; 
    --brand-green-dark: #07100C; 
    --accent: #FF5A36;
    --text-dark: #1D1D1F;
    --text-light: #FFFFFF;
    
    --radius-soft: 32px; 
    --radius-card: 24px;
    --radius-btn: 100px; 
    
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.08);
    --shadow-accent: 0 12px 24px rgba(255, 90, 54, 0.3);
}

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 90px; }
html, body { overflow-x: clip; width: 100%; }
body { font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif; margin: 0; padding: 0; background-color: var(--bg-light); color: var(--text-dark); line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* =========================================
   КНОПКИ (С тактильной отдачей)
========================================= */
.btn-accent, .btn-light, .btn-outline { display: inline-flex; justify-content: center; align-items: center; padding: 16px 32px; border-radius: var(--radius-btn); text-decoration: none; font-weight: 600; font-size: 16px; cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); user-select: none; -webkit-tap-highlight-color: transparent; box-sizing: border-box; }
.btn-accent { background-color: var(--accent); color: var(--text-light); border: none; box-shadow: var(--shadow-sm); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: var(--shadow-accent); }
.btn-accent:active { transform: translateY(1px) scale(0.97); box-shadow: var(--shadow-sm); }
.btn-light { background-color: rgba(255, 255, 255, 0.05); color: var(--text-light); border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-light:hover { background-color: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.4); transform: translateY(-2px); }
.btn-light:active { transform: scale(0.97); }
.btn-outline { background: transparent; color: var(--text-dark); border: 2px solid #EAEAEA; }
.btn-outline:hover { border-color: var(--text-dark); background: var(--text-dark); color: var(--text-light); }

/* =========================================
   ШАПКА САЙТА (HEADER)
========================================= */
.header { position: sticky; top: -36px; z-index: 999; background-color: #ffffff; width: 100%; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.header__top { background-color: #f8f9fa; padding: 0; height: 36px; box-sizing: border-box; }
.header__top-wrapper { height: 100%; }
.header__top-info { height: 100%; display: flex; justify-content: flex-end; align-items: center; gap: 32px; font-size: 13px; }
.header__top-info span, .header__top-info a { display: flex; align-items: center; gap: 8px; color: #666; text-decoration: none; }
.header__top-messengers { display: flex; gap: 12px; align-items: center; margin-left: 8px; padding-left: 24px; border-left: 1px solid #EAEAEA; height: 100%; }
.header__top-messengers a { display: flex; align-items: center; transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1); }
.header__top-messengers a:hover { transform: scale(1.15); }
.header__top-messengers img { width: 20px; height: 20px; opacity: 0.9; }
.header__main-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 12px 0; }
.header__logo { flex-shrink: 0; }
.header__logo img { height: 40px; width: auto; max-width: 240px; object-fit: contain; transition: all 0.3s ease; }
.header__logo:hover img { transform: scale(1.02); }
.header__nav { display: flex; align-items: center; justify-content: center; gap: 28px; flex-grow: 1; }
.header__nav-link { font-size: 14px; font-weight: 600; color: var(--text-dark); text-decoration: none; white-space: nowrap; transition: color 0.3s ease; }
.header__nav-link:hover { color: var(--accent); }
.header__actions { display: flex; align-items: center; gap: 28px; flex-shrink: 0; }
.header__contacts-stack { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 2px; }
.header__phone { font-weight: 800; font-size: 18px; color: var(--text-dark); line-height: 1.2; white-space: nowrap; text-decoration: none; transition: color 0.3s ease; }
.header__phone:hover { color: var(--accent); }
.header__callback-link { background: none; border: none; padding: 0; color: var(--accent); font-size: 12px; font-weight: 600; cursor: pointer; line-height: 1; transition: opacity 0.2s ease; }
.header__callback-link:hover { opacity: 0.7; }
.header__btn { white-space: nowrap; flex-shrink: 0; padding: 14px 28px; box-shadow: 0 4px 12px rgba(255, 90, 54, 0.2); }
.header__burger { background: none; border: none; width: 30px; height: 20px; position: relative; cursor: pointer; z-index: 102; padding: 0; margin-left: 12px; }
.header__burger span { position: absolute; width: 100%; height: 2px; background-color: var(--text-dark); left: 0; transition: all 0.3s ease; border-radius: 2px; }
.header__burger span:nth-child(1) { top: 0; }
.header__burger span:nth-child(2) { top: 9px; }
.header__burger span:nth-child(3) { bottom: 0; }
.header__burger.is-active span:nth-child(1) { transform: rotate(45deg); top: 9px; background-color: var(--accent); }
.header__burger.is-active span:nth-child(2) { opacity: 0; }
.header__burger.is-active span:nth-child(3) { transform: rotate(-45deg); bottom: 9px; background-color: var(--accent); }

/* МОБИЛЬНОЕ МЕНЮ */
.mobile-menu { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: var(--bg-light); z-index: 101; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); display: flex; flex-direction: column; box-sizing: border-box; overflow-y: auto; }
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu__close { display: none !important; }
.mobile-menu__inner { padding: 80px 24px 32px; display: flex; flex-direction: column; min-height: 100%; justify-content: flex-start; position: relative; }
.mobile-menu__nav { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.mobile-menu__link { font-size: 20px; font-weight: 700; color: var(--text-dark); text-decoration: none; transition: color 0.2s; }
.mobile-menu__link:hover { color: var(--accent); }
.mobile-menu__buttons { display: flex; flex-direction: row; gap: 12px; margin-bottom: 24px; width: 100%; box-sizing: border-box; }
.mobile-menu__action-btn { flex: 1 1 0; min-width: 0; width: 100%; padding: 16px 0 !important; font-size: 15px; border-radius: 12px; text-align: center; display: flex; justify-content: center; align-items: center; box-sizing: border-box; }
.mobile-menu__contacts { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; border-top: 1px solid rgba(0,0,0,0.05); padding-top: 24px; }
.mobile-menu__phone { font-size: 22px; font-weight: 800; color: var(--text-dark); text-decoration: none; }
.mobile-menu__socials { display: flex; gap: 16px; align-items: center; }
.mobile-menu__socials img { width: 28px; height: 28px; }
.mobile-menu__email { font-size: 15px; color: var(--text-dark); font-weight: 600; text-decoration: none; margin-left: 4px; }
.mobile-menu__address { font-size: 13px; color: #888; line-height: 1.4; }

@media (min-width: 993px) { .mobile-menu { display: none !important; } }
.d-mobile { display: none; }
@media (max-width: 1250px) { .header__nav { gap: 14px; } .header__nav-link { font-size: 13px; } .header__actions { gap: 16px; } .header__phone { font-size: 15px; } .header__btn { padding: 10px 18px; font-size: 14px;} }
@media (max-width: 992px) { .d-desktop { display: none !important; } .d-mobile { display: flex !important; } .header { top: 0 !important; } .header__main-wrapper { padding: 12px 20px; } .header__phone-mobile-text { font-size: 15px; font-weight: 800; color: var(--text-dark); text-decoration: none; margin-right: auto; margin-left: 16px; letter-spacing: -0.5px; } }
@media (max-width: 400px) { .header__phone-mobile-text { font-size: 14px; margin-left: 8px; } .header__logo img { height: 32px; } }

/* =========================================
   ПОДВАЛ (FOOTER) 
========================================= */
.footer { background-color: var(--brand-green); color: #fff; padding: 80px 0 40px; margin-top: 80px; border-radius: 40px 40px 0 0; }
.footer__wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer__content { display: flex; flex-direction: column; gap: 48px; }
.footer__logo img { height: 48px; width: auto; filter: brightness(0) invert(1); transition: opacity 0.3s ease; }
.footer__logo:hover img { opacity: 0.8; }
.footer__desc { color: rgba(255, 255, 255, 0.7); font-size: 15px; line-height: 1.6; margin: 16px 0 0 0; max-width: 400px; }
.footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer__title { font-size: 18px; font-weight: 700; margin: 0 0 24px 0; color: #fff; }
.footer__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.footer__list a, .footer__list li { color: rgba(255, 255, 255, 0.7); text-decoration: none; font-size: 15px; transition: color 0.2s ease; }
.footer__list a:hover { color: var(--accent); }
.footer__phone { font-size: 20px !important; font-weight: 800; color: #fff !important; letter-spacing: -0.5px; }
.footer__socials { display: flex; gap: 16px; margin-top: 24px; }
.footer__socials a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: rgba(255, 255, 255, 0.1); border-radius: 12px; transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); }
.footer__socials a:hover { background: var(--accent); transform: translateY(-4px); }
.footer__socials img { filter: brightness(0) invert(1); }
.footer__map { width: 100%; height: 100%; min-height: 380px; border-radius: 24px; background-color: rgba(255, 255, 255, 0.05); position: relative; overflow: hidden; -webkit-mask-image: -webkit-radial-gradient(white, black); mask-image: radial-gradient(white, black); transform: translateZ(0); isolation: isolate; }
.footer__map iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 24px; border: none; display: block; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 14px; color: rgba(255, 255, 255, 0.5); }
.footer__copy-block { display: flex; flex-direction: column; gap: 6px; }
.footer__requisites { font-size: 12px; color: rgba(255, 255, 255, 0.3); }
.footer__bottom a { color: rgba(255, 255, 255, 0.5); text-decoration: none; transition: color 0.2s ease; }
.footer__bottom a:hover { color: #fff; }
@media (max-width: 992px) { .footer__wrapper { grid-template-columns: 1fr; gap: 48px; } .footer__map { height: 400px; } }
@media (max-width: 576px) { .footer { padding: 60px 0 30px; border-radius: 24px 24px 0 0; margin-top: 60px; } .footer__logo img { height: 36px; } .footer__grid { grid-template-columns: 1fr; gap: 40px; } .footer__bottom { flex-direction: column; gap: 16px; text-align: center; } .footer__map { height: 320px; } }

/* =========================================
   МОБИЛЬНОЕ НИЖНЕЕ МЕНЮ (BOTTOM BAR)
========================================= */
.m-bottom-nav { display: none; }
@media (max-width: 992px) {
    body { padding-bottom: 70px; }
    .m-bottom-nav { display: block; position: fixed; bottom: 0; left: 0; width: 100%; z-index: 999; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid rgba(0, 0, 0, 0.06); box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.05); }
    .m-bottom-nav__inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
    .m-bottom-nav__item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: transparent; border: none; color: #7a828e; font-family: inherit; text-decoration: none; cursor: pointer; transition: color 0.2s ease, transform 0.1s ease; }
    .m-bottom-nav__item.is-active, .m-bottom-nav__item:active { color: var(--accent); transform: scale(0.95); }
    .m-bottom-nav__item.js-m-zamer-trigger { color: var(--accent); }
    .m-bottom-nav__item.js-m-zamer-trigger span { font-weight: 800; }
    .m-bottom-nav__item svg { width: 24px; height: 24px; }
    .m-bottom-nav__item span { font-size: 10px; font-weight: 600; margin-top: 2px; }
    .m-write-popup { position: absolute; bottom: calc(100% + 12px); right: 12px; background: #ffffff; border-radius: 16px; border: 1px solid rgba(0,0,0,0.06); box-shadow: 0 10px 40px rgba(0,0,0,0.1); display: flex; flex-direction: column; overflow: hidden; width: 200px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); z-index: 1000; }
    .m-write-popup.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
    .m-write-popup__item { display: flex; align-items: center; gap: 12px; padding: 16px; color: var(--text-dark); text-decoration: none; font-weight: 600; font-size: 14px; border-bottom: 1px solid rgba(0,0,0,0.04); transition: background-color 0.2s ease; }
    .m-write-popup__item:active { background-color: rgba(0,0,0,0.02); }
    .m-write-popup__item:last-child { border-bottom: none; }
    .m-write-popup__item svg, .m-write-popup__item img { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
}

/* =========================================
   МОДАЛЬНЫЕ ОКНА
========================================= */
.g-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 10000; display: flex; overflow-y: auto; overflow-x: hidden; padding: 20px; box-sizing: border-box; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.g-modal.is-active { opacity: 1; visibility: visible; }
.g-modal-overlay, .g-modal__overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(7, 16, 12, 0.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer; }
.g-modal-content, .g-modal__content { position: relative; background: #ffffff; width: 100%; max-width: 440px; padding: 48px; border-radius: 32px; box-shadow: 0 32px 80px rgba(0, 0, 0, 0.2); border: 1px solid rgba(0, 0, 0, 0.05); margin: auto; transform: translateY(20px) scale(0.95); transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); color: var(--text-dark); box-sizing: border-box; }
.g-modal.is-active .g-modal-content, .g-modal.is-active .g-modal__content { transform: translateY(0) scale(1); }
.g-modal__content--quiz { max-width: 1000px; padding: 64px; }
.g-modal-close, .g-modal__close { position: absolute; top: 24px; right: 24px; background: #f8f9fa; border: none; color: #888; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s ease; z-index: 10; padding: 0; }
.g-modal-close svg, .g-modal__close svg { width: 20px; height: 20px; }
.g-modal-close:hover, .g-modal__close:hover { background: #eaeaea; color: var(--accent); transform: rotate(90deg); }
.g-modal__header { text-align: center; margin-bottom: 32px; }
.g-modal__title { font-size: 28px; font-weight: 800; margin: 0 0 12px 0; letter-spacing: -0.5px; color: var(--text-dark); }
.g-modal__subtitle { font-size: 14px; color: #666; line-height: 1.5; margin: 0; }
.g-modal__form { display: flex; flex-direction: column; gap: 16px; }
.g-modal form .form-input { width: 100%; padding: 16px 20px; border: 1px solid #e2e8f0; border-radius: 12px; font-family: inherit; font-size: 16px; color: var(--text-dark); background: #f8fafc; transition: all 0.2s ease; box-sizing: border-box; margin: 0; }
.g-modal form .form-input:focus { outline: none; border-color: var(--accent); background: #ffffff; box-shadow: 0 0 0 4px rgba(255, 90, 54, 0.1); }
.g-modal form .btn, .g-modal form .btn-accent { width: 100%; padding: 18px; background: var(--accent); color: #ffffff; border: none; border-radius: 12px; font-size: 16px; font-weight: 700; cursor: pointer; transition: transform 0.1s ease, box-shadow 0.2s ease; box-sizing: border-box; }
.g-modal form .btn:active, .g-modal form .btn-accent:active { transform: scale(0.98); }
.g-policy { text-align: center; font-size: 13px; color: #888; margin-top: 8px; }
.g-policy a { color: var(--text-dark); text-decoration: underline; }
@media (max-width: 992px) { .g-modal-content, .g-modal__content { padding: 32px 24px; } .g-modal__content--quiz { padding: 40px 24px; } }
@media (max-width: 576px) { .g-modal { padding: 10px; } .g-modal-content, .g-modal__content { padding: 32px 16px 24px; border-radius: 20px; } .g-modal__content--quiz { padding: 48px 16px 24px; max-width: 100%; } .g-modal-close, .g-modal__close { top: 12px; right: 12px; width: 36px; height: 36px; } .g-modal__header { margin-bottom: 24px !important; } .g-modal__title { font-size: 22px; margin-bottom: 8px; } }

/* =========================================
   ТЕКСТОВЫЕ СТРАНИЦЫ И 404
========================================= */
.g-text-section { padding: 80px 0 120px; background-color: #ffffff; }
.g-text-wrapper { max-width: 860px; margin: 0 auto; }
.g-text-wrapper h1 { font-size: 40px; font-weight: 800; color: var(--text-dark); margin: 0 0 40px 0; letter-spacing: -1px; line-height: 1.2; }
.g-text-wrapper h3 { font-size: 22px; font-weight: 700; color: var(--text-dark); margin: 48px 0 20px 0; line-height: 1.4; }
.g-text-wrapper p { font-size: 16px; line-height: 1.7; color: #555; margin: 0 0 16px 0; }
.g-text-wrapper ul { margin: 0 0 24px 0; padding-left: 24px; }
.g-text-wrapper li { font-size: 16px; line-height: 1.7; color: #555; margin-bottom: 8px; }
.g-text-wrapper strong { color: var(--text-dark); font-weight: 700; }
.g-text-wrapper a { color: var(--accent); text-decoration: underline; transition: color 0.2s ease; }
.g-text-wrapper a:hover { color: var(--brand-green); }

.g-404-section { padding: 80px 0 120px; background-color: var(--bg-light); min-height: calc(100vh - 400px); display: flex; align-items: center; }
.g-404-wrapper { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; background: #ffffff; border-radius: 32px; padding: 64px; box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.03); }
.g-404-badge { display: inline-flex; align-items: center; padding: 12px 28px; background: rgba(255, 90, 54, 0.1); color: var(--accent); border-radius: 100px; font-size: 22px; font-weight: 800; margin-bottom: 24px; text-transform: uppercase; letter-spacing: 1px; }
.g-404-title { font-size: 48px; font-weight: 800; line-height: 1.1; color: var(--text-dark); margin: 0 0 24px 0; letter-spacing: -1.5px; }
.g-404-desc { font-size: 18px; line-height: 1.6; color: #666; margin: 0 0 40px 0; max-width: 500px; }
.g-404-actions { display: flex; gap: 16px; margin-bottom: 48px; }
.g-404-links { display: flex; flex-direction: column; gap: 12px; padding-top: 32px; border-top: 1px solid #EAEAEA; }
.g-404-links span { font-size: 14px; color: #888; font-weight: 600; }
.g-404-links-row { display: flex; flex-wrap: wrap; gap: 24px; }
.g-404-links-row a { color: var(--text-dark); font-weight: 700; font-size: 16px; text-decoration: none; transition: color 0.2s ease; }
.g-404-links-row a:hover { color: var(--accent); }
.g-404-visual { display: flex; justify-content: center; align-items: center; position: relative; }
.g-404-visual svg { width: 100%; max-width: 400px; height: auto; animation: float404 6s ease-in-out infinite; }
@keyframes float404 { 0% { transform: translateY(0px); } 50% { transform: translateY(-16px); } 100% { transform: translateY(0px); } }
@media (max-width: 1100px) { .g-404-title { font-size: 40px; } .g-404-wrapper { padding: 48px; gap: 40px; } }
@media (max-width: 992px) { .g-404-wrapper { grid-template-columns: 1fr; text-align: center; } .g-404-desc { margin: 0 auto 40px auto; } .g-404-actions { justify-content: center; } .g-404-links { align-items: center; } .g-404-links-row { justify-content: center; } .g-404-visual { order: -1; margin-bottom: 32px; } .g-404-visual svg { max-width: 300px; } }
@media (max-width: 576px) { .g-404-section { padding: 40px 0 80px; } .g-404-wrapper { padding: 32px 20px; border-radius: 24px; } .g-404-badge { font-size: 18px; padding: 10px 24px; margin-bottom: 20px; } .g-404-title { font-size: 32px; letter-spacing: -0.5px; margin-bottom: 16px; } .g-404-desc { font-size: 15px; margin-bottom: 32px; } .g-404-actions { flex-direction: column; width: 100%; align-items: stretch; gap: 12px; } .g-404-actions .btn-accent, .g-404-actions .btn-outline { width: 100%; box-sizing: border-box; } .g-404-links-row { gap: 16px; justify-content: center; } }

/* =========================================
   ПЛАВАЮЩИЕ КНОПКИ (ДЕСКТОП) И КНОПКА "НАВЕРХ"
========================================= */
.g-floating-messengers { position: fixed; right: 32px; bottom: 32px; z-index: 999; display: flex; flex-direction: column; align-items: flex-end; }
.g-fm-btn { width: 64px; height: 64px; border-radius: 50%; background-color: var(--accent); color: #fff; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 24px rgba(255, 90, 54, 0.4); transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease; position: relative; }
.g-fm-btn svg { width: 32px; height: 32px; transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease; }
.g-fm-btn:hover { transform: scale(1.05); }

/* Анимация превращения иконки чата в крестик при клике */
.g-fm-btn.is-active svg { transform: scale(0) rotate(-45deg); opacity: 0; }
.g-fm-btn::after { content: ''; position: absolute; width: 24px; height: 2px; background: #fff; border-radius: 2px; transform: scale(0) rotate(45deg); opacity: 0; transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); }
.g-fm-btn::before { content: ''; position: absolute; width: 2px; height: 24px; background: #fff; border-radius: 2px; transform: scale(0) rotate(45deg); opacity: 0; transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); }
.g-fm-btn.is-active::after, .g-fm-btn.is-active::before { transform: scale(1) rotate(45deg); opacity: 1; }

.g-fm-popup { position: absolute; bottom: 84px; right: 0; background: #ffffff; border-radius: 20px; box-shadow: 0 16px 48px rgba(0,0,0,0.12); border: 1px solid rgba(0,0,0,0.04); display: flex; flex-direction: column; width: 220px; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); transform-origin: bottom right; pointer-events: none; }
.g-fm-popup.is-open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: all; }
.g-fm-item { display: flex; align-items: center; gap: 12px; padding: 16px 20px; color: var(--text-dark); text-decoration: none; font-weight: 600; font-size: 15px; border-bottom: 1px solid rgba(0,0,0,0.04); transition: background-color 0.2s ease, color 0.2s ease; }
.g-fm-item:hover { background-color: #f8f9fa; color: var(--accent); }
.g-fm-item:last-child { border-bottom: none; }
.g-fm-item img, .g-fm-item svg { width: 24px; height: 24px; color: var(--accent); flex-shrink: 0; display: block; }

.g-btn-up { position: fixed; right: 36px; bottom: 112px; width: 56px; height: 56px; border-radius: 50%; background: #ffffff; border: 1px solid rgba(0,0,0,0.05); color: var(--text-dark); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 998; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); box-shadow: 0 8px 24px rgba(0,0,0,0.06); padding: 0; }
.g-btn-up.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.g-btn-up:hover { background: var(--accent); color: #ffffff; border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(255, 90, 54, 0.3); }
.g-btn-up svg { width: 24px; height: 24px; }

@media (max-width: 992px) {
    .g-floating-messengers { display: none; } /* На мобильном есть свой нижний бар */
    .g-btn-up { right: 16px; bottom: 90px; width: 48px; height: 48px; } /* На мобилке кнопка сдвигается вправо и поднимается над нижним баром */
    .g-btn-up svg { width: 20px; height: 20px; }
}