

:root {
  --footh: 72px;
  --logo-h: 41px;
  --logo-mark: 31px;
}

.top-scrim {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 62;
  pointer-events: none;
  height: var(--scrimh, 92px);
  background: linear-gradient(
    180deg,
    var(--ink) 0%,
    var(--ink) 42%,
    rgba(6, 7, 14, 0.92) 62%,
    rgba(6, 7, 14, 0.65) 78%,
    rgba(6, 7, 14, 0.28) 90%,
    rgba(6, 7, 14, 0) 100%
  );
}

nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 65;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 30px);
  padding: 9px 14px 9px 20px;
  border-radius: 100px;
  width: min(1180px, calc(100% - 24px));
  background: rgba(8, 10, 20, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    inset 0 0 0 1px var(--edge),
    0 20px 50px -25px #000;
  transition:
    transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1),
    opacity 0.4s;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: 1.35rem;
  margin-right: auto;
}
.brand svg {
  width: 30px;
  height: 30px;
  flex: none;
}

.brand img.blogo,
.brand img.blogo-hover {
  height: var(--logo-h);
  width: auto;
  flex: none;
  display: block;
  max-width: none;
}

.brand img.blogo-hover {
  display: none;
}
.brand img.blogo-mark {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .brand:hover img.blogo {
    display: none;
  }
  .brand:hover img.blogo-hover {
    display: block;
  }
}

.nav-right-group,
.nav-rg {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  margin-left: auto;
}

.nav-links,
.nv {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 24px);
  font-size: 0.9rem;
  font-weight: 600;
}
.nav-links > a:not(.gb):not(.gs),
.nv a {
  color: #b9bfdc;
  transition: color 0.2s;
}

.nv a.on {
  color: var(--lime);
}
.nav-links .gb,
.nv .gb {
  padding: 0.65em 1.3em;
  border-radius: 12px;
  font-size: 0.85rem;
  background: transparent;
  border: 1.5px solid rgba(198, 255, 61, 0.3);
  color: var(--lime);
  transition:
    background 0.2s,
    border-color 0.2s;
}
.nav-links .gs,
.nv .gs {
  padding: 0.65em 1.3em;
  border-radius: 12px;
  font-size: 0.85rem;
  background: var(--lime);
  color: #04050b;
  font-weight: 700;
  box-shadow: 0 4px 0 #9fcc2e;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
@media (hover: hover) and (pointer: fine) {
  .nav-links > a:not(.gb):not(.gs):hover,
  .nv a:not(.gb):not(.gs):hover {
    color: var(--lime);
  }
  .nav-links .gb:hover,
  .nv .gb:hover {
    background: rgba(198, 255, 61, 0.1);
    border-color: var(--lime);
  }
  .nav-links .gs:hover,
  .nv .gs:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 0 #9fcc2e;
  }
}

.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--edge);
  position: relative;
  flex: none;
  margin-left: auto;
}
.lang button {
  position: relative;
  z-index: 2;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 0.5em 0.85em;
  border-radius: 100px;
  color: #a9b0d4;
  transition: color 0.3s;
}
.lang button.on {
  color: #04050b;
}
.lang .lthumb {
  position: absolute;
  top: 3px;
  left: 3px;
  height: calc(100% - 6px);
  width: calc(50% - 3px);
  border-radius: 100px;
  background: var(--lime);
  z-index: 1;
  transition: transform 0.38s cubic-bezier(0.3, 1.3, 0.4, 1);
}
.lang.en .lthumb {
  transform: translateX(100%);
}

.burger,
.bsub {
  display: none;
  width: 40px;
  height: 40px;
  flex: none;
  border: 0;
  cursor: pointer;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--edge);
  padding: 0;
  position: relative;
  transition: background 0.25s;
}
.burger:hover,
.bsub:hover {
  background: rgba(255, 255, 255, 0.12);
}
.burger span,
.bsub span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--paper);
  transition:
    transform 0.38s cubic-bezier(0.2, 0.9, 0.3, 1),
    opacity 0.22s;
}
.burger span:nth-child(1),
.bsub span:nth-child(1) {
  top: 13px;
}
.burger span:nth-child(2),
.bsub span:nth-child(2) {
  top: 19px;
}
.burger span:nth-child(3),
.bsub span:nth-child(3) {
  top: 25px;
}
.burger.on span:nth-child(1),
.bsub.on span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.burger.on span:nth-child(2),
.bsub.on span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.3);
}
.burger.on span:nth-child(3),
.bsub.on span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

body {
  padding-bottom: var(--footh);
}
footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 64;
  height: var(--footh);
  padding: 0 12px;
  border-top: 1px solid var(--edge);
  background: rgba(8, 10, 20, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  text-align: initial;
}
.foot-in {
  width: min(1180px, calc(100% - 24px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 20px;
}
.foot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 26px);
  flex-wrap: nowrap;
  width: 100%;
}
.foot-top .brand {
  font-size: 1rem;
  gap: 7px;
  margin-right: 0;
  
  flex: none;
}
.foot-top .brand svg {
  width: 20px;
  height: 20px;
}
.foot-top .brand img.blogo,
.foot-top .brand img.blogo-hover {
  height: var(--logo-h);
  max-width: none;
  display: block;
}
.foot-top .brand img.blogo-hover {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .foot-top .brand:hover img.blogo {
    display: none;
  }
  .foot-top .brand:hover img.blogo-hover {
    display: block;
  }
}

.foot-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--mut);
  white-space: nowrap;
}
.foot-links a {
  color: #fff;
  transition: color 0.2s;
}
.foot-li,
.foot-ig {
  display: inline-flex;
  align-items: center;
  color: inherit;
  line-height: 0;
  flex: none;
}
.foot-li-i,
.foot-ig-i {
  display: block;
  width: 15px;
  height: 15px;
}
@media (hover: hover) and (pointer: fine) {
  .foot-links a:hover {
    color: var(--lime);
  }
  .foot-links .foot-li:hover {
    color: #0a66c2;
  }
  .foot-links .foot-ig:hover {
    color: #e1306c;
  }
}
