*, *::after, *::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  font-family: 'Montserrat', sans-serif;
}

html{scroll-behavior: smooth; overflow-x: hidden; box-sizing: border-box;}

body{
  max-width: 100%;
  box-sizing: border-box;
  height: 4000px;
}

input,button,textarea{font-family:inherit;}

header{
  margin: 0 auto;
  display: block;
  width: 100%;
  height: 150px;
  padding: 25px;
}
#ico{
  height: 100px;
}

label .menu {
  position: fixed;
  top: -150px;
  right: -150px;
  z-index: 100;
  width: 300px;
  height: 300px;
  background: #1e1e1e;
  border-radius: 50%;
  -webkit-transition: .2s ease-in-out;
  transition: .2s ease-in-out;
  box-shadow: 0 0 0 0 #1e1e1e;
  cursor: pointer;
}

label .hamburger{
  position: absolute;
  top: 200px;
  left: 80px;
  width: 40px;
  height: 3px;
  background: #fff;
  display: block;
  -webkit-transform-origin: center;
  transform-origin: center;
  -webkit-transition: .2s ease-in-out;
  transition:ease-in-out;
  transform: rotate(135deg);
}

.hamburger::after, .hamburger::before{
  -webkit-transition: .25s ease-in-out;
  transition: .25s ease-in-out;
  content: '';
  position: absolute;
  display: block;
  width: 50%;
  height: 100%;
  background: #F9D31B;
}

.hamburger::after{top: -13px; right: 32%;}
.hamburger::before{bottom: -13px; left: 28%;}
label input{display: none; position: absolute; top: 200px;
  left: 80px;}

label input:checked + .menu {
  box-shadow: 0 0 0 100vw #1e1e1e, 0 0 0 100vh #1e1e1e;
  border-radius: 0;
}

label{
  height: 100%;
  width: 100%;
}
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 0;
  height: 100%;
  bottom: 0%;
  position: absolute;
  right: 0;
}
label input:checked + nav{
  width: 100%;
}

label input:checked + .menu .hamburger:after {
  -webkit-transform: rotate(90deg);
  transform: rotate(90deg);
  width: 20px;
  top: -11px;
  right: 25%;
  background: #fff;
  transition: .25s ease-in-out;
}

label input:checked + .menu .hamburger::before{
  -webkit-transform: rotate(90deg);
  transform: rotate(90deg);
  width: 20px;
  bottom: -11px;
  left: 25%;
  background: #fff;
  transition: .25s ease-in-out;
}
label input:checked + .menu + nav ul { 
  opacity: 1;
  top: 50%;
  left: 50%;
}
label  ul {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 300;
  top: 0;
  left: 100%;
  opacity: 0;
  -webkit-transition: .25s 0s ease-in-out;
  transition: .25s 0s ease-in-out;
  list-style: none;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.menuLink {
  display: inline-block;
  margin: 25px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  border-radius: 5px;
  width: 200px;
  height: 40px;
  padding: 10px 25px;
}

label a:hover {
  color: #F9D31B;
}

main{
  margin-top: 40px; 
}
main h1{
  font-weight: 700;
  font-size: 130px;
  display: inline-block;
}

main #line{
  border: 3px solid #1E1E1E;
  height: 2px;
  width: 52vw;
  display: block;
  margin: 0 auto;
  border-radius: 100px;
}

main h2{
  font-weight: 700;
  text-align: center;
  font-size: 2.9vw;
  color: #1E1E1E;
  margin: 0 auto;
  display: block;
}

main img{
  height: 500px;
}

.btn{
  border-radius: 5px;
  width: 260px;
  height: 65px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  font-weight: 600;
  font-size: 20px;
  box-shadow:inset 2px 2px 2px 0px rgba(255,255,255,.5),
   7px 7px 20px 0px rgba(0,0,0,.1),
   4px 4px 5px 0px rgba(0,0,0,.1);
  transition: all 0.3s ease;
  background: transparent;
}

.btn_wrap{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.btn_main {
  position: relative;
  line-height: 42px;
  padding: 0;
  border: none;
  background: #000;
  color: #fff;
  margin:0 3vw;
}
.btn_main:hover {
  color: #1e1e1e;
  background: transparent;
  box-shadow:none;
}
.btn_main::before,
.btn_main::after{
  content:'';
  position:absolute;
  top:0;
  right:0;
  height:3px;
  width:0;
  background: #000;
  box-shadow:
   -1px -1px 5px 0px #fff,
   7px 7px 20px 0px #0003,
   4px 4px 5px 0px #0002;
  transition:400ms ease all;
}
.btn_main::after{
  right:inherit;
  top:inherit;
  left:0;
  bottom:0;
}
.btn_main:hover::before,
.btn_main:hover::after{
  width:100%;
  transition:800ms ease all;
}




.btn_secondary{
  border-top: 3px #F9D31B solid;
  border-bottom: 3px #F9D31B solid;
  color: #000;
  position: relative;
}
.btn_secondary:after{
  position: absolute;
  width: 0;
  content: "";
  height: 100%;
  top: 0;
  left: 0;
  direction: rtl;
  z-index: -1;
  box-shadow:
   -7px -7px 20px 0px #fff9,
   -4px -4px 5px 0px #fff9,
   7px 7px 20px 0px #0002,
   4px 4px 5px 0px #0001;
  transition: all 0.3s ease;
}
.btn_secondary:hover::after{
  left: auto;
  right: 0;
  width: 100%;
}
.btn_secondary:active{
  top: 2px;
}

.btn a, .btn a:visited{
  text-decoration: none;
  color: inherit;
}

main h3{
  position: absolute;
  height: 100%;
  top: 22vh;
  right: 1%;
  font-weight: 100;
  font-size: 30px;
  letter-spacing: .2em;
  text-orientation: upright;
  writing-mode: vertical-lr;
}

main img{
  height: 25vw;
  transform: translatey(-30px);
  margin: auto 20px;
}


.bg{
  width: 90vw;
  margin: 0 auto;
  background-color: #1e1e1e;
  border-radius: 7.15vw 7.15vw 0.6vw 0.6vw;
  transform: translateY(-10px);
  display: block;
  padding-bottom: 40px;
  align-items: center;
}
.courses-wrap{
  padding-top: 2.5vw;
  align-items: center;
}
.ourCourses{
  text-align: center;
  color: #fff;
  font-weight: 400;
  font-size: 4vw;
}
#why_title{
  text-align: center;
  color: #1e1e1e;
  font-weight: 400;
  font-size: 3.8vw;
  margin: 100px 0 50px;
}
#studWorks{
  text-align: center;
  color: #1e1e1e;
  font-weight: 400;
  font-size: 3.8vw;
  margin-top: 100px;
  margin-bottom: 15px;
}

.arrow{
  width: 5.7vw;
  display: block;
  margin: 0 auto;
  padding-top: 10px;
}

.courses{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 1.9vw;
}

.courses-wrap article{
  background: #fff;
  color: #1e1e1e;
  border-radius: 2.9vw;
  width: 400px;
  height: 380px;
  margin: 2.38vw;
  align-items: center;
  justify-content: center;
}



.courses article p{
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-size: 24px;
  text-align: center;
  color: #1e1e1e;
  margin: 35px auto;
  width: 70%;
}

.courses img{
  display: block;
  position: relative;
  margin: auto;
  width: 220px;
}

.cardWrap{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1515px;
  margin: 0 auto;
}


.card {
  -webkit-perspective: 150rem;
          perspective: 150rem;
  -moz-perspective: 150rem;
  position: relative;
  height: 14.88vw;
  width: 28.3vw;
  margin: 20px auto;
}

.card__side {
  text-align: center;
  height: 14.88vw;
  -webkit-transition: all 0.8s ease;
  transition: all 0.8s ease;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  border-radius: 3px;
  overflow: hidden;
  -webkit-box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.15);
          box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.15);
}

.card__side--front {
  background-color: #fff;
  background: linear-gradient(-45deg, #000, #363636);
  border-radius: 2.9vw;
}



.card__side--back {
  -webkit-transform: rotateY(180deg);
          transform: rotateY(180deg);
  background: linear-gradient(-45deg, #1f2e4b, #567599);
  border-radius: 2.9vw;
}


.card:hover .card__side--front {
  -webkit-transform: rotateY(-180deg);
          transform: rotateY(-180deg);
}

.card:hover .card__side--back {
  -webkit-transform: rotateY(0);
          transform: rotateY(0);
}

.card__title {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  transform: translate(-50%, -50%);
}


.card__heading {
  font-size: 2rem;
  font-weight: 300;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  width: 100%;
}

.card__heading-span {
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.card__cta {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  width: 90%;
  text-align: center;
}

.card__price-box {
  text-align: center;
  color: #fff;
}

.card__price-only {
  font-size: 1.4rem;
  text-transform: uppercase;
}

.card__price-value {
  font-size: 1rem;
  font-weight: 100;
}

.blackBackground{
  background-color: #1e1e1e;
}

.examples_wrap{
  margin: 0 auto;
  max-width: 1170px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
}

.example{
  border-radius: 30px;
  width: 300px;
  height: 400px;
  margin: 1.95vw 0;
  text-align: center;
  background-size: cover;
  background-position-x: 50%;
  background-position-y: 50%;
  transition: 0.5s ease;
}
.text{
  transition: .5s ease;
  opacity: 0;
  border-radius: 30px;
  height: 100%;
  position: relative;
  text-align: center;
  justify-content: center;
  align-items: center;
  margin: auto;
  color: #FFF;
  background: rgba(36, 36, 36, 0.5);  
}
.example_name{
  position: relative;
  top: 44%;
}
.example_info{
  position: relative;
  top: 48%;
}
.example:hover .example{
  opacity: 0.3;
}
.example:hover .text{
  opacity: 1;
}

.ex1{background-image: url("assets/xbox.jpg");}
.ex2{background-image: url("assets/tshirt.jpg");}
.ex3{background-image: url("assets/lawyer.jpg");}
.ex4{background-image: url("assets/ice.jpg");}
.ex5{background-image: url("assets/jewelry.jpg");}
.ex6{background-image: url("assets/aps.jpg");}


/* SLIDER */
.slider {
  max-width: 100rem;
  height: 50rem;
  margin: 0 auto;
  position: relative;

  /* IN THE END */
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  width: 100%;
  height: 50rem;

  display: flex;
  align-items: center;
  justify-content: center;

  /* THIS creates the animation! */
  transition: transform 1s;
}

.slide > img {
  /* Only for images that have different size than slide */
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider__btn {
  position: absolute;
  top: 50%;
  z-index: 10;

  border: none;
  background: rgba(255, 255, 255, 0.7);
  font-family: inherit;
  color: #333;
  border-radius: 50%;
  height: 5.5rem;
  width: 5.5rem;
  font-size: 3.25rem;
  cursor: pointer;
}

.slider__btn--left {
  left: 6%;
  transform: translate(-50%, -50%);
}

.slider__btn--right {
  right: 6%;
  transform: translate(50%, -50%);
}

.dots {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
}

.dots__dot {
  border: none;
  background-color: #b9b9b9;
  opacity: 0.7;
  height: 1rem;
  width: 1rem;
  border-radius: 50%;
  margin-right: 1.75rem;
  cursor: pointer;
  transition: all 0.5s;

  /* Only necessary when overlying images */
  /* box-shadow: 0 0.6rem 1.5rem rgba(0, 0, 0, 0.7); */
}

.dots__dot:last-child {
  margin: 0;
}

.dots__dot--active {
  /* background-color: #fff; */
  background-color: #888;
  opacity: 1;
}

/* TESTIMONIALS */
.testimonial {
  width: 65%;
  position: relative;
}



.testimonial__header {
  font-size: 2.25rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.testimonial__text {
  font-size: 1.7rem;
  margin-bottom: 3.5rem;
  color: #666;
}
.testimonial__text3 {
  font-size: 1.7rem;
  margin-bottom: 3.5rem;
  color: #666;
}

.testimonial__author {
  margin-left: 3rem;
  font-style: normal;

  display: grid;
  grid-template-columns: 6.5rem 1fr;
  column-gap: 2rem;
}

.testimonial__photo {
  grid-row: 1 / span 2;
  width: 6.5rem;
  border-radius: 50%;
}

.testimonial__name {
  font-size: 1.65rem;
  font-weight: 500;
  align-self: end;
  margin-left: -10px;
}

.testimonial__location {
  font-size: 1.5rem;
    margin-left: -10px;
}

.section__title--testimonials {
  margin-bottom: 4rem;
}

@media(max-width: 900px){

    .testimonial__header{
        font-size: 36px;
    }
    .testimonial__text{
        font-size: 24px;
    }
}

@media(max-width: 940px){
    .testimonial__header{
        font-size: 32px;
    }
    .testimonial__text3{
        font-size: 16px;
    }
}
@media(max-width: 725px){
    .section{
        height: 800px;
    }
    .testimonial__header{
        font-size: 30pxpx;
    }
    .testimonial__text{
        font-size: 20px;
    }
}

@media(max-width: 655px){
    .testimonial__header{
        font-size: 30px;
    }
    .testimonial__text{
        font-size: 17px;
    }
}

@media(max-width: 550px){
    .dots{
        margin-top: 90px;
    }
    .testimonial__text3{
        font-size: 14px;
    }
    .testimonial__header{
        font-size: 24px;
    }
}

@media(max-width: 450px){
    .dots{
        margin-top: 100px;
    }
    .testimonial__name{
        font-size: 20px;
    }
    .testimonial__location{
        font-size: 12px;
        margin-bottom: 70px;
    }
}

@media(max-width: 400px){
    .testimonial__location{
        padding-bottom: 50px;
    }
    .testimonial__header{
        font-size: 20px;
    }
    .testimonial__text3{
        font-size: 12px;
    }

}


@media(max-width: 377px){
    .testimonial__location{
        padding-bottom: 50px;
    }
    .testimonial__header{
        font-size: 16px;
    }
    .testimonial__text{
        font-size: 14px;
    }
    .testimonial__text3{
        font-size: 12px;
    }
}

.footer{
  background-color: #1E1E1E;
  height: 900px;
}

.footer__logo{
  height: 125px;
  width: 125px;
}
.footer__title{
  padding-top: 68px;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  text-align: center;
}


.footer__form{
  margin: auto;
  margin-top: 40px;

  height: 380px;
  width: 580px;
  border-radius: 30px;
}

.footer__inner{
  background: url(image/bgtag.png) no-repeat;
  background-position: 200px 175px;
}

@media(max-width: 1280px){
  .footer__inner{
      background: url();
  }
}

.footer__form-bg{
   background-color: rgb(215,215,215, 0.042);
   backdrop-filter: blur(15px);
}

.form__name{
  margin-left: 65px;
  margin-top: 56px;
  width: 450px;
  padding: 29px 50px 29px 36px;
  border-radius: 15px;
  background-color: transparent;
  border: 1px solid #fff;
  color: #B8B8B8;
}

.form__phone{
  margin-left: 65px;
  margin-top: 17px;
  width: 450px;
  padding: 29px 50px 29px 36px;
  border-radius: 15px;
  background-color: transparent;
  border: 1px solid #fff;
  color: #B8B8B8;
  margin-bottom: 50px;
}

.form__btn{
  margin-right: 20px;
  border: 1px solid #F9D31B;
  padding: 25px 35px;
  border-radius: 15px;
  background-color: #1e1e1e;
  color: #fff;
  margin-left: 185px;
}

.form__btn:hover{
  box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.3);
}
.contacts{
  margin-top: 111px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

.course__list{
  display: flex;
  flex-direction: column;
}

.container2{
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

.footer__contacts{
  align-self: center;
  color: #fff;
}


@media(max-width: 880px){

  .contacts{
      flex-direction: column;
  }

  .footer{
      height: 1200px;
  }

  .footer__logo{
      margin-bottom: 50px;
  }

  .contacts__list{
      text-align: center;
  }

  .socials{
      margin-left: 50px;
  }
  .social-item{
    opacity: 0.7;
    font-size: 36px;
    color: #fff;
}

.social-item:hover{
    opacity: 1;
}
.social-item:first-child{
    margin-left: 20px;
}


.social-item + .social-item  {
    margin-left: 20px;
}

  .footer__courses{
      margin-top: 50px;
      text-align: center;
  }


}
.courses__title{

}

.num{
  text-decoration: none;
  color: #fff;
  opacity: 0.8;
  transition: all 0.2s;
}

.num:hover{
  opacity: 1;
  text-decoration: none;
}


.contacts__list{
  margin-bottom: 18px;
}

.contacts__list:first-child{
  font-weight: 500;
  font-size: 20px;
}

.contacts__list:last-child{
  font-weight: 500;
  font-size: 16px;
}

.fa-location-dot{
  font-size: 25px;
}
.footer__list{
  list-style: none;
  margin-bottom: 16px;
  font-size: 16px;
   color: #fff;
  opacity:0.7;
  transition: all .2s;
}

.footer__list:first-child{
  font-weight: 700;
}

.footer__list:last-child{
  margin-bottom: 0;
}

.footer__list:hover{
  opacity: 1;
}

.active{
  opacity: 1;
}
li{
  list-style-type: none;
}


@media (max-width: 1000px) {

  .courses img{ position: relative; margin: auto; width: 13vw;}
  .courses-wrap article{width: 23.8vw; height: 23vw;}
  main img{display: none;}
  .bg{
    transform: translateY(0); margin-top: 10px;
    border-radius: 40px;
  }
  .courses article p{font-size: 1.7vw; margin: 10px auto;}
  main h1{
    display: block;
    text-align: center;
  }
  .btn{
    margin-left: 50px;
    border-radius: 5px;
    width: 260px;
    height: 65px;
    display: block;
    font-weight: 600;
    font-size: 20px;
  }
  .btn_secondary{display: none;}
  .card {width: 47vw; height: 23vw;}
  .card__side--front {width: 47vw; height: 23vw;}
  .card__side--back {width: 47vw; height: 23vw;}
  .card__side {width: 47vw; height: 23vw;}
  .example{width: 35.4vw; height: 47.6vw; margin: 20px auto;}
  .examples_wrap{justify-content: space-evenly;}
}



@media (max-width: 600px) { 
  .ourCourses{
    font-weight: 600;
    font-size: 7vw;
  }
  #ico{height: 60px;}
  main h2{font-size: 20px;}
  main h3{display: none;}
  .btn_wrap{
    display: block;
    align-items: center;
    margin: 0 ;
  } 
  .bg{width: 100%;}
  .courses-wrap article{ width: 40vw; height: 40vw;}

  .courses img{
    position: relative;
    margin: auto;
    width: 80px;
  }
  .courses article p{font-size: 12px; margin: 15px auto;}
  
  main{
    margin-top: 0px; 
  }
  main h1{
    font-weight: 800;
    font-size: 90px;
    display: block;
    text-align: center;
  }
  .btn{
    border-radius: 5px;
    width: 260px;
    height: 65px;
    display: block;
    font-weight: 600;
    font-size: 20px;
    margin: 25px auto;
  }
  .btn_secondary{display: none;}

  #why_title{
    font-size: 5vw;
    font-weight: 600;
    margin: 40px 0 20px;
  }

  .card__heading{
   font-size: 1rem; 
  }

  .card__price-only{
    font-size: 0.5rem;
    font-weight: 600;
  }
  .card__price-value{
    font-size: 0.35rem;
    font-weight: 400;
  }

  .card:active .card__side--front {
    -webkit-transform: rotateY(-180deg);
            transform: rotateY(-180deg);
  }
  
  .card:active .card__side--back {
    -webkit-transform: rotateY(0);
            transform: rotateY(0);
  }
  .example:active .example{
    opacity: 0.3;
  }
  .example:active .text{
    opacity: 1;
  }
  #studWorks{
    font-size: 8vw;
  }
}

@media(max-width: 600px){
  .course{
      height: 150px;
      width: 200px;
  }

  .course__title{
      font-size: 15px;
  }

  .course__img{
      width: 50%;
      left: 75px;
      top: 50px;
  }

  .course-title{
      margin-bottom: 35px;
  }

  .footer__form{
      width: 400px;
      margin: 20px auto;
  }

  .form__name{
      width: 350px;
  }

  .form__phone{
      width: 350px;
  }

  .form__btn{
      margin-left: 125px;
  }
}

@media(max-width: 520px){
  .footer__form{
      width: 350px;
      height: 280px;
  }

  .form__name{
      margin-top: 25px;
      margin-left: 55px;
      width: 250px;
  }

  .form__phone{
      margin-left: 55px;
      width: 250px;
      margin-bottom: 20px;
  }

  .form__btn{
      border-radius: 15px;
      padding: 16px 24px;
      margin-left: 75px;
  }
}

@media(max-width:365px){
  .footer__form{
      width: 250px;
      height: 220px;
  }
  .form__name{
      width: 190px;
      height: 25px;
      margin-top: 10px;
      margin-left: 30px;
  }
  .form__phone{
      width: 190px;
      height: 25px;
      margin-top: 10px;
      margin-left: 30px;
  }
  .form__btn{
      margin-left: 50px;
      padding: 8px 16px;
      margin-left: 30px;
  }

  .animations{
      margin-top: 50px;
  }
}
