.fm-page {
  --fm-navy: #0c3f73;
  --fm-blue: #1d6fd0;
  --fm-orange: #f39c12;
  --fm-ink: #1e293b;
  --fm-muted: #64748b;
  background: #f7f8fb;
  color: var(--fm-ink);
  font-family: Poppins, Barlow, sans-serif;
}

.fm-banner {
  position: relative;
  height: auto;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 88px 0 24px;
  background: #12375f;
  overflow: hidden;
}

.fm-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.fm-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 28, 52, 0.72) 0%, rgba(8, 28, 52, 0.28) 55%, rgba(8, 28, 52, 0.15) 100%);
}

.fm-banner h1 {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto 8px;
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
}

.fm-wrap {
  max-width: 1100px;
  margin: 28px auto 0;
  padding: 0 16px 48px;
  position: relative;
  z-index: 1;
}

.fm-intro,
.fm-block {
  margin-bottom: 18px;
  padding: 28px 22px 32px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  text-align: center;
}

.fm-intro {
  display: grid;
  grid-template-columns: minmax(240px, 42%) 1fr;
  gap: 28px;
  align-items: center;
  padding: 16px;
  text-align: left;
}

.fm-intro img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 8px;
}

.fm-intro h2,
.fm-intro p {
  text-align: left;
}

.fm-intro h2,
.fm-block h2 {
  margin: 0 0 12px;
  color: var(--fm-navy);
  font-size: 26px;
  font-weight: 600;
}

.fm-intro p,
.fm-note p {
  margin: 0 auto;
  max-width: 760px;
  color: #475569;
  font-size: 15px;
  line-height: 1.7;
  text-align: left;
}

.fm-pair,
.fm-grid,
.fm-grid-3 {
  display: grid;
  gap: 22px 18px;
  margin-top: 8px;
}

.fm-pair {
  grid-template-columns: 1fr 1fr;
  max-width: 760px;
  margin-inline: auto;
}

.fm-grid {
  grid-template-columns: repeat(4, 1fr);
}

.fm-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 820px;
  margin-inline: auto;
}

.fm-shot {
  margin: 0;
}

.fm-shot img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  background: #eef2f6;
}

.fm-pair img {
  height: 280px;
}

.fm-shot figcaption {
  margin-top: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
}

.fm-menus {
  margin-bottom: 18px;
}

.fm-menu-card {
  overflow: hidden;
  border: 1px solid #e4c36a;
  border-radius: 4px;
  background: #fff;
}

.fm-tablist {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.fm-tab {
  margin: 0;
  padding: 14px 10px;
  border: 0;
  background: #0c3f73;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
}

.fm-tab + .fm-tab {
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.fm-tab.is-active {
  background: #f0a500;
}

.fm-panel {
  padding: 28px 8px 12px;
}

.fm-panel[hidden] {
  display: none;
}

.fm-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.fm-split > div {
  padding: 0 28px 16px;
  text-align: left;
}

.fm-split > div + div {
  border-left: 1px solid #1a4f8b;
}

.fm-split h3 {
  margin: 0 0 16px;
  color: #1d4e9a;
  font-size: 26px;
  font-weight: 700;
}

.fm-split h4 {
  margin: 16px 0 6px;
  color: #1e293b;
  font-size: 18px;
  font-weight: 700;
}

.fm-split ul {
  margin: 0;
  padding-left: 22px;
  color: #334155;
}

.fm-split li {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.45;
}

.fm-menu-note {
  margin: 12px 0 0;
  color: #475569;
  font-size: 14.5px;
  line-height: 1.6;
}

.fm-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.fm-col h3 {
  margin: 0;
  padding: 12px 16px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.fm-col-orange h3 { background: var(--fm-orange); }
.fm-col-blue h3 { background: var(--fm-blue); }
.fm-col-navy h3 { background: var(--fm-navy); }

.fm-col ul {
  margin: 0;
  padding: 16px 22px 22px;
  list-style: disc;
  text-align: left;
  color: #334155;
}

.fm-col li {
  margin: 0 0 6px;
  font-size: 14.5px;
  line-height: 1.45;
}

.fm-note,
.fm-checks {
  margin-top: 18px;
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.fm-note h2,
.fm-checks h2 {
  margin: 18px 0 8px;
  color: var(--fm-navy);
  font-size: 20px;
}

.fm-note h2:first-child,
.fm-checks h2:first-child {
  margin-top: 0;
}

.fm-note p {
  margin: 0 0 10px;
  color: #475569;
  font-size: 14.5px;
  line-height: 1.7;
}

.fm-checks ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.fm-checks li {
  position: relative;
  padding-left: 22px;
  color: #334155;
  font-size: 14.5px;
}

.fm-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--fm-orange);
  font-weight: 700;
}

.fm-credit {
  margin: 14px 0 0;
  color: var(--fm-muted);
  font-size: 12px;
  text-align: center;
}

.fm-footer {
  padding: 28px 20px;
  background: var(--fm-navy);
  color: rgba(255, 255, 255, 0.9);
}

.fm-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}

.fm-footer a {
  color: #fff;
  text-decoration: none;
}

.fm-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 800px) {
  .fm-intro,
  .fm-grid,
  .fm-grid-3,
  .fm-pair,
  .fm-board,
  .fm-checks ul,
  .fm-split {
    grid-template-columns: 1fr 1fr;
  }

  .fm-tablist {
    grid-template-columns: 1fr;
  }

  .fm-tab + .fm-tab {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
  }

  .fm-intro {
    grid-template-columns: 1fr;
  }

  .fm-banner {
    height: auto;
    min-height: 0;
    padding-top: 72px;
  }

  .fm-pair img,
  .fm-shot img {
    height: 140px;
  }
}

@media (max-width: 520px) {
  .fm-grid,
  .fm-grid-3,
  .fm-pair,
  .fm-board,
  .fm-checks ul,
  .fm-split {
    grid-template-columns: 1fr;
  }

  .fm-split > div + div {
    border-left: 0;
    border-top: 1px solid #1a4f8b;
    padding-top: 20px;
  }
}
