html, body {
	height: 100vh;
	margin:0;
	padding:0;
	overflow: hidden;
}
body {
  font-family: 'Work Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.8;
  color: #878C9F;
  background-color: #111;
}

h1 { 
    color:#000;
}
a {
   text-decoration: none;
}
img {
    max-width:100%;
}
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 12px 22px;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
}

.btn-theme:focus,
.btn-theme:active,
.btn-theme:hover {
  color: #fff;
  background: #111;
  text-decoration: none;
}
.grid-container {
  display: grid;
  grid-template-columns: 3fr 7fr;
  grid-template-rows: 1fr;
  grid-template-areas: "image content";
  background: #ffffff;
}



.image {
    grid-area: image;
    min-height: 100vh;
    display: grid;
    align-items: end;
} 
.image:before {
    content: "";
    height: 2px;
    bottom: 50px;
    left: 45px;
    z-index: 1;
    position: absolute;
    width: 290px;
}
.image:after {
    content: "";
    width: 2px;
    top: 50px;
    bottom: 50px;
    left: 45px;
    z-index: 1;
    position: absolute;
}
#home .image:before, #home .image:after {
    background: none;
}
.image h2 {
    font-size: 2.5em;
    text-transform: uppercase;
    margin: 50px 70px;
}
.content { 
    grid-area: content; 
    overflow-y: scroll;
    height: 100vh;
    margin-right: -15px;
}


.page-content {
    padding: 100px 50px;
    min-height: calc(100vh - 200px);
}
/* Header*/
.header {
    position: fixed;
    height: 60px;
    z-index: 9999;
    width: 100%;
    display: grid;
    grid-template-columns: 3fr 7fr;
    grid-template-rows: 1fr;
}
.header div {
    height: 60px;
    display: grid;
    align-items: center;
}
.header .logo {
    color: #fff;
    font-size: 2em;
    padding: 0 1em;
}
.header .logo img {
    max-height: 50px;
    margin: 5px 10px;
}
.header .menu-toggle {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  background-color: #000;
  height: 60px;
  width: 60px;
}
.header .menu-toggle .menu-button {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}
.header-phone {
    opacity: 0;
    text-align:center;
    background:#ffffff;
     -webkit-transition: -webkit-transform 1.2s, opacity 1.2s;
    transition: transform 1.2s, opacity 1.2s;
    -webkit-transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
    transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
    -webkit-transform: translate3d(0, 150px, 0);
    transform: translate3d(0, 150px, 0);
    font-size: 2em;
}
.header-phone.open {
     opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}
/* HOME */

#home .page-content {
align-items: center;
}

.home-text {
    padding-left: 50px;
    width: 100%;
    top: 30vh;
    position: relative;
}

.home-text h1 {
   font-size: 4em;
   text-transform: uppercase;
   position: relative;
   z-index: 1;
   display: inline-block;
}
.home-text h1:after {
  content: "";
  position: absolute;
  top: 20px;
  right: -10px;
  width: 50px;
  height: 50px;
  z-index: -1;
}
.home-text h1:before {
    content: "";
    position: absolute;
    top: 0px;
    left: -10px;
    width: 50px;
    height: 50px;
    z-index: -1;
}
.home-text p {
    font-size: 2em;
    padding: 0;
    margin: 0;
}
.vcard {
  margin-top: 50px;
}


.social-icons {
  position: absolute;
  bottom: 30px;
  right: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-icons a {
  display: inline-block;
  vertical-align: middle;
  width: 30px;
  height: 30px;
  background: #111;
  text-align: center;
  line-height: 30px;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
}



@media(max-width: 991px){

  .page-content {
    min-height: inherit;
    padding-top: 30px;
  }
  .home-text {
    padding: 20px 20px 70px;
  }
   .social-icons {
    right: auto;
    left: 50px;
  }
}


@media(max-width: 767px){
  .home-text {
    padding: 10px 10px 60px;
  }
 .social-icons {
    left: 0px;
    right: 0;
    text-align: -webkit-center;
    text-align: center;
  }
  .home-text h1 {
    font-size: 30px;
  }
  
  .home-text h1:after {
    top: 0;
    width: 35px;
    height: 35px;
  }
}


.section-title {
  margin: 0 0 40px;
}

.section-title .sub-title {
    display: inline-block;
    vertical-align: top;
    position: relative;
    z-index: 1;
    padding: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    font-size: 11px;
    text-transform: uppercase;
    color: #fff;
}
.section-title .sub-title:after {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  position: absolute;
  content: "";
  z-index: -1;
  transform: skew(-20deg);
  -webkit-transform: skew(-20deg);
}

.section-title .title {
    font-size: 3em;
    font-weight: 700;
    position: relative;
    z-index: 1;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
    padding: 0 0 10px;
    text-transform: uppercase;
    margin: 0;
    display: block;
    border-bottom-width: 1px;
    color: #000;
}

.section-title .title:after {
  height: 8px;
  width: 50px;
  bottom: -4px;
  left: 0;
  right: 0;
  position: absolute;
  content: "";
  z-index: -1;
  transform: skew(-36deg);
  -webkit-transform: skew(-36deg);
}


@media(max-width: 1200px) {
  .section-titel .sub-title {
    padding: 3px 8px;
    letter-spacing: 2px;
    font-size: 10px;
  }
  .section-titel .title {
    font-size: 35px;
  }
}

@media(max-width: 991px) {
  .section-titel .title {
    font-size: 30px;
  }
  .section-titel {
    margin: 0 0 30px;
  }
}

/*Blog*/
.posts {
      display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: self-start;
    grid-gap: 1em;
}
.post {
    border: 1px solid #ddd;
    border-bottom: 4px solid #ddd;
    position: relative;
    padding: 1em;
    height: -webkit-fill-available;
}

.post-title {
    border-bottom: 1px solid #ddd;
}
.post-title label {
  margin: 0;
  font-size: 12px;
  float: right;
  width: 100%;
}
.post-title span {
  font-weight: 500;
  font-size: 16px;
  float: left;
  line-height: normal;
  margin-bottom: 2px;
}

.post-text {
  padding: 15px 20px;
  font-size: 13px;
}

.post-text p {
  margin: 0;
}
/*Portfolio */
.portfolio, .prices {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    text-align: center;
    text-align: -webkit-center;
    grid-gap: 4em;
}
.photo {
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-bottom: 4px solid #ddd;
}
.photo p {
    color:#000;
}
/*Price*/

    
.price-block {
    text-align: center;
}
.price-block h3 {
    position: relative;
}
.price-block h3:after {
    height: 8px;
    width: 50px;
    bottom: -15px;
    left: calc(50% - 25px);
    right: 0;
    position: absolute;
    content: "";
    transform: skew(-36deg);
    -webkit-transform: skew(-36deg);
}
/*Reviews*/
.reviews-block {
    width: 80%;
    float: left;
    border: 1px solid;
    padding: 1.5em;
    clear: both;
    border-radius: 5px;
    margin: 2em 0;
}
.reviews-block:nth-child(odd) {
    float: right;
}
.reviews-block:nth-child(odd) .reviews-author {
    text-align:right;
}
.reviews-author b {
    font-size: 1.2em;
    padding: 0 50px 10px 0;
}
 .reviews-block:nth-child(odd)  .reviews-author b {
     padding: 0 0px 10px 50px;
 }
.reviews-data {
    text-align:center;
}
.reviews-form {
    width: 100%;
    text-align: center;
    clear:both;
}
#reviewsForm {
    margin: auto;
    width: 80%;
}
#reviewsForm h4 {
    font-size: 1.5em;
}
/*Contact*/
.contact-form, .contact {
    border: 1px solid #eee;
    border-bottom: 4px solid #eee;
    padding: 2em;
    border-radius: 7px;
    margin-bottom: 40px;
    grid-gap: 1em;
}
.contact-form .title, .contact .title {    
    margin: 0;
    font-size: 2em;
    font-weight: bold;
    color: #000;
}
.contact-form input, .contact-form textarea, #reviewsForm input, #reviewsForm textarea {
    outline: none;
    box-shadow: none;
    height: 40px;
    display: inline-block;
    width: 45%;
    margin: 1% 2% 1% 0;
    font-size: 1rem;
    line-height: 1.5;
    border: 1px solid #ced4da;
    border-radius: 7px;
    padding: 5px 10px;
}
input[type="checkbox"] {
    width: auto;
    height: auto;
}
.contact-form textarea, #reviewsForm textarea {
      height: 80px;
}
.contact {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    grid-template-areas: "image content";
    background: #ffffff;
    display: grid;
    text-align: center;
}

.contact-info h6 {
font-size: 1em;    margin: 0.5em;
}
.contact-info p  {
    color: #000;
}

/* add style */
#reviewsForm input, #reviewsForm textarea {
    width: 100%;
    margin: 1em;
}
.poweredby {
    position: absolute;
    bottom: 30px;
}
.dots {
    display: inline-block;
    width: 54px;
    height: 13px;
    background: url(all-dots-default-order@2x.png) no-repeat 0 3px;
    background-size: 54px 9px;
}
/* Pages nav */

.pages-nav {
	display: -webkit-flex;
	display: flex;
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-justify-content: center;
	justify-content: center;
	-webkit-align-items: center;
	align-items: center;
	padding: 20px;
	text-align: center;
	background: #0e0f0f;
}

.pages-nav {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 50vh;
	padding: 30px;
	pointer-events: none;
	opacity: 0;
	background: transparent;
	-webkit-transition: -webkit-transform 1.2s, opacity 1.2s;
	transition: transform 1.2s, opacity 1.2s;
	-webkit-transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
	transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
	-webkit-transform: translate3d(0, 150px, 0);
	transform: translate3d(0, 150px, 0);
}

.pages-nav--open {
	pointer-events: auto;
	opacity: 1;
	-webkit-transform: translate3d(0, 0, 0);
	transform: translate3d(0, 0, 0);
}

/* Pages stack */
.pages-stack {
	z-index: 100;
	pointer-events: none;
	-webkit-perspective: 1200px;
	perspective: 1200px;
	-webkit-perspective-origin: 50% -50%;
	perspective-origin: 50% -50%;
}

.page {
    overflow: hidden;
	position: relative;
    z-index: 5;
    width: 100%;
    height: 100vh;
    pointer-events: auto;
    box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.1);
}

.pages-stack--open .page {
	cursor: pointer;
	-webkit-transition: -webkit-transform 0.45s, opacity 0.45s;
	transition: transform 0.45s, opacity 0.45s;
	-webkit-transition-timing-function: cubic-bezier(0.6, 0, 0.4, 1);
	transition-timing-function: cubic-bezier(0.6, 0, 0.4, 1);
}

.page--inactive {
	position: absolute;
	z-index: 0;
	top: 0;
	opacity: 0;
}







/* Menu button */
.menu-button {
	width: 60px;
    height: 60px;
	padding: 0;
	cursor: pointer;
	border: none;
	outline: none;
	background: transparent;
}



.menu-button::before,
.menu-button::after,
.menu-button span {
	background: #fff;
}

.menu-button::before,
.menu-button::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	margin: auto;
	width: 50%;
	height: 2px;
	pointer-events: none;
	-webkit-transition: -webkit-transform 0.25s;
	transition: transform 0.25s;
	-webkit-transform-origin: 50% 50%;
	transform-origin: 50% 50%;
}

.menu-button span {
	position: absolute;
	left: 0;
	right: 0;
	margin: auto;
	overflow: hidden;
	width: 60%;
	height: 2px;
	text-indent: 200%;
	-webkit-transition: opacity 0.25s;
	transition: opacity 0.25s;
}

.menu-button::before {
	-webkit-transform: translate3d(0, -10px, 0) scale3d(0.8, 1, 1);
	transform: translate3d(0, -10px, 0) scale3d(0.8, 1, 1);
}

.menu-button::after {
	-webkit-transform: translate3d(0, 10px, 0) scale3d(0.8, 1, 1);
	transform: translate3d(0, 10px, 0) scale3d(0.8, 1, 1);
}

.menu-button--open span {
	opacity: 0;
}

.menu-button--open::before {
	-webkit-transform: rotate3d(0, 0, 1, 45deg);
	transform: rotate3d(0, 0, 1, 45deg);
}

.menu-button--open::after {
	-webkit-transform: rotate3d(0, 0, 1, -45deg);
	transform: rotate3d(0, 0, 1, -45deg);
}



@media screen and (max-width: 40em) {
	.pages-nav {
		display: block;
		padding: 10px 20px 0 20px;
		text-align: left;
	}
	 .pages-nav__item {
		width: 100%;
		padding: 4px 0;
	}
	 .pages-nav__item--small {
		display: inline-block;
		width: auto;
		margin-right: 5px;
	}
	.pages-nav__item--social {
		font-size: 0.9em;
	}
	.menu-button {
		top: 15px;
		right: 10px;
		left: auto;
	}
}

.pages-nav .link {
    color: #fff;
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
}

.pages-nav .pages-nav__item {
    margin: 0 13px;
}

.pages-nav .link:after {
    content: "";
    position: absolute;
    bottom: 0;
    height: 1px;
    left: auto;
    background: #fff;
    right: 0;
    transition: ease all 0.3s;
    width: 0px;
}

.pages-nav .link:hover:after {
    width: 100%;
    right: auto;
    left: 0;
}

/*mobile*/
@media(max-width: 767px) {
    .header-phone.open { 
            opacity: 0;
    }
    .grid-container, .header, .posts, .portfolio, .prices, .contact{
        display:block;
    }
    .page {
    overflow-y: auto;
}
.content {
    margin-right: 0;
    width: 90%;
    margin: auto;
}
.page-content {
    padding: 5px;
}
}


@media(max-width: 991px){
  .pages-nav {
    padding: 100px 20px 0 20px;
    overflow-y: auto;
  }


.post, .photo,  .price-block {
    height: auto;
    margin:1em 0;
}
  .reviews-block:nth-child(odd) {
      float: left;
  }
  #reviewsForm input, #reviewsForm textarea {
    width: inherit;
  }
  .contact-form input, .contact-form textarea, #reviewsForm input, #reviewsForm textarea {
          width: 95%;
  }
}