.header {
  background: #ffffff;
  z-index: 999;
  min-height: 92px;
  padding-bottom: 40px;

  .col-lg-1 a {
    @media (max-width: 992px) {
      margin: 0 auto;
    }
  }

  @media (max-width: 768px) {
    margin-bottom: 40px;

    .header-menu-top,
    .header-menu-bottom,
    .col-lg-1 {
      display: none !important;
    }

    .header-menu-mobile {
      display: flex;
    }
  }

  .header-menu-mobile {
    z-index: 999;
    background: #003274;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 92px;
    display: none;
    justify-content: space-between;
    align-items: center;

    .header-menu-mobile__logo {
      height: 100%;
      width: 123px;
      margin-left: 30px;
      background: url("../img/mobile-logo.svg") no-repeat center;
    }

    .header-menu-mobile__full {
      display: none;
    }

    .header-menu-mobile__button {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      height: 92px;
      width: 92px;

      &._active {
        span {
          width: 30px !important;

          &:first-child {
            transform: rotate(45deg) translateY(5px);
          }

          &:last-child {
            margin-left: 0;
            transform: rotate(-45deg) translateY(-5px);
          }
        }

        + div {
          padding-left: 20px;
          height: 92px;
          display: flex;
          align-items: center;
          position: fixed;
          top: 0;
          left: 0;

          .mobile__full-lang {
            margin-right: 35px;

            .mobile__full-lang_ru {
              font-weight: 350;
              font-size: 16px;
              line-height: 21px;
              color: #ffffff;
              padding-right: 5px;
              border-right: 1px solid #ffffff;
            }

            .mobile__full-lang_en {
              font-weight: 350;
              font-size: 16px;
              line-height: 21px;
              color: #ffffff;
              padding-left: 5px;
            }
          }

          .mobile__full-feedback {
            font-weight: 350;
            font-size: 16px;
            line-height: 21px;
            text-decoration: underline;
            color: #ffffff;
          }
        }
      }

      span {
        display: block;
        height: 2px;
        background: #ffffff;
        transition: 0.3s ease;

        &:first-child {
          width: 22px;
          margin-bottom: 6px;
        }

        &:last-child {
          margin-left: 8px;
          width: 30px;
        }
      }
    }

    .header-menu-mobile__more {
      overflow-y: scroll;
      background: #ffffff;
      padding: 30px 20px 150px;
      position: fixed;
      top: 0;
      left: 0;
      margin-top: 92px;
      height: 100%;
      width: 100%;
      visibility: hidden;
      opacity: 0;
      transition: 0.3s ease;

      &._active {
        visibility: visible;
        opacity: 1;
      }

      .mobile__more-search {
        width: 100%;
        padding: 15px 0 15px 22px;
        font-size: 16px;
        line-height: 21px;
        color: #000000 !important;
        border: 1px solid #dcddde;
        position: relative;

        &::before {
          content: "";
          position: absolute;
          top: 0;
          right: 0;
          width: 40px;
          height: 100%;
          background: url("../img/search-loupe.svg") no-repeat center;
        }

        &::-webkit-input-placeholder {
          color: #cccdcf;
        }

        &:-moz-placeholder {
          color: #cccdcf;
        }
      }

      .mobile__more-list {
        margin-top: 40px;

        .mobile__more-list__item {
          a {
            position: relative;
            padding: 15px 0;
            display: block;
            font-size: 15px;
            font-weight: 700;
            line-height: 19px;
            color: #003274;
            border-bottom: 1px solid #f9f9f9;

            &::before {
              transition: 0.3s ease;
              content: "";
              position: absolute;
              top: 0;
              right: 0;
              width: 14px;
              height: 100%;
              background: url("../img/arrow-half.svg") no-repeat center;
            }
          }

          ._inner-list {
            display: none;

            ._inner-list__item {
              a {
                display: block;
                padding: 15px 0;
                font-weight: 350;
                font-size: 15px;
                line-height: 22px;
                color: #292929;
                border-bottom: 1px solid #f9f9f9;

                &::before {
                  content: initial;
                }
              }
            }

            &._active {
              display: block;
            }
          }

          &._active {
            a::before {
              transform: rotate(90deg);
            }
          }
        }
      }

      .mobile__more-switch {
        margin-top: 50px;
        display: inline-block;
        font-weight: 700;
        line-height: 21px;
        color: #6dacde;
        padding: 20px 50px;
        border: 2px solid #6dacde;
      }
    }
  }

  .header-full {
    background: #ffffff;
    z-index: 99;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s ease;

    overflow-y: scroll;
    height: 100%;

    &._active {
      visibility: visible;
      opacity: 1;
    }

    .header-full__close {
      z-index: 999;
      cursor: pointer;
      position: absolute;
      top: 0;
      right: 0;
      padding: 50px;

      span {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: block;
        height: 20px;
        width: 2px;
        background: #003274;
        transition: 0.3s ease;

        &:first-child {
          transform: translate(-50%, -50%) rotate(-45deg);
        }

        &:last-child {
          transform: translate(-50%, -50%) rotate(45deg);
        }
      }

      &:hover {
        span {
          &:first-child {
            transform: translate(-50%, -50%) rotate(45deg) scale(1.25);
          }

          &:last-child {
            transform: translate(-50%, -50%) rotate(-45deg) scale(1.25);
          }
        }
      }
    }

    .header-full__items {
      .full__items-col {
        display: flex;
        justify-content: space-between;

        .full__items-col__block {
          flex: 0 1 33.3333%;
          display: flex;
          flex-direction: column;
          padding: 30px 0;

          .col__block-heading {
            text-transform: uppercase;
            display: inline-block;
            margin-top: 30px;
            font-weight: 700;
            font-size: 16px;
            line-height: 21px;
            color: #003274;

            &:first-child {
              margin-top: 0;
            }
          }
          .col__block-list {
            max-width: 320px;
            margin-top: 15px;

            li {
              a {
                font-weight: 350;
                font-size: 14px;
                line-height: 18px;

                color: #292929;
                display: inline-block;
                padding: 5px 0;
              }
            }
          }
        }
      }
    }
  }

  .up-button {
    opacity: 0;
    position: fixed;
    z-index: 97;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border: 2px solid #003274;
    transition: 0.3s ease;
    transform: translateY(10px);

    &._active {
      opacity: 1;
      transform: translateY(0);
    }

    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      width: 100%;
      transform: rotate(-90deg);
      background-repeat: no-repeat;
      background-position: center;
      background-image: url("../img/index-arrow-active.svg");
    }

    &:hover {
      border: 2px solid #b1c72e;
      background: #b1c72e;

      &::before {
        transform: rotate(90deg);
        background-image: url("../img/index-arrow.svg");
      }
    }
  }

  .header-menu-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    font-weight: 300;

    > * {
      flex: 1 1 auto;
    }

    .header-menu-top__list {
      display: flex;
      text-decoration: underline;

      li {
        flex: 1 1 auto;

        a {
          text-align: center;
          padding: 19px 0 26px;
          display: block;

          &:hover {
            color: #003274;
          }
        }

        &:first-child a {
          padding-left: 0;
        }
      }
    }

    .header-menu-top__link {
      display: flex;
      justify-content: flex-end;
      text-align: center;
      padding: 19px 0 26px;
      text-decoration: underline;

      &:hover {
        color: #003274;
      }

      @media (max-width: 992px) {
        justify-content: flex-start;
        padding: 19px 7px 26px;
      }
    }

    .header-menu-top__lang {
      width: 40px;
      display: flex;
      justify-content: flex-end;

      a {
        display: block;
        padding: 19px 7px 26px;

        &:first-child {
          position: relative;

          &::before {
            content: "";
            position: absolute;
            top: 45%;
            right: 0;
            transform: translateY(-50%);
            height: 11px;
            width: 1px;
            background: #1a1a1a;
          }
        }
      }
    }
  }

  .header-menu-bottom {
    background: #003274;

    &._active {
      position: fixed;
      top: 0;
      left: 50%;
      min-width: 850px;
      width: 100%;
      transform: translateX(-50%);
      z-index: 98;

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

      .header-menu-bottom__list {
        max-width: 1100px;
        margin: 0 auto;
      }
    }

    .header-menu-bottom__list {
      display: flex;

      @media (max-width: 992px) {
        li a {
          font-size: 13px;
        }
      }

      li {
        flex: 1 1 auto;

        &:first-child {
          width: 40px;
          cursor: pointer;
          display: flex;
          justify-content: center;
          align-items: center;
          transition: 0.3s ease;

          .header-menu-bottom__burger {
            span {
              display: block;
              height: 2px;
              background: #ffffff;
              transition: 0.3s ease;

              &:first-child {
                width: 22px;
              }

              &:last-child {
                margin-top: 6px;
                width: 30px;
              }
            }
          }

          &:hover {
            background: #b1c72e;

            .header-menu-bottom__burger {
              span {
                width: 30px !important;
              }
            }
          }
        }

        a {
          text-align: center;
          color: #ffffff;
          display: block;
          padding: 23px 0;
          font-weight: 700;
          transition: 0.3s ease;

          &:hover {
            text-decoration: underline;
            background: #b1c72e;
          }
        }

        &:last-child {
          width: 40px;
          display: flex;
          justify-content: center;
          align-items: center;
          cursor: pointer;
          transition: 0.3s ease;

          &:hover {
            background: #b1c72e;
          }

          .header-menu-bottom__search {
            height: 24px;
            width: 24px;
            background: url("../img/search-loupe.svg") no-repeat center;
          }
        }
      }
    }
  }
}
