:root {
  --navy: #10306B;
  --blue: #1D5BD6;
  --blue-dark: #0F3E9E;
  --gold: #C38A27;
  --body: #47597A;
  --body-strong: #2C3E5C;
  --muted: #7E90AD;
  --tint: #F2F7FF;
  --tint-2: #E9F1FE;
  --line: #EDF3FE;
  --line-2: #E1EBFB;
  --border-blue: #CFE0F9;
  --gutter: clamp(18px, 4vw, 48px);
  /* Top offset of the language switcher; the mobile hero keys its own top
     spacing off this so the two can't collide. */
  --lang-offset: calc(clamp(14px, 2.2vw, 26px) + env(safe-area-inset-top, 0px));
  --lang-height: 42px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #FFFFFF;
  color: var(--navy);
  font-family: 'Noto Sans', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
button { font-family: inherit; }
::selection { background: #D6E4FA; color: var(--navy); }

@keyframes mfIn { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes mfOut { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }
@keyframes mfRing { from { transform: scale(0.7); opacity: 0.9; } to { transform: scale(1.5); opacity: 0; } }
@keyframes mfBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes mfFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Intro overlay ---------- */

.mf-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
}
.mf-overlay.is-out {
  animation: mfOut .6s ease forwards;
  pointer-events: none;
}
.mf-overlay.is-gone { display: none; }

.mf-overlay__logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mf-overlay__ring {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 1.5px solid #D6E4FA;
  animation: mfRing 2.2s ease-out infinite;
}
.mf-overlay__ring--delay {
  border-color: var(--tint-2);
  animation-delay: .7s;
}
.mf-overlay.is-out .mf-overlay__ring { display: none; }

.mf-overlay__logo {
  position: relative;
  width: clamp(210px, 42vw, 340px);
  height: auto;
  animation: mfIn .9s cubic-bezier(.2, .8, .2, 1) both;
}

.mf-overlay__track {
  width: min(220px, 52vw);
  height: 2px;
  background: var(--line);
  overflow: hidden;
  border-radius: 2px;
}
.mf-overlay__bar {
  width: 100%;
  height: 100%;
  background: var(--blue);
  transform-origin: left;
  animation: mfBar 1.6s cubic-bezier(.4, 0, .2, 1) both;
}
.mf-overlay.is-out .mf-overlay__track { background: var(--blue); }

/* ---------- Language switch ---------- */

.mf-lang {
  position: fixed;
  top: var(--lang-offset);
  right: calc(clamp(14px, 3vw, 34px) + env(safe-area-inset-right, 0px));
  z-index: 60;
  display: flex;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 5px;
  box-shadow: 0 6px 20px rgba(16, 48, 107, 0.10);
}
.mf-lang__btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  padding: 9px 15px;
  border-radius: 999px;
  background: transparent;
  color: var(--body);
  text-decoration: none;
  transition: background .25s ease, color .25s ease;
}
.mf-lang__btn:hover { background: var(--tint-2); }
.mf-lang__btn.is-active,
.mf-lang__btn.is-active:hover { background: var(--blue); color: #FFFFFF; }

@media (max-width: 759px) {
  .mf-lang { position: absolute; }
}

/* ---------- Layout ---------- */

.mf-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mf-kicker {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 14px;
}
.mf-kicker--center { text-align: center; margin-bottom: 16px; }
.mf-accent { color: var(--gold); }

/* ---------- Buttons ---------- */

.mf-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
}
.mf-btn--primary {
  background: var(--blue);
  color: #FFFFFF;
  padding: 17px 28px;
  box-shadow: 0 12px 28px rgba(29, 91, 214, 0.22);
  transition: transform .25s ease, box-shadow .25s ease;
}
.mf-btn--primary:hover {
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(29, 91, 214, 0.28);
}
.mf-btn--ghost {
  gap: 10px;
  border: 1.5px solid var(--border-blue);
  color: var(--blue);
  background: #FFFFFF;
  padding: 16px 26px;
  transition: background .25s ease, border-color .25s ease;
}
.mf-btn--ghost:hover { background: var(--tint); border-color: var(--blue); }

.mf-btn--sm { font-size: 15px; gap: 10px; }
.mf-btn--sm.mf-btn--primary { padding: 15px 24px; box-shadow: none; }
.mf-btn--sm.mf-btn--ghost { padding: 14px 22px; }

/* ---------- Hero ---------- */

.mf-hero {
  min-height: min(76svh, 760px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 3vw, 32px) 0 clamp(28px, 4vw, 48px);
}
.mf-hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
  gap: clamp(34px, 6vw, 80px);
}
.mf-hero__brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(0px, calc(80px - 10vw), 80px);
}
/* On mobile the switcher is out of flow, so the hero reserves the space itself:
   the switcher's own offset plus its height plus breathing room. The clamp above
   shrinks as the viewport grows, which is backwards here — clearance is needed
   most just before the grid collapses to one column and the logo goes
   full-width. Padding on the section (rather than a margin on the brand) keeps
   both columns aligned in the band where the grid is still two-up. */
@media (max-width: 759px) {
  /* The 34px includes headroom for the 12px mfFloat drift on the logo. */
  .mf-hero { padding-top: calc(var(--lang-offset) + var(--lang-height) + 34px); }
  .mf-hero__brand { margin-top: 0; }
}
.mf-hero__glow {
  position: absolute;
  width: min(560px, 88vw);
  height: min(560px, 88vw);
  border-radius: 50%;
  background: radial-gradient(circle, #EAF2FE 0%, rgba(234, 242, 254, 0) 68%);
}
.mf-hero__brand-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 1.6vw, 20px);
  width: min(520px, 86%);
  animation: mfFloat 8s ease-in-out infinite;
}
.mf-hero__logo { width: 100%; height: auto; }
.mf-hero__tagline {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 16px);
  width: 100%;
  margin-top: -4px;
  font-size: clamp(9.5px, 1.05vw, 12.5px);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  text-align: center;
}
.mf-hero__tagline > span:not(.mf-rule) { white-space: nowrap; }
.mf-rule { flex: 1; height: 1.4px; background: var(--gold); }

.mf-hero__copy h1 {
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.015em;
  margin: 0 0 clamp(18px, 2.4vw, 28px);
  color: var(--navy);
  text-wrap: pretty;
}
.mf-hero__copy p {
  font-size: clamp(15.5px, 1.35vw, 17.5px);
  line-height: 1.8;
  color: var(--body);
  margin: 0 0 18px;
  max-width: 58ch;
  text-wrap: pretty;
}
.mf-hero__copy p:last-of-type { margin-bottom: 26px; }
.mf-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* ---------- Services ---------- */

.mf-services {
  position: relative;
  padding: clamp(30px, 4.5vw, 54px) 0 clamp(34px, 5vw, 62px);
  border-top: 1px solid var(--line);
}
.mf-services__head { margin: 0 0 clamp(32px, 5vw, 56px); }
.mf-services__head h2 {
  font-size: clamp(25px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--navy);
  text-wrap: pretty;
}
.mf-services__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(4px, 1.4vw, 14px) clamp(24px, 5vw, 72px);
}
.mf-services__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.mf-services__tick {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--tint-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.mf-services__text {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.68;
  color: var(--body-strong);
  text-wrap: pretty;
}
.mf-services__deco {
  position: absolute;
  right: 0;
  bottom: calc(clamp(6px, 1.6vw, 26px) - clamp(0px, calc(56px - 6vw), 56px));
  z-index: 0;
  opacity: 0.85;
  pointer-events: none;
}
.mf-services__deco img {
  width: clamp(110px, 14vw, 185px);
  height: auto;
  display: block;
}

/* ---------- Steps ---------- */

.mf-steps { padding: clamp(34px, 5vw, 62px) 0 clamp(56px, 8vw, 110px); }
.mf-steps__panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #F6FAFF 0%, #FFFFFF 100%);
  border: 1px solid var(--line);
  border-radius: clamp(20px, 3vw, 32px);
  padding: clamp(28px, 5vw, 64px);
}
.mf-steps__head {
  text-align: center;
  margin: 0 0 clamp(34px, 5vw, 60px);
}
.mf-steps__head h2 {
  font-size: clamp(25px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--navy);
  text-wrap: pretty;
}
.mf-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}
.mf-step { display: flex; flex-direction: column; gap: 16px; }
.mf-step__marker { display: flex; align-items: center; gap: 12px; }
.mf-step__num {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid #BFD6F7;
  background: #FFFFFF;
  color: var(--blue);
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mf-step__dashes {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, #BFD6F7 0 5px, transparent 5px 10px);
}
.mf-step__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.mf-step__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--tint-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.mf-step__title {
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
  color: var(--navy);
}
.mf-step__text {
  font-size: clamp(14.5px, 1.2vw, 15.5px);
  line-height: 1.65;
  color: var(--body);
  margin: 0;
  max-width: 34ch;
  text-wrap: pretty;
}

/* ---------- Footer ---------- */

.mf-footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 48px) var(--gutter) clamp(28px, 4vw, 54px);
}
.mf-footer__panel {
  background: var(--tint);
  border: 1px solid var(--line-2);
  border-radius: clamp(18px, 2.6vw, 26px);
  padding: clamp(26px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
.mf-footer__title {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--blue);
  text-wrap: pretty;
}
.mf-footer__line {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--body);
  margin: 0 0 6px;
}
.mf-footer__line--last { margin-bottom: 26px; }
.mf-footer__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.mf-contacts {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-left: 1px solid var(--line-2);
  padding-left: clamp(0px, 2vw, 32px);
}
.mf-contacts__row { display: flex; gap: 14px; align-items: flex-start; }
.mf-contacts__row > svg { flex: 0 0 auto; margin-top: 2px; }
.mf-contacts__link { font-size: 15.5px; font-weight: 600; color: var(--navy); }
.mf-contacts__link:hover { color: var(--blue); }
.mf-contacts__text { font-size: 15.5px; line-height: 1.6; color: var(--body); margin: 0; }

.mf-hours {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  column-gap: 14px;
  row-gap: 4px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--body);
}
.mf-num { font-variant-numeric: tabular-nums; }

.mf-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  border: 1px solid #D6E4FA;
  /* Doubles as the loading state: the map tiles paint over it. */
  background: repeating-linear-gradient(135deg, rgba(29, 91, 214, 0.07) 0 10px, rgba(29, 91, 214, 0.02) 10px 20px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mf-map__canvas { position: absolute; inset: 0; }
/* Shown until the map reports ready — and left in place if it never does. */
.mf-map__fallback {
  position: relative;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding: 12px;
}
.mf-map__fallback:hover { color: var(--blue); }
.mf-map.is-ready .mf-map__fallback { display: none; }

.mf-footer__bottom {
  margin-top: clamp(18px, 2.5vw, 28px);
  padding-top: clamp(16px, 2vw, 22px);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.mf-footer__mark { height: 40px; width: auto; margin: 0 auto; }
.mf-footer__copy {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  text-align: center;
  flex: 1 1 220px;
}
.mf-social { display: flex; gap: 12px; flex: 0 0 auto; justify-content: center; margin: 0 auto; }
.mf-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid var(--border-blue);
  color: var(--blue);
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.mf-social__link:hover { background: var(--blue); border-color: var(--blue); color: #FFFFFF; }

/* ---------- Reveal ---------- */

.mf-reveal-init {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1);
}
.mf-reveal-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .mf-reveal-init { opacity: 1; transform: none; }
}
