/*for button*/
.btnflip {
    position: absolute;
    width: 270px;
    height: 45px;
    text-align: center;
    transform-style: preserve-3d;
    perspective: 1000px;
    transform-origin: center center;
}

.btnflip-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    font-family: 'Arkhip';
    font-size: 18px;
    line-height: 45px;
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, .05);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    border-radius: 30px;
    transition: 0.7s;
}

.btnflip-item.btnflip__front {
    transform: rotateX(0deg) translateZ(20px);
}

.btnflip:hover .btnflip-item.btnflip__front {
    transform: rotateX(-180deg) translateZ(20px);
}

.btnflip-item.btnflip__back {
    transform: rotateX(180deg) translateZ(20px);
}

.btnflip:hover .btnflip-item.btnflip__back {
    transform: rotateX(0deg) translateZ(20px);
}

.btnflip-item.btnflip__center::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    transform: translateZ(-1px);
}

.btnflip:hover .btnflip-item.btnflip__center {
    transform: rotateX(-180deg);
}

.content-left-block__btn--main {
    width: 100%;
    text-align: right;
}

.content-left-block__btn-position {
    position: relative;
    margin-top: 52px;
    width: 323px;
    height: 45px;
}

.content-left-block__btn-position-small {
    display: none;
}

/*for button*/


.portfolio {
    display: flex;
    overflow: hidden;
}

.portfolio__left {
    width: 149px;
    position: fixed;
    height: 100%;
    background: #161917;
    left: 0;
    border-right: 1px solid rgba(255, 255, 255, .2);
    z-index: 2;
    webkit-transition: all 800ms cubic-bezier(.215, .61, .355, 1);
    -moz-transition: all 800ms cubic-bezier(.215, .61, .355, 1);
    -o-transition: all 800ms cubic-bezier(.215, .61, .355, 1);
    transition: all 800ms cubic-bezier(.215, .61, .355, 1);
     transition-delay: 600 ms;
}

.portfolio__right {
    width: 100%;
    z-index: 1;
    padding-bottom: 30px;
}

.content-block {
    background: #161917;
    padding-bottom: 57px;
    outline: none !important;
}

.content-block--top {
    border-top: 1px solid rgba(255, 255, 255, .2) !important;
    padding-top: 75px;
}

.content-block__flex {
    display: flex;
    justify-content: space-between;
    height: 100%;
}

.content-block__left {
    align-self: center;
}

.content-left-block {
    max-width: 443px;
    width: 100%;
    margin: 0;
}

.content-left-block__link {
    border: 1px solid rgba(255, 255, 255, .5);
    font-family: 'Gilroy';
    font-size: 18px;
    line-height: 21px;
    text-align: right;
    color: #FFFFFF;
    padding: 7px 18px 7px 14px;
    display: inline-block;
}

.content-left-block__title {
    margin-top: 27px;
}

.content-left-block__title p {
    font-family: 'Gilroy';
    font-style: normal;
    font-weight: bold;
    font-size: 24px;
    line-height: 29px;
    text-transform: uppercase;
    color: #FFFFFF;
}

.content-left-block__title span {
    font-family: 'Gilroy';
    font-style: normal;
    font-weight: 500;
    font-size: 24px;
    line-height: 28px;
    color: #FFFFFF;
}

.content-left-block__text {
    font-family: 'Gilroy';
    font-style: normal;
    font-weight: 300;
    font-size: 16px;
    line-height: 18px;
    color: #FFFFFF;
}

.content-left-block__task {
    margin-top: 35px;
}

.content-left-block__task {
    margin-top: 2vw;
}

.content-left-block__footer {
    margin-top: 1.6vw;
}

.content-left-block__text {
    margin-top: 0.4vw;
}

.content-left-block__task p {
    font-family: 'Gilroy';
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    color: #FFFFFF;
}

.content-left-block__task span {
    font-family: 'Gilroy';
    font-style: normal;
    font-weight: 300;
    font-size: 16px;
    line-height: 18px;
    color: #FFFFFF;
    display: block;
    margin-top: 10px;
}

.content-left-block__footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.content-left-block__footer-block {
    display: flex !important;
    width: 200px;
}

.content-left-block__footer-block:nth-child(-n+2) {
    margin-bottom: 30px;
}

.content-left-block__footer-block-left {
    background-repeat: no-repeat;
    background-size: auto;
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-right: 30px;
}

.content-left-block__footer-block-left span {
    display: block;
    height: 8px;
    width: 60px;
    position: absolute;
    background-color: rgb(226, 188, 121);
    opacity: 0.6;
}

.content-left-block__footer-block-right p {
    font-family: 'Gilroy';
    font-style: italic;
    font-weight: 800;
    font-size: 48px;
    margin-bottom: -13px;
    line-height: 59px;
    letter-spacing: 0.05em;
    text-shadow: #E2BC79 2.5px 0px, #E2BC79 2.5px 2.5px, #E2BC79 0px 2.5px, #E2BC79 -2.5px 2.5px, #E2BC79 -2.5px 0px, #E2BC79 -2.5px -2.5px, #E2BC79 0px -2.5px, #E2BC79 2.5px -2.5px;
}

.content-left-block__footer-block-right span {
    font-family: 'Gilroy';
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    color: #FFFFFF;
}

.content-left-block__btn {
    font-family: 'Arkhip';
    font-size: 18px;
    line-height: 22px;
    color: #FFFFFF;
    width: 270px;
    height: 45px;
    background: #CDA03B;
    border-radius: 30px;
    margin-top: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.content-block__right {
    position: relative;
    width: 677px;
}

.content-block__right {
    position: static;
}

.content-right-block__header {
    position: relative;
}

.content-right-block__img-desk {
    /* width: 1000px;
    height: 710px; */
    /* width: 52vw;
    height: 36.9vw; */
    width: 100%;
    height: auto;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.15);
    background-repeat: no-repeat;
    background-size: cover;
}

.content-right-block__img-desk img {
    width: 100%;
    height: auto;
    border: 10px solid #fff;
}

.content-right-block__img-mob {
    width: 211px;
    height: 435px;
    background-repeat: no-repeat;
    position: absolute;
    background-size: cover;
    left: 32px;
    bottom: -59px;
}


.content-right-block__footer {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    max-width: 810px;
    width: 100%;
}

.content-right-block__footer-left p {
    font-family: 'Gilroy';
    font-style: normal;
    font-weight: bold;
    font-size: 18px;
    line-height: 22px;
    text-transform: uppercase;
    color: #FFFFFF;
}

.content-right-block__footer-left span {
    font-family: 'Gilroy';
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    line-height: 21px;
    color: #FFFFFF;
}

.content-right-block__footer-right-img {
    height: 70px;
    width: 130px;
    position: relative;
}

.content-right-block__footer-right-img:not(:last-child) {
    margin-right: 62px;
}

.content-right-block__footer-right-img span {
    font-family: 'Gilroy';
    font-style: normal;
    font-weight: normal;
    font-size: 16px;
    line-height: 19px;
    color: #FFFFFF;
    position: absolute;
    bottom: 0;
}

.content-right-block__footer-right-img img {
    display: block;
}

.content-right-block__footer-right {
    display: flex;
}

.content-right-block__footer-left {
    margin-top: 25px;
}

.content-block:nth-child(2n) .content-block__flex {
    flex-direction: row-reverse;
}

.content-block:nth-child(2n) .content-right-block__header {
    margin-right: 0;
    margin-left: 0px;
}

.content-block:nth-child(2n) .content-right-block__footer {
    flex-direction: row-reverse;
    float: right;
}

.content-block:nth-child(2n) .content-right-block__img-mob {
    right: 40px;
    left: auto;
}

.content-block:nth-child(2n) .content-right-block__img-desk {
    /* margin-right: 60px;
    margin-left: -10px; */
}

.content-block:nth-child(2n) .content-left-block__btn--main {
    text-align: left;
}

.content-block:nth-child(2n) .content-left-block__btn-position {
    margin-left: 84px;
}

.content-block:nth-child(2n) .content-left-block {
    margin: 0px;
}

.content-block:nth-child(2n) .content-right-block__btn {
    margin-left: -40px;
    float: none;
}

.content-block:nth-child(2n) .content-left-block__btn-position-small {
    margin-left: -40px;
    float: none;
}

.content-block:nth-child(2n) .content-left-block__btn-position-small {
    margin-left: 40px;
    float: none;
}

.content-block:nth-child(2n) .content-right-block__footer-left {
    /*margin-right: 21px;*/
    text-align: right;
    margin-right: 60px;
}

.content-right-block__btn {
    display: none;
}

.content-block:nth-child(1) {
    /*padding-top: 30px;*/
}

.content-left-block__link.md {
    display: none;
}

@media screen and (max-width: 1199px) {

    .portfolio__right {
        background: #161917;
    }

    .content-block:nth-child(1) {
        padding-top: 0px;
    }

    .content-block--top {
        padding-top: 30px;
    }

    .content-block__right {
        position: static;
        margin: 0;
        width: 100%;
    }

    .content-left-block__btn--main {
        display: none;
    }


    .content-block:nth-child(2n) .content-block__right {
        margin: 0;
    }

    .content-block:nth-child(2n) .content-right-block__btn {
        margin-left: 0;
    }

    .content-block:nth-child(2n) .content-left-block__btn-position-small {
        margin-left: 0;
    }

    .content-block:nth-child(2n) .content-left-block {
        margin: 0;
    }

    .content-block:nth-child(2n) .content-right-block__img-mob {
        left: auto;
        right: 0;
    }

    .content-block:nth-child(2n) .content-right-block__header {
        margin-left: auto;
    }

    .content-block:nth-child(2n) .content-right-block__img-desk {
        margin-right: auto;
    }

    .content-block:nth-child(2n) .content-block__flex {
        flex-direction: column-reverse;
    }

    .content-block:nth-child(2n) .content-right-block__img-desk {
        margin-left: 0;
    }

    .portfolio {
        display: block;
    }

    .portfolio__left {
        width: 100%;
        height: 85px;
        padding: 0 20px;
        border: 0;
        overflow: hidden;
        margin-top: 0;
        margin-bottom: 0;
    }

    .portfolio__right {
        margin-left: 0;
    }

    .content-left-block__footer-block-right p {
        font-size: 36px;
        line-height: 44px;
        letter-spacing: 0.05em;
    }

    .content-left-block {
        margin: 0;
        max-width: 100%;
    }

    .content-right-block__header {
        margin: 0;
    }

    .content-block__flex {
        flex-direction: column-reverse;
        /* padding-bottom: 62px; */
        /* border-bottom: 1px solid rgba(255, 255, 255, .2); */
    }

    .content-left-block__footer-block {
        width: auto;
    }

    .content-block {
        position: relative;
        padding-top: 30px;
        padding-bottom: 0px;
        border: none!important;
    }

    .content-left-block__link {
        /* position: absolute;
        top: 30px; */
        display: none;
    }

    .content-left-block__title {
        /* position: absolute;
        top: 70px; */
        margin-bottom: 30px;
    }

    .content-left-block__link.md {
        display: inline-block;
    }

    .content-left-block__text {
        margin-top: 30px;
    }

    .content-right-block__btn {
        position: absolute;
        bottom: 30px;
    }

    .content-left-block__btn-position-small {
        display: block;
        height: 45px;
    }

    .content-right-block__img-desk {
        /* width: 66.5vw;
        height: 47.7vw; */
    }

    .content-right-block__img-desk img{
        max-width: 676px;
    }

    .content-right-block__img-mob {
        width: 205px;
        height: 434px;
        left: auto;
        top: 28%;
        right: 17px;
        bottom: 0;
    }

    .content-left-block__footer {
        margin-top: 36px;
    }
}

@media screen and (max-width: 767px) {

    .portfolio__left {
        height: 65px;
    }

    /* .portfolio__right {
        margin-top: 65px;
    } */

    .content-right-block__img-mob {
        display: none;
    }

    .content-right-block__img-desk {
        width: 100%;
        /* height: 67.5vw;
        border: 3.3px solid #fff; */
    }

    .content-right-block__img-desk img {
        width: 100%;
        height: auto;
        border: 3.3px solid #fff;
    }

    .content-left-block__link {
        font-size: 14px;
        padding: 6px 21px 8px 18px;
    }

    .content-left-block__title p {
        font-size: 20px;
        line-height: 24px;
    }

    .content-left-block__title span {
        font-size: 20px;
        line-height: 24px;
    }

    .content-left-block__text {
        font-size: 14px;
    }

    .content-left-block__task p {
        font-size: 14px;
    }

    .content-left-block__task span {
        font-size: 14px;
    }

    .content-left-block__task {
        margin-top: 12px;
    }

    .content-right-block__btn {
        bottom: 29.5px;
    }

    .content-left-block__footer-block-left {
        width: 40px;
        height: 40px;
        background-size: cover;
    }

    .content-left-block__footer-block-right p {
        font-size: 24px;
        text-shadow: #E2BC79 2px 0px, #E2BC79 2px 2px, #E2BC79 0px 2px, #E2BC79 -2px 2px, #E2BC79 -2px 0px, #E2BC79 -2px -2px, #E2BC79 0px -2px, #E2BC79 2px -2px;
    }

    .content-left-block__footer-block-right span {
        font-size: 14px;
    }

    .content-left-block__footer-block:nth-child(-n+2) {
        margin-bottom: 0;
    }

    .content-block__flex {
        padding-bottom: 10px;
    }

    .content-block__right {
        position: static;
    }


    .content-left-block__footer-block {
        transform: translate(-17px, 0px);

    }

    .content-left-block__footer .slick-track {
        margin-left: 30px;
    }

    .content-left-block__footer-block-right span {
        white-space: nowrap;
    }

    .content-left-block__footer-block {
        display: block !important;
        margin-left: 20px;
        margin-right: 2px;
    }

    .content-left-block__footer-block-left {
        display: block !important;
        float: left;
        margin-right: 20px;
    }

    .content-left-block__footer-block-right p {
        margin-bottom: -10px;
    }

    .content-left-block__footer-block-left span {
        top: 50%;
        margin-top: -4px;
        left: -10px;
    }

    .content-left-block__footer-block-right {
        float: left;
    }

    .content-left-block__footer {
        width: 100%;
        width: calc(100% + 40px);
    }

    /* .content-right-block__img-desk img{
        display: none;
    } */

    .content-left-block__btn-position-small {
        margin-top: 34px;
    }

    .btnflip {
        width: 200px;
        height: 35px;
    }

    .btnflip-item {
        font-size: 14px;
        line-height: 35px;
    }
}

@media screen and (max-width: 360px) {

    .content-left-block__footer-block {
        transform: translate(12px, 0px);
    }
}

@media screen and (max-width: 330px) {

    .content-block__right {
        margin-top: 20px;
    }
}
