/* Убираем все отступы */
* {
  margin: 0;
  padding: 0;
  }
  /* Убираем точки в списках */
  ul, ol {
  list-style: none;
  }
  /* Отменяем все стили заголовков */
  h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
  font-style: normal;
  }
  /* Убираем подчеркивания и отменяем синий цвет текста для ссылок */
  a {
  text-decoration: none;
  color: #000;
  }
  
  /* ----------------------------- */

  /* фон все страницы */
body {
  background-color: #D99902;
}

.header {
  background-color: #FFC911;
  position: fixed;
  width: 100%;
  z-index: 10;
  border-bottom: #794600 3px solid;
}

.header__container {
  min-height: 70px;
  display: flex;
  padding: 0px 20px;
  position: relative;
  align-items: center;
  justify-content: space-between;
  transition: 0.3s;
}

.header__logo{
  z-index: 5;
  margin: 5px 10px;
  transition: all 0.3s;
}

.header__logo:hover{
  border-radius: 20px;
  margin: 0;
  padding: 5px 10px;
  background-color: #D99902;
  transition: all 0.3s;
}

.header__menu{
  display: flex;
}

.menu__icon {
  display: none;
}

.header__bird{
  display: none;
}


.menu__list > li {
  position: relative;
  margin: 0px 0px 0px 10px;
}

.menu__link, .menu__link__green {
  background-color: #794600;
  color: #FFC911;
  display: block;
  text-align: center;
  width: 250px;
  padding: 10px 0px;
  border-radius: 20px;
  font-size: 14px;
  font-family: 'montserrat';
  font-weight: bold;
  box-sizing:border-box;
  border: 0px solid #794600;
  transition: 0.3s;
  cursor: pointer;
}

.menu__link:hover {
  background-color: #FFC911;
  color: #794600;
  border: 5px solid #794600;
  transition: 0.3s;
}

.menu__link__green:hover{
  background-color: #283B06;
  color: #ffffff;
  border: 5px solid #406B0F;
  transition: 0.3s;
}

.switcher {
  display: none;
}

.menu__sub-link {
  font-size: 14px;
  font-family: 'montserrat';
  font-weight: bold;
  color: #794600;
  background-color: #FFC911;
  display: block;
  width: 210px;
  text-align: center;
  padding: 10px 0px;
  border-radius: 20px;
  transition: 0.3s;
}

.menu__sub-list > li {
  margin: 0px 0px 10px 0px;
}

.menu__list > li:hover .menu__sub-list {
  opacity: 1;
  visibility: visible;
  transform: translate(0px, 0px);
  pointer-events: all;
  transition: all 0.3s;
}

.menu__list li:hover .menu__sub-list > li:last-child{
  opacity: 1;
  visibility: visible;
  transform: translate(0px, 0%);
  pointer-events: all;
  transition: all 0.3s;
}

.menu__list li:hover .menu__sub-list > li:nth-child(2){
  opacity: 1;
  visibility: visible;
  transform: translate(0px, 0%);
  pointer-events: all;
  transition: all 0.3s;
  transition-delay: 0.1s;
}

.menu__list li:hover .menu__sub-list > li:nth-child(1){
  opacity: 1;
  visibility: visible;
  transform: translate(0px, 0%);
  pointer-events: all;
  transition: all 0.3s;
  transition-delay: 0.2s;
}

.menu__sub-link:hover{
  background-color: #794600;
  color: #FFC911;
  transition: 0.3s;
}

@media (min-width: 1249px) {
  
  .header__container:hover{
    min-height: 100px;
    transition: 0.3s;
  }
  
  .menu__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  
  .menu__list > li {
    padding: 10px 0px;
  }
  
  .menu__sub-list{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:all 0.3s;
  }
  
}

@media (max-width: 1249px) {
  .header {
    height: 70px;
  }

  .menu__link, .menu__link__green {
    width: 350px;

  }
  
  .menu__link:hover, .menu__link__green:hover {
    border: 0px;
  }
  
  .menu__link, .menu__link__green, .menu__sub-link{
    font-size: 17px;
    height: 45px;
    box-sizing: border-box;
  }

  .menu__sub-link{
    display: flex;
    width: 260px;
    justify-content: center;
    align-items: center;
  }

  .burger {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 6;
  }
  .burger span, .burger span:before, .burger span:after{
    width: 100%;
    position: absolute;
    height: 6px;
    background: #794600;
    border-radius: 3px;
    width: inherit;
    transition: .3s;
    transition: background 0.1s 0.29s;
  }
  .burger span:before{
    content: "";
    bottom: 12px;
    transition: bottom 300ms cubic-bezier(0.34, 1.56, 0.64, 1) 300ms, transform 300ms cubic-bezier(0.36, 0, 0.66, -0.56);
  }
  .burger span{
    top: 12px;
  }
  .burger span:after{
    content: "";
    top: 12px;
    transition: top 300ms cubic-bezier(0.34, 1.56, 0.64, 1) 300ms, transform 300ms cubic-bezier(0.36, 0, 0.66, -0.56);
  }
  .burger span.active:before{
    content: "";
    bottom: 0px;
    transform: rotate(45deg);
    transition: bottom 300ms cubic-bezier(0.36, 0, 0.66, -0.56), transform 300ms 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .burger span.active:after{
    content: "";
    top: 0;
    transform: rotate(-45deg);
    transition: top 300ms cubic-bezier(0.36, 0, 0.66, -0.56), transform 300ms 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .burger span.active{
    background: rgba(121, 70, 0, 0);
    transition: 150ms 255ms;
  }
  
  .menu__body__before{
    content: "";
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    height: 70px;
    background-color: #FFC911;
    box-sizing: border-box;
    z-index: 2;
  }
  
  

  .menu__body.active .menu__list > li:first-child{
    opacity: 1;
    transition: opacity 0.3s 300ms;
  }
  .menu__body.active .menu__list > li:nth-child(2){
    opacity: 1;
    transition: opacity 0.3s 350ms;
  }
  .menu__body.active .menu__list > li:nth-child(3){
    opacity: 1;
    transition: opacity 0.3s 400ms;
  }
  .menu__body.active .menu__list > li:nth-child(4){
    opacity: 1;
    transition: opacity 0.3s 450ms;
  }

  .menu__body .menu__list > li:nth-child(4){
    opacity: 0;
    transition: opacity 0.2s;
  }
  .menu__body .menu__list > li:nth-child(3){
    opacity: 0;
    transition: opacity 0.2s 50ms;
  }
  .menu__body .menu__list > li:nth-child(2){
    opacity: 0;
    transition: opacity 0.2s 100ms;
  }
  .menu__body .menu__list > li:nth-child(1){
    opacity: 0;
    transition: opacity 0.2s 150ms;
  }


  .menu__body.active{
    bottom: 0%;
    box-sizing: border-box;
    transition: bottom 150ms 160ms;
  }

  .menu__body {
    position: fixed;
    overflow:auto;
    box-sizing: border-box;
    bottom: 100%;
    left: 0%;
    width: 100%;
    height: 100%;
    padding: 90px 0px 0px 0px;
    overflow: auto;
    justify-content: center;
    display: flex;
    background-color: rgba(255, 201, 17, 0.7);
    z-index: 1;
    backdrop-filter: blur(5px);
    transition: bottom 300ms 250ms;
  }
  
  .menu__list > li {
    padding: 10px 0px;
  }

  .menu__sub-list > li {
    padding: 10px 0px;
    margin: 0;
  }

  .switcher {
    display: flex;
    flex-wrap: wrap;
    /* height: 65px; */
    width: 100px;
    justify-content: center;
    position: absolute;
    font-family: 'montserrat';
    font-weight: bold;
    color: #794600;
    font-size: 12px;
    border-radius: 20px;
    top:1px;
    background-color: #FFC911;
  }

  .switcher > li:nth-child(2){
    height: 30px;
  }

}

/* ----шапка---- */

.content{
  display: flex;
  justify-content: center;
}

.categories{
  display: flex;
  justify-content: space-between;
  justify-content: center;
  width: 100%;
  flex-wrap: wrap;
}

.categories > li {
  background-color:#FFC911;
  border-radius: 40px;
  display: flex;
  justify-content: center;
}

.background {
  background-color: #794600;
  border-radius: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  z-index: 2;
}


.categories > li img{
  height: 100%;
}

.categories > li:nth-child(5) img{
  height: 90%;
  margin-top: 10%;
  margin-bottom: 10%;
}


.background .name_product{
  color: #FFC911;
  text-align: center;
  font-family: Montserrat;
  font-style: normal;
  font-weight: 700;
  transition: all 0.5s;
}

.name_product{
  color: #794600; 
  text-align: center;
  font-family: Montserrat;
  font-weight: 700; 
  z-index: 1;
  transition: all 0.5s;
}

.categories > li:nth-child(1) .img {
  background-image: url(../pictures/png/медогонка.png);
}

@media (min-width: 768px) {
  .categories{
    margin-top: 100px;
  }

  .categories > li {
    margin: 1%;
    height: 443px;
    width: 282px;
  }

  .categories > li:last-child {
    width: 584px;
    transition: all 0.5s;
  }


  .categories > li:last-child .background {
    margin-top: 0px;
    border-radius: 40px;
    padding: 70px;
    box-sizing: border-box;
    height: 290px;
    width: 584px;
    font-size: 30px;
    color: #FFC911;
    text-align: center;
    font-family: Montserrat;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
  }

  .categories > li:last-child:hover .background {
    width: 584px;
    height: 360px;
  }

  .categories > li:last-child .subtitle{
    box-sizing: border-box;
    margin: 50px 80px;
    color: #794600;
    text-align: center;
    font-family: Montserrat;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    transition: all 0.5s;
  }

  .categories > li:last-child:hover .subtitle {
    margin: 15px 80px;
    font-size: 25px;
    transition: all 0.5s;
  }

  .background {
    width: 232px;
    height: 270px;
    margin-top: 20px;
    transition: all 0.5s;
  }

  .categories > li:nth-child(5) img{
    transition: all 0.5s;
  }

  .categories > li:hover:nth-child(5) img{
    height: 80%;
    margin-bottom: 20%;
    transition: all 0.5s;
  }

  .categories > li:hover .background{
    width: 282px;
    margin-top: 0px;
    border-radius: 40px;
    height: 443px;
  }

  .background .name_product{
    width: 246px;
    font-size: 20px;
    margin-top: 30px;
  }

  .name_product{
      font-size: 20px;
      font-style: normal;
      margin-top: 30px;
  }

  .categories > li:hover .background .name_product{
    transition: all 0.5s;
  }

  .categories >li:hover .name_product{
    margin-top: -30px;
    transition: all 0.5s;
  }
}

@media (max-width: 768px) {
  .categories{
    margin-top: 100px;
  }

  .categories > li {
    border-radius: 20px;
    margin: 10px;
    height: 250px;
    width: 150px;
  }

  .background {
    width: 150px;
    height: 200px;
    transition: all 0.5s;
  }

  .categories > li:nth-child(5) img{
    transition: all 0.5s;
  }


  .background .name_product{
    width: 150px;
    font-size: 20px;
  }

  .name_product{
    font-size: 20px;
    font-style: normal;
    width: 150px;
    height: 50px;
    justify-content: center;
    display: flex;
    align-items: center;
  }

  .categories > li:last-child {
    width: 310px;
  }

  .categories > li:last-child .background {
    width: 310px;
    color: #FFC911;
    text-align: center;
    font-family: Montserrat;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
  }

  .categories > li:last-child .subtitle {
    color: #794600;
    text-align: center;
    font-family: Montserrat;
    font-size: 15px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
  }
  
}