#site-header {
  position: relative;
  z-index: 20;
  width: 100%;
  height: var(--header-height);
}

.header-shell {
  position: absolute;
  top: 1.6875rem;
  right: 2.578125%;
  left: 5%;
  display: flex;
  align-items: center;
  height: 4.5rem;
  padding: 0 2.125rem 0 0;
  border-radius: 1.25rem;
  isolation: isolate;
}

.header-shell.glass-panel {
  border: 1px solid rgb(255 255 255 / 18%);
  background: linear-gradient(
    90deg,
    rgb(5 5 5 / 67%) 0%,
    rgb(7 7 7 / 64%) 60%,
    rgb(18 13 4 / 59%) 100%
  );
  box-shadow:
    inset 0 1px 2px rgb(255 255 255 / 16%),
    0 10px 250px rgb(0 0 0 / 65%);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.header-shell::before {
  position: absolute;
  top: 0;
  right: 1.25rem;
  left: 1.25rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 55%), transparent);
  content: "";
  filter: blur(0.5px);
  opacity: 0.7;
  pointer-events: none;
}

.header-shell::after {
  position: absolute;
  right: 7%;
  bottom: -0.625rem;
  left: 7%;
  height: 0.625rem;
  background: linear-gradient(90deg, transparent, rgb(253 172 9 / 22%) 15%, rgb(253 172 9 / 10%) 45%, transparent);
  content: "";
  filter: blur(10px);
  mix-blend-mode: screen;
  opacity: 0.7;
  pointer-events: none;
}

.desktop-brand,
.mobile-brand {
  text-decoration: none;
}

.desktop-brand img,
.mobile-brand img,
.mobile-menu-toggle img {
  pointer-events: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

.desktop-brand {
  display: flex;
  flex: 1 0 18.30325rem;
  align-items: center;
  align-self: stretch;
  min-width: 10.9375rem;
  padding-left: 0.879625rem;
}

.desktop-brand-mark {
  --desktop-brand-glow-padding: 0.5rem;

  box-sizing: content-box;
  width: 3.5185rem;
  height: 3.5185rem;
  padding: var(--desktop-brand-glow-padding);
  margin: calc(0px - var(--desktop-brand-glow-padding));
  object-fit: contain;
  filter: url(#wordmark-glow-mobile);
}

.desktop-brand-wordmark {
  width: 5.3125rem;
  height: 3.625rem;
  margin-left: 1.227rem;
  object-fit: contain;
  filter: url(#wordmark-glow-desktop);
}

.desktop-nav {
  display: flex;
  flex: 0 0 38.4375rem;
  gap: 2.75rem;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 100%;
  font-family: var(--font-ui);
  font-size: 0.59375rem;
  line-height: 1;
  white-space: nowrap;
}

.desktop-nav a {
  position: relative;
  display: grid;
  height: 100%;
  padding: 0;
  color: #e8e8e8;
  place-items: center;
  text-decoration: none;
  transition: color 180ms var(--ease-ui), text-shadow 180ms var(--ease-ui);
}

.desktop-nav a::after {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  width: 100%;
  height: 1px;
  border-radius: 999px;
  background: var(--color-gold-soft);
  box-shadow: 0 0 0.25rem rgb(244 183 45 / 95%), 0 0 0.75rem rgb(223 152 9 / 58%);
  content: "";
  opacity: 0;
  transform: translateX(-50%) scaleX(0.4);
  transition: opacity 180ms var(--ease-ui), transform 180ms var(--ease-ui);
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--color-gold);
  text-shadow: 0 0 0.45rem rgb(223 152 9 / 45%);
}

.desktop-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.desktop-contact {
  display: flex;
  flex: 0 0 10.375rem;
  align-items: center;
  min-width: 0;
  height: 2.625rem;
}

.phone-symbol {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid rgb(223 152 9 / 42%);
  border-radius: 50%;
  background: rgb(5 5 5 / 18%);
  box-shadow:
    inset 0 0 0.5rem rgb(255 255 255 / 2%),
    0 0 0.55rem rgb(0 0 0 / 28%);
  -webkit-backdrop-filter: blur(5px) saturate(110%);
  backdrop-filter: blur(5px) saturate(110%);
  place-items: center;
  transition: border-color 180ms var(--ease-ui), box-shadow 180ms var(--ease-ui), transform 180ms var(--ease-ui);
}

.phone-symbol img:first-child {
  display: none;
}

.phone-symbol img:last-child {
  position: static;
  width: 0.875rem;
  height: 0.875rem;
  object-fit: contain;
  object-position: center;
  transform: none;
}

.phone-symbol:hover,
.phone-symbol:focus-visible,
.social-link--phone:hover .phone-symbol,
.social-link--phone:focus-visible .phone-symbol {
  border-color: var(--color-gold-soft);
  box-shadow: inset 0 1px 2px rgb(255 255 255 / 14%), 0 0 0.8rem rgb(244 183 45 / 48%);
  transform: translateY(-1px);
}

.desktop-contact-copy {
  display: grid;
  gap: 0.2rem;
  padding-left: 0.625rem;
  font-family: var(--font-ui);
  white-space: nowrap;
}

.desktop-contact-copy a {
  color: rgb(255 255 255 / 86%);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.desktop-contact-copy span {
  color: rgb(232 185 72 / 70%);
  font-size: 0.625rem;
  line-height: 1;
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.desktop-socials {
  flex: 0 0 6.1875rem;
  gap: 0.435rem;
  justify-content: flex-start;
  padding-left: 0.80625rem;
}

.social-link {
  display: grid;
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 50%;
  background: rgb(5 5 5 / 18%);
  box-shadow:
    inset 0 0 0.5rem rgb(255 255 255 / 2%),
    0 0 0.55rem rgb(0 0 0 / 28%);
  -webkit-backdrop-filter: blur(5px) saturate(110%);
  backdrop-filter: blur(5px) saturate(110%);
  place-items: center;
  transition: border-color 180ms var(--ease-ui), box-shadow 180ms var(--ease-ui), transform 180ms var(--ease-ui);
}

.social-link:hover {
  border-color: rgb(223 152 9 / 60%);
  box-shadow: 0 0 0.75rem rgb(223 152 9 / 35%);
  transform: translateY(-1px);
}

.social-link img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.social-link--vk img {
  filter: brightness(0) saturate(100%) invert(43%) sepia(99%) saturate(2279%) hue-rotate(190deg) brightness(102%) contrast(105%);
}

.mobile-menu-toggle,
.mobile-brand,
.mobile-socials,
.mobile-menu {
  display: none;
}

body.menu-open #main::after {
  position: fixed;
  z-index: 10;
  inset: var(--header-height) 0 0;
  background: rgb(0 0 0 / 38%);
  content: "";
}

#main {
  width: 100%;
  min-height: calc(100dvh - var(--header-height));
}
