* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}


/*Preload*/
#hellopreloader>p {
  display: none;
}
#hellopreloader_preload {
  display: block;
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #65C6BB url(http://hello-site.ru//main/images/preloads/puff.svg) center center no-repeat fixed;
  background-size: 150px;
  background-attachment: fixed;
}

body {
  position: relative;
  background: #fff;
  font-family: "Montserrat", sans-serif;
  transition: all .7s ease;
}

body.switchMode{
  background-color:#000;
}

.container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}



header {
  position: relative;
  overflow: hidden;
  width: 100%;
  }



.header_head {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
}
.header_head::before {
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #191819;
  height: 60px;
  z-index: 2;
}

.head_inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo{
  z-index: 3;
}

.logo img{
  width: 43px;
  margin-top: 8px;
}

.logo span{
  display: inline-block;
  position: relative;
  top: -15px;
  color: #ccc;
  font-size: 20px;
  padding-left: 10px;
  font-weight: 900;
}


.head_inner nav ul{
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 5;
  
}

.head_inner nav ul li{
  list-style-type: none;
  
}

.head_inner nav ul li a{
  font-size: 14px;
  color: #ccc;
  display: inline-block;
  margin: 5px 0 5px 0;
  padding: 5px 40px 5px 12px;
  text-decoration: none;
  text-transform: uppercase;
}

.menu:hover{
  color: #fff;
  border-left: 3px darkcyan solid;
}

.head_inner nav ul li.switch a{
  position: relative;
  width: 45px;
  height: 24px;
  border: 1px solid #ccc;
  border-radius: 10em;
  padding: 0;
  margin-top: 11px;
  overflow: hidden;
  
  }

.head_inner nav ul li.switch a:after{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  background-color: #fff;
  border-radius: 10em;
  transition: all .5s ease;
  }

  body.switchMode .head_inner nav ul li.switch a:after{
    left: 20px;
  }

  ul li:last-child.switchBlack a{
    background-color: #fff;
  }

  .head_inner nav ul li.switchBlack a:after{
    background-color: #000;
  }

  .header_body{
    position: relative;
    width: 100%;
    height: 100%;
    margin-top: 60px;
  }
  
  .header_body_inner{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .left{
    padding-right: 80px;
  }

  .header_body_inner .left .title{
    max-width: 420px;
    color:#333;
    font-size: 46px;
    transition: all .5s ease;
  }
  body.switchMode .header_body_inner .left .title{
    color: #fff;
  }
  .header_body_inner .left .title span{
    color:darkcyan;
  }

  

  a.btn{
    display: inline-block;
    background-color:darkcyan;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    margin-top: 20px;
    border-radius: 5px;
    box-shadow: 3px 7px 6px #333;
  }

  a.btn-media{
    display: none;
  }

body.switchMode a.btn{
  box-shadow: 3px 6px 6px rgb(87, 87, 87);
}

  .btn:hover{
  background-color:rgb(5, 109, 109);
  
  }
  .btn:active{
    transform: translateY(2px);
    box-shadow: 2px 4px 4px rgb(87, 87, 87);
  }

  body.switchMode a.btn:active{
    transform: translateY(2px);
    box-shadow: 2px 4px 4px rgb(87, 87, 87);
  }


  .header_body_inner .right img{
    border-radius: 50%;
    max-width: 400px;
    max-height: 420px;
  }


  section{
    position: relative;
    padding: 20px 0;
    width: 100%;
      }

  .section_title,
  .tilte_about{
    font-weight: bold;
    color: #333;
    padding-top: 40px;
  }
  .section_title{
    font-size: 36px;
    letter-spacing: 2px;
    text-indent: 40px;
  }
  .tilte_about{
    font-size: 28px;
    padding-bottom: 20px;
    padding-top: 60px;
    text-align: center;
  }

  body.switchMode .section_title,
  body.switchMode .tilte_about,
  body.switchMode .list_skills,
  body.switchMode .list_personal{
    color: #fff;
  }

  .about_text{
    margin-top: 45px;
  }

  .about_text p{
    font-size: 20px;
    margin-bottom: 10px;
    text-align: justify;
    text-indent: 40px;
  }

  .list_skills li,
  .list_personal li{
    list-style: none;
    font-size: 20px;
    padding-bottom: 14px;
    margin-left: 40px;
  }
  .fa-check{ 
    position: relative;
    top: 5px;
    padding-right: 10px;
    color: darkcyan;
    font-size: 30px;
  }

  
  .about_text p::first-letter{
    color: darkcyan;
    font-size: 36px;
  }

  body.switchMode .about_text p{
    color: #fff;
  }

  .portfolio_items{
    margin-top: 45px;
    display: flex;
    flex-wrap: wrap;
  }

  .portfolio_items .item{
    display: block;
    position: relative;
    margin: 0 10px 15px 0;
    width: calc(100% / 3 - 10px);
  }

  .portfolio_items .item:last-child{
    margin-right: 0;
  }

  .portfolio_items .item img{
    max-width: 100%;
    border-radius: 7px;
    transition: all .5s ease;
  }

  .portfolio_items .item img:hover{
    transform: scale(105%);
  }

  .img-yet{
    /* margin-top: -54%; */
    opacity: 0;
    transition: all 1s ease;
    display: none;
  }

  img.active-yet{
    margin-top: 0;
    opacity: 1;
    transition: all 1s ease;
    display: block;
  }


.portfolio_btn{
  display: flex;
  justify-content: center;
}

.contacts_form{
  position: relative;
  max-width: 700px;
  margin: 45px auto;
  text-align: center;
}



.contacts_form form input{
  width: 100%;
  height: 70px;
  margin-bottom: 20px;
  padding: 10px 0 10px 30px;
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  border: 1px solid #333;
  border-radius:  3px;
  }

.contacts_form form textarea{
  width: 100%;
  font-size: 20px;
  border: 1px solid #333;
  border-radius:  3px;
  padding: 10px 0 10px 30px;
  font-family: "Montserrat", sans-serif;
}  

input:active {
  border: 3px solid green;
}

.contacts_form button{
  background-color:darkcyan;
  color: #fff;
  padding: 15px 30px;
  text-decoration: none;
  margin-top: 20px;
  border-radius: 5px;
  box-shadow: 3px 7px 6px #333;
  border: none;
  width: 100%;
  font-size: 18px;
}

.contacts_form button:hover{
  cursor: pointer;
}

footer{
  position: relative;
  padding: 20px 0;
  background-color: #181918;
}

footer p{
  text-align: center;
  color: #ccc;
}

.feedback{
  padding: 0 0 30px 0;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  
}

.icons{
  font-size: 50px;
  color:darkcyan;
}

.icons:hover{
  color:rgb(5, 109, 109);
}

.right{
  padding-top: 50px;
}

.btn{
  position: relative;
  overflow: hidden;
}
.btn:after {
  content: "";
  display: block;
  width: 34px;
  height: 300px;
  margin-left: 50px;
  background: #fff;
  background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.5) 0%,
      rgba(255, 255, 255, 1) 50%,
      rgba(255, 255, 255, 0.5) 100%
  );
  left: -40px;
  top: -100px;
  z-index: 1;
  transform: rotate(45deg);
  position: absolute;
  animation: movingFlare 3s ease-in-out 0.05s infinite;
}
@keyframes movingFlare {
  0% {
    left: -30px;
    margin-left: 0px;
  }
  30% {
    left: 110%;
    margin-left: 80px;
  }
  100% {
    left: 110%;
    margin-left: 80px;
  }
}
/* -------------------------- */


/*MEDIA*/

@media screen and (max-width: 960px){

  #hellopreloader_preload {
  background-size: 120px;
}
  .container {
    padding: 0 40px;
  }
  body.lock{
    overflow: hidden;
  }
  
  .title{
    margin-top: 60px;
  }

  a.btn-contacts{
    display: none;
  }

  .header_body_inner .left .title{
    max-width: 800px;
    text-align: center;
  }
  .header_body_inner{
    flex-direction: column;
    flex-wrap: wrap;
  }
  .header_body_inner .right img{
    border-radius: 10px;
    width: 100%;
    max-width: 900px;
    height: auto;
    
  }
  .left{
    padding-right: 0;
  }
  .right{
    padding-bottom: 50px;
  }
  .head_inner nav ul li a{
    font-size: 18px;
    margin: 20px 0 50px 0;
    padding: 10px 10px 10px 10px;
  }
  .logo,
  .about_text p{
    font-size: 20px;
  }
  .fa-check{ 
    padding-bottom: 8px;
    font-size: 30px;
  }
  .list_skills li,
  .list_personal li {
    padding-bottom: 5px;
    margin-left: 0;
}
  .about_text p::first-letter {
    font-size: 22px;
  }
  a.btn-media{
    display: inline-block;
    margin: 0px 0 10px 50px;
    font-size: 20px;
    margin-top: 40px;
  }
  .contacts_form button{
    font-size: 20px;
  }

  .portfolio_items .item{
    width: calc(100% / 2 - 10px);
  }
  .btn-yet{
    font-size: 20px;
  }

  

  /*Бургер меню*/
  .header__burger.active::before{
    transform: rotate(45deg);
    top: 13px;
  }
  .header__burger.active::after{
    transform: rotate(-45deg);
    bottom: 13px;
  }
  .header__burger.active span{
    transform: scale(0);
  }

  .header__burger{
    position: relative;
    top: 2px;
    z-index: 3;
    display: block;
    width: 50px;
    height: 30px;
  }

  .header__burger.active{
    overflow: hidden;
  }
  .header__burger:before,
  .header__burger:after{
    content: '';
    position: absolute;
    background-color: #fff;
    width: 100%;
    height: 2px;
    left: 0;
    transition: all 0.3s ease 0s;
  }
  .header__burger:before{
    top: 0;
    
  }
  .header__burger:after{
    bottom: 0;
    
  }
  .header__burger span{
    position: absolute;
    background-color: #fff;
    width: 100%;
    height: 2px;
    top: calc(50% - 2px);
    transition: all 0.3s ease 0s;
  }
  .header__menu{
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color:gray;
    padding-top: 90px;
    transition: all 0.3s ease 0s;
  }
.header__menu.active{
  top: 0;
  }
  .head_inner nav ul{
    display: flex;
    flex-direction: column;
  }
  .head_inner nav ul a{
    margin-bottom: 50px;
  }

}

@media screen and (max-width: 680px){

  #hellopreloader_preload {
  background-size: 100px;
}
  .container {
    padding: 0 20px;
  }
  .title {
    margin-top: 5px;
  }
  .header_body_inner .left .title {
    font-size: 23px;
  }
  .about_text p {
    font-size: 16px;
  }
  
  .logo img{
    width: 28px;
    margin-top: 9px;
  }

  .logo span{
    top: -10px;
    font-size: 14px;
    padding-left: 3px;
  }
  .header__burger {
    width: 38px;
    height: 22px;
    top: 2px;
  }

  .head_inner nav ul li a{
    margin: 0 0 50px 0;
  }
  .header_head::before {
    height: 45px;
  }
  .right {
    padding-bottom: 10px;
    padding-top: 25px;
  }
  .section_title {
    font-size: 24px;
    letter-spacing: 1px;
    padding-top: 0px;
    text-indent: 25px;
  }
  section {
    padding: 45px 0 0 0;
  }
  .about_text {
    margin-top: 10px;
  }
  .about_text p {
    margin-bottom: 15px;
    text-indent: 25px;
  }
  .tilte_about {
    font-size: 22px;
  }
  .list_skills li,
  .list_personal li {
    font-size: 16px;
    margin-left: 0;
  }
  .fa-check {
    font-size: 22px;
  }
  
  .about_text p::first-letter {
    font-size: 26px;
  }
  a.btn-media {
    display: inline-block;
    margin: 0px 0 10px 20px;
    font-size: 12px;
  }
  a.btn {
    padding: 10px 15px;
    margin-top: 20px;
  }
  .portfolio_items .item {
    width: calc(100% - 10px);
  }
  .portfolio_items {
    margin-top: 20px;
  }
  a.btn-yet {
    font-size: 12px;
    margin-top: -15px;
  }
  .contacts_form {
    margin: 20px auto;
  }
  .contacts_form form input,
  .contacts_form form textarea{
    margin-bottom: 15px;
    padding: 10px 0 10px 10px;
    font-size: 16px;
    border-radius: 4px;
  }
  .contacts_form form input{
    height: 50px;
  }
  .contacts_form button {
    padding: 10px 0px;
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 14px;
  }
  a .fab:before,
  a .fas:before{
    font-size: 33px;
  }
  
  .feedback {
    padding: 0 0 20px 0;
  }
  footer {
    padding: 12px 0;
    font-size: 12px;
  }
  
}
