@media(max-width: 500px) and (min-width: 150px){ 

.global{
    max-width: 327px;
}

.collection-main_bg,
.choose-main,
.works-main,
.cup-about_bg,
.commit-about,
.quality-about,
.headquartes-about,
.cup-create_bg,
.steps-create,
.order-create{
    margin-bottom: 120px;
}

p{
    font-size: 15px;
    line-height: 25px; /* 162.5% */
}
h1{
    font-size: 40px;
    line-height: 40px;
    text-align: center;
}
h4{
    font-size: 28px;
}
h5, .total{
    font-size: 28px;
    line-height: 32px; /* 112.5% */
}
br{
    display: none;
}
.works-number{
    margin-bottom: 24px;
}
/* -----HEADER------ */
header{
    padding: 32px 0 40px 0;
}
/* -----FOOTER------ */
.footer-conteiner{
    display: flex;
    flex-direction: column;
    min-height: 346px;
    padding: 54px 0 54px 0;
    gap:48px;
  }
  .footer-box{
    display: flex;
    flex-direction: column;
    gap:32px;
}
.footer-menu ul{ 
    display: flex;
    flex-direction: column;
    gap:24px;
}
.overlay{
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}


/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! HOME-------------------------- */
/* --------------------------ABOUT-------------------------- */
.about-main_bg{
  position: relative;
  height: 500px;
  display: flex;
  flex-direction: column;
  background-size: 1284px auto;
  background-position-y: -365px;
  background-position-x: -340px;
  padding: 100px 24px;
  margin-bottom: 136px;
  }
  .about-main_text{
    align-items: center;
    display: flex;
    flex-direction: column;
    z-index: 10;
  }
  .about-main_content{
    text-align: center;
    max-width: 279px;
    opacity: 0.8;
    margin-bottom: 39px;

  }
/* --------------------------COLLECTION-------------------------- */
.collection-main_bg{
    min-height: 1321px;
    flex-direction: column;
    justify-content: flex-start;
    gap:32px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top;
    /* padding: 0 58px; */
  }
  .collection-box_coffee__text{
    width:282px;
  }
  .collection-box_coffee {
    gap: 24px;
}
/* --------------------------CHOOSE-------------------------- */

.choose-main{
    height: 1499px;
  }
  .choose-main_bg{
    height: 902px;
  }
  .choose-box_text{
    width: 279px;
    margin-top: 64px;
    margin-bottom: 70px;
  }

  .choose-box_greenboxes{
    flex-direction: column;
    gap:24px;
  }
  .choose-conteiner_greenbox {
    /* display: flex;
    flex-direction: column;
    align-items: center; */
    max-width: 279px;
    max-height: 382px;
    padding: 51px;
}
.choose-conteiner_greenbox__text{
    width: 255px;
    gap:24px;
  }
  .choose-conteiner_greenbox>img {
    margin-top: 21px;
}
/* --------------------------HOW IT WORKS-------------------------- */
.works-main{
    padding-left: 0;
    min-height:1116px;
  }
  .works-main_header>h3{
    text-align: center;
    margin-bottom: 80px;
  }
  .decoration_navigation{
    display: none;
  }
  .works-main_steps {
    flex-direction: column;
   gap: 56px;
}
.works-main_step{
    align-items: center;
    width: 327px;
  }
  .works-main_step>h5,
  .works-main_step>p{
    text-align: center;

}
.works-main_btn {
    display: flex;
    justify-content: center;
}
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ABOUT-------------------------- */

/* --------------------------CUP-------------------------- */
.cup-about_bg{
  position: relative;
  height: 400px;
  padding: 85px;
  background-position-y: -200px;
  background-position-x: -350px;
  background-size: 1116px auto;
  padding: 24px;
  }
  .cup-about_text{
    z-index: 10;
  }
  .cup-about_text>h4,
  .cup-about_text>p{
    text-align: center;
  }
/* --------------------------COMMIT-------------------------- */
.commit-about{
    flex-direction: column;
    gap:48px;
    padding: 0;
}
.commit-about_photo{
    width: 100%;
    height: 400px;
    background-position-x: -107px;      
    background-size: 436px auto;
}
  .commit-about_text{
    max-width: 100%;
    color: #333D4B;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.commit-about_text>h4,
.commit-about_text>p{
    text-align: center;
}
/* --------------------------QUALITY-------------------------- */
.quality-about{
    height: 587px;
    display: flex;
    align-items: flex-end;
}
.quality-about_bg{
    justify-content: center;
    align-items: flex-start;
    position: absolute;
    width: 100%;
    height: 509px;
    padding: 142px 24px 0 24px;
  }
  .quality-about_text>h4{
    margin-bottom: 24px;
    text-align: center;
  }
  .quality-about_text>p{
    text-align: center;
  }
  .quality-about_photo{
    position: absolute;
    width: 279px;
    height:156px;
    top:-77px;
    background-position-y: -166px;
    background-position-x: -20px;
    background-size: 324px auto;
  }
/* --------------------------HEADQUARTES-------------------------- */
.headquartes-about{
    padding: 0
}
.headquartes-about>h3{
    text-align: center;
}
.headquartes-boxes{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap:80px;
}
.headquartes-box{
    align-items: center;
   width: 100%;
}
.headquartes-box_text {
    align-items: center;
}
.headquartes-box_text br{
    display: inline;
}
.headquartes-box_text>p{
    text-align: center;
}
/*!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! CREATE-------------------------- */
.cup-create_bg{
  position: relative;
  height:400px;
  background-position-y: -40px;
  background-position-x: -178px;
  background-size: 744px auto;
  padding: 101px 24px; 
}
.cup-create_text{
  position: relative;
  z-index: 10;
}
/* --------------------------STEPS-CREATE-------------------------- */
.steps-create{
    height: 1028px;
    padding: 80px 9px;
    flex-direction: column;
  }
  .works-main_step{
    width: 100%;
  }
  .works-main_step>h5 {
    margin-bottom: 24px;
}
/* ----------------------LIST---------------------- */
.order-create_box-list{
    display: none;
  }
/* -------------------------- */
.order-create{
    display: flex;
    flex-direction: row;
    padding: 0 0;
    gap:0;
  }
/* ----------------------FORM-LIST---------------------- */

.order-create_steps__select{
  min-width:100%;
  }
.select-header>a{
  width: 100%;
  text-align: left;
  margin-bottom: 32px;
}
.select-boxes{
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.select-btn,
.select-btn_none{
  width: 32px;
  margin-left: 50px;
}
.select-kind{
  width: 328px;
  height: 140px;
  padding: 24px 24px 24px 24px;
}
.select-kind>h3{
  margin-bottom: 8px;
}
/* ----------------------- */
.order-create_check__conteiners{
  height: 328px;
  padding: 32px 24px;
  margin-bottom: 56px;
}
.order-create_btn__conteiners{
  width: 100%;
  display: flex;
  justify-content: center;
}
/* ----------------------- */
.create-check__popup-title {
  padding: 28px 24px;
  width: 327px;
  height: 88px;
  top: 117px;
}
.create-check__popup-text{
  padding: 40px 24px;
  text-align: left;
  align-items: center;
  position: fixed;
  width: 327px;
  height:509px;
  background-color: rgba(254, 252, 247, 1);
  border-radius: 0 0 8px 8px;
  top: 416px;
  left: 50%;
  transform: translate(-50%, -50%);
}
.create-check__popup-text>p{
  margin-bottom: 24px;
}
.order-create_check__sum--popup{
  background-color: #0E8784;
}
.btn-checkout{
  border-radius: 6px 0 0 6px;
}
.order-create_check__sum--popup{
  border-radius: 6px;
flex-direction: row-reverse;
}
.total-conteiner{
  color:rgba(254, 252, 247, 1);
}
.total-conteiner>h5,
.total{
  font-size: 18px;
}
.btn-checkout,.order-btn_go{
  justify-content: center;
}

.hidden {
  display: none;
}

}