.site-shell-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  padding: 0.55rem 0.7rem;
  pointer-events: none;
}

.site-shell-inline {
  display: flex;
  align-items: center;
  justify-self: end;
  margin-left: 0;
}

.site-shell-inline .site-shell-right {
  gap: 0.36rem;
  margin-left: 0;
}

.site-shell-inline .site-shell-label {
  color: #d4e2f6;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-header.with-inline-lang {
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  align-items: center;
  column-gap: 1rem;
}

.site-header.with-inline-lang .brand {
  justify-self: start;
}

.site-header.with-inline-lang nav[aria-label="Main Navigation"] {
  justify-self: center;
}

.site-header.with-inline-lang .nav-list {
  justify-content: center;
}

.site-shell {
  max-width: 1220px;
  margin: 0 auto;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.48rem 0.58rem;
  border-radius: 0.84rem;
  border: 1px solid rgba(176, 204, 255, 0.28);
  background: rgba(7, 12, 22, 0.74);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(2, 6, 12, 0.38);
}

.site-shell-left,
.site-shell-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.site-shell-right {
  margin-left: auto;
}

.site-shell-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #e7f1ff;
  font-weight: 700;
  font-size: 0.87rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.site-shell-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #67cffb, #81dbca);
  box-shadow: 0 0 18px rgba(103, 207, 251, 0.55);
}

.site-shell-back {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  text-decoration: none;
  color: #e7f1ff;
  font-weight: 700;
  font-size: 0.82rem;
  border: 1px solid rgba(176, 204, 255, 0.28);
  border-radius: 999px;
  padding: 0.35rem 0.66rem;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.site-shell-back:hover,
.site-shell-back:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(176, 204, 255, 0.5);
}

.site-shell-back-icon {
  display: inline-flex;
  transform: translateY(-0.02rem);
}

.site-shell-label {
  color: #d4e2f6;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-shell-lang-group {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.site-shell-lang {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  border: 1px solid rgba(176, 204, 255, 0.25);
  background: rgba(255, 255, 255, 0.02);
  color: #eaf2ff;
  border-radius: 999px;
  padding: 0.34rem 0.56rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease,
    background-color 0.2s ease;
}

.site-shell-flag {
  width: 0.95rem;
  height: 0.7rem;
  object-fit: cover;
  border-radius: 0.12rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.22);
}

.site-shell-lang-text {
  line-height: 1;
}

.site-shell-lang:hover,
.site-shell-lang:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(176, 204, 255, 0.5);
}

.site-shell-lang.is-active {
  border-color: rgba(108, 216, 255, 0.75);
  background: linear-gradient(135deg, rgba(107, 216, 255, 0.2), rgba(127, 141, 255, 0.2));
}

body.with-site-shell {
  padding-top: 4.2rem;
}

@media (max-width: 720px) {
  .site-shell-inline .site-shell-label {
    display: none;
  }

  .site-header.with-inline-lang {
    grid-template-columns: 1fr;
    row-gap: 0.55rem;
    justify-items: center;
  }

  .site-header.with-inline-lang .brand,
  .site-header.with-inline-lang nav[aria-label="Main Navigation"],
  .site-header.with-inline-lang .site-shell-inline {
    justify-self: center;
  }

  .site-header.with-inline-lang .nav-list {
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-shell {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.5rem;
  }

  .site-shell-right {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .site-shell-label {
    display: none;
  }

  .site-shell-back,
  .site-shell-brand {
    font-size: 0.78rem;
  }
}
