header {
  padding: 12px 0;
  position: sticky;
  top: calc(var(--header-height, 0px) * -1);
  z-index: 2;
  background: #edf2fa;
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
}

header.scrolled-up {
  top: 0px;
}

header.show-menu .menu-main {
  -webkit-transform: translateX(0);
      -ms-transform: translateX(0);
          transform: translateX(0);
}

header.show-menu-products .menu-products {
  -webkit-transform: translateX(0);
      -ms-transform: translateX(0);
          transform: translateX(0);
}

header.show-menu-cabinet .menu-cabinet {
  -webkit-transform: translateX(0);
      -ms-transform: translateX(0);
          transform: translateX(0);
}

header .container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

header .menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 3;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  overflow: auto;
  -webkit-transform: translateX(-100%);
      -ms-transform: translateX(-100%);
          transform: translateX(-100%);
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
  background-color: #edf2fa;
}

header .menu .menu-top {
  padding: 12px 16px;
  border-bottom: 1px solid #c9d4e0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  position: sticky;
  top: 0;
  background: #edf2fa;
  z-index: 1;
}

header .menu .menu-top__logo {
  display: block;
  width: 100%;
  max-width: 196px;
}

header .menu .menu-top__btns {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
}

header .menu .menu-top__btns .btn-primary,
header .menu .menu-top__btns .btn-border {
  padding: 0;
  width: 48px;
  height: 48px;
}

header .menu .menu-top__btns .btn-primary span,
header .menu .menu-top__btns .btn-border span {
  display: none;
}

header .menu .menu-content {
  padding: 0 16px;
}

header .menu .menu-content ul {
  list-style: none;
  padding: 16px 0;
}

header .menu .menu-content ul li {
  margin-bottom: 8px;
}

header .menu .menu-content ul li:last-child {
  margin-bottom: 0;
}

header .menu .menu-content ul li .link {
  display: block;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  color: var(--text-black);
  padding: 8px 13px;
  background-color: white;
  border-radius: 10px;
}

header .menu .menu-content ul li .link i {
  display: block;
  width: 24px;
  font-size: 24px;
  line-height: 1;
}

header .menu .menu-footer {
  margin-top: 16px;
  padding: 0 16px;
}

header .menu.menu-cabinet .menu-content {
  padding-top: 20px;
  padding-bottom: 20px;
}

header .menu.menu-cabinet .menu-content ul {
  border-radius: 24px;
  border: 1px solid #c9d4e0;
  background-color: white;
  padding: 16px;
}

header .menu.menu-cabinet .menu-content ul li .link {
  padding: 8px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  gap: 8px;
  font-weight: 300;
  width: 100%;
  border: none;
  outline: none;
  background: none;
  cursor: pointer;
}

header .menu.menu-cabinet .menu-content ul li .link i {
  color: #435a77;
  line-height: 1;
}

header .menu.menu-cabinet .menu-content ul li:last-child {
  margin-top: 8px;
  border-top: 1px solid #c9d4e0;
}

header .menu.menu-cabinet .menu-content ul li:last-child .link {
  padding-top: 16px;
}

header .logo {
  display: block;
  width: 100%;
  max-width: 196px;
}

header .logo img {
  display: block;
  width: 100%;
}

header .header-bar {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 12px;
}

header .header-bar .btn-cabinet-link {
  display: none;
}

header .header-bar .btn-primary,
header .header-bar .btn-border {
  padding: 0;
  width: 48px;
  height: 48px;
}

header .header-bar .btn-primary span,
header .header-bar .btn-border span {
  display: none;
}

header .burger {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #949494;
}

header .burger__content {
  display: block;
  width: 20px;
  height: 14px;
  position: relative;
}

header .burger__content span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 4px;
  background-color: var(--brand-black);
  position: absolute;
  left: 0;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

header .burger__content span:nth-child(1) {
  top: 0;
  -webkit-transition-delay: 0s;
          transition-delay: 0s;
}

header .burger__content span:nth-child(2),
header .burger__content span:nth-child(3) {
  left: 50%;
  -webkit-transform: translateX(-50%);
      -ms-transform: translateX(-50%);
          transform: translateX(-50%);
  top: 6px;
}

header .burger__content span:nth-child(4) {
  -webkit-transition-delay: 0s;
          transition-delay: 0s;
  top: 12px;
}

header .burger.active .burger__content span:nth-child(1) {
  top: 6px;
  -webkit-transform: rotate(45deg);
      -ms-transform: rotate(45deg);
          transform: rotate(45deg);
  -webkit-transition-delay: 0.1s;
          transition-delay: 0.1s;
}

header .burger.active .burger__content span:nth-child(2),
header .burger.active .burger__content span:nth-child(3) {
  width: 0;
}

header .burger.active .burger__content span:nth-child(4) {
  top: 6px;
  -webkit-transform: rotate(-45deg);
      -ms-transform: rotate(-45deg);
          transform: rotate(-45deg);
  -webkit-transition-delay: 0.1s;
          transition-delay: 0.1s;
}

.header-overlay,
.modal-overlay {
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.16);
  width: 100%;
  height: 100%;
  backdrop-filter: blur(0px);
  visibility: hidden;
  opacity: 0;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

.header-overlay.active,
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  backdrop-filter: blur(20px);
}

.modal-overlay {
  z-index: 2;
}

@media (min-width: 768px) {
  header {
    padding: 20px 0;
  }

  header .logo {
    max-width: 276px;
  }

  header .header-bar {
    gap: 12px;
  }

  header .header-bar .btn-border,
  header .header-bar .btn-primary {
    width: auto;
    height: auto;
    padding: 15px 31px;
  }

  header .header-bar .btn-border span,
  header .header-bar .btn-primary span {
    display: block;
  }

  header .menu {
    max-width: 360px;
  }

  header.show-menu .header-overlay,
  header.show-menu-cabinet .header-overlay {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(20px);
  }
}

@media (min-width: 1280px) {
  header {
    padding: 24px 0;
  }

  header .menu {
    position: static;
    -webkit-transform: none;
        -ms-transform: none;
            transform: none;
    opacity: 1;
    visibility: visible;
    max-width: 100%;
    overflow: visible;
  }

  header .menu.menu-cabinet {
    display: none !important;
  }

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

  header .menu .menu-content {
    padding: 0;
  }

  header .menu .menu-content ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    padding: 0;
  }

  header .menu .menu-content ul li {
    margin: 0;
  }

  header .menu .menu-content ul li .link {
    background: none;
    display: block;
    padding: 8px 12px;
    position: relative;
  }

  header .menu .menu-content ul li .link::before {
    content: "";
    display: block;
    width: 0;
    height: 1.5px;
    position: absolute;
    left: 50%;
    -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
            transform: translateX(-50%);
    bottom: 9px;
    background: var(--brand-blue);
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
  }

  header .menu .menu-content ul li .link span {
    display: none;
  }

  header .header-bar button {
    display: none;
  }

  header .header-bar .btn-cabinet-link {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }
}

@media (min-width: 1280px) and (hover: hover) {
  header .menu .menu-content ul li .link:hover {
    color: var(--brand-blue);
  }

  header .menu .menu-content ul li .link:hover::before {
    width: calc(100% - 24px);
  }
}