/* === Контейнер виджета === */
            .contact-widget {
                position: fixed;
                right: 24px;
                bottom: 24px;
                z-index: 9999;
                display: flex;
                flex-direction: column;
                align-items: flex-end;
                gap: 12px;
            }

            /* === Общий контейнер для всплывающих шагов === */
            .widget-popup {
                position: relative;
                opacity: 0;
                visibility: hidden;
                transform: translateY(20px) scale(0.85);
                transform-origin: bottom right;
                transition:
                    opacity 0.3s ease,
                    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                    visibility 0.3s;
                pointer-events: none;
            }

            .contact-widget.open .widget-popup {
                opacity: 1;
                visibility: visible;
                transform: translateY(0) scale(1);
                pointer-events: auto;
            }

            /* === Шаги (экраны) === */
            .step {
                display: none;
                flex-direction: column;
                align-items: flex-end;
                gap: 10px;
                animation: stepIn 0.35s ease;
            }

            .step.active {
                display: flex;
            }

            @keyframes stepIn {
                from {
                    opacity: 0;
                    transform: translateX(20px);
                }
                to {
                    opacity: 1;
                    transform: translateX(0);
                }
            }

            /* === Карточка (общий стиль для блоков) === */
            .card {
                background: #ffffff;
                padding: 12px;
                border-radius: 14px;
                box-shadow: 0 6px 22px rgba(0, 0, 0, 0.13);
                min-width: 220px;
            }

            .card-header {
                display: flex;
                align-items: center;
                justify-content: space-between;
                margin-bottom: 10px;
            }

            .card-title {
                font-size: 13px;
                font-weight: 600;
                color: #333;
            }

            .card-subtitle {
                font-size: 11px;
                color: #888;
                text-transform: uppercase;
                letter-spacing: 0.5px;
            }

            .back-btn {
                background: transparent;
                border: none;
                cursor: pointer;
                color: #4a6cf7;
                font-size: 13px;
                padding: 4px 8px;
                border-radius: 6px;
                display: flex;
                align-items: center;
                gap: 4px;
                font-family: inherit;
                transition: background 0.2s ease;
            }

            .back-btn:hover {
                background: rgba(74, 108, 247, 0.1);
            }

            .back-btn svg {
                width: 14px;
                height: 14px;
                fill: currentColor;
            }

            /* === Кнопки филиалов === */
            .branch-btn {
                display: block;
                width: 100%;
                background: #f5f5f7;
                border: 2px solid transparent;
                color: #333;
                padding: 10px 16px;
                font-size: 14px;
                font-weight: 500;
                border-radius: 10px;
                cursor: pointer;
                transition: all 0.25s ease;
                white-space: nowrap;
                font-family: inherit;
                text-align: left;
                margin-bottom: 6px;
            }

            .branch-btn:last-child {
                margin-bottom: 0;
            }

            .branch-btn:hover {
                background: #eef1ff;
                border-color: #4a6cf7;
                transform: translateX(-3px);
            }

            .branch-btn:active {
                transform: translateX(-3px) scale(0.98);
            }

            .branch-btn .branch-icon {
                display: inline-block;
                margin-right: 8px;
            }

            /* === Кнопки мессенджеров === */
            .messenger-list {
                display: flex;
                flex-direction: column;
                gap: 10px;
            }

            .messenger-btn {
                display: flex;
                align-items: center;
                gap: 12px;
                padding: 10px 14px;
                background: #f5f5f7;
                border-radius: 10px;
                text-decoration: none;
                color: #333;
                transition:
                    transform 0.25s ease,
                    background 0.2s ease;
                animation: slideIn 0.4s ease backwards;
            }

            .messenger-btn:nth-child(1) {
                animation-delay: 0.05s;
            }
            .messenger-btn:nth-child(2) {
                animation-delay: 0.12s;
            }

            .messenger-btn:hover {
                background: #eef1ff;
                text-decoration: none;
                transform: translateX(-3px);
            }

            .messenger-btn:active {
                transform: translateX(-3px) scale(0.98);
            }

            .messenger-icon {
                width: 40px;
                height: 40px;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                flex-shrink: 0;
            }

            .messenger-icon.telegram {
                background: #28a8e9;
            }
            .messenger-icon.whatsapp {
                background: #25d366;
            }
            .messenger-icon.max {
                background: #53e;
                background: linear-gradient(
                    40deg,
                    rgba(68, 204, 255, 1) 0%,
                    rgba(85, 51, 238, 1) 50%,
                    rgba(0, 0, 255, 1) 100%
                );
            }

            .messenger-icon svg {
                width: 22px;
                height: 22px;
                fill: #fff;
            }

            .messenger-info {
                display: flex;
                flex-direction: column;
                line-height: 1.2;
            }

            .messenger-name {
                font-size: 14px;
                font-weight: 600;
                color: #333;
            }

            .messenger-contact {
                font-size: 12px;
                color: #888;
            }

            @keyframes slideIn {
                from {
                    opacity: 0;
                    transform: translateY(15px);
                }
                to {
                    opacity: 1;
                    transform: translateY(0);
                }
            }

            /* === Главная кнопка чата === */
            .chat-toggle {
                width: 64px;
                height: 64px;
                border-radius: 50%;
                background: linear-gradient(135deg, #8f6fea 0%, #b12f9b 100%);
                border: none;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
                box-shadow: 0 6px 20px rgba(74, 108, 247, 0.45);
                transition:
                    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                    box-shadow 0.3s ease;
                position: relative;
                animation: pulse 2.5s infinite;
            }

            .chat-toggle:hover {
                transform: scale(1.08);
                box-shadow: 0 8px 26px rgba(74, 108, 247, 0.55);
                animation: none;
            }

            .chat-toggle:active {
                transform: scale(0.92);
            }

            .contact-widget.open .chat-toggle {
                transform: rotate(135deg);
                background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
                animation: none;
            }

            .contact-widget.open .chat-toggle:hover {
                transform: rotate(135deg) scale(1.08);
            }

            .chat-toggle svg {
                width: 30px;
                height: 30px;
                fill: #fff;
            }

            .chat-toggle .icon-close {
                position: absolute;
                opacity: 0;
                transform: scale(0.5);
                transition:
                    opacity 0.25s ease,
                    transform 0.3s ease;
            }

            .contact-widget.open .icon-chat {
                opacity: 0;
                transform: scale(0.5);
            }

            .contact-widget.open .icon-close {
                opacity: 1;
                transform: scale(1) rotate(-135deg);
            }

            .icon-chat {
                transition:
                    opacity 0.25s ease,
                    transform 0.3s ease;
            }

            @keyframes pulse {
                0%,
                100% {
                    box-shadow:
                        0 6px 20px rgba(74, 108, 247, 0.45),
                        0 0 0 0 rgba(74, 108, 247, 0.5);
                }
                50% {
                    box-shadow:
                        0 6px 20px rgba(74, 108, 247, 0.45),
                        0 0 0 14px rgba(74, 108, 247, 0);
                }
            }

            /* === Адаптивность для мобильных === */
            @media (max-width: 480px) {
                .contact-widget {
                    right: 16px;
                    bottom: 16px;
                    gap: 10px;
                }

                .chat-toggle {
                    width: 56px;
                    height: 56px;
                }

                .chat-toggle svg {
                    width: 26px;
                    height: 26px;
                }

                .card {
                    min-width: 200px;
                    padding: 10px;
                }

                .branch-btn {
                    padding: 10px 14px;
                    font-size: 13px;
                }

                .messenger-btn {
                    padding: 8px 12px;
                }

                .messenger-icon {
                    width: 36px;
                    height: 36px;
                }

                .messenger-icon svg {
                    width: 20px;
                    height: 20px;
                }

                .messenger-name {
                    font-size: 13px;
                }

                .messenger-contact {
                    font-size: 11px;
                }
            }

            @media (max-width: 360px) {
                .chat-toggle {
                    width: 50px;
                    height: 50px;
                }

                .chat-toggle svg {
                    width: 22px;
                    height: 22px;
                }

                .card {
                    min-width: 180px;
                }
            }
