
        /* ===== БАЗОВЫЕ СТИЛИ ===== */
        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            padding: 0;
        }

        /* ===== ВИДЖЕТ ===== */
        .chat-widget {
            position: fixed;
            bottom: 30px;
            right: 30px;
            z-index: 99998;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
        }

        .widget-container {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
        }

        /* Меню с кнопками */
        .messenger-menu {
            display: none;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 20px;
        }

        .messenger-menu.active {
            display: flex !important;
        }

        /* Стили кнопок */
        .messenger-btn {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 12px;
            padding: 12px 20px;
            color: white;
            text-decoration: none;
            border-radius: 50px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
            transition: 0.2s;
            font-weight: 500;
            white-space: nowrap;
            min-width: 200px;
            border: none;
            cursor: pointer;
            font-size: 16px;
        }

        .messenger-btn:hover {
            transform: translateX(-5px);
        }

        .messenger-btn img {
            width: 25px;
            height: 25px;
            object-fit: contain;
        }

        /* Цвета кнопок */
        .telegram { background: #0088cc; }
        .telegram:hover { background: #0077b5; }
        
        .max-messenger { 
            background: #6B4EFF; 
        }
        .max-messenger:hover { 
            background: #5438e0; 
        }
        
        .callback { 
            background: #4CAF50; 
        }
        .callback:hover { 
            background: #3d8b40; 
        }
        
        .leave-request { 
            background: #ff6b35; 
        }
        .leave-request:hover { 
            background: #e55a2b; 
        }

        /* Обёртка для главной кнопки */
        .button-wrapper {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: flex-end;
        }

        /* Пригласительный текст */
        .greeting-text {
            position: absolute;
            right: 75px;
            background: white;
            color: #333;
            padding: 12px 18px;
            border-radius: 25px;
            font-size: 15px;
            font-weight: 500;
            white-space: nowrap;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
            border: 1px solid #e0e0e0;
            
            opacity: 0;
            visibility: hidden;
            transform: translateX(20px);
            transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
            pointer-events: none;
        }

        .greeting-text::after {
            content: '';
            position: absolute;
            right: -8px;
            top: 50%;
            transform: translateY(-50%);
            width: 0;
            height: 0;
            border-left: 8px solid white;
            border-top: 8px solid transparent;
            border-bottom: 8px solid transparent;
        }

        .button-wrapper:hover .greeting-text {
            opacity: 1;
            visibility: visible;
            transform: translateX(0);
        }

        .button-wrapper.menu-open .greeting-text {
            opacity: 0 !important;
            visibility: hidden !important;
        }

        /* Главная кнопка */
        .main-button {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 60px;
            height: 60px;
            background: #0088cc;
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
            transition: all 0.3s;
            border: none;
            outline: none;
            position: relative;
        }

        .main-button:hover {
            background: #006699;
            transform: scale(1.05);
        }

        .main-button .icon {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 30px;
            height: 30px;
            transition: opacity 0.2s, transform 0.2s;
        }

        .main-button svg {
            width: 30px;
            height: 30px;
            fill: white;
        }

        .main-button .icon-chat {
            opacity: 1;
        }

        .main-button .icon-close {
            opacity: 0;
            transform: translate(-50%, -50%) rotate(-90deg);
        }

        .main-button.menu-open .icon-chat {
            opacity: 0;
            transform: translate(-50%, -50%) rotate(90deg);
        }

        .main-button.menu-open .icon-close {
            opacity: 1;
            transform: translate(-50%, -50%) rotate(0);
        }



        /* Анимация привлечения внимания */
        @keyframes shake-attention {
            0% {
                transform: scale(1) rotate(0deg);
            }
            10% {
                transform: scale(1.1) rotate(5deg);
            }
            20% {
                transform: scale(1.1) rotate(-5deg);
            }
            30% {
                transform: scale(1.1) rotate(5deg);
            }
            40% {
                transform: scale(1) rotate(0deg);
            }
            100% {
                transform: scale(1) rotate(0deg);
            }
        }

        /* Альтернативная анимация - ПУЛЬСАЦИЯ (закомментирована) */
        @keyframes pulse-attention {
            0%, 100% { 
                transform: scale(1); 
                box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
            }
            30% { 
                transform: scale(1.08); 
                box-shadow: 0 8px 25px rgba(0, 136, 204, 0.7);
            }
            60% { 
                transform: scale(1.03); 
                box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5);
            }
        }

        /* Используем покачивание */
        .main-button.animate {
            animation: shake-attention 1.6s ease-in-out;
        }

        /* Если хотите пульсацию вместо покачивания, замените на: */
        /* .main-button.animate {
            animation: pulse-attention 0.8s ease-out;
        } */






        /* ===== МОДАЛЬНЫЕ ОКНА ===== */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 99999;
            justify-content: center;
            align-items: center;
            backdrop-filter: blur(3px);
        }

        .modal-overlay.active {
            display: flex !important;
        }

        .modal-form {
            background: white;
            border-radius: 16px;
            padding: 30px;
            width: 90%;
            max-width: 420px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: modalSlideIn 0.3s ease-out;
            position: relative;
        }

        /* Компактная форма для обратного звонка */
        .modal-form.compact {
            max-width: 380px;
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

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

        .modal-header h2 {
            margin: 0;
            font-size: 22px;
            color: #333;
        }

        .modal-header .header-icon {
            font-size: 24px;
            margin-right: 8px;
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 28px;
            cursor: pointer;
            color: #999;
            padding: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: background 0.2s;
        }

        .modal-close:hover {
            background: #f0f0f0;
            color: #333;
        }

        .form-group {
            margin-bottom: 18px;
        }

        .form-group label {
            display: block;
            margin-bottom: 6px;
            font-weight: 500;
            color: #555;
            font-size: 14px;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 12px 14px;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            font-size: 15px;
            transition: border-color 0.2s;
            font-family: inherit;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #4CAF50;
        }

        .leave-request-form .form-group input:focus,
        .leave-request-form .form-group textarea:focus {
            border-color: #ff6b35;
        }

        .form-group textarea {
            min-height: 90px;
            resize: vertical;
        }

        /* Чекбокс согласия */
        .consent-group {
            margin: 20px 0 15px;
        }

        .consent-label {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            cursor: pointer;
            font-size: 13px;
            color: #666;
            line-height: 1.4;
        }

        .consent-label input[type="checkbox"] {
            width: 18px;
            height: 18px;
            margin-top: 2px;
            cursor: pointer;
            accent-color: #4CAF50;
            flex-shrink: 0;
        }

        .leave-request-form .consent-label input[type="checkbox"] {
            accent-color: #ff6b35;
        }

        .consent-label a {
            color: #4CAF50;
            text-decoration: none;
            border-bottom: 1px dashed #4CAF50;
        }

        .leave-request-form .consent-label a {
            color: #ff6b35;
            border-bottom-color: #ff6b35;
        }

        .consent-label a:hover {
            border-bottom-style: solid;
        }

        .consent-error {
            color: #f44336;
            font-size: 12px;
            margin-top: 5px;
            display: none;
        }

        .consent-error.active {
            display: block;
        }

        .submit-btn {
            width: 100%;
            padding: 14px;
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s;
            margin-top: 5px;
        }

        .submit-btn.callback-submit {
            background: #4CAF50;
        }
        
        .submit-btn.callback-submit:hover {
            background: #3d8b40;
        }
        
        .submit-btn.request-submit {
            background: #ff6b35;
        }
        
        .submit-btn.request-submit:hover {
            background: #e55a2b;
        }

        .submit-btn:disabled {
            background: #ccc;
            cursor: not-allowed;
        }

        .success-message {
            display: none;
            text-align: center;
            padding: 20px 0;
        }

        .success-message.active {
            display: block;
        }

        .success-message svg {
            width: 60px;
            height: 60px;
            fill: #4CAF50;
            margin-bottom: 15px;
        }

        .success-message h3 {
            color: #333;
            margin-bottom: 10px;
        }

        .success-message p {
            color: #666;
        }

        .form-content.hidden {
            display: none;
        }

        /* Индикатор загрузки */
        .spinner {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255,255,255,0.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 0.8s linear infinite;
            margin-right: 8px;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Адаптив */
        @media (max-width: 480px) {
            .chat-widget {
                bottom: 20px;
                right: 20px;
            }
            
            .greeting-text {
                font-size: 13px;
                padding: 10px 14px;
                right: 70px;
            }

            .modal-form {
                padding: 20px;
                width: 95%;
            }
            
            .consent-label {
                font-size: 12px;
            }
        }




        