html {
  &::-webkit-scrollbar-button {
    display: none
  }

  &::-webkit-scrollbar {
    background-color: #fff;
    width: 16px
  }

  &::-webkit-scrollbar-track {
    background-color: #fff;

    &:hover {
      background-color: #f4f4f4
    }
  }

  &::-webkit-scrollbar-thumb {
    background-color: #babac0;
    border-radius: 16px;
    border: 5px solid #fff;

    &:hover {
      background-color: #a0a0a5;
      border: 4px solid #f4f4f4
    }
  }
}


header {
  width: 100%;
  position: absolute;
  z-index: 999;
  color: #fff;

  a.logo {
    position: absolute;
    left: 15px;
    top: 30px;

    img {
      max-height: 65px;
    }

    svg {
      max-height: 65px;

      &.load-draw {
      }

      &.active {
        .st1 {
          animation: draw 1s linear both;
        }

        .st2 {
          animation: draw 1s .5s linear both;
        }

        .st3 {
          animation: draw 1s 1s linear both;
        }

        .st4 {
          animation: draw 1s 1s linear both;
        }
      }
    }
  }

  ul.lang {
    @include flexbox();

    li {
      & + li {
        margin-left: 8px;
        padding-left: 8px;
        border-left: 1px solid #fff;
      }

      a {
        color: #fff;
        font-size: 13px;
        font-weight: bold;
      }
    }
  }

  .top {
    @include flexbox();
    @include justify-content(flex-end);
    padding-top: 10px;

    ul.social {
      @include flexbox();
      @include align-content(center);
      @include justify-content(center);

      li {
        a {
          color: #fff;
          font-size: .875em;
          padding: 0 8px;
          position: relative;
          transition: .3s;

          &:hover::after {
            opacity: 1
          }

          &::after {
            width: 26px;
            height: 26px;
            content: '';
            display: block;
            position: absolute;
            top: 50%;
            left: 50%;
            opacity: 0;
            transition: .3s;
            transform: translateX(-50%) translateY(-50%);
            z-index: -1;
            background: $primary;
            border: 1px solid rgba(197, 197, 197, 0.32);
            border-radius: 100%;
          }
        }
      }
    }
  }

  .bottom {
    @include flexbox();
    @include justify-content(flex-end);
    @include align-items(center);
    padding-top: 20px;

    ul.menu {
      @include flexbox();
      @include justify-content(flex-end);
      @include align-items(center);

      li {
        position: relative;

        &.dropdown_menu {
          @include breakpoint(992) {
            display: none;
          }

          ul.items {
            width: 100%;
            position: absolute;
            top: 48px;
            left: 50%;
            transform: translateX(-50%);
            opacity: 0;
            visibility: hidden;
            transition: all .5s ease;
            @include breakpoint(1200) {
              top: 44px;
            }

            li {
              transition: all .3s ease;

              &:after {
                content: unset !important;
              }

              a {
                font-size: 14px;
                color: #fff !important;
                display: block;
              }
            }
          }

          &:hover {
            ul.items {
              visibility: visible;
              opacity: 1;
            }
          }
        }

        position: relative;
        @include media-breakpoint-down(lg) {
          display: none;
        }

        &:hover::after, &.active::after {
          width: 100%;
        }

        &.active a span {
          color: #fff !important
        }

        a {
          padding: 10px 20px;
          color: #999FC5;
          font-size: 17px;
          position: relative;
          display: block;
          @include media-breakpoint-between(md, xxl) {
            font-size: 15px;
          }
          @include media-breakpoint-between(xl, xxl) {
            padding: 10px 15px;
          }
          @include media-breakpoint-down(xl) {
            padding: 10px 12px;
          }

          span {
            font-weight: 500;
            color: #999FC5;
          }

          &:hover {
            color: #fff;
          }
        }

        &::after {
          transition: .2s linear;
          background: $secondary;
          height: 2px;
          width: 0;
          display: block;
          content: '';
          bottom: 0;
          margin: 0 auto;
        }

        &.mobile {
          display: none;
          @include media-breakpoint-down(lg) {
            display: block;
          }

          button {
            position: relative;
            width: 40px;
            padding: 0;

            span {
              display: block;
              width: 100%;
              box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.3);
              border-radius: 3px;
              height: 3px;
              background: #fff;
              transition: all .3s;
              position: relative;

              & + span {
                margin-top: 8px;
              }
            }

            &.active {
              span:nth-child(1) {
                animation: ease .7s top forwards;
              }

              span:nth-child(2) {
                animation: ease .7s scaled forwards;
              }

              span:nth-child(3) {
                animation: ease .7s bottom forwards;
              }
            }

            &.not-active {
              span:nth-child(1) {
                animation: ease .7s top-2 forwards;
              }

              span:nth-child(2) {
                animation: ease .7s scaled-2 forwards;
              }

              span:nth-child(3) {
                animation: ease .7s bottom-2 forwards;
              }
            }
          }
        }
      }
    }

    .search, .offer-btn, ul.lang {
      position: relative;
      top: -3px;
    }

    .offer-btn {
      @include media-breakpoint-down(xl) {
        display: none;
      }
    }

    .search {
      width: 32px;
      height: 32px;
      @include media-breakpoint-down(xl) {
        display: none;
      }
    }

    ul.lang {
      @include media-breakpoint-down(xl) {
        top: -2px;
      }
      @include media-breakpoint-down(lg) {
        display: none;
      }
    }
  }
}


footer {
  width: 100%;
  padding: 60px 0 25px;
  background: url('/assets/images/footerbg.png.webp') no-repeat top -150px center;
  background-size: 100% auto;
  @include media-breakpoint-down(lg) {
    background: url('/assets/images/footerbg.png.webp') no-repeat top center;
    background-size: cover;
  }

  .top {
    @include flexbox();
    @include align-items(center);
    @include flex-direction(column);

    .logo {
      margin-bottom: 25px;
    }

    p {
      width: 65%;
      margin-bottom: 25px;
      text-align: center;
      font-size: 13px;
      color: #A2B5BC;
      @include media-breakpoint-down(sm) {
        display: none;
      }
    }

    ul.social {
      @include flexbox();
      @include align-content(center);
      @include justify-content(center);

      li {
        a {
          color: rgba(#fff, .7);
          font-size: 18px;
          padding: 0 18px;
          position: relative;
          transition: .3s;

          &:hover {
            color: #fff;
          }
        }
      }
    }
  }

  .menu {
    @include breakpoint(xs) {
      text-align: center;
      & + .menu {
        margin-top: 30px;
      }
    }

    .title {
      font-weight: bold;
      font-size: 17px;
      color: #fff;

    }

    ul {
      margin-top: 35px;
      @include media-breakpoint-down(sm) {
        margin-top: 15px;
      }
      @include media-breakpoint-down(xs) {
        @include flexbox();
        @include justify-content(center);
        @include align-items(center);
        @include flex-direction(column);
      }

      li {
        margin-bottom: 5px;

        &:not(.article):not(.contact) a {
          @include text-clamp(1);
        }

        &.article {
          margin-bottom: 10px;

          a {
            @include text-clamp(2);
          }
        }

        &.contact {
          @include flexbox();
          font-size: 12px;
          margin-bottom: 15px;
          color: #fff;

          .left {
            flex: 0 0 auto;
            width: 20px;
          }

          a {
            color: #fff;
          }
        }

        a {
          color: #C3C5CE;

          &:hover {
            color: #fff !important;
          }
        }
      }
    }
  }

  .copyr {
    .right {
      @include flexbox();
      @include justify-content(flex-end);

      ul {
        @include flexbox();
        @include align-items(center);

        li {
          margin-left: 20px;

          a {
            color: #fff;
            font-size: 12px;
          }
        }
      }
    }
  }
}

.dot-pattern {
  background: url('/assets/images/dot-pattern.png.webp') repeat;
}