@media screen and (max-width: 1440px) {
    main {
      padding: 50px 50px;
      box-sizing: border-box;
    }
    .level {
      gap: 0;
    }
    .level div:first-child div {
      width: 500px;
    }

    .hiking {
      gap: 0;
    }
    .hiking div:last-child div {
      width: 500px;
    }
    .hiking div:last-child div::before {
      transform: translate(-50%, -85%);
    }
    .timing {
      gap: 0;
    }
    .timing div:first-child div {
      width: 500px;
    }
    footer .container {
      justify-content: space-around;
    }
}

/* screen width-1000 */
@media screen and (max-width: 1000px) {
  main {
    padding: 50px 25px;
  }
  .container {
    width: 100%;
    position: relative;
  }
  header .slide {
    margin-top: 150px;
  }
  .slide-center {
    width: 100%;
  }
  .slide-center h1 {
    font-size: 62px;
  }
  header .slide .icon a:first-child {
    width: 70px;
  }
  .slide-center p {
    font-size: 16px;
  }
  /* level */
  .level {
    width: calc(100% - 66px);
  }
  .level div:first-child div {
    width: 425px !important;
  }
  .level div:first-child div::before {
    transform: translate(0, -115%);
  }
  .level div:first-child div .line {
    font-size: 15px;
    padding-left: 70px;
  }
  .level div:first-child div .line::before {
    width: 50px;
  }
  .level div:first-child div h3 {
    font-size: 52px;
  }
  .level div:first-child div p {
    font-size: 16px;
  }
  .level div:first-child div a {
    font-size: 16px;
  }
  .level-img {
    width: 400px;
    height: 500px;
  }
  /* hiking */
  .hiking {
    width: calc(100% - 66px);
    gap: 0;
  }

  .haking div:last-child {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 720px;
  }

  .hiking div:last-child div {
    width: 425px !important;
  }

  .hiking div:last-child div::before {
    transform: translate(0, -125%) !important;
  }

  .hiking div:last-child div .line {
    font-size: 15px;
    padding-left: 70px;
  }
  .hiking div:last-child div .line:before {
    width: 50px;
  }
  .hiking div:last-child div h3 {
    font-size: 52px;
  }
  .hiking div:last-child div p {
    font-size: 16px !important;
    font-weight: 700;
    line-height: 32px;
    letter-spacing: 0px;
    text-align: left;
  }
  .hiking div:last-child div a {
    font-size: 16px;
  }
  .hiking div:first-child {
    display: flex;
    justify-content: start;
    align-items: center;
    width: 100%;
  }

  .hiking-img {
    width: 400px;
    height: 500px;
  }
  /* Timing */

  .timing {
    width: calc(100% - 66px);
    gap: 0;
  }
  .timing div:first-child {
    width: 100%;
  }
  .timing div:first-child div {
    width: 425px !important;
  }
  .timing div:first-child div::before {
    transform: translate(0, -100%);
  }
  .timing div:first-child div .line {
    font-size: 15px;
    padding-left: 70px;
  }

  .timing div:first-child div .line::before {
    width: 50px;
  }
  .timing div:last-child div .line::before {
    width: 50px;
  }
  .timing div:first-child div h3 {
    font-size: 32px;
  }
  .timing div:first-child div p {
    font-size: 16px;
    width: 425px;
  }

  .timing div:first-child div a {
    font-size: 16px;
  }

  .timing-img {
    max-width: 400px;
    max-height: 500px;
  }
}

/* screen width-768 */
@media screen and (max-width: 768px) {
  .slide-center h1 {
    font-size: 42px;
  }
  main {
    padding: 50px 20px;
  }
  .level,
  .hiking,
  .timing {
    width: calc(100% - 40px);
    grid-template-columns: 1fr;
    margin: 100px 0;
    height: 100%;
  }
  .level div:first-child div::before,
  .hiking div:last-child div::before,
  .timing div:first-child div::before {
    transform: translate(-50%, -115%);
    margin-left: 50%;
  }

  .hiking {
    position: relative;
    height: 1400px;
  }

  .hiking div:last-child div::before {
    left: -18%;
  }
  .level div:last-child {
    width: auto;
  }
  .level div:first-child div,
  .hiking div:last-child div,
  .timing div:first-child div {
    width: 100% !important;
    text-align: center;
    justify-content: center;
    align-items: center;
  }
  .level div:first-child div .line::before,
  .hiking div:last-child div .line:before,
  .timing div:first-child div .line::before {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    content: "";
    width: 72px;
    height: 2px;
    background: rgba(144, 0, 0, 1);
  }
  .level div:first-child div .line,
  .hiking div:last-child div .line,
  .timing div:first-child div .line {
    text-align: center;
    position: relative;
    padding: 0;
  }

  .level div:first-child div h3,
  .hiking div:last-child div h3,
  .timing div:first-child div h3 {
    font-size: 45px;
  }
  .level div:first-child div p,
  .hiking div:last-child div p,
  .timing div:first-child div p {
    font-family: "Mariupol";
    font-size: 18px;
    font-weight: 700;
    line-height: 32px;
    letter-spacing: 0px;
    padding-right: 50px;
    text-align: center;
    width: 100% !important;
  }
  .level div:first-child div a,
  .hiking div:last-child div a,
  .timing div:first-child div a {
    position: relative;
    font-family: "Mariupol";
    font-size: 18px;
    font-weight: 700;
    line-height: 32px;
    letter-spacing: 0px;
    text-align: center;
    color: rgba(144, 0, 0, 1);
    padding-right: 50px;
  }

  .hiking div:last-child {
    position: absolute;
    top: 50px;
  }

  .level div:first-child div a::after {
    right: 0;
  }
  .hiking div:first-child {
    justify-content: center;
    position: absolute;
    bottom: 50px;
  }
  .timing div:last-child {
    width: 100%;
  }
  footer {
    justify-content: center;
  }
  footer .container {
    width: 80%;
    gap: 30px;
  }
  .first div:first-child div p {
    font-size: 16px;
  }
  ul.first-li li,
  ul.second-li {
    font-size: 16px;
  }
}

/* screen width-480 */
@media screen and (max-width: 480px) {
  nav {
    display: none !important;
  }
  .adapt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 33;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 30px;
    font-size: 25px;
    font-weight: 500;
    font-family: 'Open Sans', sans-serif;
    background: transparent url(./img/bg.png) no-repeat center;
    background-size: cover;
  }
  .adapt .menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: black!important;
    position: relative;
    z-index: 2;
  }
  .adapt .menu a {
    color: black;
    font-weight: 500;
    border: 2px solid chocolate;
    width: 480px;
    text-align: center;
    background-color: lightblue;
  }
  .adapt .account a {
    position: relative;
    color: #fff;
    text-align: center;
  }
  .adapt .account a::before {
    position: absolute;
    content: '';
    width: 25px;
    height: 25px;
    background: url(./img/icons/acc.svg) no-repeat center;
    left: -30px;
    top: 5px;
    
  }
  .close {
    position: absolute;
    top: 20px;
    right: 20px;
  }
  /* header */
  header .slide {
    justify-content: center;
    height: 100%;
    position: relative;
    transform: translateY(-25%);
  }
  header .slide .icon {
    justify-content: end;
    padding-top: 50px;
    height: 122px;
    gap: 15px;
  }
  .slide-center h1 {
    font-size: 25px;
  }
  .level div:last-child,
  .hiking div:first-child,
  .timing div:last-child {
    justify-content: center;
  }
  .hiking div:last-child div::before {
    left: -30%;
  }
  .level, .hiking, .timing {
    width: 100%;
  }
  .level div:first-child div p, .hiking div:last-child div p, .timing div:first-child div p {
    padding-right: 0;
  }
  .level div:first-child div::before, .hiking div:last-child div::before, .timing div:first-child div::before {
    transform: translate(-50%, -150%);
  }
  .hiking div:last-child div::before {
    transform: translate(0, -160%) !important;
  }
  footer {
    height: 100vh;
  }
  footer .container {
    flex-direction: column-reverse;
  }
  .second {
    flex-direction: column;
    height: 100%;
  }
  .container .first div:first-child {
    position: relative;
    top: 50px;
  }
  .container .first div:first-child a {
    position: relative;
    left: 25%;
  }
  .first div:first-child div p {
    position: relative;
    left: 7%;
  }
  .second {
    gap: 20px;
  }
  
}
