.layer-bar, .layer-footer {
  --edge: clamp(18px, 5vw, 76px);
  --nav-ink: #272334;
  font-family: Manrope, system-ui, sans-serif;
  text-align: left;
}
.layer-bar {
  width: min(100% - 2 * var(--edge), 1280px);
  margin: 0 auto;
  min-height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  color: var(--nav-ink);
  border-bottom: 1px solid #dedce4;
}
.layer-brand {
  display: inline-flex;
  width: fit-content;
  gap: 9px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1;
  min-height: 44px;
}
.layer-brand img { width: 32px; height: 32px; border-radius: 8px; }
.layer-bar nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 44px); }
.layer-bar nav a, .layer-footer nav a, .layer-footer address a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.layer-bar nav a[aria-current="page"] { color: #5945a7; text-decoration: underline; text-underline-offset: 6px; }
.layer-bar .lang { justify-self: end; display: inline-flex; gap: 0; }
.layer-bar .lang button { font: 600 13px Manrope, sans-serif; min-width: 44px; min-height: 44px; padding: 0; color: #64606f; }
.layer-bar .lang button::before { display: none; }
.layer-bar .lang button[aria-pressed="true"] { color: #473293; background: #eeebf6; }
.layer-footer {
  display: block;
  margin: 0;
  padding: clamp(36px, 6vw, 84px) var(--edge);
  background: #282431;
  color: #fcfbff;
  line-height: 1.5;
}
.layer-footer-inner {
  width: min(100%, 1280px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(190px, 1.3fr) repeat(2, minmax(130px, 1fr)) minmax(155px, 1fr);
  gap: 32px;
}
.layer-footer nav, .layer-footer address { display: flex; flex-direction: column; align-items: flex-start; font-style: normal; }
.layer-footer .layer-brand { align-self: start; }
.layer-footer .layer-foot-label { display: block; font-size: 13px; font-weight: 600; color: #cac6d7; margin-bottom: 8px; }
.layer-footer a { color: inherit; }
.layer-footer nav a, .layer-footer address a { min-height: 38px; }
:is(.layer-bar, .layer-footer) :focus-visible { outline: 2px solid #9e85ee; outline-offset: 3px; }
@media (hover: hover) {
  .layer-bar a:hover, .layer-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
}
@media (min-width: 741px) and (max-width: 980px) {
  .layer-footer-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .layer-footer .layer-brand { grid-column: 1 / -1; }
}
@media (max-width: 740px) {
  .layer-bar { grid-template-columns: 1fr auto; gap: 0; padding-block: 6px 0; }
  .layer-bar nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 8px; }
  .layer-bar .lang { grid-column: 2; grid-row: 1; }
  .layer-bar nav a { min-width: 44px; font-size: 13px; }
  .layer-footer-inner { grid-template-columns: 1fr 1fr; gap: 16px 22px; }
  .layer-footer .layer-brand, .layer-footer address { grid-column: 1 / -1; }
  .layer-footer nav a, .layer-footer address a { min-height: 44px; }
}

.layer-missing { text-align: center; padding: clamp(64px, 12vw, 160px) 0; }
.layer-error-code { color: #6250b7; font: 600 18px Manrope, sans-serif; }
.layer-missing h1 { margin: 8px 0 28px; }
