@font-face {
  font-family: 'Audiowide';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/audiowide-v9-latin-ext_latin-regular.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('fonts/audiowide-v9-latin-ext_latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('fonts/audiowide-v9-latin-ext_latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('fonts/audiowide-v9-latin-ext_latin-regular.woff') format('woff'), /* Modern Browsers */
       url('fonts/audiowide-v9-latin-ext_latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('fonts/audiowide-v9-latin-ext_latin-regular.svg#Audiowide') format('svg'); /* Legacy iOS */
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/montserrat-v18-latin-ext_latin-regular.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('fonts/montserrat-v18-latin-ext_latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('fonts/montserrat-v18-latin-ext_latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('fonts/montserrat-v18-latin-ext_latin-regular.woff') format('woff'), /* Modern Browsers */
       url('fonts/montserrat-v18-latin-ext_latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('fonts/montserrat-v18-latin-ext_latin-regular.svg#Montserrat') format('svg'); /* Legacy iOS */
}

/* BASIC */
* {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}
body {
    font-family: 'Montserrat';
    padding: 0;
    margin: 0;
    background: #0c0c0c;
    color: #777;
}
img {
    width: 100%;
    height: auto;
}
form input,
form textarea {
    font-family: 'Montserrat';
    width: 100%;
    background: #1a1a1a;
    outline: 0;
    box-shadow: none;
    border: 2px solid #1a1a1a;
    font-size: 14px;
    color: #777;
    padding: 20px;
}
form input:focus,
form textarea:focus {
    border: 2px solid #0b9444;
    outline: 0;
    box-shadow: none;
}
form input {
    height: 50px;
}
form textarea {
    height: 300px;
}
label {
    color: #777;
    margin-bottom: 15px;
    display: inline-block;
}
.button {
    font-family: 'Audiowide';
    color: #fff;
    background: #fff;
    color: #000;
    padding: 5px 15px;
    margin: 15px 10px 0;
    display: inline-block;
    border: 2px solid #fff;
    text-transform: uppercase;
}
.button:hover {
    background: transparent;
    color: #fff !important;
}
button.button {
    margin: 0;
    background: transparent;
    border: 0;
    padding: 0;
    color: #777;
}
.fancybox.button {
    margin-top: 30px;
}
h1, h2, h3 {
    font-family: 'Audiowide';
    font-weight: 300;
    color: #0b9444;
}
h1 {
    margin-top: 0;
    font-size: 30px;
}
p {
    margin-top: 0;
    line-height: 1.5;
}
p:last-child {
    margin-bottom: 0;
}
a {
    text-decoration: none;
    color: #777;
}
a:hover,
.active a,
button:hover,
#form-messages {
    color: #0b9444;
    cursor: pointer;
}
.text-right {
    text-align: right;
}

/* MAIN */
#main {
    padding-left: 312px;
}
section {
    display: flex;
    padding: 40px;
    flex-wrap: wrap;
}
.column {
    padding: 40px;
}
.columns-1 {
    width: 100%;
}
.columns-2 {
    width: 50%;
}
.column-2 {
    width: 20%;
}
.column-8 {
    width: 80%;
}
.hidden {
    display: none;
}

/* HEADER */
#header {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    padding: 80px;
    background: #1a1a1a url(/img/pattern.jpg);
    box-shadow: 0 0 10px #000;
}
#header .logo {
    text-align: center;
}
#header .logo .logo-link {
    display: inline-block;
}
#header .logo img {
    max-width: 150px;
    margin-bottom: 2px;
}
#header .logo .slogan,
#header .menu li,
label,
button {
    font-family: 'Audiowide';
    font-size: 22px;
    font-weight: bold;
    line-height: 22px;
    text-transform: uppercase;
    text-shadow: 0px 0px 9px black;
}
#header .menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
}
#header .menu li,
#form-messages,
label,
button {
    margin-bottom: 15px;
    font-size: 17px;
    line-height: 17px;
}
#header .menu li:last-child {
    margin-bottom: 0;
}

/* PROJECT */
.project {
    margin: 0px auto;
    width: 100%;
    height: 341px;
    position: relative;
    overflow: hidden;
}
.project::after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    background: #070707;
    z-index: -1;
}
.project .project-front,
.project .project-back {
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all .5s;
}
.project .project-box-content {
    width: 100%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.project .project-back-content .project-box-content {
    padding: 30px;
}
.project .project-box-content img {
    display: block;
    width: 100%;
}
.project .project-bottom .project-front {
    transform: translateY(0);
}
.project .project-bottom:hover .project-front {
    transform: translateY(100%);
}
.project .project-front-content {
    background: #df4e5d;
    display: inline-block;
    width: 100%;
    height: 100%;
    transition: all .5s;
    padding: 10px 30px;
    position: relative;
    overflow: hidden;
}
.project .project-bottom .project-front-content {
    transform: perspective(550px) rotateX(0deg) translateY(0.0001%);
    transform-origin: top;
}
.project .project-bottom:hover .project-front-content {
    transform: perspective(550px) rotateX(-90deg) translateY(0.0001%);
}
.project .project-bottom .project-back {
    transform: translateY(-100%);
}
.project .project-bottom:hover .project-back {
    transform: translateY(0);
}
.project .project-back-content {
    background: #d43c4c;
    display: inline-block;
    position: relative;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    transition: all .5s;
    overflow: hidden;
}
.project .project-bottom .project-back-content {
    transform: perspective(550px) rotateX(90deg) translateY(0.0001%);
    transform-origin: bottom;
}
.project .project-bottom:hover .project-back-content {
    transform: perspective(550px) rotateX(0deg) translateY(0.0001%);
}
.project .project-back-content .project-title {
    color: #fff;
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 20px;
    font-family: 'Audiowide';
}
.project .project-back-content .project-description p,
.project .project-back-content .project-description a {
    color: #fff;
}
.project .project-back-content .project-description a {
    font-weight: bold;
}
.project .project-back-content .project-description a:hover {
    text-decoration: underline;
}

/* CONTACT */
#contact-form {
    display: flex;
    flex-wrap: wrap;
}

/* FANCYBOX */
.fancybox-scroll {
    background: transparent;
}
.fancybox-scroll img {
    max-width: 100%;
}
.fancybox-button svg {
  transition: transform 0.5s;
}
.fancybox-button:hover svg {
  transform: rotate(360deg);
}

/* MEDIA */
@media (min-width:1081px) and (max-width:1919px) {
	html .fancybox-scroll {
		padding: 80px;
	}
}
@media (max-width: 1080px) {
    .button {
        font-size: 14px;
    }
    section, .column {
        padding: 20px;
    }
    .columns-2, .column-2, .column-8 {
        width: 100%;
    }
    .text-right {
        text-align: left;
    }
    #header {
        position: relative;
        height: auto;
        padding: 40px;
    }
    #header .logo {
        margin-bottom: 15px;
    }
    #header .logo .logo-link,
    #header .slogan {
        font-size: 12px;
        text-align: center;
    }
    #header .menu {
        margin-top: 15px;
    }
    #main {
        padding-left: 0;
    }
    .project {
        height: auto !important;
    }
    .project .project-front,
    .project .project-back,
    .project .project-front-content,
    .project .project-back-content {
        transform: none !important;
    }
    .project .project-front,
    .project .project-back {
        position: relative;
    }
    .project .project-front-content {
        padding: 0;
        border-bottom: 0;
        border-radius: 0;
    }
    .project .project-box-content {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
    }
    .project .project-front {
        line-height: 0;
    }
    .project .project-back-content .project-box-content {
        padding: 30px 15px;
    }
    .project .project-back-content .project-title {
        font-size: 18px;
    }
    .project .project-back-content .project-description p {
        font-size: 14px;
    }
    .os-host-resize-disabled.os-host-scrollbar-horizontal-hidden > .os-scrollbar-vertical {
        left: auto;
    }
}
@media (min-width: 1081px) and (max-width: 1280px) {
    .column-2 {
        width: 30%;
    }
    .column-8 {
        width: 70%;
    }
    #form-messages {
        font-size: 13px;
    }
    #websites .columns-2, #shops .columns-2 {
        width: 100%;
    }
}
@media (min-width:1081px) {
    #header {
        position: fixed;
        width: 312px;
    }
    .fancybox-scroll {
        max-width: 100%;
        padding: 80px 0;
    }
    .fancybox-container {
        width: calc(100% - 306px) !important;
        margin-left: 306px;
    }
    .fancybox-slide .os-scrollbar {
        left: 0 !important;
    }
}