@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&family=Playfair+Display:wght@600;700&display=swap");

:root {
  --white: #fff;

  --orange-acent: #dd9428;

  --brown-text: #311;
  --black-text: #000;
  --grey-text: #90a4b2;

  --background-grey: #f8f8f8;
  --background-blue: #023080;
  --background-lightblue: #aeaeae;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--background-lightblue);
  overflow: hidden;
  font-family: "Montserrat", sans-serif;
}

/* non active menu */
.header_nav_burger {
  position: relative;
  float: right;
  top: 2rem;
  right: 7rem;
  width: 30px;
  height: 30px;
  position: relative;
  z-index: 11111;
  overflow: hidden;
  cursor: pointer;
}

.header_nav_burger span {
  width: 30px;
  height: 2px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--white);
  transition: all 0.5s;
}

.header_nav_burger.noactive {
  display: none;
}

.header_nav_burger span:nth-of-type(2) {
  top: calc(40% - 5px);
}
.header_nav_burger span:nth-of-type(3) {
  top: calc(60% + 5px);
}

.header_nav_burger:hover {
  filter: invert(20%);
}

/* active menu */
.header_nav_burger.active span:nth-of-type(1) {
  display: none;
}
.header_nav_burger.active span:nth-of-type(2) {
  top: 50%;
  transform: translate(-50%, 0%) rotate(45deg);
  background-color: #000;
}
.header_nav_burger.active span:nth-of-type(3) {
  top: 50%;
  transform: translate(-50%, 0%) rotate(-45deg);
  background-color: #000;
}

/* active menu */
.menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  z-index: 1000;
}

.menu__aside {
  position: absolute;
  background-color: #fff;
  width: 25%;
  height: 100%;
  right: -100%;
  top: 0;
  transition: right 0.5s ease;
  z-index: 1000;
}

.kol {
  right: 0%;
}

.menu__aside__title {
  text-align: center;
  margin-top: 2.4rem;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.menu__aside__links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.menu__aside__link__item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
  color: #000;
  transition: 333ms;
  text-align: center;
  width: 100%;
  height: 3rem;
}

.menu__aside__link__item:hover {
  background-color: #03a9f4;
  color: #fff;
}

/* slaider */
.container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  padding: 50px;
  background-color: #f5f5f5;
  box-shadow: 0 30px 50px #dbdbdb;
}

#slider {
  width: max-content;
  margin-top: 50px;
}

.item {
  width: 200px;
  height: 300px;
  background-position: 50% 50%;
  display: inline-block;
  transition: 0.5s;
  background-size: cover;
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
  border-radius: 20px;
  box-shadow: 0 30px 50px #505050;
}

.item:nth-child(1),
.item:nth-child(2) {
  left: 0;
  top: 0;
  transform: translate(0, 0);
  border-radius: 0;
  width: 100%;
  height: 100%;
  box-shadow: unset;
}

.item:nth-child(3) {
  left: 50%;
}

.item:nth-child(4) {
  left: calc(50% + 220px);
}

.item:nth-child(5) {
  left: calc(50% + 440px);
}

.item:nth-child(n + 6) {
  left: calc(50% + 660px);
  opacity: 0;
}

.item .content {
  position: absolute;
  top: 50%;
  left: 100px;
  width: 300px;
  text-align: left;
  padding: 0;
  color: #eee;
  transform: translate(0, -50%);
  display: none;
  font-family: Montserrat;
}

.item:nth-child(2) .content {
  display: block;
  z-index: 1000;
}

.item .name {
  font-family: Montserrat;
  font-size: 2rem;
  font-weight: 400;
  line-height: 2rem;
  text-decoration: none;
  opacity: 0;
  animation: showcontent 1s ease-in-out 1 forwards;
}

.item .des {
  font-family: Montserrat;
  font-size: 1rem;
  font-weight: 400;
  line-height: 2rem;
  text-decoration: none;
  margin: 20px 0;
  opacity: 0;
  animation: showcontent 1s ease-in-out 0.3s 1 forwards;
}

.item button {
  padding: 15px 25px;
  border: 1px solid var(--white);
  font-family: Montserrat;
  font-size: 1rem;
  background: none;
  color: var(--white);
  border-radius: 1rem;
  opacity: 0;
  animation: showcontent 1s ease-in-out 0.6s 1 forwards;
  transition: 333ms ease-in-out;
}

.item button:hover {
  background-color: var(--white);
  color: var(--black-text);
  cursor: pointer;
}

@keyframes showcontent {
  from {
    opacity: 0;
    transform: translate(0, 100px);
    filter: blur(33px);
  }
  to {
    opacity: 1;
    transform: translate(0, 0);
    filter: blur(0);
  }
}

.buttons {
  position: absolute;
  bottom: 30px;
  z-index: 222222;
  text-align: center;
  width: 100%;
}

.buttons button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  transition: 0.5s;
}

#prev:hover,
#next:hover {
  filter: invert(100%);
  cursor: pointer;
}

@media (max-width: 1440px) {
  .menu__aside {
    width: 30%;
  }

  .header_nav_burger {
    right: 5rem;
  }
}

@media (max-width: 915px) {
  .item:nth-child(5) {
    display: none;
  }

  .item:nth-child(n + 6) {
    display: none;
  }

  .menu__aside {
    width: 40%;
  }

  .header_nav_burger {
    right: 5rem;
  }
}

@media (max-width: 820px) {
  .item:nth-child(3) {
    margin-left: 8rem;
  }
  .item:nth-child(4) {
    display: none;
  }

  .menu__aside {
    width: 50%;
  }

  .header_nav_burger {
    right: 3rem;
  }
}

@media (max-width: 575px) {
  .item .content {
    left: 50px;
  }

  .menu__aside {
    width: 60%;
  }

  .header_nav_burger {
    right: 3rem;
  }
}

@media (max-width: 475px) {
  .item .content {
    left: 25px;
  }

  .item .name {
    font-size: 1.6rem;
  }

  .item .des {
    font-size: 0.8rem;
  }
  .menu__aside {
    width: 80%;
  }

  .header_nav_burger {
    right: 3rem;
  }
}
