/* Main */

* {
    outline: none;
}

body {
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
    animation: smooth 3s;
    background: #1d1c1c;
    /* transition: 2s; */
    cursor: none;
}

.page {
    width: 70%;
}

.header-line {
    width: 90%;
    margin: 0 auto;
    margin-top: 2.5%;
}

.left {
    float: left;
}

.right {
    float: right;
}

.right-menu {
    width: 30%;
    height: 100vh;
    position: fixed;
    right: 0;
}

.content {
    margin: 0 auto;
    width: 85%;
    margin-left: 15%;
    margin-top: 10%;
}

.space {
    width: 100%;
    position: relative;
    height: 75vh;
    clear: both;
}

.sm-space {
    width: 100%;
    position: relative;
    height: 25vh;
}

.logo {
    color: white;
    font-family: Century Gothic, sans-serif;
    font-size: 24px;
    cursor: url(../img/Parts/cursor-rockon.png), auto;
}

#switch img {
    cursor: url(../img/Parts/cursor-rockon.png), auto;
}

#switch img:active {
    cursor: url(../img/Parts/cursor-rockon-clicked.png), auto;
}

.imgScroll {
    background: url(../img/Parts/darkBg.png);
    width: 100%;
    height: 60px;
    background-attachment: fixed;
    background-size: cover;
}

a {
    text-decoration: none;
}

*,
*::after,
*::before {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    outline: 0;
}

::selection {
    background: #2f2f2fcc;
}

::-webkit-scrollbar {
    width: 4px;
    /* for vertical scrollbars */
    height: 12px;
    /* for horizontal scrollbars */
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.5);
}


/* Pointer */

a {
    cursor: none;
}

a:hover {
    cursor: none;
}

button:hover {
    cursor: none;
}

.cursor {
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
}

.cursor--small {
    width: 5px;
    height: 5px;
    left: -2.5px;
    top: -2.5px;
    border-radius: 50%;
    z-index: 11000;
    background: white;
}

.cursor--canvas {
    width: 100vw;
    height: 100vh;
    z-index: 12000;
}


/*Grid*/

.geometry {
    padding: 0 70px;
    display: none;
    animation: show 3s;
}

.geometry .main {
    overflow: hidden;
}

.lines {
    /* position: absolute; */
    position: fixed;
    top: 0;
    left: 50%;
    height: 100%;
    width: calc(100% - 140px);
    /* z-index: 100; */
    z-index: -100;
    transform: translateX(-50%);
    pointer-events: none;
    max-width: 1300px
}

@media screen and (max-width:650px) {
    .lines {
        width: calc(100% - 60px);
        max-width: 1380px
    }
}

.line {
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background-color: #fff;
    opacity: .07
}

.line:first-child {
    left: 16.66%
}

.line:nth-child(2) {
    left: 33.32%
}

.line:nth-child(3) {
    left: 49.98%
}

.line:nth-child(4) {
    left: 66.64%
}

.line:nth-child(5) {
    left: 83.3%
}

.line:nth-child(6) {
    left: 99.96%
}

@media screen and (max-width:980px) {
    .line:first-child {
        left: 25%
    }
    .line:nth-child(2) {
        left: 50%
    }
    .line:nth-child(3) {
        left: 75%
    }
    .line:nth-child(4) {
        left: 100%
    }
    .line:nth-child(5) {
        left: 125%
    }
    .line:nth-child(5),
    .line:nth-child(6) {
        display: none
    }
}

.pluses {
    pointer-events: none;
    /* position: absolute; */
    position: fixed;
    top: 0;
    left: 50%;
    height: 100%;
    /* z-index: 15; */
    z-index: -100;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    transform: translateX(-50%);
    transition: 1s;
}

@media screen and (max-width:950px) {
    .pluses {
        display: none
    }
}

.pluses.hide,
.pluses.isHidden .plus {
    opacity: 0
}

.plus-row {
    position: relative;
    width: 100%;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between
}

.plus-row:first-child .plus:nth-child(1) {
    transition-delay: .01667s
}

.plus-row:first-child .plus:nth-child(2) {
    transition-delay: .03333s
}

.plus-row:first-child .plus:nth-child(3) {
    transition-delay: .05s
}

.plus-row:first-child .plus:nth-child(4) {
    transition-delay: .06667s
}

.plus-row:first-child .plus:nth-child(5) {
    transition-delay: .08333s
}

.plus-row:first-child .plus:nth-child(6) {
    transition-delay: .1s
}

.plus-row:first-child .plus:nth-child(7) {
    transition-delay: .11667s
}

.plus-row:nth-child(2) .plus:first-child {
    transition-delay: .03333s
}

.plus-row:nth-child(2) .plus:nth-child(2) {
    transition-delay: .06667s
}

.plus-row:nth-child(2) .plus:nth-child(3) {
    transition-delay: .1s
}

.plus-row:nth-child(2) .plus:nth-child(4) {
    transition-delay: .13333s
}

.plus-row:nth-child(2) .plus:nth-child(5) {
    transition-delay: .16667s
}

.plus-row:nth-child(2) .plus:nth-child(6) {
    transition-delay: .2s
}

.plus-row:nth-child(2) .plus:nth-child(7) {
    transition-delay: .23333s
}

.plus-row:nth-child(3) .plus:first-child {
    transition-delay: .05s
}

.plus-row:nth-child(3) .plus:nth-child(2) {
    transition-delay: .1s
}

.plus-row:nth-child(3) .plus:nth-child(3) {
    transition-delay: .15s
}

.plus-row:nth-child(3) .plus:nth-child(4) {
    transition-delay: .2s
}

.plus-row:nth-child(3) .plus:nth-child(5) {
    transition-delay: .25s
}

.plus-row:nth-child(3) .plus:nth-child(6) {
    transition-delay: .3s
}

.plus-row:nth-child(3) .plus:nth-child(7) {
    transition-delay: .35s
}

.plus-row:nth-child(4) .plus:first-child {
    transition-delay: .06667s
}

.plus-row:nth-child(4) .plus:nth-child(2) {
    transition-delay: .13333s
}

.plus-row:nth-child(4) .plus:nth-child(3) {
    transition-delay: .2s
}

.plus-row:nth-child(4) .plus:nth-child(4) {
    transition-delay: .26667s
}

.plus-row:nth-child(4) .plus:nth-child(5) {
    transition-delay: .33333s
}

.plus-row:nth-child(4) .plus:nth-child(6) {
    transition-delay: .4s
}

.plus-row:nth-child(4) .plus:nth-child(7) {
    transition-delay: .46667s
}

.plus-row:nth-child(5) .plus:first-child {
    transition-delay: .08333s
}

.plus-row:nth-child(5) .plus:nth-child(2) {
    transition-delay: .16667s
}

.plus-row:nth-child(5) .plus:nth-child(3) {
    transition-delay: .25s
}

.plus-row:nth-child(5) .plus:nth-child(4) {
    transition-delay: .33333s
}

.plus-row:nth-child(5) .plus:nth-child(5) {
    transition-delay: .41667s
}

.plus-row:nth-child(5) .plus:nth-child(6) {
    transition-delay: .5s
}

.plus-row:nth-child(5) .plus:nth-child(7) {
    transition-delay: .58333s
}

.plus-row.hide {
    opacity: 0
}

.plus {
    width: 8px;
    height: 8px;
    position: absolute;
    top: 50%;
    margin-left: -4px;
    transform: translateY(-50%);
    transition: .5s
}

.plus.hide {
    visibility: hidden
}

.plus:first-child {
    left: 0
}

.plus:nth-child(2) {
    left: 16.66%
}

.plus:nth-child(3) {
    left: 33.32%
}

.plus:nth-child(4) {
    left: 49.98%
}

.plus:nth-child(5) {
    left: 66.64%
}

.plus:nth-child(6) {
    left: 83.3%
}

.plus:nth-child(7) {
    left: 99.96%
}

.plus:nth-child(8) {
    left: 116.62%
}

@media screen and (max-width:980px) {
    .plus:first-child {
        left: 0
    }
    .plus:nth-child(2) {
        left: 25%
    }
    .plus:nth-child(3) {
        left: 50%
    }
    .plus:nth-child(4) {
        left: 75%
    }
    .plus:nth-child(5) {
        left: 100%
    }
    .plus:nth-child(6) {
        left: 125%
    }
    .plus:nth-child(6),
    .plus:nth-child(7) {
        display: none
    }
}

.plus:after,
.plus:before {
    content: "";
    position: absolute;
    background-color: #626277
}

.plus:before {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%
}

.plus:after {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 1px;
    width: 100%
}


/* Right Menu */

.firstBlock {
    height: 50vh;
    background: #3a3a3a;
    width: 100%;
    background: url(../img/Menu/1.jpeg);
    background-size: cover;
    /*display: none;*/
    /*animation: fadeDown 2s;*/
    animation: show 2s;
    overflow: auto;
}

.firstBlockCover {
    background: -webkit-linear-gradient(bottom, rgba(34, 38, 75, 0.85) 0%, rgba(34, 38, 75, 0.32) 100%);
    width: 100%;
    height: 100%;
    color: white;
    overflow: auto;
}

.firstBlockContent {
    font-size: 36px;
    font-family: Montserrat, "Helvetica Neue", "Lucida Grande", Arial, Verdana, sans-serif;
    font-weight: 700;
    color: white;
    padding-top: 35%;
    text-align: center;
}

.firstBlockButton {
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: none;
    color: white;
    text-transform: uppercase;
    padding: 12px 14px;
    border-radius: 5px;
    margin-top: 10%;
    font-size: 14px;
    cursor: pointer;
    transition: 1s;
}

.firstBlockButton:hover {
    border: 2px solid #6332ff;
}

.secondBlock {
    height: 50vh;
    width: 100%;
    overflow: auto;
    background: #805dec;
}

.secondBlock a {
    color: #6332ff;
    font-weight: bold;
}

.secondBlock .footer {
    font-family: Raleway, "Helvetica Neue", "Lucida Grande", Arial, Verdana, sans-serif;
    font-size: 15px;
    margin-top: 14%;
    margin-bottom: 20px;
}

.secondBlockContent {
    text-align: center;
    color: white;
    padding-top: 18%;
}

.secondBlockHeading {
    font-size: 27px;
    font-family: Montserrat, "Helvetica Neue", "Lucida Grande", Arial, Verdana, sans-serif;
    font-weight: 700;
    text-align: center;
    color: white;
}

.secondBlockText {
    width: 65%;
    margin: 0 auto;
    margin-top: 7%;
    color: white;
    text-align: center;
    font-family: Raleway, "Helvetica Neue", "Lucida Grande", Arial, Verdana, sans-serif;
    line-height: 1.8;
    font-size: 14px;
}

.secondBlockButton {
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: none;
    color: white;
    text-transform: uppercase;
    padding: 12px 14px;
    border-radius: 5px;
    margin-top: 10%;
    font-size: 14px;
    cursor: pointer;
    transition: 1s;
}

.secondBlockButton:hover {
    border: 2px solid #6332ff;
}

#aboutRM {
    display: none;
}


/* Left Menu */

.left-menu {
    display: none;
    position: fixed;
    bottom: 40%;
    animation: fadeUp 2s;
}

.nav {
    position: relative;
    width: 8em;
    margin: 0 0 0 3em;
}

.nav__item {
    line-height: 1;
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    letter-spacing: 0;
    color: currentColor;
    border: 0;
    background: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.nav__item:focus {
    outline: none;
}

.nav--zahi .nav__item {
    width: 2em;
    height: 2em;
}

.nav--zahi .nav__item::before,
.nav--zahi .nav__item::after {
    content: '';
    position: absolute;
}

.nav--zahi .nav__item:not(:last-child)::before {
    top: calc(2em - 9px);
    left: 5px;
    width: 2px;
    height: calc(2em - 12px);
    background: #e2e3e5;
}

.nav--zahi .nav__item::after {
    top: 50%;
    left: 0;
    width: 12px;
    height: 12px;
    margin: -5px 0 0 0;
    border: 2px solid #e2e3e5;
    border-radius: 50%;
    /* background: #f44336; */
    -webkit-transition: -webkit-transform 0.3s, border-color 0.3s, border-width 0.3s, background 0.3s;
    transition: transform 0.3s, border-color 0.3s, border-width 0.3s, background 0.3s;
}

.nav--zahi .nav__item--current::after {
    border-width: 1px;
    border-color: #6332ff;
    -webkit-transform: scale3d(1.6, 1.6, 1);
    transform: scale3d(1.6, 1.6, 1);
}

.nav--zahi .nav__item--current2::after {
    border-width: 1px;
    border-color: rgb(193, 148, 62);
    -webkit-transform: scale3d(1.6, 1.6, 1);
    transform: scale3d(1.6, 1.6, 1);
}

.nav--zahi .nav__item:not(.nav__item--current):focus::after,
.nav--zahi .nav__item:not(.nav__item--current):hover::after {
    border-color: #6332ff;
    background: #6332ff;
}

.nav--zahi .nav__item-title {
    font-family: 'Roboto Condensed', sans-serif;
    line-height: 1.5;
    display: block;
    position: relative;
    padding: 0 0 0 2.5em;
    white-space: nowrap;
    opacity: 0.3;
    color: white;
    -webkit-transition: opacity 0.3s, color 0.3s;
    transition: opacity 0.3s, color 0.3s;
}

.nav--zahi .nav__item:not(.nav__item--current):focus .nav__item-title,
.nav--zahi .nav__item:not(.nav__item--current):hover .nav__item-title {
    opacity: 0.5;
}

.nav--zahi .nav__item--current .nav__item-title {
    opacity: 1;
    color: #6332ff;
}

.nav--zahi .nav__item--current2 .nav__item-title {
    opacity: 1;
    color: rgb(193, 148, 62);
}

*,
*::after,
*::before {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.nav button {
    font-family: inherit;
    font-size: 100%;
    margin: 0;
}


/* Content */

.welcome {
    font-size: 4.5rem;
    text-transform: uppercase;
    line-height: 1.1;
    font-weight: 700;
    color: black;
    text-align: center;
    font-family: Montserrat, "Helvetica Neue", "Lucida Grande", Arial, Verdana, sans-serif;
    color: white;
}

.welcome span {
    background: #2f2f2f;
}

.about {
    margin: 0 auto;
    width: 539px;
    line-height: 1.7;
    color: #6d6d6d;
    font-family: 'Roboto Mono', monospace;
}

.more {
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.5);
    font-weight: 700;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
}

.more:hover {
    color: #6332ff;
}

.smallHeading {
    color: #805dec;
}

.heading {
    font-size: 22px;
    margin-bottom: 35px;
    display: block;
    text-transform: uppercase;
}

.homeSection {
    margin-top: 30%;
}


/* Portfolio */

.portfolio .wrapper {
    display: grid;
    grid-template-columns: 50% 50%;
    /* grid-gap: 10%; */
    grid-column-gap: 10%;
    grid-row-gap: 8vh;
}

.portfolio .box {
    border-radius: .5em;
    /* font-size: 150%; */
    transition: 0.5s;
    /* cursor: pointer; */
    margin-bottom: 15%;
    z-index: 100;
}

.portfolio .box:hover {
    margin-top: -10px;
    transition: 0.5s;
}

.portfolio .box img {
    width: 100%;
    border-radius: .5em;
    height: 405px;
    opacity: 0.8;
    background: white;
}

.portfolio .box .text {
    color: #ffffff;
    margin-top: -25%;
    margin-left: 6%;
    font-size: 20px;
}


/* Messages - Contacts */

.contacts .answer {
    padding: 12.1px 16.5px 12.1px;
    border-radius: 15px;
    list-style-type: none;
    margin-bottom: 20px;
    background: #e5e4ea;
    /* border: 1.1px solid #e0e0e0; */
    max-width: 95%;
    font-size: 18px;
    font-family: "RobotoDraft", "Helvetica", arial, sans-serif;
    transition: opacity 0.6s;
    animation: message 0.6s;
    /* height: auto; */
    display: inline-block;
    color: #505050;
    display: table;
    clear: both;
}

.contacts .user {
    padding: 12.1px 16.5px 12.1px;
    border-radius: 15px;
    list-style-type: none;
    margin-bottom: 20px;
    background: #288bf7;
    max-width: 95%;
    font-size: 18px;
    font-family: "RobotoDraft", "Helvetica", arial, sans-serif;
    position: relative;
    transition: opacity 0.5s;
    animation: message 0.5s;
    color: white;
    display: inline-block;
    float: right;
    /* text-align: center; */
    /* min-width: 30%; */
    display: table;
    clear: both;
}

.contacts button {
    background: none;
    padding: 7px 30px;
    border-radius: 50px;
    border: 1px solid #cacaca;
    margin-right: 22px;
    animation: fadeUp 0.7s;
    /* cursor: pointer; */
    color: white;
    transition: 0.5s;
}

.contacts button:hover {
    border: 1px solid #6332ff;
    transition: 0.5s;
}

.contacts a {
    /*display: block;*/
    color: #676767;
    font-weight: bold;
}

.contacts ul {
    position: relative;
}

.contacts input {
    display: block;
    padding: 10px 14px;
    border: 2px solid #65707b;
    border-radius: 15px;
    min-width: 30%;
    margin-bottom: 20px;
    float: right;
    background: none;
    color: white;
    font-size: 15px;
    transition: 1s;
    animation: message 0.5s;
}

.contacts textarea {
    display: block;
    padding: 10px 14px;
    border: 2px solid rgb(101, 112, 123);
    border-radius: 15px;
    min-width: 30%;
    margin: 0px 0px 20px;
    float: right;
    background: none;
    color: white;
    min-height: 105px;
    width: 65%;
    resize: vertical;
    height: 105px;
    font-size: 15px;
    transition: 1s;
    animation: message 0.5s;
}

.contacts .orderWebsite {
    display: block;
    padding: 10px 14px;
    border: 2px solid #65707b;
    border-radius: 15px;
    min-width: 30%;
    margin-bottom: 20px;
    float: right;
    background: none;
    color: white;
    font-size: 15px;
    transition: 1s;
    animation: message 0.5s;
    height: 40px;
}


/* Outsourcing*/

.outsourcing {
    color: white;
    font-family: 'Roboto', sans-serif;
}

.outsourcing .label {
    transform: rotate(-90deg);
    font-size: 12px;
    width: 204px;
    height: 20px;
    position: absolute;
    left: 7%;
    top: 26%;
    animation: show 5s;
    display: none;
}

.outsourcing .label::before {
    content: "";
    width: 80px;
    height: 1px;
    position: relative;
    bottom: 3px;
    display: inline-block;
    margin-right: 16px;
    background: #d9d9d9;
    transition: -webkit-transform 1s ease .2s;
    transition: transform 1s ease .2s;
    transition: transform 1s ease .2s, -webkit-transform 1s ease .2s;
}

.outsourcing .box {
    width: 70%;
    float: right;
    padding-top: 10%;
}

.outsourcing .text {
    width: 50%;
    margin-top: 30px;
    line-height: 33px;
    font-size: 17px;
}

.outsourcing button {
    margin-top: 20%;
    background: none;
    padding: 6px 6px;
    font-size: 14px;
    border: 0;
    border-bottom: 5px solid #7d7d7d;
    cursor: pointer;
    color: white;
    animation: fadeUp 3s;
}

.outsourcing h2 {
    font-size: 37px;
}


/* Animation */

.view {
    background: gray;
    /* animation: fadein 2s; */
}

@keyframes fadein {
    from {
        transform: translateX(74px);
        opacity: 0;
    }
    to {
        transform: translateX(1px);
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        transform: translateY(74px);
        opacity: 0;
    }
    to {
        transform: translateY(1px);
        opacity: 1;
    }
}

@keyframes fadeDown {
    from {
        transform: translateY(-74px);
        opacity: 0;
    }
    to {
        transform: translateY(1px);
        opacity: 1;
    }
}

@keyframes show {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes message {
    from {
        transform: translateY(44px);
    }
    to {
        transform: translateY(1px);
    }
}

@keyframes smooth {
    from {
        transform: scale(2);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slide {
    from {
        transform: translateX(-74px);
        opacity: 0;
    }
    to {
        transform: translateX(1px);
        opacity: 1;
    }
}


/* Pre Tablet */

@media screen and (min-width: 920px) and (max-width: 1150px) {
    .right-menu {
        width: 25%;
    }
    .content {
        width: 100%;
    }
    .portfolio .wrapper {
        grid-template-columns: 45% 45%;
    }
    .portfolio .wrapper img {
        height: 370px;
    }
    .nav {
        margin: 0 0 0 2em;
    }
}


/* Tablet */

@media screen and (min-width: 693px) and (max-width: 920px) {
    /* Tablet Version */
    .right-menu {
        display: none;
    }
    .nav {
        display: none;
    }
    .page {
        width: 100%;
    }
    .test img {
        width: 100%;
    }
    .portfolio .wrapper {
        grid-template-columns: 47% 47%;
        grid-gap: 6%;
    }
    .portfolio .box img {
        height: 440px;
    }
    .about {
        width: 80%;
    }
    .content {
        margin-left: 0;
        width: 100%;
    }
    .contacts .user {
        left: 0;
        margin-left: 30px;
    }
    .welcome {
        font-size: 5.2rem;
    }
    #aboutBlock {
        background: #1d1c1c;
        padding-bottom: 10vh;
    }
    .contacts button {
        margin-bottom: 15px;
        float: left;
        margin-top: 3px;
    }
    .logo {
        margin-top: 13px;
    }
    .imgScroll {
        display: none;
    }
    .space {
        height: 55vh;
    }
    .m-hide {
        display: none;
    }
}


/* Mobile */

@media screen and (min-width: 220px) and (max-width: 692px) {
    /* Mobile Version */
    .space {
        height: 25vh;
    }
    .sm-space {
        height: 20vh;
    }
    .m-hide {
        display: none;
    }
    .right-menu {
        display: none;
    }
    .nav {
        display: none;
    }
    .page {
        width: 100%;
    }
    .test img {
        width: 100%;
    }
    .portfolio .wrapper {
        grid-template-columns: 100%;
        grid-gap: 2%;
    }
    .portfolio .box {
        margin-bottom: 30%;
    }
    .about {
        width: 80%;
    }
    .content {
        margin-left: 0;
        width: 100%;
    }
    .contacts .user {
        left: 0;
        margin-left: 30px;
    }
    .welcome {
        font-size: 2.5rem;
    }
    #aboutBlock {
        background: #1d1c1c;
        padding-bottom: 10vh;
    }
    .contacts {
        margin-top: 80vh;
    }
    .contacts button {
        margin-bottom: 15px;
        float: right;
        margin-top: 3px;
    }
    .logo {
        margin-top: 13px;
    }
    .imgScroll {
        display: none;
    }
    /* Outsourcing */
    .outsourcing .label {
        transform: none;
        top: 5%;
    }
    .outsourcing .box {
        padding-top: 15%;
    }
    .outsourcing .text {
        width: 100%;
    }
}