/* $main-red #da251b */
/* $main-dark #212121 */

body {
  font-family: arial;
  margin: 0px;
}

ul {
  margin: 0px;
  padding: 0px;
}

#header-contact {
 color: #da251b;
 float: right;
 height: 60px;
 font-size: 17px;
 margin: 30px 60px 10px 0px;
}

#header-contact ul {
  margin: 20px;
}

#header-contact li {
  float: left;
  margin-left: 18px;

}

.main-nav,
#header-contact ul {
  list-style-type: none;
  float: right;
}

.main-nav li{
  float: left;
} 

.main-nav li a {
  text-decoration: none;
  color: white;
}

header > div:nth-child(2) {
  clear: right;
  background: #da251b;
  height: 90px;
  width: 100%;
  position: relative;
}

header h1 {
  width: 390px;
  height: 173px;
  text-indent: -10000px;
  background-image: url(images/logo-edit.png);
  background-repeat: no-repeat;
  background-size: 100% auto;
  margin: 0;
  left: 8.6%;
  top: -30px;
  position: absolute;
} 

header nav {
  max-width: 1650px;
}

header .main-nav {
  margin: 30px 28px 0px 0px;
  font-size: 26px;
}

header .main-nav li {
  margin-left: 30px;
}

@media screen and (max-width: 1400px){
  header h1{
    top: -200%;
    left: 20px;
  }
  
  header .main-nav {
    width: 100%;
    clear: left;
    margin-right: 0px;
  }
  
  header .main-nav li{
    width: 16.6%;
    text-align: center;
    margin: 0px;
  }
  
  #header-contact {
    margin: 0px;
    height: 180px;
  }
  
  #header-contact li {
    float: none;
    text-align: right;
  }
}

@media screen and (max-width: 840px){
  header h1 {
    top: -180px;
    margin: 0 auto;
    left: 0;
    right: 0;
  }  
  
  header > div:nth-child(2) {
    height: 300px;
  }

  header .main-nav {
    margin-top: 0px;
  }
  
  header .main-nav li{
    box-sizing: border-box;
    width: 100%;
    padding-top: 10px;
    height: 50px;
    border-bottom: 1px solid white;
  }
  
  #header-contact {
    height: 60px;
    width: 100%;
    margin: 0px 0px 180px;
  }
  
  #header-contact ul{
    width: 100%;
    display: flex;
    display: -webkit-flex;
    justify-content: space-evenly;
    -webkit-justify-content: space-evenly;
    flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
  }
  
  #header-contact li{
    height: 60px;
  }
}

@media screen and (max-width: 450px){
  header h1 {
    width: 200px;
    top: -100px;
  }  

  footer .main-nav {
    width: 100%;
    margin-right: 0px;
  }
  
  footer .main-nav li {
    width: 30%;
    margin: 4px 1.5%;
    text-align: center;
  }
}

footer {
  height: 90px;
  width: 100%;
  background: #da251b;
}

footer div {
  height: 100%;
  max-width: 1580px;
  display: flex;
  display: -webkit-flex;
  justify-content: space-between;
  -webkit-justify-content: space-between;
  align-items: center;
  -webkit-align-items: center;
  flex-wrap: wrap-reverse;
  -webkit-flex-wrap: wrap-reverse;
 }


footer ul {
  list-style-type: none;
  float: left;
  margin-right: 80px;
}

footer li {
  color: white;
  font-size: 12px;
  margin-left: 14px;
}

footer > :first-child li {
  font-size:  10px;
}

section {
  clear: both;
  margin: 90px auto 0;
}

section ul {
  list-style-type: none; 
}

section h2, section h2 a{
  font-weight: lighter;
  font-size: 46px;
  color: #da251b;
  text-align: center;
  margin: 0px;
}

section button{
  background: transparent;
  border-width: 4px;
  border-style: solid;
  border-radius: 12px;
}

#main-intro h2,
#main-products h2,
#main-promotions h2 {
  margin-bottom: 50px;
}

#main-products ul,
#main-news ul,
#main-promotions ul {
  display: flex;
  display: -webkit-flex;
  flex-wrap: wrap;
  -webkit-flex-wrap: wrap;
}

#main-promotions ul {
  justify-content: space-around;
  -webkit-justify-content: space-around;
}

#main-news ul,
#main-products ul{
  justify-content: center;
  -webkit-justify-content: center;
}

#main-banner{
  max-width: 1920px;
  max-height: 864px;
  clear: right;
  position: relative;
}

#main-banner img:first-of-type {
  width: 100%;
  height: 100%;
}

#main-banner img:last-of-type {
  position: absolute;
  top: 2.2%;
  right: 3.1%;
  max-height: 95%;
}


#main-intro {
  background-color: rgba(0,0,0,0.72);
  padding: 110px 0px 175px;
  margin-top: 0px;
}

#main-intro__wrapper {
  max-width: 1325px;
  text-align: center;
  margin: 0 auto;
}

#main-intro p {
  font-size: 20px;
  color: white;
  line-height: 200%;
  margin: 40px;
}

#main-products {
  border: 14px solid #da251b;
  max-width: 1550px;
  padding: 30px 0px 20px;
}

#main-products li {
  float: left;
  text-align: center;
  width: 360px;
  height: 300px;
}

#main-products li p {
  color: #da251b;
  font-size: 18px;
  font-weight: bold;
}

#main-products .icon-black {
  background-color: black;
}

#main-products .icon-red {
  background-color: #da251b;
  display: -webkit-flex;
  display:         flex;
  -webkit-align-items: center;
          align-items: center;
  -webkit-justify-content: center;
          justify-content: center;
}

#main-products li .icon-black,
#main-products li .icon-red {
  width: 210px;
  height: 210px;
  border-radius: 100%;
  margin: auto;
}

#main-products li .icon-black img, 
#main-products li .icon-red img{
  margin: 10%;
  height: 80%;
}

#main-products li .icon-red p {
  color: white;
}

#main-news { 
  background-color: rgba(0,0,0,0.72);
  color: white;
  padding: 35px 0px 0px;
}

#main-news h2 {  
  margin-bottom: 35px;
}

#main-news h2 a {
  color: white;
}

#main-news ul {
  max-width: 1932px;
  margin: 0 auto;
}

#main-news li {
  float: left;
  text-align: center;
  margin: 12px;
}

#main-news li div {
  background-color: lightgray;
  width: 440px;
  height: 295px;
  position: relative;
  overflow: hidden;
}

@media screen and (max-width: 480px){
  #main-news li div {
    width: 220px;
    height: 150px;
  }
}

#main-news li .text-wrapper {
  background-color: rgba(0,0,0,0.72);
  height: 70px;
  position: absolute;
  width: 100%;
  bottom: 0;
  -webkit-transition: height 0.4s;
  transition: height 0.4s;
}

#main-news li .text-wrapper p{
  font-size: 26px;
  margin: 0px 30px;
  line-height: 250%;
  -webkit-transition: line-height 0.1s, font-size 0.1s;
  transition: line-height 0.1s, font-size 0.1s;
}

#main-news li div:hover .text-wrapper {
  height: 100%;  
}

#main-news li div:hover .text-wrapper p {
  font-size: 18px;
  line-height: 120%;
  margin: 30px;
}


#main-news li button {
  color: white;
  border-color: white;
  padding: 8px 50px;
  margin: 46px 0px 70px;
  font-size: 18px;
}

#main-promotions {
  max-width: 1652px;
  text-align: center;
}

#main-promotions li {
  float: left;
  color: #da251b;
  
  border: 6px solid #da251b;
  border-radius: 16px;

  box-sizing: border-box;
  width: 770px;
  min-height: 270px;
  margin: 28px;
  padding: 14px;
  
  display: flex;
  display: -webkit-flex;
  justify-content: space-between;
  -webkit-justify-content: space-between;
  align-items: center;
  -webkit-align-items: center;
  flex-wrap: wrap;
  -webkit-flex-wrap: wrap;
}

@media screen and (max-width: 800px){
  #main-promotions li {
    justify-content: space-evenly;
    -webkit-justify-content: space-evenly;
  }
}

#main-promotions li p {
  font-size: 30px;
  max-width: 335px;
}

#main-promotions li button {
  background-color: #da251b;
  border-color: #da251b;
  color: white;
  align-self: flex-end;
  -webkit-align-self: flex-end;
  font-size: 22px;
  padding: 6px 50px;
}

#main-contact {
  background-color: #212121;
  color: white;
  display: flex;
  display: -webkit-flex;
  align-content: space-between;
  -webkit-align-content: space-between;
}

#main-contact__wrapper{
  width: 1660px;
  margin: 0px 50px 0px auto;
  display: flex;
  display: -webkit-flex;
  flex-wrap: wrap;
  -webkit-flex-wrap: wrap;
}

#main-contact h3 {
  font-weight: lighter;
  font-size: 34px;
  margin: 0px 0px 20px;
}

#main-contact-info,
#main-contact-map {
  margin: 80px 25px 60px;
}

#main-contact-info ul {
  margin-bottom: 20px;
}

#main-contact-info li,
#main-contact-info p {
  font-size: 15px;
}

#main-contact-info p {
  font-weight: bold;
  margin-top: 50px;
}
#main-contact-info  {
  flex: 1 1 auto;
  -webkit-flex: 1 1 auto;
}

#main-contact-map {
  flex: 1 4 700px;
  -webkit-flex: 1 4 700px;
  height: 465px;
  background: lightgray;
}

#main-contact-form {
  flex: 1 1 490px;
  -webkit-flex: 1 1 490px;
  margin: 20px 25px;
}

#main-contact-form input, #main-contact-form textarea {
  border: none;
  border-radius: 5px;

  box-sizing: border-box;
  width: 100%;
  padding: 8px;

  margin-bottom: 12px;
  font-size: 15px;
}

#main-contact-form textarea {
  resize: none;
  height: 325px;
}

#main-contact-form button {
  border-color: white;
  color: white;
  float: right;
  font-size: 15px;
  padding: 5px 30px;
}