.front .cem-mem-feature {
  margin: 30px 30px 0;
}

.front .cem-mem-feature img {
  width: 100% !important;
  height: auto !important;
}

.front .cem-mem-feature .caption {
  padding: 0.75rem 0 1rem 0;
}

.front .cem-mem-feature .caption a {
  color: #666;
  text-decoration: none;
  font-size: 18px;
  font-style: italic;
}

.front .cem-mem-feature p a:hover,
.front .cem-mem-feature p a:focus {
  text-decoration: underline;
}

.front .block-system {
  margin: 10px 30px 30px;
}
.hp-search-block {
  background: #305392;
  background-size: 100% auto;
  text-align: center;
  padding-top: 205px;
  margin-bottom: 1rem;
  position:relative;
}
.hp-search-block:before {
  content:'';
  display:block;
  position:absolute;
  z-index:2;
  top:0;
  height:200px;
  left:0;
  right:0;
  background: transparent url('../images/banner.jpg') center bottom no-repeat;
  background-size:cover;
}

.hp-search-block > div {
  background: #305392;
  padding-top: 3vw;
  padding-bottom: 5vw;
}

.hp-search-block .title {
  text-align: center;
  color: #FFF;
  font-size: 34px;
  margin-top: 10px;
}

.hp-search-block p {
  text-align: center;
  color: #FFF;
  font-size: 16px;
  font-weight: 200;
  padding: 0 40px;
  line-height:1.3;
}

.hp-search-block input {
  border: 1px solid #fff;
}

.hp-search-block a {
  color: #FFF;
  text-decoration: underline;
  font-size: 15px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  margin-top: 10px;
  opacity: 0.8;
  font-weight:200;
}

.hp-search-block input {
  min-height: 40px;
  height: 40px;
  padding: 0 10px;
}

.hp-search-block input {
  font-size: 14px;
  font-weight:200;
  width:248px;
}

.hp-search-block .form-fields {
  display: inline-block;
}

.hp-search-block input[type="submit"] {
  font-size: 14px;
  width: 100px;
  font-weight: 200;
  border-color: #9C3017;
}

.hp-search-block .form-fields {
  min-width: 360px;
  max-width: 100%;
}
.hp-search-block .title {
  font-family: FreightTextProSemibold-Regular, 'Georgia', serif;
}
.hp-services {
  clear: both;
  padding-top: 1rem;
}

.hp-services ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hp-services li {
  width: 100%;
  display: block;
  position: relative;
  background-size:cover;
  background-position: center center;
  background-repeat:no-repeat;
}

.hp-services li img {
  width: 100% !important;
  height: auto !important;
  display: block;
}

.hp-services li a {
  display: flex;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: #FFF;
  text-decoration: none;
  font-size: 28px;
  height:275px;
  font-family: FreightTextProSemibold-Regular, 'Georgia', serif;
}

.hp-services li a span:after {
  content: '';
  border: solid #FFF;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  position: relative;
  top: -2px;
  left: 8px;
}

.hp-instagram {
  padding-bottom: 1rem;
}
.hp-instagram h2.block-title {
  margin-top: 4rem;
  text-align: center;
}
.banner-page .hp-instagram h2.block-title {
  margin-top: 2rem;
}

.hp-instagram ul {
  clear: both;
  width: 100%;
  list-style: none;
  margin-left: auto;
  margin-right: auto;
  max-width: 960px;
  text-align: center;
}

.hp-instagram li {
  /*width: calc(35% - 10px);*/
  display: inline-block;
  margin-left: 5px;
  margin-right: 5px;
  margin-bottom: 10px;
  position: relative;
  line-height: 1.2;
}

.hp-instagram li img {
  width: 100% !important;
  height: auto !important;
  display: block;
  border:1px solid #ccc;
}

.hp-instagram li a.text-link {
  display: inline-block;
  color: #FFF;
  text-decoration: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  color: #fff;
  font-size: 16px;
  padding: 34% 20px 0;
}
.hp-instagram li a.text-link:after {
  content: '';
  border: solid #FFF;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 2px;
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  position: relative;
  top: -1px;
  left: 8px;
}
.hp-instagram li.ext {
  display:none;
}
.hp-email {
  background: #305392;
  margin-bottom: 0;
  padding: 42px 30px 16px;
  text-align: center;
  position:relative;
}

.hp-email p {
  color: #FFF;
  font-size: 26px;
  font-family: FreightTextProSemibold-Regular, 'Georgia', serif;
}

.hp-email p:before {
  content: '';
  display: inline-block;
  width: 23px;
  height: 23px;
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAAXCAMAAADX9CSSAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAYBQTFRF1NvoOF6crbzavcveNlydNV2aws3enLHRxtLj2uLtNF6b3uXwkqjK4eXxOV2gPWOiSGymscHavsvh/v//q7zVTXGmUHGpkqbJNGCfQmWhN16cN12hsb/Zl6nKYYKzepG/epa+jKLKNlybNF6dhp7FN12fw8zhM12fwsvjucndT3GoPGCfUXSqNl6bv83e8/P5prbVu8fchZrCNF6erLnUqrnWp7jVUnOt7u32rb7WwcziXX2yp7fTpbTTN1yi+Pn4Nl6hOVuew87iw87hws3iucjbqrnUNF6gNlugNF2aOVycNFycNVydNV2cNV2eNVycOF6f///+wMzgqLfUNlufqrrUdJC4pbPUgZfApLXNnrDNQmim7fL3R26pSm6ml6zLwc7h8O/4wc7i9vf25Onyk6nLz9nklqnPwszlfZXBobbVNF2Xt8fea4y5Z4W1bYu3tsHcgpm/OFub3Obwu8fhg5rBNVygv8vexMzg9/f9pbTRN12bNl+cNl6fNl2fNl2el9o1uAAAAfBJREFUeNoUkGlb2kAYRQeZBBgBJbJJsK3RkYpMBfd9xUJIAglqN1u60r12sa22887MX2967/14nvPhojPoEWFBWxLhc5czJrkCJZFm2+9GDf1I15tzx3rzld6/Sgpbos5eyYj5ClPwaKnXcrkZa5S6EjmgyslPXW5BN8K1DrPsZKaiScRc69vQHOSrYfPV3Pq4P9w0qUDEhmxBFEZO6/X6Wn1nc5YNTwUJPRUeHVae1UK+Ws3l18f51DyTAlkyFjwQU5mV1ex59v5KZhZuBzGukBbP7k57Y5Nj/7MQDk/HVuMKRSbqK4+gBWCBaSt3GXvfz3eCLsLl5ERy74xa4tChqkSXnedBYUSgg8+dy41d7hZxifQI5TNrG5dwIpGpm73x1FufC801gS2g0QFVfYVwtIuBXL/chqJ0yPZTg7b89j2FYEtre9yfvfolNbaUWjqgJMQU8gwisW+n48HDi49BXGKsStyQyL+2D9mPyUSjVn5Trp0kLpg2EzEU4lFF+JfFEfCdW+TQLS9+NdN2NPQ3PRbbvwNE68xQnoYP+096qqmQWnWOUoMD2/IVWMuakLnUjXYukUSJhiKUKYkl84rUxpX5BAp/+BP8nb/bbG7dvDjW38/pR/2fj4PXCv0maQswAdAkF1JIB/ieTdU/AQYAR4GCEB8UYaoAAAAASUVORK5CYII=) 0 0 no-repeat;
  margin-right: 15px;
  position: relative;
  top: 2px;
}
.hp-email span {
  display:block;
  padding-top:1rem;
}
.hp-email span.ext {
  display:none;
}
.hp-email p a {
  display: inline-block;
  background-color: #9C3017;
  padding: 7px 20px;
  text-decoration: none;
  color: #FFF;
  font-size: 16px;
  margin: 0 20px;
  font-family: 'Source Sans Pro', Arial, sans-serif;
}
/*
.hp-email p a:hover,
.hp-email p a:focus {
  background-color: #b83921;
}
*/




@media screen and (min-width:740px){

  .front .cem-mem-feature {
    margin:30px 0 30px 50px;
    float:left;
    width:calc((100% - 140px)/48*26);
  }
  .front .block-system {
    margin:30px 50px 30px 0;
    float:right;
    width:calc((100% - 140px)/48*22);
  }

  .front .feature-1,
  .front .feature-2 {
    margin-right: 0;
    width: auto;
  }


  .front .feature-1 {
    margin-left: 0;
  }

  .front .zone-postscript .region .block {
    margin: 0;
    width: calc(33.333% - (80px/3));
  }

  .front .zone-postscript .feature-1 img,
  .front .zone-postscript .feature-2 img {
    width: auto;
  }

  .region-sidebar-second .tablet-only,
  .zone-postscript .tablet-only {
    display: none;
  }

  .region-sidebar-second .tablet-hidden,
  .zone-postscript .tablet-hidden {
    display: block;
  }
  .front .region-postscript-first-inner > .block:nth-child(2){
    margin:0 40px;
  }

  .not-front .region-content {
    padding-left:50px;
    padding-right:50px;
  }
  .not-front.sidebar-second .region-content {
    padding-left:0;
    padding-right:0;
  }

  .container-12 .grid-9 {
    width:calc((100% - 50px) * .67) !important;
    margin:0;
    padding:0;
  }
  .container-12 .grid-3 {
    width:calc((100% - 50px) * .31) !important;
    margin:0;
    padding:0;
    float:right;
  }

  .container-12 .grid-3.region-postscript-second {
    width:100% !important;
    float:none;
  }


  .hp-search-block:before {
    display:none;
  }

  .hp-search-block {
    background: transparent url('../images/banner.jpg') center bottom no-repeat;
    background-size: cover;
    text-align:center;
    padding-top:0;
  }
  .hp-search-block > div {
    background:transparent;
    padding-top: 70px;
    padding-bottom: 16%;
  }
  .hp-search-block .title {
    font-size:56px;
    line-height: 1;
    margin-top: 20px;
  }
  .hp-search-block p {
    font-size: 20px;
  }
  .hp-search-block a {
    margin-left:10px;
    margin-top:0;
    display:inline-block;
    font-weight:200;
  }

  .hp-services ul {
    display:flex;
    flex-direction: row;
    justify-content: space-around;
    clear:both;
    width:100%;
    list-style:none;
  }
  .hp-services li {
    flex-grow: 1;
    background-size: auto 102%;
    -webkit-transition: background-size 500ms;
    -moz-transition: background-size 500ms;
    -ms-transition: background-size 500ms;
    -o-transition: background-size 500ms;
    transition: background-size 500ms;
  }
  .hp-services li:hover {
    background-size: auto 120%;
    -webkit-transition: background-size 500ms;
    -moz-transition: background-size 500ms;
    -ms-transition: background-size 500ms;
    -o-transition: background-size 500ms;
    transition: background-size 500ms;
  }
  .hp-services li a {
    font-size:20px;
  }

  .hp-instagram ul {
    display:flex;
    flex-direction: row;
    justify-content: space-between;
  }
  .hp-instagram li {
    width: calc(20% - 10px);
  }

  .hp-email p {
    font-size: 1.5rem;
  }
  .hp-email span {
    display:inline;
    padding-top:0;
  }
}

@media screen and (min-width:960px){
  .hp-services li a {
    font-size:28px;
  }
}

.banner-page .hp-instagram ul li:last-child {
  background: #001e3e;
}
.banner-page .hp-instagram ul li:last-child img {
  opacity: 0.3;
}