.site-shell {
  position: relative;
  background: var(--shell-bg);
  color: var(--shell-text);
}

.site-shell .shell-wrap {
  max-width: 1240px;
  padding-inline: clamp(20px,5vw,64px);
}

.site-shell-header {
  background: radial-gradient(ellipse at 65% 100%,color-mix(in srgb,var(--shell-gold) 9%,var(--shell-bg)),var(--shell-bg) 75%);
  border-bottom: 1px solid var(--shell-line);
}

.site-shell .mono {
  font-family: SiteMono,ui-monospace,monospace;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--shell-dim);
}

.site-shell .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-block: 22px;
}

.site-shell .topbar>span {
  flex-shrink: 0;
}

.site-shell .topbar nav {
  display: flex;
  align-items: center;
  gap: clamp(12px,2.1vw,28px);
  flex-wrap: wrap;
}

.site-shell .topbar nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  transition: color .2s;
}

.site-shell .topbar nav a:hover,.site-shell .social a:hover {
  color: var(--shell-text);
}

.site-shell .language-switch {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font-size: 12px;
  flex-shrink: 0;
}

.site-shell .language-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--shell-dim);
  border-radius: 6px;
  text-decoration: none;
}

.site-shell .language-switch .is-selected {
  background: var(--shell-text);
  color: var(--shell-bg);
}

.site-shell :focus-visible {
  outline-color: var(--shell-gold);
}

.site-shell .foot {
  padding-block: clamp(44px,7vh,86px);
  border-top: 1px solid var(--shell-line);
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(230px,1fr));
  gap: 34px;
  align-items: end;
}

.site-shell .foot .sign {
  font-family: var(--serif);
  font-size: clamp(2.4rem,6vw,4.4rem);
  text-transform: uppercase;
  line-height: .9;
  margin-top: 15px;
}

.site-shell .foot a.mail {
  font-size: 1.05rem;
  text-decoration: none;
  border-bottom: 1px solid var(--shell-gold);
  padding-bottom: 2px;
  overflow-wrap: anywhere;
}

.site-shell .social {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.site-shell .social a {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.site-shell .legal {
  padding-bottom: 40px;
  font-size: 10px;
  line-height: 1.8;
}

@media (max-width: 600px) {
  .site-shell .topbar>nav {
    order: 3;
    width: 100%;
    gap: 0 18px;
  }

  .site-shell .topbar {
    gap: 10px;
    padding-block: 16px;
  }

  .site-shell .topbar nav a {
    font-size: 10px;
    letter-spacing: .12em;
  }

  .site-shell .mono {
    font-size: 10px;
    letter-spacing: .13em;
  }

  .site-shell .language-switch {
    font-size: 11px;
  }

  .site-shell .foot {
    gap: 26px;
    padding-block: 39px 26px;
  }

  .site-shell .legal {
    font-size: 9px;
    padding-bottom: 28px;
  }

  .site-shell .social {
    gap: 0 18px;
  }
}
