@font-face {
  font-family: Source Sans Pro;
  src: url(source-sans-pro/SourceSansPro-Regular.otf);
}

@font-face {
  font-family: Source Sans Pro;
  src: url(source-sans-pro/SourceSansPro-Bold.otf);
  font-weight: bold;
}

@font-face {
  font-family: Source Sans Pro;
  src: url(source-sans-pro/SourceSansPro-ExtraLight.otf);
  font-weight: 200;
}

@font-face {
  font-family: Source Sans Pro;
  src: url(source-sans-pro/SourceSansPro-Light.otf);
  font-weight: 300;
}

@font-face {
  font-family: Source Sans Pro;
  src: url(source-sans-pro/SourceSansPro-Light.otf);
  font-weight: 300;
}

@font-face {
  font-family: Source Sans Pro;
  src: url(source-sans-pro/SourceSansPro-Black.otf);
  font-weight: 900;
}

* {
  overflow: auto;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

img {
	max-width: 100%;
	color: #DFE1E3;
}

a {
  text-decoration: none;
  transition: color 0.3s;
}

body {
  font: 18px Source Sans Pro, sans-serif;
  background: white;
  color: #131f26;
}

header {
  max-width: 1270px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 60px 0;
}

header .menu {
  align-self: center;
  flex: 1;
}

header H1 {
  font-size: 72px;
  font-weight: 300;
  text-align: center;
  color: #294959;
}

header .left a, header .right a {
  color: #131f26;
  font-weight: bold;
}

header .left a:hover, header .right a:hover {
  color: #A78868;
}

header .left a {
  margin-right: 60px;
}

header .right {
  text-align: right;
}

header .right a {
  margin-left: 60px;
}

header .logo {
  display: block;
  flex: 2;
}

.large {
  height: 80vh;
  background: url("img/largebg.jpg") no-repeat center;
  background-size: cover;
  position: relative;
}

.large H2 {
  text-align: center;
  font-size: 30px;
  color: white;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2em;
  text-shadow: 1px 1px 2px black;
}

.sometext {
  max-width: 1270px;
  margin: 75px auto;
  font-size: 1.4em;
}

.sometext .basictext {
  width: 65%;
  float: left;
  font-weight: 300;
}

.sometext .quote {
  font-size: 30px;
  color: #A78868;
  font-weight: bold;
  border: 1px solid #A78868;
  width: 33%;
  padding: 40px;
  margin: 0 0 40px 2%;
  float: right;
  overflow: hidden;
}

.boldtitle {
  max-width: 1270px;
  margin: 75px auto;
  text-align: center;
}

.boldtitle #black {
  font-weight: 900;
}

.boldtitle p {
  padding: 0 1em;
}

.portfoliowrapper {
  max-width: 1270px;
  margin: 0 auto;
  margin-bottom: 5em;
  overflow: hidden;
}

.portfoliowrapper .moarbutton {
  display: block;
  text-align: center;
  border: 2px solid #294959;
  color: #294959;
  font-size: 2em;
  padding: .5em 0;
  margin-top: 1em;
  transition: background .3s;
}

.portfoliowrapper .moarbutton:hover {
  background: #294959;
  color: white;
}

.portfolio {
  margin: -1em;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  text-align: center;
  align-content: space-between;
}

.portfolio a {
  padding: 1em;
  flex-basis: 20%;
}

.portfolio a img {
  display: block;
  width: 100%;
}

.portfolio a:first-child, .portfolio a:nth-child(2) {
  flex-basis: 50%;
}

.portfolio a:nth-child(3) {
  flex-basis: 100%;
}

.twocolumnstext {
  font-size: 24px;
  max-width: 1270px;
  margin: 0 auto;
  margin-bottom: 5em;
  color: #294959;
  -webkit-column-count: 2;
  -moz-column-count: 2;
  column-count: 2;
  -webkit-column-gap: 160px;
  -moz-column-gap: 160px;
  column-gap: 160px;
}

.how {
  font-size: 36px;
  max-width: 1270px;
  margin: 0 auto;
  margin-bottom: 5em;
  color: #131f26;
}

.how .wrap {
  border-right: 2px solid #294959;
}

.how .title {
  font-weight: 900;
  font-size: 11vw;
  margin-bottom: 90px;
}

.how .stepOne, .how .stepTwo, .how .stepThree {
  margin-bottom: 1em;
  padding-left: 5px;
  font-weight: 300;
}

.how .stepOne b, .how .stepTwo b, .how .stepThree b {
  font-weight: 900;
}

.how p {
  font-weight: 300;
  margin-top: 90px;
}

footer {
  background: url("img/bg.png") no-repeat center;
  background-size: cover;
}

footer .wrapper {
  max-width: 1010px;
  margin: 0 auto;
  padding: 200px 0;
}

footer .footerMenu {
  width: 33.333%;
  float: left;
}

footer .footerMenu a {
  color: white;
  line-height: 2;
  font-weight: bold;
}

footer .footerMenu a:hover {
  text-decoration: underline;
}

footer .footerMenu .social {
  margin-right: 20px;
}

footer .footerMenu .social img {
  vertical-align: middle;
}

footer .contacts {
  float: left;
}

footer .contacts .email, footer .contacts .tel {
  color: white;
  line-height: 2;
}

footer .contacts .email:hover, footer .contacts .tel:hover {
  text-decoration: underline;
}

@media screen and (max-width: 1280px) {
  header {
    padding-right: 2em;
    padding-left: 2em;
  }
  header .left a {
    margin-right: 30px;
  }
  header .right a {
    margin-left: 30px;
  }
  .sometext {
    padding: 0 2em;
  }
  .boldtitle {
    padding: 0 2em;
  }
  .portfoliowrap {
    padding: 0 2em;
  }
  .how {
    padding: 0 36px;
  }
  .twocolumnstext {
    font-size: 20px;
    padding: 0 36px;
    -webkit-column-gap: 140px;
    -moz-column-gap: 140px;
    column-gap: 140px;
  }
}

@media screen and (max-width: 1024px) {
  header {
    flex-wrap: wrap;
  }
  header .logo {
    order: 1;
    flex-basis: 100%;
    padding-bottom: 30px;
  }
  header .left {
    order: 2;
    flex-basis: 50%;
    text-align: right;
  }
  header .left a {
    margin: 0 15px;
  }
  header .right {
    order: 3;
    flex-basis: 50%;
    text-align: left;
  }
  header .right a {
    margin: 0 15px;
  }
  .large H2 {
    padding: 0 2em;
  }
  .sometext {
    font-size: 1.1em;
  }
  .sometext .quote {
    font-size: 1.1em;
    padding: 1em;
  }
  .twocolumnstext {
    -webkit-column-gap: 80px;
    -moz-column-gap: 80px;
    column-gap: 80px;
  }
  footer .wrapper {
    padding: 200px 2em;
  }
}

@media screen and (max-width: 768px) {
  body {
    font-size: 0.9em;
  }
  header .left a, header .right a {
    font-size: 1.2em;
  }
  .portfolio a {
    padding: .5em;
  }
  footer {
    font-size: 1rem;
  }
  footer .footerMenu {
    width: 50%;
    float: left;
  }
  footer .contacts {
    width: 50%;
    float: left;
  }
  .twocolumnstext {
    font-size: 1em;
  }
  .how {
    font-size: 24px;
  }
  .how .title {
    font-size: 13vw;
  }
}

@media screen and (max-width: 640px) {
  .sometext, .boldtitle {
    margin: 30px auto;
  }
  .twocolumnstext {
    -webkit-column-gap: 30px;
    -moz-column-gap: 30px;
    column-gap: 30px;
  }
}

@media screen and (max-width: 480px) {
  header {
    padding-right: 1em;
    padding-left: 1em;
  }
  header H1 {
    font-size: 48px;
  }
  header .left, header .right {
    flex-basis: 100%;
  }
  header .left a, header .right a {
    display: block;
    width: 100%;
    margin: 0;
    margin-bottom: 1em;
    text-align: center;
  }
  .large H2 {
    font-size: 24px;
  }
  .boldtitle {
    padding: 0 1em;
  }
  .sometext {
    padding: 0 1em;
  }
  .sometext .basictext {
    width: 100%;
    float: none;
    font-weight: 300;
  }
  .sometext .quote {
    width: 100%;
    padding: 40px;
    margin: 0;
    margin-top: 1em;
    float: none;
  }
  .portfoliowrap {
    padding: 0 1em;
  }
  .portfolio a {
    padding: .2em;
  }
  .portfoliowrapper .moarbutton {
    font-size: 1rem;
  }
  .twocolumnstext {
    font-size: 1rem;
    -webkit-column-count: 1;
    -moz-column-count: 1;
    column-count: 1;
    -webkit-column-gap: 0;
    -moz-column-gap: 0;
    column-gap: 0;
  }
  .how {
    font-size: 1em;
  }
  .how .title {
    font-size: 18vw;
  }
  footer .wrapper {
    padding: 50px 2em 0 2em;
  }
  footer .wrapper .footerMenu, footer .wrapper .contacts {
    width: 100%;
    float: none;
    margin-bottom: 5em;
  }
}
