:root {
  --mfl-shell-ink: #071119;
  --mfl-shell-ink-soft: #111f2b;
  --mfl-shell-paper: #ffffff;
  --mfl-shell-canvas: #f4f2eb;
  --mfl-shell-slate: #52606b;
  --mfl-shell-line: rgba(7, 17, 25, 0.15);
  --mfl-shell-gold: #c69635;
  --mfl-shell-gold-light: #e8ca82;
  --mfl-shell-cyan: #00a8c7;
  --mfl-shell-blue: #165dff;
  --mfl-shell-font: Inter, Aptos, "Segoe UI", system-ui, -apple-system, sans-serif;
  --mfl-shell-max: 1600px;
}

html {
  scroll-padding-top: 112px;
}

main :where([id]) {
  scroll-margin-top: 112px;
}

.mfl-site-header,
.mfl-site-footer {
  font-family: var(--mfl-shell-font);
}

.mfl-site-header *,
.mfl-site-footer * {
  box-sizing: border-box;
}

.mfl-site-header :where(a, button):focus-visible,
.mfl-site-footer :where(a, button):focus-visible {
  outline: 3px solid var(--mfl-shell-blue);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--mfl-shell-paper);
}

.mfl-site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  width: 100%;
  color: var(--mfl-shell-ink);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--mfl-shell-line);
  box-shadow: 0 10px 36px rgba(7, 17, 25, 0.08);
  backdrop-filter: blur(18px) saturate(1.2);
  isolation: isolate;
}

.mfl-site-header__bar {
  display: grid;
  grid-template-columns: minmax(190px, 242px) minmax(0, 1fr);
  gap: clamp(20px, 2.7vw, 48px);
  align-items: center;
  width: min(100%, var(--mfl-shell-max));
  min-height: 96px;
  margin: 0 auto;
  padding: 14px clamp(22px, 4vw, 64px);
}

.mfl-site-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  color: var(--mfl-shell-ink);
  text-decoration: none;
}

.mfl-site-brand img {
  display: block;
  width: min(100%, 228px) !important;
  max-width: 100% !important;
  height: auto;
}

.mfl-site-brand__descriptor {
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mfl-site-brand.is-current .mfl-site-brand__descriptor {
  color: #0844c2;
}

[data-mfl-route-unavailable] {
  cursor: not-allowed;
  opacity: 0.58;
  pointer-events: none;
}

.mfl-site-header__panel {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2.2vw, 36px);
}

.mfl-primary-nav,
.mfl-site-header__actions {
  display: flex;
  align-items: center;
}

.mfl-primary-nav {
  gap: clamp(3px, 0.45vw, 9px);
}

.mfl-site-header__actions {
  gap: 8px;
}

.mfl-shell-link,
.mfl-footer-link {
  position: relative;
  color: inherit;
  text-decoration: none;
}

.mfl-primary-nav > .mfl-shell-link,
.mfl-site-header__actions > .mfl-shell-link--tour {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 10px clamp(7px, 0.65vw, 12px);
  color: #1e2c36;
  font-size: clamp(12px, 0.88vw, 14px);
  font-weight: 750;
  line-height: 1.15;
  white-space: nowrap;
}

.mfl-primary-nav > .mfl-shell-link::after,
.mfl-site-header__actions > .mfl-shell-link--tour::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 5px;
  left: 10px;
  height: 2px;
  background: linear-gradient(90deg, var(--mfl-shell-cyan), var(--mfl-shell-gold));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.mfl-primary-nav > .mfl-shell-link:hover::after,
.mfl-primary-nav > .mfl-shell-link:focus-visible::after,
.mfl-primary-nav > .mfl-shell-link.is-current::after,
.mfl-site-header__actions > .mfl-shell-link--tour:hover::after,
.mfl-site-header__actions > .mfl-shell-link--tour:focus-visible::after,
.mfl-site-header__actions > .mfl-shell-link--tour.is-current::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mfl-primary-nav > .mfl-shell-link.is-current,
.mfl-site-header__actions > .mfl-shell-link--tour.is-current {
  color: #071119;
}

.mfl-shell-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 15px;
  border: 1px solid var(--mfl-shell-ink);
  color: var(--mfl-shell-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.mfl-shell-button--primary {
  color: #fff;
  background: var(--mfl-shell-ink);
}

.mfl-shell-button:hover,
.mfl-shell-button:focus-visible {
  color: #fff;
  background: var(--mfl-shell-blue);
  border-color: var(--mfl-shell-blue);
  transform: translateY(-1px);
}

.mfl-shell-link.is-disabled,
.mfl-shell-button.is-disabled,
.mfl-footer-link.is-disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.mfl-shell-button.is-disabled:hover,
.mfl-shell-button.is-disabled:focus-visible {
  color: currentColor;
  background: transparent;
  border-color: currentColor;
  transform: none;
}

.mfl-shell-button--primary.is-disabled:hover,
.mfl-shell-button--primary.is-disabled:focus-visible {
  color: #fff;
  background: var(--mfl-shell-ink);
}

.mfl-site-header__toggle,
.mfl-site-header__mobile-head,
.mfl-site-header__scrim {
  display: none;
}

.mfl-site-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 !important;
  color: var(--mfl-shell-ink);
  background: var(--mfl-shell-paper) !important;
  border: 0 !important;
  border-top: 1px solid var(--mfl-shell-line) !important;
}

.mfl-site-footer::before {
  content: "";
  display: block;
  width: 100%;
  height: 7px;
  background: linear-gradient(90deg, var(--mfl-shell-cyan), var(--mfl-shell-blue) 38%, var(--mfl-shell-gold) 72%, #5636d3);
}

.mfl-site-footer__main {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(480px, 1.4fr);
  gap: clamp(52px, 8vw, 132px);
  width: min(100%, var(--mfl-shell-max));
  margin: 0 auto;
  padding: clamp(58px, 7vw, 96px) clamp(24px, 5vw, 80px);
}

.mfl-site-footer__brand {
  max-width: 420px;
}

.mfl-site-brand--footer {
  width: min(100%, 270px);
  margin-bottom: 26px;
}

.mfl-site-footer__brand > p {
  max-width: 410px;
  margin: 0 0 22px;
  color: #3e4b55;
  font-size: 17px;
  line-height: 1.65;
}

.mfl-site-footer__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: #49340a;
  background: #fff7df;
  border: 1px solid #d7b45f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mfl-site-footer__status i {
  width: 8px;
  height: 8px;
  background: var(--mfl-shell-gold);
  border-radius: 50%;
}

.mfl-site-footer__nav {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px) !important;
  align-items: start;
}

.mfl-site-footer__nav > div {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.mfl-site-footer__nav h2 {
  margin: 0 0 8px;
  color: var(--mfl-shell-slate);
  font: 800 11px/1 var(--mfl-shell-font) !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mfl-site-footer__nav .mfl-shell-link,
.mfl-site-footer__nav .mfl-footer-link {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  color: var(--mfl-shell-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.mfl-site-footer__nav a:hover,
.mfl-site-footer__nav a:focus-visible,
.mfl-site-footer__nav .is-current {
  color: #0844c2;
  text-decoration: underline;
  text-decoration-color: var(--mfl-shell-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.mfl-site-footer__legal {
  display: grid;
  grid-template-columns: auto minmax(280px, 880px);
  gap: 28px 56px;
  justify-content: space-between;
  width: 100%;
  padding: 25px clamp(24px, 5vw, 80px) 28px;
  color: #d6dde2;
  background: var(--mfl-shell-ink);
  font-size: 11px;
  line-height: 1.65;
}

.mfl-site-footer__legal p {
  margin: 0;
  color: inherit !important;
}

@media (max-width: 1320px) {
  .mfl-site-header__bar {
    grid-template-columns: minmax(172px, 208px) minmax(0, 1fr);
    gap: 20px;
    padding-inline: 28px;
  }

  .mfl-site-brand__descriptor {
    font-size: 8px;
  }

  .mfl-site-header__panel {
    gap: 14px;
  }

  .mfl-primary-nav > .mfl-shell-link,
  .mfl-site-header__actions > .mfl-shell-link--tour {
    padding-inline: 7px;
    font-size: 12px;
  }

  .mfl-site-header__actions .mfl-shell-button--secondary {
    display: none;
  }
}

@media (max-width: 1120px) {
  html.mfl-nav-locked {
    overflow: hidden;
  }

  .mfl-site-header__bar {
    display: flex;
    min-height: 78px;
    justify-content: space-between;
    padding: 10px max(20px, env(safe-area-inset-right)) 10px max(20px, env(safe-area-inset-left));
  }

  .mfl-site-header .mfl-site-brand {
    width: min(68vw, 218px);
  }

  .mfl-site-header .mfl-site-brand__descriptor {
    display: none;
  }

  .mfl-site-header__toggle {
    display: inline-flex;
    min-width: 78px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 9px 13px;
    color: var(--mfl-shell-ink);
    background: #fff;
    border: 1px solid var(--mfl-shell-ink);
    font: 800 12px/1 var(--mfl-shell-font);
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .mfl-site-header__toggle-lines {
    display: grid;
    gap: 5px;
    width: 17px;
  }

  .mfl-site-header__toggle-lines i {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
  }

  .mfl-site-header__panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    color: #fff;
    background: var(--mfl-shell-ink);
  }

  .mfl-site-header[data-shell-ready="true"] .mfl-site-header__panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 102;
    width: min(430px, calc(100vw - 22px));
    height: 100vh;
    height: 100dvh;
    padding: max(22px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) 22px;
    overflow: auto;
    box-shadow: -28px 0 74px rgba(0, 0, 0, 0.32);
  }

  .mfl-site-header:not([data-shell-ready="true"]) .mfl-site-header__bar {
    flex-wrap: wrap;
  }

  .mfl-site-header:not([data-shell-ready="true"]) .mfl-site-header__toggle {
    display: none;
  }

  .mfl-site-header:not([data-shell-ready="true"]) .mfl-site-header__mobile-head {
    display: none;
  }

  .mfl-site-header:not([data-shell-ready="true"]) .mfl-site-header__panel {
    flex: 1 0 100%;
    width: 100%;
    padding: 18px 20px 24px;
  }

  .mfl-site-header__panel[hidden] {
    display: none !important;
  }

  .mfl-site-header__mobile-head {
    display: flex;
    min-height: 60px;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--mfl-shell-gold-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .mfl-site-header__mobile-head button {
    display: inline-flex;
    min-width: 82px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font: 800 12px/1 var(--mfl-shell-font);
    text-transform: uppercase;
  }

  .mfl-site-header__mobile-head button span {
    color: var(--mfl-shell-gold-light);
    font-size: 22px;
    line-height: 0;
  }

  .mfl-primary-nav {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 0 !important;
    width: 100%;
    padding: 22px 0;
  }

  .mfl-primary-nav > .mfl-shell-link,
  .mfl-primary-nav > .mfl-shell-link.is-disabled {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 4px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 18px;
    white-space: normal;
  }

  .mfl-primary-nav > .mfl-shell-link::after {
    right: auto;
    bottom: 0;
    left: 0;
    width: 74px;
  }

  .mfl-primary-nav > .mfl-shell-link.is-current {
    color: #78eaff;
  }

  .mfl-site-header__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
  }

  .mfl-site-header__actions > .mfl-shell-link--tour,
  .mfl-site-header__actions > .mfl-shell-button,
  .mfl-site-header__actions .mfl-shell-button--secondary {
    display: flex;
    min-height: 50px;
    justify-content: center;
    padding: 13px 16px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.38);
  }

  .mfl-site-header__actions > .mfl-shell-button--primary {
    color: var(--mfl-shell-ink);
    background: var(--mfl-shell-gold-light);
    border-color: var(--mfl-shell-gold-light);
  }

  .mfl-site-header__scrim {
    position: fixed;
    inset: 0;
    z-index: 101;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(3, 9, 14, 0.7);
    border: 0;
    cursor: default;
  }

  .mfl-site-header__scrim[hidden] {
    display: none;
  }

  .mfl-site-footer__main {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 720px) {
  .mfl-site-footer__main {
    padding: 54px 22px;
  }

  .mfl-site-footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 28px !important;
  }

  .mfl-site-footer__nav > div:last-child {
    grid-column: 1 / -1;
  }

  .mfl-site-footer__legal {
    grid-template-columns: 1fr;
    padding-inline: 22px;
  }
}

@media (max-width: 420px) {
  .mfl-site-header__bar {
    min-height: 72px;
    padding-inline: max(14px, env(safe-area-inset-left));
  }

  .mfl-site-header .mfl-site-brand {
    width: min(60vw, 192px);
  }

  .mfl-site-header__toggle {
    min-width: 70px;
    padding-inline: 10px;
  }

  .mfl-site-footer__nav {
    grid-template-columns: 1fr;
  }

  .mfl-site-footer__nav > div:last-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mfl-site-header *,
  .mfl-site-header *::before,
  .mfl-site-header *::after,
  .mfl-site-footer *,
  .mfl-site-footer *::before,
  .mfl-site-footer *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .mfl-site-header,
  .mfl-site-footer,
  .mfl-shell-button,
  .mfl-site-header__toggle,
  .mfl-site-header__mobile-head button,
  .mfl-site-footer__status {
    border-color: CanvasText;
  }

  .mfl-site-footer__status i {
    background: CanvasText;
  }
}
