* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', sans-serif;
  color: #fff;
  background-color: #2d2d2d;
  background-image: url(../img/bg-index.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}
a {
  text-decoration: none;
  color: #5b432c;
  transition: all .5s ease-in-out;
}
a:hover {
  color: #ae8c64;
}
h1 {
  font-family: 'Playfair Display', serif;  
  font-weight: 700;
  font-size: 40px;
  text-align: center;
  letter-spacing: 1px;  
  line-height: 1.1;
}
h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 1px;
}
.main {
  padding: 90px 0 40px;
}
.container {
  max-width: 1660px;
  margin: 0 auto;
  padding: 0 4%;
}

/* ----- INDEX----- */

/* ----- HEADER ----- */

.index-header {
    border-radius: 2px;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 55px 0 70px;
    position: relative;
    margin-bottom: 130px;    
   box-shadow: 0px 0px 40px 0px rgba(60, 39, 11, 0.2);
}
.index-header-title h1 { 
  font-size: 60px;
  line-height: 1.3;
  text-align: center;
}
.index-header-link {  
  background-color: #fff;
  display: inline-block;
  border-top: 2px solid #ae8c64;  
  padding: 12px 80px 12px 77px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%,50%);
  border-radius: 2px;
  vertical-align: middle;
}
.index-header-link a {
  color: #333;
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.index-header-logo {
  width: 24px;
  height: 21px;
  margin-right: 10px;
  margin-bottom: -3px;  
}

/* ----- CARDS----- */

.index-cards {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.index-card-wrapper {
  flex-basis: 23%;
  height: auto;
  margin-bottom: 30px; 
}
.index-card-wrapper-min {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.index-cards-item {
  background-color: #fff;
  height: 100%;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  display: flex;
  flex-direction: column;
  border-radius: 3px;
  box-shadow: 0px 0px 30px 0px rgba(60, 39, 11, 0.2);
} 
.index-card-img img {
  border-radius: 3px 3px 0 0;
  width: 100%;
  height: auto;
}
.index-card-img img {
  -moz-transition: all 1s ease-out;
  -o-transition: all 1s ease-out;
  -webkit-transition: all 1s ease-out;
}

.index-card-img img:hover {
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1.1);
  -o-transform: scale(1.1);
}

.index-card-content {
  padding: 20px 10px 20px 25px;
  border-radius: 2px;
  height: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.index-card-content::before {
  content: '';
  display: block;
  width: 20px;
  height: 6px;
  background-color: #ae8c64;
  position: absolute;
  left: 0;
  top: 34px;
}
.index-card-title {
  margin-top: 0;
  margin-bottom: 20px;
}
.index-card-title span {
  font-size: 17px;
}
.index-card-text {
  margin-bottom: auto;  
}
.btn-index-card {
  display: block;
  background-color: #ae8c64;
  color: #fff;
  padding: 8px 0 10px;
  text-align: center;
  font-size: 16px;
  border-radius: 2px;
  margin-top: 20px;
  transition: all 0.5s ease;
}
.btn-index-card:hover {
  background-color: #5b432c;
  color: #ffe4c4;
}
.index-card-list-max, .index-card-list {
  color: #333;
}
.index-card-list-max li, .index-card-list li {
  list-style: none;
  font-weight: 600;
}
.index-card-list-max li {
  margin-bottom: 14px;
  font-size: 16px;  
}
.index-card-list li {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.3;
}
.index-cards-item-min {
   height: auto;
  margin-bottom: 20px;
}
.index-cards-item-min:last-child {
 margin-bottom: 0;
}
.index-text {
  padding-left: 30px;
  position: relative;
}
.index-text::before {
  content: '';
  display: block;
  width: 5px;
  height: 80px;
  background-color: #ae8c64;
  position: absolute;
  left: 0;
  top: 5px;
}
.index-text p {
  font-size: 16;
  line-height: 1.5;
  margin-bottom: 14px;
}
.index-text a {
  color: bisque;
  transition: all .5s ease-in-out;
}
.index-text a:hover {
  opacity: 0.5;
}

/* ----- FOOTER ----- */

.footer {
background-color: #2d2d2d;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  padding-top: 15px;
  padding-bottom: 15px;
}
.footer-copy {
  font-size: 14px;
  opacity: 0.4;
}
.footer-nav {
  display: flex;
  position: relative;
  align-items: center;
}
.footer-nav::before {
  content: '';
  display: block;
  width: 35px;
  height: 3px;
  background-color: #ae8c64;
  position: absolute;
  top: 11px;
  left: -26px;
}
.footer-nav li {
  list-style: none;
  margin-left: 30px;  
}
.footer-nav li a {
  font-size: 14px;
  text-transform: uppercase;
  color: #ae8c64;
  transition: all 0.5s ease;
}
.footer-nav li a:hover {
  opacity: 0.5;
}


@media (max-width: 1200px) {
  .index-header {
    margin-bottom: 110px;
  }   
  .index-header-title h1 { 
    font-size: 50px;
  }
  .index-header-link a {
    font-size: 20px;
  } 
  h2 {
    font-size: 20px;
  } 
  .index-card-content::before {
    top: 30px;
  }
  .index-card-wrapper {
    flex-basis: 31%;
  }
  .index-card-wrapper-min {
    flex-direction: row;
    flex-basis: 100%;
  }
  .index-cards-item-min {
    flex-basis: 48%;
    margin-bottom: 0;
  }
  .index-cards-item-last {
    flex-basis: 48%;
  }

}

@media (max-width: 991px) {
  .index-header {
    margin-bottom: 90px;
  } 
  .index-header-title h1 { 
    font-size: 45px;
  }
  .index-header-link a {
    font-size: 19px;
  } 
  h2 {
    font-size: 21px;
  }
  .index-card-wrapper {
    flex-basis: 48%;
  }
  .index-card-content::before {
    top: 30px;
  }
  .index-card-wrapper-min {
    display: block;
    /*flex-direction: column;
    justify-content: flex-start;
    flex-basis: 48%;*/
  }
  .index-cards-item-min {
    flex-basis: 48%;
    margin-bottom: 20px; 
  }
  .index-cards-item-min:last-child {
    margin-bottom: 0;
 }
}
@media (max-width: 768px) {
  .main {
    padding-top: 50px;
  }
  .index-header {
    margin-bottom: 70px;
  } 
  .index-header-title h1 { 
    font-size: 40px;
  }
  .index-header-link a {
    font-size: 18px;
  } 
  h2 {
    font-size: 20px;
  }
  .index-card-wrapper {
    flex-basis: 48%;
  }
  .footer-content {
    flex-direction: column;
  align-items: center;
  }
  .footer-nav {
    order: 1;
    margin-bottom: 15px;
  }
  .footer-nav::before {
    display: none;
  }
  .footer-nav li:first-child {
    margin-left: 0;
  }
  .footer-copy {
    order: 2;
  }

}

@media (max-width: 576px) {
  body {
    background-size: 200%;
  }
  .index-header-title h1 { 
    font-size: 32px;
  }
  .index-header-link a {
    font-size: 17px;
  }
  h2 {
    font-size: 22px;
  }

  .index-header-link {  
    width: 60%;
    padding-left: 0;
    padding-right: 0;
    text-align: center;    
  }
  .index-card-wrapper {
    flex-basis: 100%;
    margin-bottom: 40px;
  }
  .index-card-list-max li {
    margin-bottom: 10px;
    font-size: 17px;
}
}
@media (max-width: 440px) {
  .main {
    padding-top: 25px;
  }
  .index-header-title h1 { 
    font-size: 26px;
  }
  .index-header {
    margin-bottom: 50px;
  } 
  h2 {
    font-size: 20px;
  } 
  .index-header-link a {
    font-size: 16px;
  }
  .index-text {
    padding-left: 0;
}
.index-text::before {
  display: none;
}
  .footer-nav li {
    margin-left: 16px;
  }

}