body {
  min-width: 320px;
  background: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4em;
  color: #000000;
  cursor: default;
}
header, section, footer {
  margin: 0 auto;
  max-width: 1920px;
}
.wrapper {
  margin: 0 auto;
  padding: 0 10px;
  max-width: 980px;
}
img {
  max-width: 100%;
  height: auto;
}
b {
  font-weight: 700;
}


.main{
  background: url(../img/bg_top.jpg) 50% 0% no-repeat, url(../img/bg_bot.jpg) 50% 100% no-repeat;
  padding: 90px 0;
}
.logo{
  display: block;
  margin: 0 auto 80px;
}


.diet_list{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 80px;
  margin-bottom: 80px;
}
.diet_item{
  max-width: 420px;
  border-radius: 20px;
  box-shadow: 0 0 30px 0 rgba(0,0,0,0.17);
  background: #fff;
  overflow: hidden;
}
.diet_title{
  background: #ffa300;
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  line-height: 64px;
  text-align: center;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.diet_title.green{
  background: #16b97a;
}
.diet_title.blue{
  background: #2ea1e3;
}

.diet_item .diet_ingredients{
  padding: 0 20px 10px;
}

.diet_ingredients>li{
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: dashed 1px #e7e7e7;
}
.diet_ingredients>li:last-child{
  border-bottom: none;
}
.diet_ingredients>li .left{
  flex-shrink: 0;
  width: 100px;
  font-weight: 700;
}


.diet_list.preview{
  margin-bottom: 0;
}
.preview .diet_item{
  position: relative;
  box-shadow: none;
  border-radius: 20px 20px 0 0;
}
.preview .diet_item:after{
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 80%);
}

/*promobox*/
.promobox{
  text-align: center;
  margin: 0 auto;
  background: url(../img/pattern.png) 50% 0% repeat-y, linear-gradient(to right,  #16af6c 0%,#06d27b 100%);
  padding: 30px 15px;
  border-radius: 20px;
  color: #fff;
}
.promobox p{
  margin-bottom: 20px;
}
.promobox p:last-child{
  margin-bottom: 0;
}
.promobox h4{
  font-weight: 700;
  font-size: 23px;
  line-height: 1.3em;
  margin-bottom: 20px;
}
.promocode{
  max-width: calc(420px - 80px);
  margin: 0 auto;
  margin-bottom: 20px;
  display: flex;
}
.promocode input{
  outline: none;
  border: none;
  background: #fff;
  width: 100%;
  height: 70px;
  font-size: 24px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #333;
  border-radius: 35px;
  text-align: center;
  padding-right: 40px;
}
.promocode ::-webkit-input-placeholder {
  color: #5f5f5f;
}
.promocode ::-moz-placeholder {
  color: #5f5f5f;
}
.promocode :-moz-placeholder {
  color: #5f5f5f;
}
.promocode :-ms-input-placeholder {
  color: #5f5f5f;
}
.promocode :focus::-webkit-input-placeholder {
  color: transparent;
}
.promocode :focus::-moz-placeholder {
  color: transparent;
}
.promocode :focus:-moz-placeholder {
  color: transparent;
}
.promocode :focus:-ms-input-placeholder {
  color: transparent;
}

.promocode input.incorrect{
  border: 2px solid red;
}

.promocode_btn {
  flex-shrink: 0;
  border: none;
  width: 90px;
  height: 70px;
  border-radius: 35px;
  background: #ffa300 url(../img/right-arrow.png) 50% 50% / 40px no-repeat;
  margin-left: -70px;
  position: relative;
}
.promocode_btn:active{
  right: 2px;
}

.promocode_hidden{
  display: none;
}



@media screen and (max-width: 979px) {
  .diet_list{
    gap: 40px;
    margin-bottom: 40px;
  }
  .diet_item{
    max-width: 350px;
  }
}
@media screen and (max-width: 768px) {
  body{
    font-size: 17px;
  }
  .diet_item{
    max-width: 100%;
    width: 100%;
  }
  .diet_list.preview .diet_item:nth-child(2){
    display: none;
  }
}