body {
  margin: 0;
  font-family: 'Ubuntu', sans-serif;
}
section {
  margin: 0 auto;
  max-width: 1600px;
  padding: 0 20px;
}
h1 {
  font-weight: normal;
  position: relative;
  background: #dff5f9;
  width: 50%;
  color: #333;
  text-align: center;
  padding: 10px 20px;
  margin: 0px auto 40px;
  text-transform: uppercase;
  border-radius: 2px;
  font-size: 18px;
  font-weight: 600;
}
h1:before, h1:after {
  content: "";
  position: absolute;
  top: -6px;
  border: 18px solid #DCF4F4;
}
h1:before {
  left: -36px;
  border-right-width: 18px;
  border-left-color: transparent;
}
h1:after {
  right: -36px;
  border-left-width: 18px;
  border-right-color: transparent;
}
h1 span:before, h1 span:after {
  content: "";
  position: absolute;
  border-style: solid;
  border-color: #A7CECC transparent transparent transparent;
  top: -6px;
  transform: rotate(180deg);
}
h1 span:before {
  left: 0;
  border-width: 6px 0 0 6px;
}
h1 span:after {
  right: 0;
  border-width: 6px 6px 0 0;
}
.ribbon {
  width: 48%;
  height: 170px;
  position: relative;
  float: left;
  margin-bottom: 30px;
  /* background: url(http://html5book.ru/wp-content/uploads/2015/10/snow-road.jpg);
     background-size: cover;
     text-transform: uppercase;*/
  color: white;
  -webkit-box-shadow: -3px 3px 3px 0px rgba(0,0,0,0.15);
  -moz-box-shadow: -3px 3px 3px 0px rgba(0,0,0,0.15);
  box-shadow: -3px 3px 3px 0px rgba(0,0,0,0.15);
  border: 1px solid #BAAFAF;
  border-radius: 3px
}
.ribbon:nth-child(even) {
  margin-right: 4%;
}
@media (max-width: 760px) {
  .ribbon {
    width: 100%;
  }
  .ribbon:nth-child(even) {
    margin-right: 0%;
  }
}

/*-- Ribbon 1 */
.ribbon1 {
  position: absolute;
  top: -6.1px;
  right: 10px;
}
.ribbon1:after {
   position: absolute;
  content: "";
  width: 0;
  height: 0;
 border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 6px solid #EA4F37;
}
.ribbon1 span {
  position: relative;
  display: block;
  text-align: center;
  background: #EA4F37;
  font-size: 11px;
  line-height: 1;
  padding: 5px 2px 3px 2px;
  /*border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;*/
  width: 30px;
}
.ribbon1 span:before, .ribbon1 span:after {
  position: absolute;
  content: "";
}
.ribbon1 span:before {
 height: 0px;
 width: 0px;
 right: -5.7px;
 top: 0.1px;
 border-bottom: 6px solid #850e16;
 border-right: 6px solid transparent;
}
.ribbon1 span:after {
 /*height: 6px;*/
 width: 8px;
 left: -8px;
 top: 0;
 border-radius: 8px 8px 0 0;
 background: #C02031;
}

/*-- Ribbon 2 */
.ribbon2 {
  position: absolute;
  top: -6.1px;
  right: 10px;
}
/*.ribbon2:after {
   position: absolute;
  content: "";
  width: 0;
  height: 0;
 border-left: 18px solid transparent;
  border-right: 17px solid transparent;
  border-top: 6px solid #EA4F37;
}*/
.ribbon2 span {
  position: relative;
  display: block;
  text-align: center;
  background: #EA4F37;
  font-size: 11px;
  line-height: 1;
  padding: 5px 6px 5px 6px;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  /* width: 30px; */
}
.ribbon2 span:before, .ribbon2 span:after {
  position: absolute;
  content: "";
}
.ribbon2 span:before {
 height: 0px;
 width: 0px;
 right: -5.7px;
 top: 0.1px;
 border-bottom: 6px solid #850e16;
 border-right: 6px solid transparent;
}
.ribbon2 span:after {
 /*height: 6px;*/
 width: 8px;
 left: -8px;
 top: 0;
 border-radius: 8px 8px 0 0;
 background: #C02031;
}

/*-- Ribbon 3 */
.ribbon3 {
  display: block;
  width: 40px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  /* margin-left: -10px; */
  margin-right: -6px;
  background: #EA4F37;
  position: relative;
  float:right;
  top: 7px;
  float: right;
  font-size: 11px;
  font-weight: 600;
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}
.ribbon3:before, .ribbon3:after {
  content: "";
  position: absolute;
}
.ribbon3:after {
  height: 0;
  width: 0;
  right: 0;
  bottom: -6px;
  border-top: 6px solid #B50E16;
  border-right: 6px solid transparent;
}
