* {
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
}

body {
    height: 100%;

    font-family: "Jost", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

img {
    max-width: 100%;
}
ul, ol {
    padding-left: 25px;
    margin-bottom: 8px;
}
p {
    margin-bottom: 8px;
}
ul:last-child, ol:last-child, p:last-child {
    margin-bottom: 0;
}

.layout {
    position: relative;
    min-width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #f6f8fa;
}
.layout header,
.layout footer {
    flex-shrink: 0;
}
.layout main {
    flex: 1;
    height: 100%;
    position: relative;
    justify-content: center;
    flex-direction: row;
    white-space: nowrap;
    display: flex;
}

.reducer {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    padding: 20px 0;
}
header img  {
    width:200px;
}
header h1  {
    font-size: 22px;
    font-weight: normal;
}
header .reducer  {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
}

.bg {
    position: fixed;
    z-index: 1;
    left: 50%;
    top: 0;
    width: 0;
    height: 100%;
    filter: blur(100px);
}

.bg_item_1 {
    left: 100px;
    top: 3%;
    background: #beebed;
    background: linear-gradient(180deg,#beebed 0,#b9d6f1 100%);
    height: 650px;
    width: 400px
}
.bg_item_2 {
    right: 230px;
    top: 3%;
    height: 550px;
    width: 500px;
    background: #beebed;
    background: linear-gradient(180deg,#beebed 0,#b9d6f1 100%)
}
.bg_item_3 {
    right: -50px;
    bottom: -12%;
    background: #beebed;
    background: linear-gradient(180deg,#beebed 0,#b9d6f1 100%);
    height: 450px;
    width: 400px
}
.bg_item_1,
.bg_item_2,
.bg_item_3 {
    border-radius: 40% 50% 30% 40%;
    position: absolute;
    transform: rotate(-180deg);
}


@keyframes transform {
    0%,100% {
        border-radius: 33% 67% 70% 30%/30% 40% 70% 70%
    }

    20% {
        border-radius: 37% 63% 51% 49%/37% 35% 35% 63%
    }

    40% {
        border-radius: 36% 64% 64% 36%/64% 48% 52% 26%
    }

    60% {
        border-radius: 37% 63% 51% 49%/30% 30% 70% 73%
    }

    80% {
        border-radius: 40% 60% 42% 58%/51% 51% 49% 59%
    }
}
@keyframes movement_zero {
    0%,100% {
        transform: none
    }

    50% {
        transform: translate(20%,10%) rotateY(10deg) scale(1.5)
    }
}
@keyframes movement_one {
    0%,100% {
        transform: none
    }

    50% {
        transform: translate(-50%,10%) rotateY(10deg) scale(1.5)
    }
}
@keyframes movement_two {
    0%,500% {
        transform: none
    }

    50% {
        transform: translate(-150%,30%) rotate(-200deg) scale(1.3)
    }
}

main {
    position: relative;
    z-index: 3;
    max-width: 700px;
    width: 100%;
    height: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin: 6px;
    background: rgba(255, 255, 255, .5);
    border-radius: 8px;
    box-shadow: 0 12px 19px rgba(0, 0, 0, .04);
    backdrop-filter: blur(1.5px);
}

.main_bg {
    flex: 1;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}
.chat {
    position: relative;
    width: 100%;
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.chat_txt {
    flex: 1;
    overflow: auto;
    max-width: 800px;
    width: 100%;
    position: relative;
}
.chat_txt_container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
}
.chat_form {
    flex-shrink: 0;
    width: 100%;
    position: relative;
}
.chat_form_ {
    padding: 12px 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: center;
    /*background: #f0f0f0;*/
    background: #ffffff;
    border: 1px solid #d1d1d1;
    /*-webkit-box-shadow: inset 0 5px 19px rgba(0,0,0,.15);*/
    /*-moz-box-shadow: inset 0 5px 19px rgba(0,0,0,.15);*/
    /*box-shadow: inset 5px 5px 24px rgba(0,0,0,.15);*/
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
}
.chat_form_ textarea {
    flex: 1;
    height: 70px;
    font-family: "Jost", sans-serif;
    outline: none;
    padding: 4px 12px;
    font-size: 16px;
    border: none;
    background-color: transparent;
}
.chat_form_ button#chat_form_btn {
    width: 40px;
    height: 40px;
    background: #4dd0d6 url('../i/send.svg') 45% 50% no-repeat;
    -webkit-background-size: auto 52%;
    background-size: auto 52%;
    -webkit-border-radius: 100%;
    -moz-border-radius: 100%;
    border-radius: 100%;
    border: none;
    outline: none;
    cursor: pointer;
    margin-left: 20px;
    margin-right: 12px;
}
.chat_form_ button#chat_form_btn.disabled {
    cursor: auto;
    opacity: .4;
}
.chat_form_ button#startVoiceBtn {
    width: 40px;
    height: 40px;
    background: #e94e1b url('../i/microphone.svg') 45% 50% no-repeat;
    -webkit-background-size: auto 52%;
    background-size: auto 52%;
    -webkit-border-radius: 100%;
    -moz-border-radius: 100%;
    border-radius: 100%;
    border: none;
    outline: none;
    cursor: pointer;
    margin-left: 20px;
}
.chat_form_ button#startVoiceBtn:active {
    -webkit-box-shadow: inset 3px 3px 5px rgba(0,0,0,.3);
    -moz-box-shadow: inset 3px 3px 5px rgba(0,0,0,.3);
    box-shadow: inset 0 0 8px rgba(0,0,0,.4);
    background-color: #ac360f;
}
.popup_message {
    position: absolute;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    border-radius: 12px;
    padding: 16px;
    background: #ffbebe;
    white-space: nowrap;
    box-shadow: 0 0 15px rgba(0,0,0,.25);
    top: 0;
    right: 0;
    z-index: 20;
    -webkit-transition: .3s all;
    -moz-transition: .3s all;
    -ms-transition: .3s all;
    -o-transition: .3s all;
    transition: .3s all;
    opacity: 0;
}
.popup_message.opacity {
    opacity: 1;
    animation-name: animate_opacity;
    animation-duration: .25s;
}
.popup_message.active {
    animation-name: animate_to_top;
    animation-duration: 1s;
}
@keyframes animate_to_top {
    0% {
        /*top: 0;*/
        opacity: 1;
    }
    60% {
        opacity: 1;
    }
    100% {
        /*top: -100px;*/
        opacity: 0;
    }
}
@keyframes animate_opacity {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.voice_msg_note {
    padding: 8px -0px;
    text-align: right;
    font-size: 16px;
    font-style: italic;
}

.chat_txt_list {
    padding: 12px 0;
}
.chat_r {
    display: flex;
    justify-content: flex-end;
    padding-left: 50px;
    max-width: 100%;
}
.chat_l {
    display: flex;
    justify-content: flex-start;
    padding-right: 50px;
    max-width: 100%;
}
.chat_msg {
    background: #ffffff;
    padding: 8px 12px;
    font-size: 16px;
    display: inline-block;
    margin-bottom: 12px;

    box-shadow: 0 5px 19px rgba(0, 0, 0, .15);
}
.chat_msg_time {
    font-size: 14px;
    color: #999999;
}
.chat_l .chat_msg {
    -webkit-border-radius: 12px 12px 12px 4px;
    -moz-border-radius: 12px 12px 12px 4px;
    border-radius: 12px 12px 12px 4px;
    background: #d5feff;
}
.chat_r .chat_msg {
    -webkit-border-radius: 12px 12px 4px 12px;
    -moz-border-radius: 12px 12px 4px 12px;
    border-radius: 12px 12px 4px 12px;
    max-width: 100%;
}
.chat_r .chat_msg_time {
    text-align: right;
}
.chat_msg_txt {
    max-width: 100%;
    white-space: normal;
    font-size: 16px;
}

.answer_images {
    display: flex;
    align-items: center;
}
.answer_images img {
    max-width: 150px;
    height: auto;
    margin: 0 4px 8px;
}

.tenders {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    margin-left: -6px;
    margin-right: -6px;
    margin-bottom: 20px;
}
.tender_block {
    margin-left: 6px;
    margin-right: 6px;
    border: 1px solid #888888;
    background: rgba(233, 78, 27, 0.14);
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    flex: 1;
}
.tender_block.active {
    border: 1px solid #464646;
    background: rgba(233, 78, 27, 0.35);
}
.tender_block h4 {
    font-size: 14px;
    font-weight: normal;
    margin-bottom: 4px;
}

aside {
    width: 280px;
    background: #ffffff;
    padding: 20px;
}
#user_data {
    white-space: normal;
}

.chat_form_fast_messages {
    padding: 8px;
}
.chat_form_fast_message {
    display: inline-block;
    background: #4dd0d6;
    line-height: 18px;
    font-size: 12px;
    -webkit-border-radius: 9px;
    -moz-border-radius: 9px;
    border-radius: 9px;
    cursor: pointer;
    padding: 0 12px;
}


.loader {
    text-align: right;
}
/*.loader span {*/
/*    display: inline-block;*/
/*    vertical-align: middle;*/
/*    width: 12px;*/
/*    height: 12px;*/
/*    background: black;*/
/*    border-radius: 100%;*/
/*    animation: loader 0.8s infinite alternate;*/
/*}*/
/*.loader span:nth-of-type(2) {*/
/*    animation-delay: 0.2s;*/
/*}*/
/*.loader span:nth-of-type(3) {*/
/*    animation-delay: 0.6s;*/
/*}*/
/*@keyframes loader {*/
/*    0% {*/
/*        opacity: 0.9;*/
/*        transform: scale(0.5);*/
/*    }*/
/*    100% {*/
/*        opacity: 0.1;*/
/*        transform: scale(1);*/
/*    }*/
/*}*/

.loader:after {
    display: inline-block;
    content: '';
    width: 32px;
    height: 32px;
    /*-webkit-border-radius: 100%;*/
    /*-moz-border-radius: 100%;*/
    /*border-radius: 100%;*/
    animation: pulse-animation .6s infinite alternate ease-in-out;
}
.loader * {
    display: none;
}
@keyframes pulse-animation {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.5);
    }
}