body{
    background-color: rgba(247,245,238,0.75);
    font-family: Roboto, sans-serif;
    margin:0 auto;
}

.main_img{
  margin:0 auto;
  height: 40vw;
  background: url("../img/farma.jpg") no-repeat white;
  background-size: 100%;
  background-position:contain;
  width:100%;
  position:relative;
  box-shadow: #333 0px 15px 37px -7px;
}

  .main_info{
    text-align: left;
    color:#006f33;
    background-color: rgba(224,215,195,0.5);
    width:32vw;
    height:92.5%;
    border-radius: 0 2vw 2vw 0;
    box-shadow: #8a9a5b 10px 10px 25px -10px;
    position: relative;
    top:0;
    right:26.8vw;
    padding:1.5vw;
    font-style: italic;
    text-shadow: 1px 1px 2px #f7f5ee;
  }


  .main_info h1{
    font-size: clamp(2em, 3vw, 4em);
    margin:0;
    text-transform: uppercase;
    padding-top: 50%;
  }

  .main_info h2{
    font-size: clamp(1em, 2vw, 2em);
    margin:0;
    padding: 1.8vw 0 0 0;
  }



/*SOCIALS*/

.socials{
  position: fixed;
  top:-0.55vw;
  z-index: 25;
  text-align: left;
  width:12vw;
}

.socials li{
  display: inline-block;
}

.socials li a{
  display: inline-block;
  font-size: clamp(1em, 1.7vw, 1.5em);
  color: #006f33;
  padding: 0.5vw 1vw;
}

.socials li a:hover{
  color: #bacf1a;
}

.socials li a:target{
  color: #006f33;
}


/*HLAVNE MENU*/

.fa-bars{
  font-size: 2em;
  color: #006f33;
  float: left;
  line-height: 80px;
  margin-left: 30px;
  cursor: pointer;
  display: none;
}

#check {
  display: none;
}

nav{
    width:100%;
    position: fixed;
    top:0;
    z-index:20;
    background:#e0d7c3;
}

ul{
    padding: 1.7vw;
    list-style: none;
    text-align: right;
    margin:0;
}

a{
    text-decoration: none;
}

nav ul li{
    display: inline-block;
    font-size: clamp(1em, 1.7vw, 1.5em);
    font-weight: 600;
    margin:0;
}

ul li:last-child{
    margin-right: 5.4%;
}

.menuobject a{
    color: #006f33;
    padding:1.7vw 1.5vw;
    --c: #006f33; /* the color */
    background: 
      linear-gradient(90deg,#004D40 50%,var(--c) 0) calc(100% - var(--_p,0%))/200% 100%,
      linear-gradient(var(--c) 0 0) 0% 100%/var(--_p,0%) 100% no-repeat;
    -webkit-background-clip: text,padding-box;
            background-clip: text,padding-box;
    transition: 0.5s;
  }
  .menuobject a:hover{
    --_p: 100%;
    color:#e0d7c3;
  }
  .menuobject a:target{
    --_p: 100%;
    color:#e0d7c3;
  }

  /*CONTENT*/

  .content{
    display: grid;
    margin:0 auto;
    width:90%;
    background-color: #8a9a5b;
    color: #f7f5ee;
    height: 32vw;
    grid-template-columns: 1fr 1fr;
  }

.content:nth-of-type(1),
.content:nth-of-type(3),
.content:nth-of-type(5),
.content:nth-of-type(7),
.content:nth-of-type(9){
    background-color: #f7f5ee;
    color: #333;
    box-shadow: #333 0px 15px 37px -7px;
  }


.section_img_1{
    background: url(..//img/farm_spring.jpg) no-repeat;
    background-size: cover;
    background-position: right top;
}

.section_img_2{
  background: url(..//img/marks/recycle.png) no-repeat;
  background-size: 35%;
  background-position: center;
}

.section_img_3{
  background: url(..//img/vermikompost.jpg) no-repeat;
  background-size: cover;
  background-position: top 40% center;
}

.section_img_4{
  background: url(..//img/marks/fertilizer.png) no-repeat;
  background-size: 40%;
  background-position: top 40% center;
}

.section_img_5{
  background: url(..//img/marks/turkey.png) no-repeat;
  background-size: 40%;
  background-position: top 45% center;
}

.section_img_6{
  background: url(..//img/marks/watering-can.png) no-repeat;
  background-size: 40%;
  background-position: center;
}

.section_img_7{
  background: url(..//img/marks/sea.png) no-repeat;
  background-size: 40%;
  background-position: center;
}

.section_img_9{
  background: url(..//img/kvalita.png) no-repeat;
  background-size: 40%;
  background-position: top 35% center;
}

.section_img_8{
  color:#f7f5ee;
  font-size: clamp(5em, 5vw, 10vw);
  margin: 0 auto;
}
.section_img_8 h2{
  display: inline-block;
  padding:9vw 0;
}


.content:nth-of-type(4) h2, 
.content:nth-of-type(8) h2{
  margin-top: 2vw;
}

.content:nth-of-type(5) article,
.content:nth-of-type(2) article,
.content:nth-of-type(1) article{
  width:80%;
}

.content:nth-of-type(8) article{
  width:82%
}

.content:nth-of-type(8) p{
  margin-top: 0;
  padding-top: 1vw;
}

article{
    position:relative;
    width:75%;
    margin: 0 auto;
}

article h2{
    text-transform: uppercase;
    margin-top: 6vw;
    font-size: clamp(1.5em, 2vw, 3em);
    letter-spacing: 0.06vw;
}

article p{
    padding-top: 2vw;
    line-height: 2vw;
    font-size: clamp(1.2em, 1.3vw, 2em)
}

article ul{
   list-style: circle;
   text-align: left;
   padding-top: 0;
   padding-left: 4vw;
   line-height: 1.8vw;
   font-size: clamp(1.2em, 1.3vw, 2em);
}

.pre-footer{
  display: block;
  margin:0 auto;
  width:90%;
  background-color: #8a9a5b;
  color: #f7f5ee;
  height: 20vw;
  text-align: center;
}

.pyramid{
  display: block;
  margin: 0 auto;
}

#pyramid{
  width:30%;
}

#pyramid:hover{
  filter:invert(50%) saturate(125%) brightness(1.8);
}

/*Cookie banner*/
#cookie-banner {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: #f7f5ee;
      color: #333;
      padding: 1rem;
      border-top: 1px solid #ccc;
      font-size: 14px;
      z-index: 9999;
      display: none;
      box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
      text-align: center;
    }
    #cookie-banner p {
      margin: 0 0 0.5rem 0;
    }
    #cookie-banner label {
      display: block;
      margin: 0.3rem 0 0.3rem 20%;
      text-align: left;
    }
    #cookie-banner button {
      margin: 0.4rem 0.4rem 0 0;
      padding: 0.4rem 1rem;
      font-size: 14px;
      cursor: pointer;
    }

#cookie-banner button{
  text-align: center;
  color:#333;
  background-color: rgba(224,215,195,1);
  display: inline-block;
  position: relative;
  border-radius: 2vw;
  font-size: clamp(0.8em, 1vw, 2em);
  padding: 1vw 3vw 1vw 3vw;
  font-weight: 600;
}

#cookie-banner button:hover{
  color:white;
  background-color: #004D40;
  box-shadow: #004d40 10px 10px 25px -10px;

}



/*Footer*/

footer{
  margin-bottom: 95px;
}

footer p{
  width:95%;
  margin:0 auto;
  text-align: center;
  font-size: clamp(0.8em, 0.7vw, 0.9em);
  font-weight: 600;
  color: #888;
}


/*RESPONSIVE*/

@media screen and (max-width:1200px){
 .section_info{
  line-height: 1.5em;
 }


 .content:nth-of-type(1) br{
  display: none;
 }
 .content{
  height:40vw;
 }

}

@media screen and (max-width:1100px){

.socials{
  width:20vw;
}

}

@media screen and (max-width:1060px){
  .content:nth-of-type(4){
    height:50vw;
 }
}

@media screen and (max-width:990px){
  article h2{
    margin-top: 3vw;
  }
}

@media screen and (max-width:925px){
  .content:nth-of-type(5),
  .content:nth-of-type(7){
    height:50vw;
 }

 article{
  width:90%
 }

}

@media screen and (max-width:830px){
  .section_info br{
  display: none;
 }
 .content:nth-of-type(2){
    height:50vw;
 }
}

@media screen and (max-width:790px){
  .socials{
    width:25%;
  }
}


@media screen and (max-width:700px){
  .content{
    width:100%
  }

  .pre-footer{
    width:100%;
  }

  body{
    margin-bottom: 45px;
  }

  .content:nth-of-type(1),
  .content:nth-of-type(3),
  .content:nth-of-type(5),
  .content:nth-of-type(7){
    grid-template-columns: 2fr 1fr;
 }

  .content:nth-of-type(2),
  .content:nth-of-type(4),
  .content:nth-of-type(6),
  .content:nth-of-type(8){
    grid-template-columns: 1fr 2fr;
 }

 .main_info{
  height: 95%;
 }

  .main_img{
    background-size: cover;
    background-position-x: 0vw;
    background-position: center;
    height: 60vw;
  }


  .socials{
    width:100%;
    height:60px;
    bottom:0;
    top:initial;
    font-size: 3em;
    background-color: #e0d7c3;
    margin:0 auto;
    padding:0.3em 0;
    text-align: center;
  }

  .socials li{
    width:30%;
    text-align: center
  }

  ul li:last-child{
    margin:0;
  }

  .menu{
    font-size: 1.2em;
    margin:0 auto;
    padding: 0.6em;
    text-align: center;
  }

  .menuobject a{
    padding-left: 1em;
    padding-right: 1em;
  }

  .name:nth-child(1) .name_exp{
    margin-left: 50vw;
  }
  .name:nth-child(2) .name_exp{
    margin-left: -50vw;
  }
  .name_exp{
    line-height: 1.9em;
  }
  .finish{
    max-height: 50vh;
  }

}

@media screen and (max-width:640px){
  .fa-bars{
  display: block;
}
  .menu {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #bacf1a;
    top: 80px;
    left: -110%;
    text-align: center;
    transition: all .5s;
    padding:0;
  }
  .menu li {
    display: block;
    line-height: 30px;
  }
  .menu li a {
    font-size: 2.55em;
    display: inline-block;
    padding: 0.7em 0;
    width:100%
  }

    #check:checked~ul {
    left: 0;
  }
  .menuobject:last-child{
    margin-right: 0;
  }
}


@media screen and (max-width:600px){

article h2{
    font-size: clamp(1.2em, 2vw, 3em);
}

article p{
    font-size: clamp(1em, 1.3vw, 2em)
}

.main_img article{
  font-size: 0.8em;
}

.main_img article h1{
  padding-top: 60%;
}

}

@media screen and (max-width:550px){
  .socials li{
    width:25%;
  }

}

@media screen and (max-width:505px){

  article{
    padding: 0;
  }

 .content:nth-of-type(4),
 .content:nth-of-type(5),
 .content:nth-of-type(7){
  height:60vw;
 }
 
 .main_info{
  width:97%;
  height:35%;
  right:0;
  top:45%;
  text-align: center;
  overflow: hidden;
  border-radius: 2vw;
 }

.main_img article h1{
  padding-top: 5%;
}
}

@media screen and (max-width:450px){
  .name_exp{
    display: none;
  }

  .content div{
    display: none;
  }

  .content:nth-of-type(1),
  .content:nth-of-type(3),
  .content:nth-of-type(5),
  .content:nth-of-type(7){
    grid-template-columns: 99fr 1fr;
 }

  .content:nth-of-type(2),
  .content:nth-of-type(4),
  .content:nth-of-type(6),
  .content:nth-of-type(8){
    grid-template-columns: 99fr 1fr;
 }

.content:nth-of-type(4) h2, 
.content:nth-of-type(8) h2{
  margin-top: 3vw;
}

.content:nth-of-type(5) article,
.content:nth-of-type(2) article,
.content:nth-of-type(1) article{
  width:90%;
}


}
