/* COMMON */
:root {
    --accent: #9c0;
    --accentLight: #A8DF04;
    --accentActive: #8FBF00;
    --accentRed: #D50800;
    --accentRedLight: #F00800;
    --accentRedActive: #C70000;
    --accentBlue: #809CCF;
    --accentBlueLight: #8ca8dd;
    --accentBlueActive: #728bb9;
}
html {
    height: 100%;
    scroll-behavior: smooth;
}
body {
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
}
::-webkit-scrollbar {
    block-size: 2px;
    inline-size: 2px;
}
::-webkit-scrollbar-thumb {
    background: #838383;
    cursor: pointer;
}
::-webkit-scrollbar-thumb:hover {
    background: #5E6168;
}
::-webkit-scrollbar-track {
    background: #FFFFFF;
}

.container {
    width: calc(100% - 30px);
    max-width: 1280px;
    margin: 0 auto;
}

.page-content {
    height: 100%;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.page-bg {
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.page-bg:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #171E2A;
    opacity: 0.5;
    -webkit-transition: opacity 1s;
    -o-transition: opacity 1s;
    transition: opacity 1s;
}
body.is-active-chat .page-bg:after {
    opacity: 0.85;
}
.page-bg img {
    -o-object-fit: cover;
       object-fit: cover;
}

@media screen and (max-width: 559px) {
  .page-bg img {
      object-position: 55% 50%;
  }
}

/* BUTTONS */
button {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    font-family: 'Montserrat', sans-serif;
    border: none;
    outline: none;
}
.button {
    display: inline-block;
    height: 58px;
    background-color: var(--accent);
    color: #FFFFFF;
    -webkit-transform: skewX(-12deg);
        -ms-transform: skewX(-12deg);
            transform: skewX(-12deg);
    outline: none;
    position: relative;
    cursor: pointer;
    z-index: 3;
}
.button.button-red {
    background-color: var(--accentRed);
}
.button.button-blue {
  background-color: var(--accentBlue);
}
.button.is-hidden {
    display: none;
}
.button:disabled  {
    opacity: 0.55;
    pointer-events: none;
}
.button:before {
    content: '';
    width: 0;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: var(--accentLight);
    z-index: -1;
    -webkit-transition: 0.3s ease-in-out;
    -o-transition: 0.3s ease-in-out;
    transition: 0.3s ease-in-out;
}
.button.button-red:before {
    background: var(--accentRedLight);
}
.button.button-blue:before {
    background: var(--accentBlueLight);
}
.button:hover:before,
.button:active:before {
    width: 100%;
}
.button:active:before {
    background: var(--accentActive);
}
.button.button-red:active:before {
  background: var(--accentRedActive);
}
.button.button-blue:active:before {
    background: var(--accentBlueActive);
}
.button>a,
.button__content {
    -webkit-transform: skewX(12deg);
        -ms-transform: skewX(12deg);
            transform: skewX(12deg);
    position: relative;
    display: block;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.22em;
    text-transform: uppercase;
    color: inherit;
    padding: 1.266em 3.066em;
    z-index: -1;
}
.button.button-small > a,
.button.button-small .button__content {
    padding: 1em 1.5em;
}
.button.button-small svg {
    display: none;
}
.button.button-icon > a,
.button.button-icon .button__content {
    display: flex;
    align-content: center;
    justify-content: center;
    width: 50px;
    height: 25px;
    padding: 0;
}
.button.button-icon .icon {
    display: none;
}
.button.button-icon.status-record .icon-record {
    display: block;
}
.button.button-icon.status-type .icon-type {
    display: block;
}
.button:not(.is-loading) .button__content_loading,
.button.is-loading .button__content:not(.button__content_loading) {
    opacity: 0;
    visibility: hidden;
    display: none;
}
.button.is-loading .button__content_loading {
    opacity: 1;
    visibility: visible;
}
.button>a{
    cursor: pointer;
}

@media screen and (max-width: 766px) {
  .button {
      height: 50px;
  }

  .button.button-small {
      flex-shrink: 0;
  }
  .button>a,
  .button__content,
  .button.button-small > a,
  .button.button-small .button__content {
      padding: 1em;
  }

  .button.button-icon > a,
  .button.button-icon .button__content {
      width: 40px;
      height: 22px;
  }
}

@media screen and (max-width: 559px) {
  .button {
      height: 50px;
      min-width: 240px;
  }

  .button.button-small {
      flex-shrink: 1;
      max-width: 240px;
      width: 100%;
  }

  .button.button-icon {
      min-width: auto;
  }
}


@media screen and (max-width: 399px) {
  .button {
      min-width: auto;
  }

  .button.button-small {
      width: 71%;
  }

  .button>a,
  .button__content {
      font-size: 14px;
      line-height: 1em;
  }
}

/* INPUTS */
.input {
    position: relative;
    display: flex;
    height: 58px;
    width: 100%;
    max-width: 300px;
}

.input::before {
    content: "";
    position: absolute;
    left: 5px;
    bottom: 0;
    display: block;
    width: 1px;
    height: calc(100% - 2px);
    background-color: hsla(0, 0%, 100%, .5);
    transform: skewX(-12deg);
    transition: all .3s ease;
}

.input::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    display: block;
    width: 100%;
    height: 1px;
    background-color: hsla(0, 0%, 100%, .5);
    transition: all .3s ease;
}

.input.is-hidden {
    display: none;
}

.input textarea {
    position: relative;
    height: calc(100% - 26px);
    width: 100%;
    margin: 10px 0 5px;
    padding: 5px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.5em;
    background: transparent;
    border: none;
    color: #FFFFFF;
    resize: none;
    overflow: visible;
    z-index: 4;
}

.input textarea:hover,
.input textarea:focus {
    outline: none;
}

.input label {
    position: absolute;
    top: 0;
    left: 21px;
    display: flex;
    height: 58px;
    line-height: 58px;
    color: #FFFFFF;
    opacity: 0.8;
    transition: all .3s ease;
}

.input:hover label {
    opacity: 1;
}

.input.filled label,
.input textarea:focus + label {
    height: auto;
    font-size: 11px;
    line-height: 1.25em;
    top: -12px;
    left: 20px;
    opacity: 1;
}

.input:hover::before,
.input:hover::after,
.input:has(textarea:focus)::before,
.input:has(textarea:focus)::after,
.input.filled::before,
.input.filled::after {
    background-color: hsla(0, 0%, 100%, 1);
}

@media (max-width: 767px) {
    .input {
        height: 50px;
    }

    .input label {
        height: 50px;
        line-height: 50px;
    }

    .input textarea {
        height: calc(100% - 21px);
        margin-top: 5px;
    }
}

@media (max-width: 767px) {
    .input {
        margin-left: 17px;
        max-width: 307px;
    }
}

/* AUDIO */
.audio-player {
    background-color: transparent;
    -webkit-box-shadow: none;
            box-shadow: none;
    padding: 0;
    width: 300px;
}
.audio-player * {
    outline: none;
}
.audio-player .controls {
    color: #FFFFFF;
}
.audio-player .play-pause-btn [fill],
.audio-player .volume__button [fill] {
    fill: #FFFFFF;
}
.audio-player .slider .gap-progress,
.audio-player .slider .gap-progress .pin,
.audio-player .volume .volume__button.open path,
.audio-player .slider .gap-progress .pin {
    background-color: var(--accent);
    fill: var(--accent);
}
.audio-player audio {
    display: none;
}

/* EMOJIES */
.emoji {
    width: 26px;
    height: 26px;
    display: inline-block;
    vertical-align: middle;
    background-size: 100%;
    background-image: url('/static/images/emojies.png');
}
.emoji_backhand-index-pointing-down {
    background-position-y: calc(100% / 19 * 0);
}
.emoji_briefcase {
    background-position-y: calc(100% / 19 * 1);
}
.emoji_camera {
    background-position-y: calc(100% / 19 * 2);
}
.emoji_fire {
    background-position-y: calc(100% / 19 * 3);
}
.emoji_handshake {
    background-position-y: calc(100% / 19 * 4);
}
.emoji_man-technologist {
    background-position-y: calc(100% / 19 * 5);
}
.emoji_ok-hand {
    background-position-y: calc(100% / 19 * 6);
}
.emoji_partying-face {
    background-position-y: calc(100% / 19 * 7);
}
.emoji_rocket {
    background-position-y: calc(100% / 19 * 8);
}
.emoji_seedling {
    background-position-y: calc(100% / 19 * 9);
}
.emoji_sign-of-the-horns {
    background-position-y: calc(100% / 19 * 10);
}
.emoji_slightly-smiling-face {
    background-position-y: calc(100% / 19 * 11);
}
.emoji_smiling-face-with-sunglasses{
    background-position-y: calc(100% / 19 * 12);
}
.emoji_thinking-face{
    background-position-y: calc(100% / 19 * 13);
}
.emoji_thumbs-up {
    background-position-y: calc(100% / 19 * 14);
}
.emoji_hello {
    background-position-y: calc(100% / 19 * 15);
}
.emoji_winking-face {
    background-position-y: calc(100% / 19 * 16);
}
.emoji_laptop {
    background-position-y: calc(100% / 19 * 17);
}
.emoji_envelope {
    background-position-y: calc(100% / 19 * 18);
}
.emoji_fingers-cross {
    background-position-y: calc(100% / 19 * 19);
}