#contacts_cont {
    max-width: 1232px;
    margin: 0 auto
}

#contacts_top {
    padding: 44px 0 0 0;
    display: flex;
    justify-content: center;
    align-items: flex-start
}

#contacts_top > div {
    flex: 0 0 auto;
    width: 50%;
    padding-right: 26px;
    box-sizing: border-box;
    position: relative;
}

#contacts_top > div > h1 {
    color: #434343;
    font: bold 28px 'MainFont';
    margin: 0 0 20px 0;
    padding: 0
}

body.dark #contacts_top > div > h1 { color: #c4c4c4 }

#contacts_top > div > p {
    color: #8D8D8D;
    font: normal 16px 'MainFont';
    margin: 10px 0 0 0;
    padding: 0
}

/**************************************/

#popular_list {
    margin: 0;
    overflow: hidden;
    height: 156px;
    display: flex;
    justify-content: flex-start
}

#popular_list > div {
    flex: 0 0 auto;
    text-align: left;
    font-size: 0;
    height: 156px;
    text-wrap: nowrap
}

.popular_item {
    display: inline-block;
    vertical-align: top;
    width: 142px;
    height: 156px;
    border-radius: 10px;
    position: relative;
    cursor: pointer
}

.popular_item + .popular_item { margin-left: 7px }

.popular_item > img { border-radius: 10px; object-fit: cover; width: 142px; height: 156px }

.popular_item > div {
    position: absolute;
    bottom: 7px;
    left: 10px;
    color: #fff;
    font: bold 12px/12px 'MainFont';
    z-index: 3
}

body.dark .popular_item > div { color: #ccc }

.popular_item > div::first-letter { text-transform: uppercase }

.popular_item.online:before {
    content: '';
    position: absolute;
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: #0EDB15;
    right: 6px;
    bottom: 8px;
    z-index: 4
}

.popular_item:after {
    content: '';
    position: absolute;
    top: 35%;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    border-radius: 10px;
    background: linear-gradient(to bottom, rgba(0,0,0,0), #000);
}

.popular_item > span {
    position: absolute;
    z-index: 5;
    right: 10px;
    top: 8px;
    width: 20px;
    display: flex;
    flex-direction: column
}

.popular_item > span > a {
    display: block;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
}

.popular_item > span > a + a { margin-top: 8px } 

a.telegram_icon { background: url(../../img/mobile/ads/telegram_small.svg) center center / contain no-repeat }
a.viber_icon { background: url(../../img/mobile/ads/viber_small.svg) center center / contain no-repeat }
a.whatsapp_icon { background: url(../../img/mobile/ads/whatsapp_small.svg) center center / contain no-repeat }

body.dark a.telegram_icon { background-image: url(../../img/main/ads/telegram_small_dark.svg) }
body.dark a.viber_icon { background-image: url(../../img/main/ads/viber_small_dark.svg) }
body.dark a.whatsapp_icon { background-image: url(../../img/main/ads/whatsapp_small_dark.svg) }

#popular_prev, #popular_next {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 15px;
    top: 63px;
    z-index: 10;
    box-shadow: rgba(0, 0, 0, 0.15) 0 0 3px 1px;
    background: #fff url(../../img/main/ads/next.svg) center center no-repeat
}

#popular_prev.grayed, #popular_next.grayed { background-image: url(../../img/main/ads/next_disabled.svg) }

#popular_prev { left: -15px; transform: rotate(180deg); }
#popular_next { right: 11px;  }

body.dark #popular_prev, body.dark #popular_next { background-color: #404040; background-image: url(../../img/main/ads/next_disabled.svg) }
body.dark #popular_prev.grayed, body.dark #popular_next.grayed { background-image: url(../../img/main/ads/next.svg) }

/**************************************/

#contacts_expl {
    margin: 40px 0
}

#contacts_expl > h2 {
    color: #434343;
    font: bold 24px 'MainFont';
    margin: 0 0 20px 0;
    padding: 0
}

body.dark #contacts_expl > h2 { color: #c4c4c4 }

#contacts_expl > p {
    color: #8D8D8D;
    font: normal 16px 'MainFont';
    margin: 10px 0 0 0;
    padding: 0
}

#contacts_main {
    display: flex;
    align-items: flex-start;
    justify-content: center
}

#contacts_main > * { flex: 0 0 auto; width: 50% }

/**************************************/

.contacts_input, .contacts_text {
    display: block;
    margin: 15px 0;
    width: 100%;
    height: 49px;
    box-sizing: border-box;
    border: 1px solid rgba(109,109,109,0.33);
    border-radius: 5px;
    color: #434343;
    font: normal 18px/49px 'MainFont';
    text-align: left;
    padding: 0 20px;
}

body.dark .contacts_input, body.dark .contacts_text {
    color: #fff; 
    background-color: #292929 
}

.contacts_text { height: 160px; padding: 15px 20px; line-height: normal }

.contacts_input::placeholder, .contacts_text::placeholder { color: #c2c2c2 !important }
.contacts_input:focus::placeholder, .contacts_text:focus::placeholder { color: transparent !important }

/**************************************/

.contacts_input.err, .contacts_text.err { border-color: red }

.contacts_error {
    margin: 15px 0 10px 0;
    text-align: center;
    color: #e81610;
    font: normal 14px 'MainFont';
    text-transform: uppercase;
    display: none
}

/**************************************/

.contacts_button {
    margin: 35px 0;
    display: flex;
    justify-content: flex-end
}

.contacts_button > * {
    display: block;
    min-width: 237px;
    height: 50px;
    flex: 0 0 auto;
    text-align: center;
    padding: 0 20px;
    border-radius: 5px;
    border: none;
    background: linear-gradient(to right, #ED3554, #FF7043);
    color: #fff;
    font: bold 18px/50px 'MainFont';
    text-decoration: none;
    box-sizing: border-box;
}

.contacts_button > a { background: #c2c2c2 }

.contacts_button > *.processing { font-size: 0 }
.contacts_button > *.processing:before {
    content: '';
    display: inline-block;
    vertical-align: middle;
    width: 43px;
    height: 11px;
    background: url(../../img/jquery/wait.gif) center center no-repeat
}

/**************************************/

#contacts_pics {
    margin: 20px auto 20px auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f2f2f2;
    border: 1px dashed #d9d9d9;
    height: 150px;
    border-radius: 10px
}

body.dark #contacts_pics { background-color: #3a3a3a }

#contacts_upload_input {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    width: 100%;
    opacity: 0;
    z-index: 2
}

#contacts_upload {
    flex: 0 0 auto;
    font: bold 24px/30px 'MainFont'; 
    color: #C2C2C2;
    text-align: center;
    text-transform: uppercase
}

#contacts_upload > div { font: bold 15px 'MainFont'; text-transform: capitalize }

#contacts_uploading:empty { display: none }
#contacts_uploading {
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -150px;
    margin-top: -50px;
    width: 300px;
    height: 100px;
    background: #f2f2f2 url(../../img/loading_100x100_new.gif) center center no-repeat;
    text-align: center;
    color: #c2c2c2;
    font: bold 20px/100px 'MainFont'
}

#contacts_uploaded_pics:empty { display: none }

#contacts_uploaded_pics {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap
}

#contacts_uploaded_pics > a {
    display: block;
    width: 100px;
    height: 100px;
    border-radius: 5px;
    border: 1px solid rgba(0,0,0,0.1);
    margin: 0 5px 10px 5px;
    position: relative
}

.uploaded_ph {
    display: block;
    width: 100px;
    height: 100px;
    border-radius: 5px;
    border: 1px solid rgba(0,0,0,0.5);
    background: #eee url(../../img/no_photo.png) center center no-repeat;
    margin: 0 5px 10px 5px;
    position: relative
}

#contacts_uploaded_pics > a > img { object-fit: cover; width: 100px; height: 100px; border-radius: 5px }

#contacts_uploaded_pics > a > div {
    position: absolute;
    cursor: pointer;
    width: 16px;
    height: 16px;
    top: 5px;
    right: 5px;
    background: url(../../img/remove.png) center center no-repeat
}

/**************************************/

#contacts_bottom {
    margin: 40px 0
}

#contacts_bottom > p {
    color: #434343;
    font: normal 14px 'MainFont';
    margin: 10px 0 0 0;
    padding: 0
}
