
html {
    scroll-behavior: smooth;
}
/* градиентный фон hero с мобильной коррекцией */
.code-bg {
    background: #ffffff;  
    border: 1px solid #e5e7eb;
}

.gradient {
    background:
        radial-gradient(circle at 10% 10%, #eef2ff, transparent 50%),
        radial-gradient(circle at 90% 30%, #ecfeff, transparent 50%);
}
.glass {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
}
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.button-primary {
    background-color: #fe6625;
    color: #ffffff;
    text-align: center;
    border-radius: 4px;
    padding: 16px 32px;
    font-weight: 500;
    line-height: 100%;
    transition: background-color .4s;
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.button-primary:hover {
    background-color: #e0551f;
}

.review-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 3px solid #fe6625;
}

.cta-container {
    background-color: #1e1e2f;
    color: white;
    padding: 4rem 2rem;
    border-radius: 24px;
    margin: 2rem auto;
    max-width: 1200px;
}
.cta-content {
    text-align: center;
}
.h3.text-is-dark {
    color: #aaa;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.text-64px.text-is-blue {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: bold;
    color: #4aa3ff;
    margin-bottom: 1rem;
}
.cta-text-wrapp {
    max-width: 600px;
    margin: 0 auto 2rem;
}
.p-16px {
    font-size: 1.2rem;
    opacity: 0.9;
}
.button-wrapper {
    text-align: center;
}

/* Модальное окно */
.modal-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-wrapper.active {
    display: flex;
}
.modal-container {
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    animation: modalFadeIn 0.3s ease;
}
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.form-wrapper {
    background-color: white;
    border-radius: 24px;
    overflow: hidden;
}
.pop-up__form {
    display: flex;
    flex-direction: column;
}
.modal-header {
    background: linear-gradient(135deg, #ff6a00 0%, #ee0979 100%);
    padding: 32px 24px;
    position: relative;
    color: white;
}
.close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}
.close-button:hover {
    background-color: rgba(255,255,255,0.3);
}
.close-button::before, .close-button::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    background-color: white;
    border-radius: 2px;
}
.close-button::before {
    transform: rotate(45deg);
}
.close-button::after {
    transform: rotate(-45deg);
}
.heading__24px {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.2;
}

.form__image {
    max-width: 120px;
    height: auto;
}
.form__wrapper {
    padding: 32px 24px;
}
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #374151;
}
.text-field {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 16px;
    transition: border-color 0.3s;
}
.text-field:focus {
    outline: none;
    border-color: #fe6625;
    box-shadow: 0 0 0 3px rgba(254,102,37,0.1);
}
.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
    cursor: pointer;
}
.checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background-color: white;
    transition: all 0.2s;
    flex-shrink: 0;
}
input[type="checkbox"]:checked + .checkbox {
    background-color: #fe6625;
    border-color: #fe6625;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}
.text-16px {
    font-size: 14px;
    color: #4b5563;
}
.modal-text-link {
    color: #fe6625;
    text-decoration: underline;
}
.submit-wrapper {
    margin-top: 16px;
}
.submit-button-primary {
    background-color: #fe6625;
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}
.submit-button-primary:hover {
    background-color: #e0551f;
}
.success-message {
    text-align: center;
}
.bold {
    font-weight: 700;
}
.div-block-4 {
    margin-top: 24px;
}
.success__button {
    background-color: #fe6625;
    color: white;
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}
.error-message {
    color: #dc2626;
    padding: 12px;
    text-align: center;
}
.w-form-done, .w-form-fail {
    display: none;
}
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #fe6625;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(254, 102, 37, 0.3);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}
.scroll-top-btn:hover {
    background-color: #e0551f;
    transform: translateY(-3px);
}

            /* МОДАЛЬНОЕ ОКНО ИИ Помошника и ИИ Менеджера*/
.modal-wrapper.active {
    display: flex;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: white;
}

#chatmsgs {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    min-height: 400px;
    max-height: 400px;
    background-color: #e5ddd5;
    background-image: radial-gradient(#cfc5b9 1px, transparent 1px);
    background-size: 20px 20px;
}
#chatmsgsManager {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    min-height: 600px;
    max-height: 600px;
    background-color: #e5ddd5;
    background-image: radial-gradient(#cfc5b9 1px, transparent 1px);
    background-size: 20px 20px;
    
    width: 100%;
    min-width: 500px;
    max-width: 1200px;
}

.msg {
    display: flex;
    margin: 6px 0;
}

#chatmsgs::-webkit-scrollbar,
#chatmsgsManager::-webkit-scrollbar {
    display: none;
}

#chatmsgs,
#chatmsgsManager {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.chat-input-wrapper {
    display: flex;
    padding: 5px;
}

.chat-input {
    flex: 1;
    padding: 12px;
    outline: none;
    font-size: 15px;
}


.chat-submit {
    width: 60px;  
    height: 60px;
    border: none;
    cursor: pointer;

    border-radius: 50%; 

    font-size: 26px; 
    
    display: flex;
    align-items: center;
    justify-content: center;

    transition: background-color 0.2s, transform 0.1s;
}



.chat-submit:active {
    transform: scale(0.95);
}

.msg {
    display: flex;
    margin: 6px 0;
    position: relative;
}

.botmsg {
    margin-right: auto;
/*    margin-left: 200px;   Сдвиг влево */
    background: #ffffff;
    color: #000;
    border-radius: 12px 12px 12px 0;
    padding: 8px 12px;
    font-size: 14px;
    position: relative;
}

.usermsg {
    margin-right: auto;
/*    margin-left: 200px;   Сдвиг вправо */
    background: #d9fdd3;
    color: #000;
    border-radius: 12px 12px 0 12px;
    padding: 8px 12px;
    font-size: 14px;
    position: relative;
}

.usermsg::after {
    content: "";
    position: absolute;
    right: -6px;
    bottom: 0;
    width: 0;
    height: 0;
    border-left: 6px solid #d9fdd3;
    border-top: 6px solid transparent;
}

.botmsg::after {
    content: "";
    position: absolute;
    left: -6px;
    bottom: 0;
    width: 0;
    height: 0;
    border-right: 6px solid #fff;
    border-top: 6px solid transparent;
}
.msg-time {
    font-size: 11px;
    color: gray;
    margin-left: 8px;
    float: right;
}

@media (min-width: 1200px) {
    .modal-container {
        max-width: 600px; /* еще шире на больших экранах */
    }
}

       

