* {
    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;
}
.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;
}

main {
    position: relative;
    background: #dedede;
}
.chat {
    position: relative;
    max-width: 600px;
    min-width: 600px;

    display: flex;
    flex-direction: column;
    align-items: center;
}
.chat_txt {
    flex: 1;
    overflow: auto;
    max-width: 800px;
    width: 100%;
    background: #ededed;
}
.chat_form {
    flex-shrink: 0;
    max-width: 800px;
    width: 100%;
    background: #ededed;
    position: relative;
}
.chat_form_ {
    padding: 12px 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: center;
}
.chat_form_ textarea {
    flex: 1;
    height: 70px;
    font-family: "Jost", sans-serif;
    outline: none;
    padding: 4px 12px;
    font-size: 16px;
}
.chat_form_ button#chat_form_btn {
    width: 40px;
    height: 40px;
    background: #e94e1b 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;
}
.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 {
    border: 1px solid #828282;
    background: #ffffff;
    padding: 8px;
    font-size: 16px;
    display: inline-block;
    margin-bottom: 12px;
}
.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: #f3f3f3;
}
.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;
}

.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;
}


.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);
    }
}
