* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #c50622 0%, #9d0318 100%);
  color: #fff;
  font-family: "Source Sans 3", sans-serif;
}

.page {
  position: relative;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 0 52px;
  padding-top: 110px;
}

.page__back {
  display: inline-block;
  margin-bottom: 80px;
  color: #ffd9de;
  text-decoration: none;
  font-weight: 600;
}

.page__logo{
  position: absolute;
  top: 0;
  right: 18px;

  width: 190px;
  height: auto;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.22));
}

.visually-hidden{
  display: none;
}

.juhu-za-krem-bistru-section{
  width: 100%;
  padding: 0  clamp(8px, 1vw, 14px);
  margin: 0;
  margin-bottom: 140px;
}

.juhu-za-krem-bistru-section img{
  display: block;
  width: 100%;
  height: auto;
}

.juhe-section{
  width: min(100%, 1320px);
  display: flex;
  flex-direction: column;
  margin-bottom: 140px;
}

.juhe-section__title{
  display: block;
  width: fit-content;
  height:69px;
  margin-bottom: 70px;
}

.juhe-section__list{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 140px 70px;
  list-style-type: none;
  padding: 0;
  margin: 0;
  margin-bottom: 140px;
}

.juhe-section__list:last-of-type{
  margin: 0;
}

.juhe-section__item{
  width: 260px;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.juhe-section__item-media{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.juhe-section__item-media .img-juha{
  display: block;
  max-width: 100%;
  height: auto;
}

.juhe-section__item-media .img-title{
  width: fit-content;
  height: auto;
  max-height: 75px;
  min-height: 30px;
}

 .juhe-section__item-media .img-title.img-title-height{
    height: 30px;
  }

@media (max-width:1560px){

  .juhe-section__item{
    width: 220px;
  }

  .juhe-section__item-media .img-title{
    max-height: 60px;
    min-height: 30px;
  }

  .juhe-section__item-media .img-title.img-title-height{
    height: 30px;
  }
}

@media (max-width: 1200px){
  .page{
    padding-top: 80px;
  }

  .page-back{
    margin-bottom: 60px;
  }

  .page__logo{
    width: 150px;
  }

  .juhe-section__title{
    height: 45pxpx;
    margin-bottom: 70px;
  }
  .juhe-section__list{
    gap:70px 40px;
    margin-bottom: 70px;
  }

  .juhe-section__item{
    width: 180px;
  }

  .juhe-section__item-media .img-title{
    max-height: 40px;
    min-height: 20px;
  }

  .juhe-section__item-media .img-title.img-title-height{
    height: 20px;
  }
  
}

@media (max-width: 768px) {
  .page{
    padding: 40px 18px;
  }

  .page-back{
    margin-bottom: 40px;
  }

  .juhu-za-krem-bistru-section{
    margin-bottom: 70px;
  }

  .juhe-section{
    margin-bottom: 70px;
  }

  .juhe-section__title{
    height: 35px;
    margin-bottom: 35px;
  }

  .juhe-section__list{
    grid-template-columns: repeat(3, 1fr);
  }


  .juhe-section__item{
    max-width: unset;
    width: unset;
    width: fit-content;
  }

  .juhe-section__item-media .img-title{
    max-height: 40px;
    min-height: 20px;
  }

  .juhe-section__item-media .img-title.img-title-height{
    height: 20px;
  }
}

@media (max-width: 425px){  
  .page{
    padding: 0 10px;
  }
  .page__logo{
    width: 70px;
  }

  .juhe-section__title{
    height: 25px;
    margin-bottom: 30px;
  }

  .juhe-section__list{
    grid-template-columns: repeat(2, 1fr);
    gap:20px 10px;
    margin-bottom: 20px;
  }

  .juhe-section__item-media .img-title{
    max-height: 30px;
    min-height: 15px;
  }

  .juhe-section__item-media .img-title.img-title-height{
    height: 15px;
  }

}

@media (max-width: 365px){
  .juhe-section__list{
    grid-template-columns: repeat(1, 1fr);
    gap:20px 0;
    margin-bottom: 20px;
  }

  .juhe-section__item{
    width: 100%;
  }

  .juhe-section__item-media .img-juha{
    width: 60%;
    margin: 0 auto;
  }

   .juhe-section__item-media .img-title{
    max-height: 35px;
    min-height: 20px;
  }

  .juhe-section__item-media .img-title.img-title-height{
    height: 20px;
  }
}


