.fmm-toggle,
.fmm-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 0;
}

.fmm-toggle-icon {
  width: 22px;
  height: 14px;
  position: relative;
  display: inline-block;
}

.fmm-toggle-icon span,
.fmm-toggle-icon::before,
.fmm-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform .22s ease, opacity .22s ease, top .22s ease;
}

.fmm-toggle-icon::before { top: 0; }
.fmm-toggle-icon span:first-child { top: 6px; }
.fmm-toggle-icon::after { top: 12px; }
.fmm-toggle-icon span:last-child { display: none; }

.fmm-toggle.is-open .fmm-toggle-icon::before,
body.fmm-menu-open .fmm-toggle[data-fmm-active="1"] .fmm-toggle-icon::before {
  top: 6px;
  transform: rotate(45deg);
}
.fmm-toggle.is-open .fmm-toggle-icon span:first-child,
body.fmm-menu-open .fmm-toggle[data-fmm-active="1"] .fmm-toggle-icon span:first-child {
  opacity: 0;
}
.fmm-toggle.is-open .fmm-toggle-icon::after,
body.fmm-menu-open .fmm-toggle[data-fmm-active="1"] .fmm-toggle-icon::after {
  top: 6px;
  transform: rotate(-45deg);
}

.fmm-overlay {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--fmm-top, 0px);
  width: 100%;
  z-index: var(--fmm-z, 9999);
  background: var(--fmm-bg, #241d24);
  color: var(--fmm-text, #f6f0e8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-18px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  max-height: calc(100vh - var(--fmm-top, 0px));
  overflow: auto;
}

.fmm-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

body.fmm-menu-open {
  overflow: hidden;
}

.fmm-overlay-inner {
  width: 100%;
  padding: var(--fmm-pt, 48px) 32px var(--fmm-pb, 64px);
  box-sizing: border-box;
}

.fmm-overlay-head {
  position: relative;
  min-height: 62px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 24px;
  margin-bottom: 36px;
}

.fmm-close {
  color: var(--fmm-text, #f6f0e8);
  align-self: start;
}

.fmm-x {
  width: 20px;
  height: 20px;
  position: relative;
  display: inline-block;
}
.fmm-x::before,
.fmm-x::after {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 20px;
  height: 1px;
  background: currentColor;
}
.fmm-x::before { transform: rotate(45deg); }
.fmm-x::after { transform: rotate(-45deg); }

.fmm-logo {
  text-align: center;
  line-height: 1.08;
  letter-spacing: .35em;
  text-transform: uppercase;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  white-space: nowrap;
}

.fmm-head-links {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  align-items: center;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.fmm-grid a {
    font-family: 'Plus Jakarta Sans';
}

.fmm-head-links a,
.fmm-grid a {
  color: inherit;
  text-decoration: none;
}

.fmm-head-links a:hover,
.fmm-grid a:hover {
  opacity: .72;
}

.fmm-grid {
  display: grid;
  grid-template-columns: repeat(var(--fmm-cols, 6), minmax(120px, 1fr));
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.fmm-col h3,
.fmm-group h4 {
  color: var(--fmm-text, #f6f0e8);
  font-size: 11px;
  line-height: 1.25;
  text-transform: uppercase;
  margin: 0 0 24px;
  font-weight: 800;
      font-family: 'Plus Jakarta Sans';
}

.fmm-group { margin: 0 0 28px; }
.fmm-group h4 { margin-bottom: 17px; font-size: 10px; }

.fmm-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fmm-grid li {
  margin: 0 0 22px;
}

.fmm-grid a {
  color: var(--fmm-muted, #cfc7bd);
  font-size: clamp(15px, 1.2vw, 14px);
  line-height: 1.2;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .fmm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .fmm-overlay-inner { padding: 28px 22px 44px; }
  .fmm-overlay-head {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 28px;
  }
  .fmm-logo { text-align: left; font-size: 15px; white-space: normal; }
  .fmm-head-links { justify-content: flex-start; }
  .fmm-grid { grid-template-columns: 1fr; gap: 8px; }
  .fmm-col { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; }
  .fmm-grid li { margin-bottom: 16px; }
}
