h2 {
  width: 100%;
  font-weight: 600;
  font-size: 48px;
  line-height: 64px;
  text-align: center;

  @media (max-width: 992px) {
    font-size: 32px;
    line-height: 100%;
  }

  @media (max-width: 480px) {
    font-size: 24px;
  }
}

.go-over {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: max-content;
  gap: 24px;
  border-radius: 12px;
  padding: 20px 32px;
  color: #fff;
  transition: .4s all linear;
  background-color: var(--primary-blue);

  span {
    color: #fff;
    font-weight: 500;
    font-size: 24px;
    line-height: 32px;
  }
}

.go-over:hover {
  transition: .3s all linear;
  background-color: var(--light-blue);
}

.contact {
  display: flex;
  align-items: center;
  background-color: var(--primary-blue);
  border-radius: 8px;
  padding: 12px 16px;
  gap: 12px;
  cursor: pointer;
  transition: .3s all linear;

  span {
    color: #fff;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
  }

  @media (max-width: 992px) {
    display: none;
  }
}

#contact {
  @media (max-width: 992px) {
    display: flex;
    width: 100%;
    justify-content: center;
  }

  @media (min-width: 992px) {
    display: none;
  }
}

.contact:hover {
  transition: .3s all linear;
  background-color: var(--light-blue);
}

header {
  padding: 18px 0;

  .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo-wrapper {
    transition: .2s all linear;

    @media (max-width: 992px) {
      width: 126px;
      height: 14px;
    }
  }

  .logo-wrapper:hover {
    transform: scale(1.05);
    transition: .3s all linear;
  }

  .burger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 6px;

    @media (max-width: 992px) {
      display: flex;
    }
  }

  .burger-menu span {
    width: 16px;
    height: 2px;
    background-color: var(--text-color);
    transition: .2s all linear;
  }

  .burger-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .burger-menu.active span:nth-child(2) {
    opacity: 0;
  }

  .burger-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  nav {
    position: relative;
    transition: all .5s ease;

    @media (max-width: 992px) {
      position: fixed;
      top: 0;
      right: -100%;
      width: 100%;
      height: 100vh;
      transition: all .5s ease;
      z-index: 2;
    }


    @media (min-width: 992px) {
      background-color: transparent !important;
    }

    &.active {
      right: 0;
    }

    ul {
      display: flex;
      align-items: center;
      gap: 32px;

      @media (max-width: 992px) {
        position: absolute;
        height: 100vh;
        flex-direction: column;
        gap: 24px;
        right: 0;
        padding: 20px;
        align-items: start;
        background-color: #fff;
        width: 84%;
      }

      .close-btn {
        display: none;
        cursor: pointer;
        margin-bottom: 30px;
        pointer-events: all;
        align-self: flex-end;

        @media (max-width: 992px) {
          display: flex;
        }
      }

      hr {
        display: none;
        height: 1px;
        width: 120%;
        margin-left: -20px;
        background-color: var(--light-gray-text);

        @media (max-width: 992px) {
          display: block;
        }
      }

      li {
        position: relative;
        text-decoration: none;
        display: flex;
        align-items: center;
        padding: 10px 0;
        gap: 12px;
        cursor: pointer;
        transition: .4s ease all;

        @media (max-width: 992px) {
          padding: 0;
        }

        &.active {
          border-bottom: 2px var(--gray-text) solid;

          @media (max-width: 992px) {
            border-bottom: 1px var(--gray-text) solid;
          }
        }

        a {
          font-weight: 400;
          font-size: 14px;
          line-height: 20px;
        }

      }

      li:after {
        content: "";
        display: block;
        position: absolute;
        right: 0;
        bottom: -1px;
        width: 0;
        height: 1px;
        background-color: var(--gray-text);
        transition: width 0.3s ease-out;

        @media (max-width: 992px) {
          height: 1px;
          bottom: -1.5px;
        }
      }

      li:hover:after {
        content: "";
        width: 100%;
        display: block;
        position: absolute;
        left: 0;
        bottom: -1px;
        height: 1px;
        background-color: var(--gray-text);
        transition: width 0.3s ease-out;

        @media (max-width: 992px) {
          height: 1px;
          bottom: -1.5px;
        }
      }
    }
  }
}

.items {
  width: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;

  @media (max-width: 1450px) {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 250px;
    justify-content: center;
  }

  @media (max-width: 992px) {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
  }

  @media (max-width: 768px) {
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
  }

  .item-wrapper {
    position: relative;
    width: 360px;
    height: 360px;
    border: 1px var(--gray-text) solid;
    background-color: #fff;
    border-radius: 12px;

    .item {
      height: 100%;
      position: inherit;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      border-radius: 12px;
      background:
        linear-gradient(180deg, rgba(0, 115, 185, 0.12) 0%, rgba(255, 255, 255, 0.12) 64%);
      padding: 20px;
      border: 4px #fff solid;

      .picture {
        position: absolute;
        top: 3%;
        right: 3px;
      }

      h3 {
        font-weight: 500;
        font-size: 16px;
        line-height: 24px;
      }

      span {
        font-weight: 400;
        font-size: 14px;
        line-height: 20px;
      }
    }
  }
}

.contact-background {
  width: 100%;
  height: 600px;
  margin-bottom: 200px;
  background: url(../images/background.png) no-repeat;
  background-position: center;
  background-size: cover;

  @media (max-width: 992px) {
    background: #fff;
  }

  .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 600px;
    background: linear-gradient(90deg, rgba(6, 115, 183, 0.8) 20%, rgba(6, 115, 183, 0.2) 50%, rgba(6, 115, 183, 0.8) 80%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.64) 0%, rgba(0, 0, 0, 0) 100%);

    @media (min-width: 992px) {
      max-width: 100%;
    }

    @media (max-width: 992px) {
      background: none;
    }
  }


  h2 {
    color: #fff;
    margin-bottom: 16px;

    @media (max-width: 992px) {
      color: var(--text-color);
      margin-bottom: 64px;
    }
  }

  p {
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 64px;
    text-align: center;
    color: #fff;

    @media (max-width: 992px) {
      margin-bottom: 24px;
      color: var(--text-color);
      text-align: start;
    }
  }

  .input-wrapper {
    display: flex;
    flex-direction: column;
    justify-self: center;
    width: 488px;
    gap: 16px;

    @media (max-width: 992px) {
      width: 100%;
    }

    input,
    textarea {
      padding: 12px 16px;
      border-radius: 8px;
      font-weight: 400;
      font-size: 14px;
      line-height: 20px;
      resize: none;
      border: 1px var(--light-gray-text) solid;
    }

    input::placeholder,
    textarea::placeholder {
      color: var(--text-color);
    }

    textarea {
      height: 88px;
    }

    .btn {
      background-color: var(--primary-blue);
      color: #fff;
      border-radius: 12px;
      padding: 12px;
      font-weight: 400;
      font-size: 14px;
      line-height: 20px;
    }
  }
}

footer {
  padding: 80px 0;
  background-color: var(--text-color);

  .container {
    display: flex;
    gap: 412px;

    @media (max-width: 1450px) {
      gap: 0;
      justify-content: space-between;
    }

    @media (max-width: 992px) {
      flex-direction: column;
      gap: 100px;
    }

    nav {
      display: flex;
      align-items: center;
      height: 100%;
      gap: 48px;

      @media (max-width: 992px) {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
      }

      ul {
        display: flex;
        align-items: center;
        gap: 32px;

        @media (max-width: 992px) {
          flex-direction: column;
          align-items: flex-start;
          gap: 0;
        }

        li {
          display: flex;
          gap: 12px;
          padding: 12px 0;

          a {
            color: #fff;
            font-weight: 400;
            font-size: 14px;
            line-height: 20px;
          }
        }
      }
    }

    .contact-phone {
      display: flex;
      flex-direction: column;
      gap: 24px;

      ul {
        display: flex;
        flex-direction: column;
        gap: 4px;

        li,
        address,
        a {
          font-weight: 500;
          font-size: 16px;
          line-height: 24px;
          color: #fff;

          &.title {
            font-weight: 400;
            font-size: 14px;
            line-height: 20px;
            letter-spacing: 0%;
            color: var(--light-gray-text);
          }
        }
      }
    }
  }
}

.product {
  display: flex;
  flex-direction: column;
  gap: 16px;

  .picture-wrapper {
    cursor: pointer;
    background-color: var(--background-color);

    img {
      overflow: hidden;
      object-fit: cover;
      object-position: center;
      transition: .4s;
    }
  }

  .picture-wrapper:hover {
    img {
      transform: scale(1.2);
      transition: .4s;
    }
  }

  .text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;

    .price {
      font-weight: 500;
      font-size: 24px;
      line-height: 32px;
    }

    .serial-number {
      font-weight: 500;
      font-size: 14px;
      line-height: 20px;
    }

    .description {
      font-weight: 400;
      font-size: 14px;
      line-height: 20px;
    }
  }
}