.elementor-473 .elementor-element.elementor-element-2c9cd08{--display:flex;--margin-top:0px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-473 .elementor-element.elementor-element-2c9cd08:not(.elementor-motion-effects-element-type-background), .elementor-473 .elementor-element.elementor-element-2c9cd08 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#FFFFFF;}.elementor-473 .elementor-element.elementor-element-d3de653 > .elementor-widget-container{margin:0px 0px 0px 0px;padding:0px 0px 0px 0px;}.elementor-widget-button .elementor-button{background-color:var( --e-global-color-accent );font-family:var( --e-global-typography-accent-font-family ), Sans-serif;font-weight:var( --e-global-typography-accent-font-weight );}body.elementor-page-473:not(.elementor-motion-effects-element-type-background), body.elementor-page-473 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#FFFFFF;}/* Start custom CSS for html, class: .elementor-element-d3de653 *//* 1. Global */
@import url('https://fonts.googleapis.com/css2?family=Alegreya:wght@400;700&display=swap');

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #ffffff;
    font-family: 'Alegreya', serif;
    touch-action: manipulation;
}

/* 2. Main chat wrapper */
.chat-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    position: relative;
}

/* 3. Messages area */
.chat-body {
    flex: 1;
    display: flex;
    justify-content: center;
    overflow-y: auto;
    padding-bottom: 90px;
}

.chat-messages-list {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* 4. Message styles */
.chat-message {
    display: flex;
    flex-direction: column;
    width: 100%;
    line-height: 1.6;
    font-size: 19px;
    color: #1f1f1f;
}

.chat-message-from-bot {
    align-self: flex-start;
}

.chat-message-from-user {
    align-self: flex-end;
    background-color: #f0f2f5;
    padding: 14px 24px;
    border-radius: 24px;
    max-width: 85%;
}

/* 5. Footer — фиксированный внизу */
.chat-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(to top, #ffffff 70%, transparent);
    z-index: 10000;
    width: 100%;
    box-sizing: border-box;
}

/* 6. Поле ввода — центрируем всё по вертикали */
.chat-inputs {
    max-width: 100% !important;
    width: 100% !important;
    display: flex !important;
    align-items: center; /* Центрируем по вертикали */
    background: #ffffff;
    border: 1px solid #dee1e5;
    border-radius: 20px;
    padding: 8px 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    box-sizing: border-box;
    min-height: 52px;
}

.chat-inputs:focus-within {
    border-color: #4285f4;
    box-shadow: 0 8px 24px rgba(32,33,36,0.12);
}

/* Контейнер для textarea + кнопка в ряд */
.chat-inputs > *:not(textarea) {
    flex-shrink: 0;
}

.chat-inputs textarea {
    flex: 1 !important;
    width: 100% !important;
    border: none !important;
    outline: none !important;
    padding: 10px 0;
    font-size: 17px;
    font-family: inherit;
    background: transparent;
    resize: none;
    max-height: 120px;
    display: block;
    line-height: 1.4;
    min-height: 24px;
    -webkit-appearance: none;
    appearance: none;
    margin: 0 8px; /* Отступ от краев и кнопки */
}

/* 7. Send button — по центру */
.chat-input-send-button {
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 8px !important;
    color: #4285f4 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    /* Центрирование обеспечивается через align-items: center на родителе */
}

.chat-input-send-button:hover:not(:disabled) {
    transform: scale(1.1);
}

.chat-input-send-button:disabled {
    color: #bdc1c6 !important;
    opacity: 0.6;
}

/* 8. Controls wrapper */
.chat-inputs-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 9. Desktop */
@media (min-width: 769px) {
    .chat-footer {
        padding: 20px 200px;
    }
    
    .chat-body {
        padding-bottom: 100px;
    }
}

/* 10. Mobile */
@media (max-width: 768px) {
    .chat-messages-list {
        padding: 20px 16px;
        gap: 24px;
    }
    
    .chat-message {
        font-size: 17px;
    }
    
    .chat-message-from-user {
        max-width: 90%;
        padding: 12px 18px;
    }
    
    .chat-footer {
        padding: 12px 16px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
    
    .chat-body {
        padding-bottom: 80px;
    }
    
    .chat-inputs {
        padding: 6px 12px;
    }
    
    .chat-inputs textarea {
        padding: 8px 0;
    }
}

/* 11. Typing animation */
.chat-message-typing-body {
    display: flex;
    gap: 5px;
    padding: 10px 0;
}

.chat-message-typing-circle {
    width: 7px;
    height: 7px;
    background: #4285f4;
    border-radius: 50%;
    animation: bounce 1s infinite alternate;
}

.chat-message-typing-circle:nth-child(2) { animation-delay: 0.2s; }
.chat-message-typing-circle:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    from { opacity: 0.3; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1.1); }
}/* End custom CSS */
/* Start custom CSS for button, class: .elementor-element-7d1c7fa */.elementor-473 .elementor-element.elementor-element-7d1c7fa {display: none;}/* End custom CSS */
/* Start custom CSS for button, class: .elementor-element-ab0f23e */.elementor-473 .elementor-element.elementor-element-ab0f23e {display: none;}/* End custom CSS */