/* CONTACTS BLOCK */

.contactsBlock {
    padding: 0;
    z-index: -1;
    margin-top:-5px;
}

.contactsBlock-wrapper {
    display: flex;
    flex-direction: row-reverse;
    /* height: 101vh; */
}

.contactsBlock-data {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 55%;
    width: 55%;
    box-sizing: border-box;
    padding: 5vw 10vw;
    color: #FFF;
    background: #323137;
}

.cbd-item {
    margin-bottom: 7vh;
}

.cbd-item:last-child {
    margin-bottom: 0;
}

.cbd-item a {
    color: #FFF;
}

.cbd-item a:hover {
    color: #FBD691;
}

.cbd-item-super {
    font-size: 18px;
    font-size: 1vw;
    line-height: 1;
    opacity: .5;
}

.cbd-item-data {
    font-size: 42px;
    font-size: 2.19vw;
    font-weight: bold;
    line-height: 1;
    margin: .5vw 0;
}

.cbd-item-adress {
    font-size: 24px;
    font-size: 1.3vw;
    line-height: 1.2;
    margin: 1vw 0;
}

.cbd-item-action {
    font-size: 18px;
    font-size: 1vw;
    line-height: 1;
}

@media screen and (min-width: 1900px) {
    .cbd-item-super {
        font-size: 18px;
    }

    .cbd-item-data {
        font-size: 42px;
    }

    .cbd-item-action {
        font-size: 18px;
    }
}


.contactsBlock-social {
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    max-width: 45%;
    width: 45%;
    overflow: hidden;
    /* height: 100%; */
}

.cbs-img {
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

main .cbs-img img {
    width: auto;
    min-width: 100%;
}

.cbs-item {
    width: 20%;
    height: 33.333%;
    background: #242428;
    transition: .3s ease all;
}

.cbs-item:hover {
    background: #323137;
}

.cbs-item a {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cbs-item img {
    width: 100%;
    max-height: 2vw;
    max-width: 2vw;
    display: block;
}


@media screen and (max-width: 1050px) {
    .contactsBlock-social {
        max-width: 30%;
        width: 30%;
    }

    .contactsBlock-data {
        max-width: 70%;
        width: 70%;
    }

    .cbd-item-super {
        font-size: 12px;
    }

    .cbd-item-data {
        font-size: 25px;
    }

    .cbd-item-adress {
        font-size: 20px;
    }

    .cbd-item-action {
        font-size: 12px;
    }
}

@media screen and (max-width: 680px) {
    .contactsBlock {
        padding: 0;
        min-height: initial;
        max-height: initial;
        height: initial;
    }

    .contactsBlock-wrapper {
        flex-direction: column;
        height: inherit;
    }

    .contactsBlock-data {
        max-width: 100%;
        width: 100%;
        padding: 50px 10vw;
    }

    .contactsBlock-social {
        max-width: inherit;
        width: auto;
        background: #242428;
        flex-direction: initial;
        align-items: center;
    }

    .cbs-item img {
        max-height: 20px;
        max-width: 20px;
    }

    .cbs-item {
        width: 33.333%;
        height: 100%;
    }

    .cbs-item a {
        padding: 20px 0;
        box-sizing: border-box;
    }

    .cbs-img {
        display: none;
    }

    .cbd-item-data {
        font-size: 20px;
        margin: 10px 0;
    }
}


/* REQUISITES */

.requisites {
    max-height:fit-content;
}

.requisites-img {
    content: '';
    position: absolute;
    z-index: 0;
    right: 0;
    top: 0;
    width: 45%;
    height: 100%;
}

.requisites-img figure {
    height: 100%;
}

main .requisites-img img {
    width: auto;
    min-width: 100%;
}

.requisites-wrapper {
    position: relative;
    z-index: 1;
    margin-bottom: 70px;
}

.requisites-header.tmb-text {
    padding: 5vw 0 2vw 10vw;
    max-width: 50%;
    width: 50%;
}

.requisites-content {
    padding-left: 10vw;
    display: flex;
    align-items: center;
}

.requisites-contentData {
    background: #FAFAFA;
    padding: 3vw 1vw 3vw 7vw;
    width: 70%;
    box-sizing: border-box;
}

.requisites-contentIntro {
    max-width: 30%;
    width: 30%;
    box-sizing: border-box;
    padding: 0 5vw 0 0;
}

.requisites-contentIntro h4 {
    line-height: 1.2;
}

.requisites-contentIntro .tmb-text-p {
    margin-top: 1vw;
}

.requisites-contentDataItems {
    display: table;
}

.requisites-contentDataItem {
    display: table-row;
}

.requisites-contentTitle,
.requisites-contentInfo {
    display: table-cell;
    line-height: 1.2;
    font-size: 16px;
    font-size: 1vw;
    padding: 15px;
}

.requisites-contentTitle {
    text-align: right;
    opacity: .5;
}

.requisites-contentData .tmb-text-button {
    display: none;
}

@media screen and (min-width: 1900px) {

    .requisites-contentTitle,
    .requisites-contentInfo {
        font-size: 16px;
    }
}

@media screen and (max-width: 1400px) {
    .requisites-contentData {
        padding: 3vw 1vw 3vw 2vw;
        width: 77%
    }
}

@media screen and (max-width: 1050px) {

    .requisites-contentTitle,
    .requisites-contentInfo {
        font-size: 14px;
    }

    .requisites-contentIntro {
        display: none;
    }

    .requisites-contentData {
        width: 100%;
    }
}

@media screen and (max-width: 980px) {
    .requisites {
        min-height: initial;
        max-height: initial;
        background: #FAFAFA;
    }
    
    .requisites-img,
    .requisites:before {
        display: none;
    }

    .requisites-header.tmb-text {
        padding: 15px;
        max-width: 100%;
        width: 100%;
    }

    .requisites-header .super-text {
        margin-bottom: 20px;
    }

    .requisites-content {
        padding-left: 0;
        margin-top: 30px;
    }

    .requisites-contentData {
        padding: 20px 0 0 20px;
    }

    .requisites-contentDataItems,
    .requisites-contentDataItem,
    .requisites-contentTitle,
    .requisites-contentInfo {
        display: block;
    }

    .requisites-contentTitle,
    .requisites-contentInfo {
        text-align: left;
        padding: 5px 0;
    }

    .requisites-contentDataItem {
        padding: 20px 25px;
        border-top: 1px solid #dadada;
    }

    .requisites-contentData .tmb-text-button {
        display: block;
        text-align: center;
    }

    .requisites-contentData .tmb-text-button .button-bg {
        height: initial;
    }
}


/* CONTACTS PAGE FORM */

.contacts-page-form {
    color: #FFF;
    background: #323137;
}

.contacts-page-form p {
    max-width: 900px;
}

.cp-form {
    width: 90%;
    max-width: 1050px;
    margin: 50px auto 0;
}

.cp-form .rf-form-horisontal .rf-inputsform {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.cp-form .rf-form-input {
    width: 33.33333333%;
}

.cp-form .rf-form-input.input-text {
    width: 100%;
}

.cp-form .rf-form-input.input-allow {
    width: 100%;
}

.cp-form .input-name .input.darkbg,
.cp-form .input-phone .input.darkbg {
    border-right: 0;
}

.cp-form .submitbutton {
    color: #000;
    background: #FFF;
}

.cp-form .submitbutton:hover {
    background: #FBD691;
}

.cp-form .button-bg {
    height: auto;
}

.cp-form .rf-agreement {
    margin-top: 35px;
}

.cp-form .rf-form-input label {
    color: #FFF;
}

@media screen and (max-width: 800px) {
    .cp-form .rf-form-input {
        width: 100%;
    }

    .cp-form .input-name .input.darkbg,
    .cp-form .input-phone .input.darkbg {
        border-right: 2px solid #444444;
    }

    .input-text textarea.input.darkbg {
        height: 100px;
    }

    .input-text textarea.input.darkbg {
        padding: 20px 35px;
    }
}