@import url('https://fonts.googleapis.com/css2?family=Rajdhani&family=Teko:wght@300&display=swap');
html {
    scroll-behavior: smooth;
  }
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rajdhani', sans-serif;
}
/* Навбар */
.skew-menu{
    width: 100%;
    text-align: center;
    animation: skew__navbar 0.2s linear forwards;
    display: flex;
    position: fixed;
    top: 10px;
    z-index: 5;
    justify-content: center;
}
.skew__menu__container ul{
    justify-content: center;
    display: flex;
    list-style: none;
    transform: skewX(-25deg);
    flex-wrap: nowrap;
}
.skew-menu ul li:first-child{
      border-radius: 8px 0 0 8px;
      border-left: #8CF4FF 4px solid;
      border-bottom:#8CF4FF 4px solid ;
      box-shadow: #24272a 0 0 10px;
  }
.skew-menu ul li:last-child{
      border-radius: 0 8px 8px 0;
      border-right: #8CF4FF 4px solid;
      border-bottom:#4c5862  4px solid ;
      box-shadow: #24272a 0 0 10px;
  }
.skew-menu ul li:nth-child(3):hover{
    border-bottom: #8CF4FF 4px solid;
}
.skew-menu ul li:nth-child(2):hover{
    border-bottom: #8CF4FF 4px solid;
}
.skew-menu ul li {
    font-weight: 700;
    font-size: 16px;
    margin-right: 5px;
    letter-spacing: 2px;
    background: transparent;
    float: left;
    text-transform: uppercase;
    color: rgb(160, 158, 158);
    background-color: #24272a;
}
  .skew-menu ul li:hover{
      background-color: #3C464F;
      color: #8CF4FF;
  }
  .skew-menu ul li a {
      display: block;
      padding: 20px 30px;
      color: inherit;
      text-decoration: none;
      transform: skew(25deg);
} 
/* Анимация навбар */
@keyframes skew__navbar{
    0%{
        transform: scale(0);
    }
    100%{
        transform: scale(1);
    }
}
/* section */
section.allcont{
    width: 100%;
    height: 100vh;
    background-image: url(../img/1781.jpg);
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* разделяю section на grid */
.about__container{
    width: 80%;
    height: 60vh;
}
.grid__about{
    height: 100%;
    display: grid;
    grid-template: repeat(3,1fr)/repeat(2,1fr);
    box-shadow: black 0 0 30px;
}
.item{
        color: gold;
    font-weight: 900;
    background-color: rgba(88, 114, 139, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
}



/* MEDIA */
@media screen{
    @media(min-width: 768px){
        .hamburger-menu{
            display: none;
        }
        .item{
            font-size: 2em;
        }
    }
    @media(max-width: 768px){
        .item{
            font-size: 2em;
        }
        /* NAVBaR */
        .skew-menu ul li {
            font-size: 15px; 
          }
        .skew-menu ul li a {
            padding: 16px 24px;
      } 
      .hamburger-menu{
        display: none;
    }
    }
    @media(max-width: 580px){
        .item{
            font-size: 1.5em;
        }
        .hamburger-menu{
            display: none;
        }
        .skew-menu ul li {
            font-size: 14px; 
          }
        .skew-menu ul li a {
            padding: 16px 18px;
      }
    }
    @media(max-width: 480px){
        .item{
            font-size: 1em;
        }
        .hamburger-menu{
            display: block;
        }
        nav.skew-menu{
            display: none;
        }
    }
}
/* BURGER!!! */
#menu__toggle {
    opacity: 0;
  }
  
  #menu__toggle:checked ~ .menu__btn > span {
    transform: rotate(45deg);
  }
  #menu__toggle:checked ~ .menu__btn > span::before {
    top: 0;
    transform: rotate(0);
  }
  #menu__toggle:checked ~ .menu__btn > span::after {
    top: 0;
    transform: rotate(90deg);
  }
  #menu__toggle:checked ~ .menu__box {
    visibility: visible;
    left: 0;
  }
  
  .menu__btn {
    display: flex;
    align-items: center;
    position: fixed;
    top: 20px;
    left: 20px;
  
    width: 40px;
    height: 40px;
  
    cursor: pointer;
    z-index: 1;
  }
  
  .menu__btn > span,
  .menu__btn > span::before,
  .menu__btn > span::after {
    display: block;
    position: absolute;
  
    width: 100%;
    height: 2px;
  
    background-color: #8CF4FF;
  
    transition-duration: .25s;
  }
  .menu__btn > span::before {
    content: '';
    top: -8px;
  }
  .menu__btn > span::after {
    content: '';
    top: 8px;
  } 
.menu__box {
    display: block;
    position: fixed;
    visibility: hidden;
    top: 0;
    left: -100%; 
    width: 300px;
    height: 100%; 
    margin: 0;
    padding: 80px 0;  
    list-style: none;  
    background-color: rgba(49, 49, 49, 0.8);
    box-shadow: 1px 0px 6px rgba(0, 0, 0, .2);
    transition-duration: .25s;
  }
  
  .menu__item {
    display: block;
    padding: 12px 24px;
  
    color: #CFD8DC;
  
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: 600;
  
    text-decoration: none;
  
    transition-duration: .25s;
  }
  .menu__item:hover {
    background-color: #233335;
  }
  .hamburger-menu{
    z-index: 999;
    position: absolute;
  }

/* preload ***************************************/
.preloader{
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  background: black;
  z-index: 1000;
  opacity: 1;
  visibility: visible;
  justify-content: center;
  align-items: center;
  display: flex;
}

.circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  animation: rotate 2.5s linear infinite;
}
.circle2 {
  box-shadow: 0px 5px 5px 3px #ff6004;
}
@keyframes rotate {
  100%{
      transform: rotate(360deg);
  }
}
/* когда preload кончит */
.done{
  opacity: 0;
  visibility: hidden;
}

