/* header.style.css */

header {
  backdrop-filter: blur(5px);
  z-index: 1000;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;

  .cont {
    padding: 44px 20px;
    max-width: 1224px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    margin: 0 auto;
    justify-content: space-between;
    align-items: center;

    .navigation {
      display: flex;
      column-gap: 55px;

      a {
        text-transform: uppercase;

        &:first-child {
          margin-left: 0;
        }
      }

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

    .logo {
      display: flex;
      justify-content: flex-start;
      align-items: center;
    }

    .lang-switcher {
      display: flex;
      column-gap: 10px;
      align-items: center;
      justify-content: flex-end;

      a {
        opacity: 0.65;
        text-transform: uppercase;
        font-size: 14px;

        &.active {
          opacity: 1;
          text-decoration: underline;
        }
      }

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

    .mobile-menu-btn {
      position: fixed;
      right: 20px;
      z-index: 3;
      width: 23px;
      height: 23px;
      display: none;
      cursor: pointer;
      background: none;
      border: none;
      padding: 0;

      span {
        background-color: #fff;
        height: 5px;
        position: absolute;
        transition: all ease-in-out 0.4s;
      }

      #top-left {
        width: 5px;
      }

      #top-right {
        width: 15px;
      }

      #center-left {
        width: 5px;
      }

      #center-right {
        width: 9px;
      }

      #bottom-left {
        width: 5px;
      }

      #bottom-right {
        width: 5px;
      }

      #top-left,
      #top-right {
        top: 0;
      }

      #top-left {
        right: 18px;
      }

      #center-left,
      #center-right {
        top: 9px;
      }

      #bottom-left,
      #bottom-right {
        bottom: 0;
      }

      #top-right,
      #center-right,
      #bottom-right,
      #bottom-left {
        right: 0;
      }

      #center-left {
        left: 6px;
      }

      &.open {
        #top-right,
        #center-right {
          width: 5px;
        }

        #center-right,
        #center-left {
          right: 9px;
          left: unset;
        }

        #bottom-left {
          right: 18px;
        }

        #center-left {
          left: 9px;
        }
      }

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

    .mobile-menu {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      padding: 96px 0;
      background:
        radial-gradient(
          59.78% 25.3% at 50% 50%,
          rgba(225, 104, 154, 0.15) 0%,
          rgba(141, 162, 243, 0.063) 49.1%,
          rgba(23, 23, 23, 0) 100%
        ),
        rgba(13, 13, 13, 0.95);
      box-shadow: inset 2px 2px 5px rgba(255, 255, 255, 0.15);
      backdrop-filter: blur(15px);
      z-index: 2;
      position: fixed;
      height: 100vh;
      width: 295px;
      top: 0;
      right: 0;
      bottom: 0;
      transform: translateX(100%);
      transition: transform ease 0.4s;

      &.open {
        transform: translateX(0);
      }

      .navigation {
        display: flex;
        flex-direction: column;
        align-items: center;

        a {
          margin-left: 0;
          margin-bottom: 28px;
        }
      }

      .header-contacts {
        display: flex;
        flex-direction: column;
        align-items: center;

        img {
          margin: 0 auto;
        }

        a:first-child {
          margin-bottom: 6px;
        }
      }

      .lang-switcher {
        display: flex;
        column-gap: 16px;

        a {
          text-transform: uppercase;
          opacity: 0.65;

          &.active {
            opacity: 1;
            text-decoration: underline;
          }
        }
      }
    }

    @media (max-width: 767px) {
      .logo {
        width: 100%;
      }

      nav {
        display: none;
      }
    }
  }
}
