body{
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  min-height: 100vh;
  background: url('../images/fon.png') 0 0 repeat;
  box-sizing: border-box;
}
ul,li{
  margin: 0;
  padding: 0;
}
li{
  list-style: none;
}
a{
  text-decoration: none;
  color:black;
}
.conteiner{
  display: grid;
  grid-template-columns: 1fr minmax(800px,1200px) 1fr;
  grid-template-rows: auto auto  auto 250px 50px;
}

/*header*/

header{
  grid-column: 2/3;
  grid-row: 1/2;
  text-transform: uppercase;
  font-size: 14px;
}
header .header_burger_logo{
  display: none;
}

/*nav menu*/

header a{
  padding: 5px 0;
}
header > ul{
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  padding: 20px 0;
}
header ul li{
  position: relative;
}
header li img{
  width:100px;
  height: 100px;
}
header .menu > li:nth-child(2){
  margin-left: 24px;
  margin-right: 24px;
}
header .logo{
  margin-right: 11.5px;
  margin-left: 11.5px;
}
header .menu > li:nth-child(4){
  margin-left: 40px;
  margin-right: 40px;
}
header .menu > li:nth-child(5){
  margin-left: 28px;
  margin-right: 28px;
}
header li .fotos,header li .faq{
  display: none;
  position: absolute;
  z-index: 10;
  background-color: white;
}
header .fotos a, header .faq a{
  display: block;
  padding: 10px 40px 10px 10px;
  white-space: nowrap;
}
  /*hover-effects*/
header a:hover{
  color:yellowgreen;
}
header .logo:nth-child(3):hover{
  transform: scale(1.12);
}
header .fotos a:hover,header .faq a:hover{
  color:dimgrey;
}
header li:first-child:hover .fotos, header li:nth-child(4):hover .faq{
  display: block;
  top:20px;
  left:-10px;
  text-transform: none;
}
/*класс для фиксирования шапки*/
header .menu-fixed{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: white;
  padding: 0;
  box-shadow: 0 5px 5px grey;
  z-index: 100;
}
/*уменьшаем логотип для шапки фиксированной*/
header .menu-fixed img{
  width: 50px;
  height: 50px;
}

/*content*/

main{
  grid-column: 2/3;
  grid-row: 2/3;
  margin: 40px 0;
  font-size: 16px;
}
main h3{
  text-align: center;
  font-weight: 500;
}
main p{
  text-align: center;
  font-size: 14px;
  padding: 0 10px;
}
/*form*/
main .form_review{
  width: 75%;
  height: 280px;
  border: 1px solid darkgrey;
  border-top:20px solid #954052;
  border-radius:5px;
  background-color: white;
  margin: 20px auto;
}
main .form_review input{
  display: block;
  box-sizing: border-box;
  width: 90%;
  margin: 20px auto;
  color: darkgrey;
  font-weight: 500;
  border: 1px solid darkgrey;
  font-family: 'Montserrat', sans-serif;
  padding:5px;
}
main .form_review textarea{
  display: block;
  box-sizing: border-box;
  resize: none;
  width: 90%;
  height: 150px;
  margin: 20px auto;
  color:darkgrey;
  font-weight: 500;
  border:1px solid darkgrey;
  font-family: 'Montserrat', sans-serif;
  padding:10px 5px;
}
main .form_review textarea:focus,main .form_review input:focus{
  outline: none;
  border:1px solid #c57890;
}
main .form_review button{
  width: 90px;
  height: 30px;
  background-color: #954052;
  color:white;
  border: none;
  border-radius:5px;
  margin-left: calc(95% - 90px);
}
main .form_review button:hover{
  background-color: #cd7c96;
}
main .form_review button:active{
  transform: scale(0.95);
}
/*reviews*/
.reviews{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.review_list{
  margin: 30px 10px;
}
.review_list li{
  display: block;
  width: inherit;
  min-height: 95px;
}
.review_list_avatar{
  display: block;
  float:left;
  margin-right: 20px;
  width: 80px;
  height: 95px;
  background: url('../images/sprite.jpg') 0 0 no-repeat;
}
.avatar_man1{
  background-position: -18px -13px;
}
.avatar_man2{
  background-position: -202px -13px;
}
.avatar_man3{
  background-position: -110px -197px;
}
.avatar_woman1{
  background-position: -202px -105px;
}
.avatar_woman2{
  background-position: -107px -13px;
}
.avatar_woman3{
  background-position: -202px -197px;
}

/*small image*/

.small_image{
  grid-column: 2/3;
  grid-row: 3/4;

}
.small_image img{
  width: 50px;
  height: 80px;
  display: block;
  margin: 20px auto;
}

/*footer*/

.footer_info_bg{
  grid-column: 1/4;
  grid-row: 4/5;
  background-color: #595a5c;
}
.footer_info{
  grid-column: 2/3;
  grid-row: 4/5;
  color: lightgrey;
  padding-top: 50px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 14px;
  font-weight: 500;
}
.footer_contacts,.footer_info p,.footer_menu,.footer_links{
  width: calc(100%/4);
}
.footer_contacts{
  position: relative;
}
.footer_contacts::before{
  content: "";
  display: block;
  width: 178px;
  height: 32px;
  background: url('../images/logo_grey.png') 0 0 no-repeat;
  position: absolute;
  top:-40px;
  left: 0;
}
.footer_contacts li{
  padding: 10px 10px;
}
.footer_contacts a {
  color:lightgrey;
}
.footer_info p{
  margin: 0;
  padding: 10px 10px;
}
.footer_menu{
  text-align: center;
}
.footer_menu a{
  display: block;
  padding: 10px 10px;
  color:lightgrey;
}
/*social networks*/
.footer_links{
  display: flex;
  justify-content: space-evenly;
  align-content: center;
}
.footer_links a{
  display: block;
  width:50px;
  height:50px;
  border:2px solid lightgrey;
  border-radius:50px;
  box-sizing: border-box;
  background-color: #595a5c;
  color:lightgrey;
  text-align:center;
  font-size:24px;
  padding-top:11px;
  position: relative;
}
.footer_links a.icon-viber::after{
  content: "Viber";
  display: block;
  font-size: 16px;
  position: absolute;
  top:50px;
  left:5px;
}
.footer_links a.icon-instagram::after{
  content: "Instagram";
  display: block;
  font-size: 16px;
  position: absolute;
  top:50px;
  left:-10px;
}
.footer_links a.icon-whatsapp::after{
  content: "Whatsapp";
  display: block;
  font-size: 16px;
  position: absolute;
  top:50px;
  left:-5px;
}
/*social networks-hover-effects*/
.footer_links a:hover{
  color:white;
  border-color:white;
}
/*footer-_menu-hover-effects*/
.footer_menu a:hover, .footer_contacts a:hover{
  color:white;
}
.footer_cp_bg{
  grid-column: 1/4;
  grid-row: 5/6;
  background-color: #252525;
}
.footer_cp{
  grid-column: 2/3;
  grid-row: 5/6;
}
.footer_cp > p{
  font-size: 12px;
  color: grey;
  padding: 10px 10px;
}
/*adaptive up to 820px*/
@media (max-width:820px) {
  .conteiner{
    display: grid;
    grid-template-columns: 1fr minmax(320px,820px) 1fr;
    grid-template-rows: auto auto auto 300px 50px;
    min-width: 320px;
  }
/*меню бургер*/
  header .header_burger_conteiner{
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    position: relative;
    padding-top: 5px;
    box-sizing: border-box;
  }
  header .header_burger{
    height: 100%;
    margin-right:20px;
  }
  header .header_burger span{
    display: block;
    width: 60px;
    height: 100%;
    background: url("../images/button_burger-grey.png") 0 -6px no-repeat;
  }
  header .header_burger_logo{
    display: block;
    width: 50px;
    height: 100%;
    margin-left:20px;
  }
  header .header_burger_logo img{
    display: block;
    width: 50px;
    height: 50px;
  }
/*прячем menu*/
  header .menu{
    position: absolute;
    top:-270px;;
    background-color: rgb(143,183,162);
    width: 100%;
    height: 200px;
    flex-direction: column;
    justify-content: flex-start;
    font-weight: 500;
    font-size: 18px;
    transition: all 0.3s ease 0s;
  }
  header .menu li{
    padding: 15px 0;
    }
  header .menu .logo{
    display: none;
  }
  header li:first-child:hover .fotos, header li:nth-child(4):hover .faq{
    display: none;
  }
  header a:hover{
    color:white;
  }
  header .header_burger_logo img:hover{
    transform: scale(1.2);
  }
  /*появляется фиксированный меню-бургер*/
  header .burger_menu-fixed{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    box-shadow: 0 5px 5px grey;
    z-index: 100;
    padding-top:5px;
  }
/*при добалении menu active появляется*/
  header .menu.active{
    position: fixed;
    top:60px;
    left: 0;
    z-index: 100;
    height: 100%;
    padding-top: 20px;
  }
  header .menu.active::after{
    content: "";
    display: block;
    width: 200px;
    height: 150px;
    background: url('../images/bluberries.png') 0 0 no-repeat;
    position: absolute;
    top: 235px;
    left: calc(50% - 100px);
  }
  header .header_burger.active span{
    background: url("../images/button_close-grey.png") 0 0 no-repeat;
  }
/*основной контент*/
  main{
    margin-top:20px;
    margin-bottom: 10px;
  }

/*уменьшаем спрайт*/
.review_list{
  font-size: 14px;
}
.review_list_avatar{
  width: 40px;
  height: 48px;
  margin-right: 10px;
  background: url('../images/sprite-small.jpg') 0 0 no-repeat;
}
.avatar_man1{
  background-position: -8px -8px;
}
.avatar_man2{
  background-position: -103px -6px;
}
.avatar_man3{
  background-position: -58px -51px;
}
.avatar_woman1{
  background-position: -101px -53px;
}
.avatar_woman2{
  background-position: -9px -53px;
}
.avatar_woman3{
  background-position: -102px -98px;
}
/*уменьшаем small_image*/
.small_image img {
    width: 35px;
    height: 55px;
  }
/*подвал*/
  .footer_info{
    flex-direction:column;
    justify-content: flex-start;
  }
  .footer_info p{
    display: none;
  }
  .footer_links{
    width: 100%;
  }
  .footer_contacts{
    width: 150px;
    margin: 0 auto 15px;
    text-align: center;
  }
  .footer_contacts::before{
    left:-15px;
  }
  .footer_menu{
    display: none;
  }
  .footer_cp > p{
    text-align: center;
    font-size: 10px;
  }
}
