
/* About section */

.about{
  flex-direction: row;
  justify-content: center;
  align-items: center;
  min-height: 85vh;
}
.about .container-inside{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.about .container-inside img{
  width: 500px;
  height: auto;
}
.about_h1{
  color: #413960;
  font-weight: normal;
  margin: 0;
  font-size: 2.85rem;
  line-height: 1;
  font-weight: normal;
}
.about_h1 span{
  color: rgb(242, 184, 67);
}
.about_description{
  width: 450px;
  padding: 25px 0 30px 0;
  font-size: 1.5rem;
  color: #413960;
}
.about_but{
  text-transform: uppercase;
  background: none;
  padding: 12px 40px 10px 40px;
  color: #413960;
}

/* events*/
.events{
  flex-direction: column;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 100px;
}
.events_h{
  margin-bottom: 70px;
  width: 100%;
  text-align: center;
  /* color: #413960;
  font-weight: bold;
  font-size: 2,5rem; */
}
.events-list{
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  position: relative;
}
.events-block{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 370px;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 11px;
  box-shadow: 0 10px 40px 0 rgba(0,0,0, 0.1);
}
.events-block:not(:last-child){
  margin-right: 30px;
}
.events-block > img{
  width: 100%;
  height: 234px;
  object-fit: cover; 
  object-position: center;
  border-radius: 11px;
}
.events-block_name{
  line-height: auto;
  margin-top: 10px;
}
.events-block_desc{
  margin: 10px 0;
  height: 97px;
  max-height: 97px;
  overflow: hidden;
  position: relative;
}
.events-block_desc::after{
  content: "";
  width: 35px;
  height: 16px;
  background: linear-gradient(to right ,rgba(255,255,255,.8), #ffffff);
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 1;
}
.events-links{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  margin: 15px 0 15px 0;
}
.events-block_but{
  margin-top: 10px;
  margin-bottom: 20px;
  padding: 7px 20px 8px 20px;
}
.events_inside{
  display: block;
  padding-bottom: 2px;
  color: #413960;
  border-bottom: 0.5px solid #380a4d;
  /* border-radius: 30px; */
  font-size: 1.142857rem;
  transition: all .3s;
}
.events-block-footer{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
}
.events-block-footer p{
  position: relative;
  padding-left: 25px;
}
.events-block-footer p::before{
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.events-block-footer_date::before{
  background-image: url(../images/icons/calendar.png);
}
.events-block-footer_age::before{
  background-image: url(../images/icons/age.png);
}
.events_more{
  position: absolute;
  top: -52px;
  right: 0;
  display: block;
  padding: 10px;
  font-size: 18px;
  color: #413960;
}
.no-events{
  font-size: 20px;
}
.no-events_img{
  width: 50px;
  height: 50px;
  margin-right: 20px;
  background: url(../images/icons/student.png) no-repeat center;
  background-size: cover;
}

/* лагерь */

.camp{
  padding-top: 30px;
  padding-bottom: 30px;
  flex-direction: row;
  justify-content: center;
}
.camp_name{
  margin-bottom: 50px;
  text-align: start;
}
.camp-info{
  width: 100%;
}
.camp-info{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 50px;
}
.camp-info div{
  flex: 0 1 50%;
}
.camp-text{
  padding-top: 15px;
}
.camp-text_item{
  margin-bottom: 15px;
}
.camp_more{
  display: inline-block;
  margin-top: 35px;
  background: none;
  padding: 12px 40px 10px 40px;
  color: #413960;
}
.camp-slider{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.camp-slider input{
  display: none;
}
.camp-slider-controls{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  order: 2;
  width: 120px;
  height: 20px;
}
.camp-slider-controls_label{
  display: block;
  position: relative;
  width: 30px;
  height: 30px;
  cursor: pointer;
  border: none;
}
.camp-slider-controls_label::after{
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #aeaeae;
    transform: translateY(-50%);
}
.camp-slider-photos{
  order: 1;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  overflow: hidden;
  width: 100%;
  height: 400px;
  min-height: 400px;
  position: relative;
}
.camp-slider-photos_item{
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transition: left .8s ease-out;
}
.pht1{
  left: 0;
}
.pht2{
  left: 100%;
}
.pht3{
  left: 100%;
}

#btn-1:checked ~ .camp-slider-controls label[for="btn-1"]::after,
#btn-2:checked ~ .camp-slider-controls label[for="btn-2"]::after,
#btn-3:checked ~ .camp-slider-controls label[for="btn-3"]::after{
  background-color: #380a4d;
}
#btn-1:checked ~ .camp-slider-photos .pht1{
  left: 0;
}
#btn-1:checked ~ .camp-slider-photos .pht2,
#btn-1:checked ~ .camp-slider-photos .pht3{
  left: 100%;
}
#btn-2:checked ~ .camp-slider-photos .pht2{
  left: 0
}
#btn-2:checked ~ .camp-slider-photos .pht1,
#btn-2:checked ~ .camp-slider-photos .pht3{
  left: 100%;
}
#btn-3:checked ~ .camp-slider-photos .pht3{
  left: 0;
}
#btn-3:checked ~ .camp-slider-photos .pht1,
#btn-3:checked ~ .camp-slider-photos .pht2{
  left: 100%;
}

/* фотографии */

.photos{
  padding-top: 50px;
  padding-bottom: 30px;
}
.photos_name{
  width: 100%;
  text-align: center;
}
.photos-block{
  padding-top: 30px;
  /* overflow: hidden; */
}
.photos-slider{
  width: 100%;
  position: relative;
  top: 0;
  left: 0;
  height: auto;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  overflow: hidden;
  transition: transform 0.3s ease-out;
}
.photos-slider_item{
  width: 732px;
  height: 488px;
  min-width: 732px;
  min-height: 488px;
  margin-right: 25px;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: margin .4s ease-out;
}
.photo1{
  background-image: url(../images/photos/1.jpg);
}
.photo2{
  background-image: url(../images/photos/2.jpg);
}
.photo3{
  background-image: url(../images/photos/3.jpg);
}
.photo4{
  background-image: url(../images/photos/wall.jpg);
}
.photo5{
  background-image: url(../images/photos/5.jpg);
}
.photo6{
  background-image: url(../images/photos/6.jpg);
}
.photo7{
  background-image: url(../images/photos/7.jpg);
}
.photos .container{
  flex-direction: row;
  justify-content: center;
}
.photos .container-inside{
  position: relative;
}
.photos-arrow{
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  position: absolute;
  top: -55px;
  right: 0;
  width: 51px;
}
.photos-arrow-left,
.photos-arrow-right{
  border: none;
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  border-top: 3px solid #413960;
  border-radius: 2px;
  cursor: pointer;
  transition: all .3s;
  background: none;
  box-sizing: content-box;
}
.photos-arrow-left{
  margin-right: 11px;
  border-left: 3px solid #413960;
  transform: rotate(-45deg);
}
.photos-arrow-right{
  border-right: 3px solid #413960;
  transform: rotate(45deg);
}
.photos-arrow .disabled{
  opacity: 0.5;
}


/*hover*/
@media screen and (min-width: 835px) {
    .about_but:hover{
        background-color: #380a4d;
    }
    .about_but:hover {
        color: #ffffff;
    }
    .events_inside:hover{
      color: rgba(56,10,77, 0.5);
      border-bottom: 0.5px solid rgba(56,10,77, 0.5);
    }
    .events_more:hover{
      color: rgba(56,10,77, 0.5);
    }
}




@media screen and (max-width: 1200px) {
  .about .container-inside,
  .camp .container-inside,
  .events .container-inside,
  .footer .container-inside{
    width: 90%;
  }
}
@media screen and (max-width: 1140px) {
  .about{
    height: auto;
    min-height: auto;
    padding: 60px 0;
  }
  .about .container-inside{
    gap: 20px;
  }
  .about .container-inside>div,
  .about .container-inside>img{
    flex: 1;
  }
  .about .container-inside img{
    width: 400px;
  }
  .about_description{
    width: 100%;
  }
  .about_but{
    padding: 10px 25px 8px 25px;
    margin-top: 10px;
  }

}
@media screen and (max-width: 980px) {
  .camp-slider-photos{
    height: 300px;
    min-height: 300px;
  }
  .events-list{
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 25px;
  }
  .events-block{
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    height: auto;
    gap: 25px;
  }
  .events-block > img {
    width: 300px;
    min-width: 300px;
  }
  .events-links,
  .events-block-footer{
    width: 70%;
  }
}
        
@media screen and (max-width: 800px) {
  .photos-slider_item{
    width: 100%;
    min-width: 100%;
    min-height: 490px;
    height: 490px;
    margin: 0;
  }
}
@media screen and (max-width: 720px) {
  .about .container-inside,
  .camp .container-inside,
  .footer .container-inside{
    width: 95%;
  }
  .camp-info{
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  .camp_name{
    text-align: center;
  }
  .camp_more{
    margin-top: 25px;
  }
  .camp-slider{
    width: 80%;
  }
  .events{
    padding-top: 50px;
    padding-bottom: 50px;
  }
   .events-block > img {
    width: 200px;
    height: 225px;
  }
  .events-links,
  .events-block-footer{
    width: 100%;
  }
}
@media screen and (max-width: 580px) {
    .about .container-inside{
      flex-direction: column;
    }
    .events-block{
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: auto;
    gap: 0;
  }
}
