* { 
  box-sizing: border-box
}

html { 
  height: 100%;
  min-height: 100%;
  position: relative;
  width: 100%;
}
body { 
  background-color: #f9f9f9;
  color: #000000;
  display: flex;
  flex-direction: column;
  font-family: 'Montserrat';
  font-size: 16px;
  height: 100%;
  line-height: 1.4em;
  margin: 0;
  min-height: 100vh;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}
@media screen and (max-width: 640px) { 
  body { 
    font-size: 14px
  }
}
.wrapper { 
  margin: 0 auto;
  max-width: 1000px;
  padding: 0 10px;
  width: 100%
}

/* Header */

header { 
  background-color: #FFFFFF;
  border-bottom: 1px solid #646464;
}
.header-wrapper { 
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 20px 10px;
}
@media (max-width: 767px) { 
  .header-wrapper { 
    
    flex-direction: column;
  }
}
.header-logo { 
  display: block;
  max-width: 170px;
  width: 100%
}
@media (max-width: 767px) {
  .header-logo { 
    max-width: 40%;
  }
}
.client-logo {
  display: block;
  margin-left: auto;
  max-width: 100%;
}

.header-navigation { 
  margin-left: auto;
}
@media (max-width: 767px) { 
  .header-navigation {
    width: 100%; 
    margin: 0 auto;
    margin: 30px auto;
  }
}
.header-navigation-list { 
  display: flex;
  flex-direction: row;
  font-size: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  font-weight: 600;
}
@media screen and (max-width: 640px) { 
  .header-navigation-list { 
    font-size: 14px;
    text-align: center;
    justify-content: space-around;
  } 
}
.header-navigation-list li { 
  margin-left: 40px
}
@media screen and (max-width: 640px) {
  .header-navigation-list li { 
    margin: 4px;
  }
}
.header-navigation-list li:first-child { 
  margin-left: 0
}
.header-navigation-list li a {
  color: #333645;
  letter-spacing: 1.5px; 
  text-decoration: none;
  position: relative;
  transition: all .3s linear;
}
@media screen and (max-width: 640px) {
  .header-navigation-list li a { 
    
    text-align: center;
  }
  .header-navigation-list li a:after { 
    content: ' ' ;
    position: absolute;
    bottom: -3px ;
    width: 100%;
    height: 2px;
    background: #ffaa06;
    left: 0
    
  }
}
.header-navigation-list li a:hover:after { 
  content: ' ' ;
  position: absolute;
  bottom: -3px ;
  width: 100%;
  height: 2px;
  background: #ffaa06;
  left: 0
}


.intro { 
  font-size: 30px;
  color: #FFFFFF;
  text-align: center;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 60px;
  line-height: 45px;
  z-index:4;
  position: relative;
}
.intro h1 { 
  color: #FFFFFF;
}
.welcome-msg { 
  position: relative;
  z-index: 2;
}
.welcome-msg p { 
  text-align: center;
}
.pattern { 
  background-color: #202435;
  height: 270px;
  left: 0;
  overflow: hidden;
  position: absolute;
  width: 100%;
  z-index: 1;
}
canvas { 
  height: 100%;
  margin: 0 auto;
  position: absolute;
  top: 0;
  z-index: -1;
}
@media screen and (max-width: 767px) { 
  .intro { 
    font-size: 24px;
    line-height: 28px;
    padding-top: 60px;
    height: 80px;
  }
  .pattern { 
    height: 170px;
  }
}
.welcome { 

  padding: 48px 0 48px;
  padding-top: 0;
  
}
.welcome .wrapper > div { 
  margin-bottom: 24px;
}
h1 {
  color: #333645;
  margin: 0;
  padding: 0;
  font-weight: 600;
}

h1.left-right-border { 
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 36px;
  width: 100%;
}
h1.has-margin { 
  margin-bottom: 24px;
}
canvas, .welcome-msg { 
  -webkit-animation: fade-in-load ease-in 600ms forwards;
  animation: fade-in-load ease-in 600ms forwards;
}
@-webkit-keyframes fade-in-load {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fade-in-load {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}
h1.left-right-border:before, h1.left-right-border:after { 
  flex: 1 0 20px;
  content: '';
  border-top: 2px solid #ffaa06;
  margin: 0 20px 0 0;
}
h1.left-right-border:after { 
  margin: 0 0 0 20px;
}


.main { 
  flex: 1;
  position: relative;
}
.content a { 
  color: #333645;
  text-decoration: underline;
  font-weight: 600;
}
.content a:hover { 
  color: #ffaa06;
}

.services-note { 
  text-align: center;
  margin-bottom: 56px;
  line-height: 1.8em;
}



.content { 
  padding: 40px 50px;
  background: #FFF;
  border-radius: 4px;
  margin: 60px auto;
  z-index: 1;
  position: relative;
  box-shadow: 0 6px 12px 0 rgba(0,0,0,.06), 0 14px 35px 0 rgba(0,0,0,.08);
  background: #FFFFFF;
}
@media screen and (max-width: 767px) {
  .content { 
    padding: 30px 20px;
  } 
}
footer {
  background-color: #333645;
  color: #FFFFFF;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  align-content: center;
  padding: 45px 0;
  font-size: 18px;
  flex-shrink: 0;
  text-align: center;
}
footer a { 
  color: #FFFFFF;
}
footer a:hover { 
  opacity: .8
}
footer .wrapper { 
  text-align: center;
}
.footer-contact { 
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80%;
  margin: 0 auto 50px;
}
.footer-contact-block { 
  margin: 0 50px;
  
}
.footer-contact-block-title {
  color: #ffaa06;
  font-size: 18px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
@media screen and (max-width: 767px) { 
  .footer-contact {
    font-size: 16px;
    width: 100%;
    flex-direction: column;
  }
  .footer-contact-block { 
    margin-bottom: 20px
  }
  .footer-contact-block:last-child { 
    margin-bottom: 0
  }
  .footer-contact-block-title { 
    font-size: 14px;
  }
}

/* FORMS */
button { 
  border-radius: 200px;
  background-color: #333645;
  color: #FFFFFF;
  cursor: pointer;
  font-size: 18px;
  padding: 20px 40px;
  text-transform: uppercase;
  border: none;
  font-family: 'Open Sans';
}
button:hover, button:focus { 
  background-color: #0a0d1b
}
input[type="text"], textarea { 
  border: 1px solid #999999;
  font-size: 16px;
  appearance: none;
  -webkit-appearance: none;
  padding: 10px 14px;
  font-family: 'Montserrat';
}
select { 
   border: 1px solid #999999;
  font-size: 16px;
  padding: 10px 14px;
  font-family: 'Montserrat'; 
}
.card-panel { 
  box-shadow: 0 6px 12px 0 rgba(0,0,0,.06), 0 8px 20px 0 rgba(0,0,0,.08);
  background: #FFFFFF;
  padding: 20px 40px;
  color: #000000;
  border-radius: 4px;
}
@media screen and (max-width: 767px) { 
  .card-panel { 
    padding: 20px;
  }
}
.contact-form {
  width: 100%;
}
.contact-text {
  margin-bottom: 30px;
}
.contact-field {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
  border-bottom: 1px solid #cccccc;
  padding: 20px;
  flex-wrap: wrap;
  -webkit-flex-wrap: wrap;
}
.contact-field.contact-message {
  -ms-flex-align: start;
  -webkit-align-items: flex-start;
  align-items: flex-start;
}
.contact-field.contact-send {
  border-bottom: none;
  padding-left: 18%;
}
@media screen and (max-width: 767px) {
  .contact-field.contact-send {
    padding-left: 0;
  }
}
@media screen and (max-width: 767px) {
  .contact-field {
    -ms-flex-align: start;
    -webkit-align-items: flex-start;
    align-items: flex-start;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    padding-left: 0;
    padding-right: 0;
  }
}
.contact-label {
  -webkit-flex-basis: 16%;
  -ms-flex-preferred-size: 16%;
  flex-basis: 16%;
  padding-right: 3%;
  text-align: right;
}
@media screen and (max-width: 767px) {
  .contact-label {
    -webkit-flex-basis: 100%;
    -ms-flex-preferred-size: 100%;
    flex-basis: 100%;
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 15px;
  }
}
.contact-input {
  -webkit-flex-basis: 80%;
  flex-basis: 80%;
}
@media screen and (max-width: 767px) {
  .contact-input {
    -webkit-flex-basis: auto;
    flex-basis: auto;
    width: 100%;
  }
}
textarea {
  height: 210px;
}
@media screen and (max-width: 767px) {
  .send-message-button {
    width: 100%;
  }
}

.contact-note { 
  background-color: #F7F7F7;
  border-radius: 4px;
  margin-bottom: 15px;
  padding: 12px 18px;
  font-size: 14px;
}
.contact-instructions { 
  flex-basis: 84%;
  text-align: left;
  margin: 0;
  padding: 0;
  margin-left: auto;
  margin-top: 10px;
  font-size: 13px;
}
@media screen and (max-width: 767px) {
  .contact-instructions { 
    flex-basis: 100%;
    margin-left: 0;
  }
  }

.required-star { 
  color: red;
}





/* Home Content */
.services-list { 
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 -15px;
  padding: 0;
}
.services-list-item {
  padding: 15px;
  width: 33.33%;
  text-align: center;
  display: flex; 
}
@media all and (max-width: 50em) {
  .services-list-item { 
    width: 50%;
  }
}
@media screen and (max-width: 767px) { 
  .services-list-item { 
    width: 100%;
    padding: 0 20px 10px;
  }
}
.services-list-item .card-panel { 
  padding: 44px 24px;
  display: flex;
  flex-direction: column;
  width: 100%
}
@media screen and (max-width: 767px) { 
  .services-list-item .card-panel { 
    flex-direction: row;
    align-items: center;
    padding: 10px;
    text-align: left;
  }
}
.services-icon {
  color: #333645;
  font-size: 42px;
  margin-bottom: 24px;
}
@media screen and (max-width: 767px) {
  .services-icon { 
    margin-bottom: 0;
    margin-right: 20px;
    font-size: 28px;
    width: 32px;
    text-align: center;
  }
}
.services-caption { 
  flex: 1 0 auto;
}
@media screen and (max-width: 767px) {
  .services-caption { 
    flex: 1
  }
}

.success, .failure { 
  padding: 10px 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  color: #FFFFFF;
}
.success { 
  background-color: green;
}
.failure { 
  background-color: #640000;
}

.about-us { 
  margin-top: 40px;
  line-height: 1.5em;
}