
body {
	font-family: 'Open Sans', sans-serif;
}

html{
	font-size: 10px;
}

a:focus{
	text-decoration: none;
	outline: none;
	color: #646464;
}

/*Первая секция*/
.main {
	text-align: center;
	color: #fff;
	height: 100vh;
	display:table;
	width:100%;
	position: relative;
}

.main h1 {
	margin: 0;
	padding: 0;
	margin-bottom: 15px;
	font-size: 4.8rem; 
	font-weight: 300;
	text-transform: uppercase;
}

.main p {
	font-size: 3rem;
	font-weight: 300px;
}

.main-overlay {
	position: absolute;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.5);
	z-index: 1;
}

.wrapper {
	display:table-cell;
	vertical-align:middle;
}

.main-header {
	position: relative;
	z-index: 2;
	margin-left:auto;
	margin-right:auto;
	width:100%;
}

.main-line {
	width: 150px;
	height: 1px;
	background-color: white;
	margin: 0 auto;
}

.main-down {
	position: absolute;
	bottom: 0;
	display: inline-block;
	font-size: 3rem;
	left: 50%;
	margin-left: -25px;
	width: 50px;
	color: #fff;
	z-index: 4;
	height: 50px;
	border-radius: 50%;
	border: 1px solid transparent;
	transition: 0.2s;
	margin-bottom: 1.5rem;
}

.main-down:hover {
	color: #fff;
	border-color: #fff;
}

.main-logo {
	width: -30px;
	position: relative;
	z-index: 2;
	margin-left:auto;
	margin-right:auto;
	margin-bottom: 2rem;
}

.main-logo img {
	border-radius: 50%;
	border: 3px dotted lightgrey;
	box-shadow:0px 1px 30px 0px rgba(255,255,255,1);
	-webkit-box-shadow:0px 1px 30px 0px rgba(255,255,255,1);
	-moz-box-shadow:0px 1px 30px 0px rgba(255,255,255,1);
}


/*Вторая секция с портфолио*/ 

.portfolio {
	text-align: center;
	padding: 10rem 0px;
}

.section-header {
	text-transform: uppercase;
	font-weight: 800;
	font-size: 3.6rem;
	margin-bottom: 0.1rem;
}

.portfolio img {
	width: 100%;
	max-width: 360px;
	box-shadow: 0px 4px 29px 0px rgba(87, 92, 97, 0.7);
}

.portfolio a {
	display: block;
	margin: 4rem auto 6rem; 
	color: #333;
	border-bottom: 1px solid transparent;
	width: 20rem;
}

.portfolio a:hover {
	text-decoration: none;
	border-bottom: 1px dotted #333;
}

/*Footer оформление*/

.footer {
	background-color: #646464;
	color: #fff;
	text-align: center;
	padding: 4rem 0;
}

.footer strong {
	font-weight: 300;
	font-size: 2.5rem;
}

.social-links {
	margin: 2.5rem;
}

.social-links a{
	width:5rem;
	height: 5rem;
	line-height: 5rem;
	display: inline-block;
	color: #fff;
	border: solid 1px #fff;
	border-radius: 50%;
	font-size: 2rem;
	margin: 0.81rem;
}

.social-links a:hover {
	background-color: #fff;
	color: #646464;
	transition: 0.2s;
}

.offer-btn {
	display: block;
	width: 190px;
	max-width: 300px;
	margin: 1rem auto;
	padding-top: 1rem;
	padding-bottom: 1rem;
	border: 1px solid #fff;
	color: #fff;
	border-radius: 100px;
}

.offer-btn:hover {
	background-color: #fff;
	color: #646464;
	transition: 0.4s;
	text-decoration: none;
}

.modal img {
	width: 100%;
}

.modal-title {
	font-size: 2rem;
	font-weight: 900;
}

.close {
	background-color: transparent;
	border: none;
	position: absolute;
	right: 0;
	top: 1rem;
	font-size: 2.5rem;
}

.modal-btn {
	display: block;
	border: 1px solid #646464;
	padding: 10px 20px;
	border-radius: 50px;
	color: #646464;
  background-color: #fdf4e3;
	width: 200px;
}

.modal-btn:hover {
	background-color: #646464;
	color: #fff;
	text-decoration: none;
	width: 200px;

}

@media (min-width: 0px) and (max-width: 767px) {
	html {
		font-size: 7px;
	}

	.footer strong {
		margin-top: 3rem;
		display: inline-block;
	}

	.social-links a {
		font-size: 2.5rem;
		margin: 1rem;
	}
}

}

@media (min-width: 768px) and (max-width: 1024px) {
	html {
		font-size: 7px;
	}

	.footer strong {
		margin-top: 3rem;
		display: inline-block;
	}

	.social-links a {
		font-size: 2.6rem;
		margin: 2.6rem;
	}

}

/* -------------------------------- 

Modal window 

-------------------------------- */
.cd-modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background-size: cover;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 0.3s 0s, visibility 0s 0.3s;
  -moz-transition: opacity 0.3s 0s, visibility 0s 0.3s;
  transition: opacity 0.3s 0s, visibility 0s 0.3s;
}

.modal-content {	
  background: #402f44 url(../img/modal-bg.jpg) no-repeat center center;
}

.cd-modal .modal-content {
  height: 100%;
  overflow-y: auto;
  padding: 3em 5%;
  color: #e4dcca;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.cd-modal h1 {
  text-align: center;
}
.cd-modal h1::after {
  /* ink/brush separation */
  content: '';
  display: block;
  width: 130px;
  height: 18px;
  background: url(../img/ink-separation.svg) no-repeat center center;
  margin: .2em auto 0;
}
.cd-modal p {
  line-height: 1.6;
  max-width: 800px;
}
.cd-modal .modal-close {
  /* 'X' icon */
  position: absolute;
  z-index: 1;
  top: 20px;
  right: 5%;
  height: 45px;
  width: 45px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3) url(../img/cd-icon-close.svg) no-repeat center center;
  /* image replacement */
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
  visibility: hidden;
  opacity: 0;
  -webkit-transform: scale(0);
  -moz-transform: scale(0);
  -ms-transform: scale(0);
  -o-transform: scale(0);
  transform: scale(0);
  -webkit-transition: -webkit-transform 0.3s 0s, visibility 0s 0.3s, opacity 0.3s 0s;
  -moz-transition: -moz-transform 0.3s 0s, visibility 0s 0.3s, opacity 0.3s 0s;
  transition: transform 0.3s 0s, visibility 0s 0.3s, opacity 0.3s 0s;
}
.no-touch .cd-modal .modal-close:hover {
  background-color: rgba(0, 0, 0, 0.5);
}
.cd-modal.visible {
  opacity: 1;
  visibility: visible;
  -webkit-transition: opacity 0.7s, visibility 0s;
  -moz-transition: opacity 0.7s, visibility 0s;
  transition: opacity 0.7s, visibility 0s;
}
.cd-modal.visible .modal-content {
  /* this fixes the buggy scrolling on webkit browsers - mobile devices only - when overflow property is applied */
  -webkit-overflow-scrolling: touch;
}
.cd-modal.visible .modal-close {
  visibility: visible;
  opacity: 1;
  -webkit-transition: -webkit-transform 0.3s 0s, visibility 0s 0s, opacity 0.3s 0s;
  -moz-transition: -moz-transform 0.3s 0s, visibility 0s 0s, opacity 0.3s 0s;
  transition: transform 0.3s 0s, visibility 0s 0s, opacity 0.3s 0s;
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -ms-transform: scale(1);
  -o-transform: scale(1);
  transform: scale(1);
}
@media only screen and (min-width: 1100px) {
  .cd-modal .modal-content {
    padding: 6em 5%;
  }
  .cd-modal .modal-close {
    height: 60px;
    width: 60px;
  }
  .cd-modal p {
    font-size: 2rem;
  }
}

/* -------------------------------- 

Transition Layer 

-------------------------------- */
.cd-transition-layer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  height: 100%;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
}
.cd-transition-layer .bg-layer {
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translateY(-50%) translateX(-2%);
  -moz-transform: translateY(-50%) translateX(-2%);
  -ms-transform: translateY(-50%) translateX(-2%);
  -o-transform: translateY(-50%) translateX(-2%);
  transform: translateY(-50%) translateX(-2%);
  /* its dimentions will be overwritten using jQuery to proportionally fit the viewport */
  height: 100%;
  /* our sprite is composed of 25 frames */
  width: 2500%;
  background: url(../img/ink.png) no-repeat 0 0;
  background-size: 100% 100%;
}
.cd-transition-layer.visible {
  opacity: 1;
  visibility: visible;
}
.cd-transition-layer.opening .bg-layer {
  -webkit-animation: cd-sequence 0.8s steps(24);
  -moz-animation: cd-sequence 0.8s steps(24);
  animation: cd-sequence 0.8s steps(24);
  -webkit-animation-fill-mode: forwards;
  -moz-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}
.cd-transition-layer.closing .bg-layer {
  -webkit-animation: cd-sequence-reverse 0.8s steps(24);
  -moz-animation: cd-sequence-reverse 0.8s steps(24);
  animation: cd-sequence-reverse 0.8s steps(24);
  -webkit-animation-fill-mode: forwards;
  -moz-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}
.no-cssanimations .cd-transition-layer {
  display: none;
}

@-webkit-keyframes cd-sequence {
  0% {
    /* translateX(-2%) is used to horizontally center the first frame inside the viewport */
    -webkit-transform: translateY(-50%) translateX(-2%);
  }
  100% {
    /* translateX(-98%) (2% + 96) is used to horizontally center the last frame inside the viewport  */
    -webkit-transform: translateY(-50%) translateX(-98%);
  }
}
@-moz-keyframes cd-sequence {
  0% {
    /* translateX(-2%) is used to horizontally center the first frame inside the viewport */
    -moz-transform: translateY(-50%) translateX(-2%);
  }
  100% {
    /* translateX(-98%) (2% + 96) is used to horizontally center the last frame inside the viewport  */
    -moz-transform: translateY(-50%) translateX(-98%);
  }
}
@keyframes cd-sequence {
  0% {
    /* translateX(-2%) is used to horizontally center the first frame inside the viewport */
    -webkit-transform: translateY(-50%) translateX(-2%);
    -moz-transform: translateY(-50%) translateX(-2%);
    -ms-transform: translateY(-50%) translateX(-2%);
    -o-transform: translateY(-50%) translateX(-2%);
    transform: translateY(-50%) translateX(-2%);
  }
  100% {
    /* translateX(-98%) (2% + 96) is used to horizontally center the last frame inside the viewport  */
    -webkit-transform: translateY(-50%) translateX(-98%);
    -moz-transform: translateY(-50%) translateX(-98%);
    -ms-transform: translateY(-50%) translateX(-98%);
    -o-transform: translateY(-50%) translateX(-98%);
    transform: translateY(-50%) translateX(-98%);
  }
}
@-webkit-keyframes cd-sequence-reverse {
  0% {
    -webkit-transform: translateY(-50%) translateX(-98%);
  }
  100% {
    -webkit-transform: translateY(-50%) translateX(-2%);
  }
}
@-moz-keyframes cd-sequence-reverse {
  0% {
    -moz-transform: translateY(-50%) translateX(-98%);
  }
  100% {
    -moz-transform: translateY(-50%) translateX(-2%);
  }
}
@keyframes cd-sequence-reverse {
  0% {
    -webkit-transform: translateY(-50%) translateX(-98%);
    -moz-transform: translateY(-50%) translateX(-98%);
    -ms-transform: translateY(-50%) translateX(-98%);
    -o-transform: translateY(-50%) translateX(-98%);
    transform: translateY(-50%) translateX(-98%);
  }
  100% {
    -webkit-transform: translateY(-50%) translateX(-2%);
    -moz-transform: translateY(-50%) translateX(-2%);
    -ms-transform: translateY(-50%) translateX(-2%);
    -o-transform: translateY(-50%) translateX(-2%);
    transform: translateY(-50%) translateX(-2%);
  }
}


.main2 {
  text-align: center;
  color: #333;
  height: 60vh;
  display:table;
  width:100%;
  position: relative;
}


.main2>.wrapper>h2 {
  margin: 0;
  padding: 0;
  width: 100%;
  font-size: 50px; 
  font-weight: 300;
  text-transform: uppercase;
  color: #333;
  z-index: 10;
}

.main2 p {
  font-size: 3rem;
  font-weight: 300px;
}

.main2-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  color: #333;
  background-color: rgba(250,250,250,0.87);
  z-index: 1;
}


.mheader {
  position: relative;
  z-index: 2;
  margin-left:auto;
  margin-right:auto;
  width:100%;
  font-size: 3.6rem
}

.mheader > .col-md-6 > .contacts > p > a{
  text-decoration: none;
  color: #333;
}

.portfolio >.col-md-4> .skills-section {
  text-transform: uppercase;
  font-weight: 800;
  font-size: 3.6rem;
  margin-bottom: 0.1rem;
}