/* ==========================================================================
   Merehead — AI Agent Development page
   Design system: Merehead Website v1
   All classes are prefixed with "mh-" to avoid collisions with site styles.
   ========================================================================== */

/* Standalone preview only: remove if the host page already resets body margin. */
body { margin: 0; }

/* ---------- Tokens ---------- */
.mh-page {
  --mh-surface: #FFFFFF;
  --mh-surface-muted: #F7F8FB;
  --mh-surface-subtle: #F9FAFB;
  --mh-navy: #0E1B3D;
  --mh-navy-hover: #24356A;
  --mh-ink: #09090B;
  --mh-text-body: #52525B;
  --mh-text-strong: #344054;
  --mh-text-secondary: #475467;
  --mh-text-muted: #667085;
  --mh-text-zinc: #3F3F46;
  --mh-border: #E4E7EC;
  --mh-border-subtle: #EEF0F4;
  --mh-border-control: #D0D5DD;
  --mh-border-hover: #98A2B3;
  --mh-border-card-hover: #C3CCDD;
  --mh-fill-chip: #F2F4F7;
  --mh-accent: #FFD43B;
  --mh-blue: #2B54D9;
  --mh-blue-deep: #1E3A8A;
  --mh-blue-tint: #EEF2FD;
  --mh-blue-tint-strong: #E3E9FB;
  --mh-blue-line: #D5DEF8;
  --mh-green: #15803D;
  --mh-green-deep: #166534;
  --mh-green-tint: #E3F4EA;
  --mh-green-check: #DCF3E4;
  --mh-violet: #6D28D9;
  --mh-violet-deep: #5B21B6;
  --mh-violet-tint: #F1EBFD;
  --mh-amber: #B45309;
  --mh-amber-deep: #92400E;
  --mh-amber-ink: #7C2D12;
  --mh-amber-tint: #FDF1E3;
  --mh-teal: #0F766E;
  --mh-teal-tint: #E1F3F1;
  --mh-on-navy: #FFFFFF;
  --mh-on-navy-strong: #E2E8F0;
  --mh-on-navy-body: #CBD5E1;
  --mh-on-navy-muted: #94A3B8;
  --mh-on-navy-accent: #C7D2FE;
  --mh-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, sans-serif;
  --mh-container: 1200px;
  --mh-gutter: 32px;
  --mh-shadow-elevated: 0 2px 4px rgba(16,24,40,0.04), 0 24px 48px -12px rgba(16,24,40,0.12);
  --mh-shadow-card-hover: 0 20px 40px -18px rgba(16,24,40,0.22);
  --mh-shadow-focus: 0 0 0 3px rgba(43,84,217,0.18);

  font-family: var(--mh-font);
  color: var(--mh-ink);
  background: var(--mh-surface);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
.mh-page *, .mh-page *::before, .mh-page *::after { box-sizing: border-box; }
.mh-page img { max-width: 100%; }
.mh-page [hidden] { display: none !important; }
:where(.mh-page) svg { width: 1em; height: 1em; }
:where(.mh-page) :where(h1, h2, h3, p, ul, ol, figure, blockquote) { margin: 0; }
:where(.mh-page) :where(ul, ol) { padding: 0; list-style: none; }
:where(.mh-page) a { color: inherit; }
:where(.mh-page) button { font: inherit; }
.mh-page a:focus-visible, .mh-page button:focus-visible { outline: 2px solid var(--mh-blue); outline-offset: 2px; }
.mh-section--navy a:focus-visible, .mh-section--navy button:focus-visible, .mh-footer a:focus-visible { outline-color: var(--mh-accent); }
html { scroll-behavior: smooth; }
.mh-sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mh-icon { width: 16px; height: 16px; flex: none; }

/* ---------- Layout ---------- */
.mh-container { max-width: var(--mh-container); margin: 0 auto; padding-inline: var(--mh-gutter); }
.mh-section { padding-block: 112px 120px; }
.mh-section--muted { background: var(--mh-surface-muted); border-top: 1px solid var(--mh-border-subtle); }
.mh-section--navy { background: var(--mh-navy); color: var(--mh-on-navy); }
.mh-stack { display: flex; flex-direction: column; gap: 56px; }
.mh-stack--40 { gap: 40px; }
.mh-stack--48 { gap: 48px; }
.mh-grid { display: grid; gap: 16px; }
.mh-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mh-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mh-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mh-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mh-split { display: flex; flex-wrap: wrap; gap: 56px 80px; }

/* Section header: eyebrow + H2 left, intro right */
.mh-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 64px; }
.mh-head__main { flex: 1 1 520px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
.mh-head__aside { flex: 0 1 440px; font-size: 16px; line-height: 1.6; color: var(--mh-text-body); }
.mh-section--navy .mh-head__aside { color: var(--mh-on-navy-body); }

/* ---------- Typography ---------- */
.mh-h2 { font-size: 44px; line-height: 1.1; letter-spacing: -0.025em; font-weight: 600; max-width: 600px; text-wrap: balance; }
.mh-h3 { font-size: 18px; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; }
.mh-text { font-size: 15px; line-height: 1.6; color: var(--mh-text-body); }
.mh-overline { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mh-text-muted); }

/* ---------- Eyebrow, badge, chip ---------- */
.mh-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.2; font-weight: 600; letter-spacing: 0.02em; color: var(--mh-blue-deep); background: var(--mh-blue-tint); border-radius: 999px; padding: 6px 12px; }
.mh-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--mh-blue); flex: none; }
.mh-section--muted .mh-eyebrow { background: var(--mh-blue-tint-strong); }
.mh-section--navy .mh-eyebrow { color: var(--mh-on-navy-accent); background: rgba(199,210,254,0.12); }
.mh-section--navy .mh-eyebrow::before { background: var(--mh-accent); }
.mh-badge { display: inline-flex; align-items: center; font-size: 12px; font-weight: 500; color: var(--mh-text-secondary); border: 1px solid var(--mh-border); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.mh-badge--new { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: var(--mh-accent); color: var(--mh-ink); border: 0; padding: 2px 8px; }
.mh-badge--page { font-size: 11px; font-weight: 600; background: var(--mh-blue-tint); color: var(--mh-blue-deep); border: 1px solid var(--mh-blue-line); padding: 1px 8px; }
.mh-badge--step { font-size: 12px; font-weight: 700; border: 0; }
.mh-badge--navy { background: var(--mh-navy); color: var(--mh-on-navy); border: 0; font-weight: 700; }
.mh-badge--blue { background: var(--mh-blue-tint); color: var(--mh-blue); border: 0; }
.mh-badge--blue-deep { background: var(--mh-blue-tint); color: var(--mh-blue-deep); border: 0; font-weight: 600; }
.mh-badge--violet { background: var(--mh-violet-tint); color: var(--mh-violet); }
.mh-badge--amber { background: var(--mh-amber-tint); color: var(--mh-amber); }
.mh-badge--green { background: var(--mh-green-tint); color: var(--mh-green); }
.mh-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mh-chip { display: inline-flex; font-size: 12px; font-weight: 500; color: var(--mh-text-secondary); background: var(--mh-fill-chip); border-radius: 6px; padding: 4px 8px; }
.mh-chip--md { font-size: 13px; color: var(--mh-text-strong); padding: 5px 10px; }
.mh-chip--blue { background: var(--mh-blue-tint); color: var(--mh-blue-deep); }

/* ---------- Buttons ---------- */
.mh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 8px; border: 1px solid transparent; font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, filter .18s ease; }
.mh-btn svg { width: 16px; height: 16px; transition: transform .18s ease; }
.mh-btn:hover svg { transform: translateX(3px); }
.mh-btn:active { transform: scale(.98); }
.mh-btn--primary { background: var(--mh-accent); color: var(--mh-ink); }
.mh-btn--primary:hover { filter: brightness(.95); transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(202,138,4,0.75); }
.mh-btn--secondary { background: var(--mh-surface); border-color: var(--mh-border-control); color: var(--mh-ink); font-weight: 500; }
.mh-btn--secondary:hover { background: var(--mh-fill-chip); border-color: var(--mh-border-hover); }
.mh-btn--dark { background: var(--mh-navy); color: var(--mh-on-navy); font-weight: 500; }
.mh-btn--dark:hover { background: var(--mh-navy-hover); transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(14,27,61,0.6); }
.mh-btn--sm { height: 44px; padding: 0 18px; }
.mh-btn--lg { height: 52px; padding: 0 24px; font-size: 16px; }
.mh-btn--hero { height: 50px; padding: 0 24px; }
.mh-btn--block { width: 100%; }
.mh-link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; transition: opacity .15s ease; }
.mh-link svg { width: 14px; height: 14px; transition: transform .18s ease; }
.mh-link:hover { opacity: .75; }
.mh-link:hover svg { transform: translateX(3px); }

/* ---------- Icon tiles, checks ---------- */
.mh-tile { width: 44px; height: 44px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.mh-tile svg { width: 22px; height: 22px; }
.mh-tile--sm { width: 40px; height: 40px; }
.mh-tile--sm svg { width: 20px; height: 20px; }
.mh-tile--blue { background: var(--mh-blue-tint); color: var(--mh-blue); }
.mh-tile--violet { background: var(--mh-violet-tint); color: var(--mh-violet); }
.mh-tile--green { background: var(--mh-green-tint); color: var(--mh-green); }
.mh-tile--amber { background: var(--mh-amber-tint); color: var(--mh-amber); }
.mh-tile--teal { background: var(--mh-teal-tint); color: var(--mh-teal); }
.mh-tile--num { font-size: 15px; font-weight: 700; }
.mh-check { width: 20px; height: 20px; flex: none; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--mh-blue-tint); color: var(--mh-blue); }
.mh-check svg { width: 12px; height: 12px; }
.mh-check--green { background: var(--mh-green-check); color: var(--mh-green); }
.mh-checklist { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--mh-text-strong); }
.mh-checklist li { display: flex; align-items: center; gap: 10px; }

/* ---------- Cards ---------- */
.mh-card { background: var(--mh-surface); border: 1px solid var(--mh-border); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 16px; min-width: 0; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease; }
.mh-card:hover { transform: translateY(-4px); box-shadow: var(--mh-shadow-card-hover); border-color: var(--mh-border-card-hover); }
.mh-card--static:hover { transform: none; box-shadow: none; border-color: var(--mh-border); }
.mh-card--compact { padding: 24px; gap: 12px; }
.mh-card--tile { padding: 20px 16px; gap: 12px; border-radius: 12px; }
.mh-card--tile span:last-child { font-size: 15px; font-weight: 600; }
.mh-card__spacer { flex-grow: 1; }
.mh-card__foot { display: flex; gap: 10px; align-items: flex-start; padding-top: 16px; border-top: 1px solid var(--mh-fill-chip); font-size: 13px; line-height: 1.5; color: var(--mh-text-strong); }
.mh-card__foot svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--mh-green); }
.mh-card__benefit { padding-top: 14px; border-top: 1px solid var(--mh-fill-chip); font-size: 14px; line-height: 1.5; font-weight: 600; }
.mh-card__benefit--blue { color: var(--mh-blue-deep); }
.mh-card__benefit--violet { color: var(--mh-violet-deep); }
.mh-card__benefit--amber { color: var(--mh-amber-deep); }
.mh-card__benefit--green { color: var(--mh-green-deep); }
.mh-card--featured { border: 2px solid var(--mh-blue); padding: 27px; box-shadow: 0 16px 32px -16px rgba(43,84,217,0.35); }
.mh-card--cta { background: var(--mh-navy); border-color: var(--mh-navy); color: var(--mh-on-navy); }
.mh-card--cta:hover { border-color: var(--mh-navy); }
.mh-card--cta .mh-text { color: var(--mh-on-navy-body); }
.mh-card--cta .mh-card__label { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--mh-on-navy-accent); }
.mh-card--cta .mh-h3, .mh-card--accent .mh-h3 { font-size: 24px; line-height: 1.3; letter-spacing: -0.015em; }
.mh-card--navy { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); color: var(--mh-on-navy); }
.mh-card--navy:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.28); box-shadow: none; }
.mh-card--navy .mh-text { color: var(--mh-on-navy-body); }
.mh-card--accent { background: var(--mh-accent); border-color: var(--mh-accent); color: var(--mh-ink); }
.mh-card--accent:hover { border-color: var(--mh-accent); }
.mh-card--accent .mh-h3 { font-size: 18px; }
.mh-card--accent .mh-text { color: #27272A; }
.mh-card--white-on-navy { background: var(--mh-surface); color: var(--mh-ink); border: 0; flex-direction: row; gap: 18px; align-items: flex-start; }
.mh-card--white-on-navy .mh-h3 { font-size: 19px; }

/* ---------- Header ---------- */
.mh-header { position: relative; z-index: 30; background: var(--mh-surface); border-bottom: 1px solid var(--mh-border); }
.mh-header__in { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.mh-header__logo { display: flex; align-items: center; transition: opacity .15s ease; }
.mh-header__logo:hover { opacity: .75; }
.mh-header__logo img { height: 28px; width: auto; display: block; }
.mh-nav { display: flex; align-items: center; gap: 4px; }
.mh-nav__link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 8px; border: 0; background: transparent; font-size: 15px; font-weight: 500; color: var(--mh-ink); text-decoration: none; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.mh-nav__link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.mh-nav__link:hover { background: var(--mh-fill-chip); color: var(--mh-blue-deep); }
.mh-nav__link[aria-expanded="true"] { background: var(--mh-blue-tint); font-weight: 600; }
.mh-nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }
.mh-header__actions { display: flex; align-items: center; gap: 8px; }
.mh-burger { display: none; width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--mh-border); background: var(--mh-surface); color: var(--mh-ink); align-items: center; justify-content: center; cursor: pointer; }
.mh-burger svg { width: 20px; height: 20px; }

/* Mega menu */
.mh-mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--mh-surface); border-top: 1px solid var(--mh-border); box-shadow: 0 16px 32px rgba(9,9,11,0.06); }
.mh-mega[hidden] { display: none; }
.mh-mega__in { position: relative; display: flex; min-height: 560px; }
.mh-mega__close { position: absolute; top: 24px; right: 0; width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--mh-border); background: var(--mh-surface); color: var(--mh-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.mh-mega__close svg { width: 20px; height: 20px; }
.mh-mega__side { width: 380px; flex: none; padding: 40px 40px 40px 0; border-right: 1px solid var(--mh-border); display: flex; flex-direction: column; gap: 24px; }
.mh-mega__title { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.mh-mega__intro { font-size: 14px; line-height: 1.6; color: var(--mh-text-body); margin-top: 10px !important; }
.mh-mega__cats { display: flex; flex-direction: column; gap: 2px; }
.mh-mega__cat { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; height: 46px; padding: 0 14px; border-radius: 8px; border: 1px solid transparent; background: transparent; font-size: 15px; font-weight: 500; color: var(--mh-text-zinc); text-align: left; cursor: pointer; transition: background-color .15s ease; }
.mh-mega__cat > span { display: inline-flex; align-items: center; gap: 8px; }
.mh-mega__cat svg { width: 16px; height: 16px; color: #A1A1AA; }
.mh-mega__cat:hover { background: #F4F4F5; }
.mh-mega__cat[aria-selected="true"] { background: var(--mh-blue-tint); border-color: var(--mh-blue-line); color: var(--mh-ink); font-weight: 600; }
.mh-mega__cat[aria-selected="true"] svg { color: var(--mh-ink); }
.mh-mega__main { flex: 1; min-width: 0; padding: 40px 72px 40px 48px; display: flex; flex-direction: column; gap: 20px; }
.mh-mega__panel { display: flex; flex-direction: column; gap: 20px; }
.mh-mega__panel[hidden] { display: none; }
.mh-mega__panel .mh-overline { padding: 0 16px; font-size: 13px; color: #71717A; }
.mh-mega__items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; }
.mh-mega__item { display: flex; flex-direction: column; gap: 4px; padding: 10px 16px; border-radius: 10px; text-decoration: none; transition: background-color .15s ease; }
.mh-mega__item strong { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: var(--mh-ink); transition: color .15s ease; }
.mh-mega__item span { font-size: 14px; line-height: 1.5; color: var(--mh-text-body); }
.mh-mega__item:hover { background: #FAFAFA; }
.mh-mega__item:hover strong { color: var(--mh-blue); }
.mh-mega__strip { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 20px; border-radius: 12px; background: var(--mh-blue-tint); font-size: 15px; line-height: 1.5; }
.mh-mega__strip b { font-weight: 600; }
.mh-mega__strip span span { color: var(--mh-text-zinc); }

/* Mobile menu */
.mh-mmenu { position: fixed; inset: 0; z-index: 100; background: var(--mh-surface); display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); }
.mh-mmenu[hidden] { display: none; }
.mh-mmenu__top { height: 64px; flex: none; padding: 0 16px 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--mh-border); }
.mh-mmenu__top img { height: 24px; width: auto; display: block; }
.mh-mmenu__nav { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 20px; display: flex; flex-direction: column; }
.mh-mmenu__top-link { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 54px; border: 0; border-bottom: 1px solid var(--mh-border); background: transparent; padding: 0; font-size: 17px; font-weight: 600; color: var(--mh-ink); text-decoration: none; text-align: left; cursor: pointer; }
.mh-mmenu__top-link svg, .mh-mmenu__sub svg { width: 18px; height: 18px; transition: transform .2s ease; }
.mh-mmenu__top-link[aria-expanded="true"] svg, .mh-mmenu__sub[aria-expanded="true"] svg { transform: rotate(180deg); }
.mh-mmenu__top-link[aria-expanded="true"] { border-bottom: 0; }
.mh-mmenu__services { padding-bottom: 8px; border-bottom: 1px solid var(--mh-border); }
.mh-mmenu__services[hidden], .mh-mmenu__list[hidden] { display: none; }
.mh-mmenu__sub { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; border: 0; background: transparent; padding: 0; font-size: 15px; color: var(--mh-text-zinc); text-align: left; cursor: pointer; }
.mh-mmenu__sub svg { width: 16px; height: 16px; color: #A1A1AA; }
.mh-mmenu__group--current { margin: 4px -12px; padding: 4px 12px 8px; border-radius: 10px; background: var(--mh-blue-tint); border: 1px solid var(--mh-blue-line); }
.mh-mmenu__group--current > .mh-mmenu__sub { font-weight: 600; color: var(--mh-ink); }
.mh-mmenu__list a { display: flex; align-items: center; gap: 8px; min-height: 40px; padding-left: 26px; font-size: 15px; color: var(--mh-text-zinc); text-decoration: none; }
.mh-mmenu__list a[aria-current="page"] { padding-left: 12px; font-weight: 600; color: var(--mh-ink); }
.mh-mmenu__list a[aria-current="page"]::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--mh-ink); }
.mh-mmenu__foot { flex: none; padding: 14px 20px calc(24px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--mh-border); }
.mh-no-scroll { overflow: hidden; }

/* ---------- Hero ---------- */
.mh-hero { padding-block: 104px 120px; }
.mh-hero__in { display: flex; flex-wrap: wrap; align-items: center; gap: 72px; }
.mh-hero__copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.mh-hero__statement { font-size: 56px; line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; max-width: 600px; text-wrap: balance; }
.mh-mark { box-shadow: inset 0 -0.3em 0 var(--mh-accent); }
.mh-hero__lead { font-size: 18px; line-height: 1.6; color: var(--mh-text-body); max-width: 540px; }
.mh-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.mh-hero__trust { margin-top: 16px !important; padding-top: 24px; border-top: 1px solid var(--mh-border); align-self: stretch; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; color: var(--mh-text-zinc); }
.mh-hero__trust li { display: flex; align-items: center; gap: 8px; }
.mh-hero__visual { flex: 1 1 440px; min-width: 0; position: relative; padding: 8px 0 28px; }
.mh-float { position: absolute; left: -28px; bottom: 0; display: flex; align-items: center; gap: 10px; background: var(--mh-navy); color: var(--mh-on-navy); border-radius: 10px; padding: 12px 16px; box-shadow: 0 12px 24px -8px rgba(14,27,61,0.35); font-size: 13px; font-weight: 500; }
.mh-float svg { width: 16px; height: 16px; color: var(--mh-accent); }

/* Workflow card */
.mh-wf { background: var(--mh-surface); border: 1px solid var(--mh-border); border-radius: 14px; box-shadow: 0 2px 4px rgba(16,24,40,0.04), 0 24px 48px -12px rgba(16,24,40,0.14); overflow: hidden; }
.mh-wf__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--mh-border); }
.mh-wf__agent { display: flex; align-items: center; gap: 12px; }
.mh-wf__avatar { width: 36px; height: 36px; border-radius: 10px; background: var(--mh-navy); color: var(--mh-on-navy); display: flex; align-items: center; justify-content: center; }
.mh-wf__avatar svg { width: 18px; height: 18px; }
.mh-wf__agent small { display: block; font-size: 12px; color: var(--mh-text-muted); }
.mh-wf__agent strong { font-size: 15px; font-weight: 600; }
.mh-wf__body { padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.mh-wf__msg { display: flex; gap: 12px; align-items: flex-start; }
.mh-wf__msg-icon { width: 32px; height: 32px; flex: none; border-radius: 999px; background: var(--mh-fill-chip); color: var(--mh-text-secondary); display: flex; align-items: center; justify-content: center; }
.mh-wf__msg-icon svg { width: 16px; height: 16px; }
.mh-wf__bubble { background: var(--mh-fill-chip); border-radius: 10px; padding: 10px 14px; font-size: 14px; line-height: 1.5; }
.mh-wf__bubble small { display: block; font-size: 12px; color: var(--mh-text-muted); padding-bottom: 2px; }
.mh-wf__steps { display: flex; flex-direction: column; }
.mh-wf__step { display: flex; gap: 14px; }
.mh-wf__rail { display: flex; flex-direction: column; align-items: center; }
.mh-wf__rail::after { content: ""; width: 1px; flex: 1; background: var(--mh-border); }
.mh-wf__dot { width: 20px; height: 20px; flex: none; border-radius: 999px; background: var(--mh-green-check); color: var(--mh-green); display: flex; align-items: center; justify-content: center; }
.mh-wf__dot svg { width: 12px; height: 12px; }
.mh-wf__text { flex: 1; padding-bottom: 16px; display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.mh-wf__text em { font-style: normal; color: var(--mh-text-muted); text-align: right; }
.mh-wf__step--current { margin: 0 -8px; padding: 10px 8px; border-radius: 8px; background: var(--mh-blue-tint); align-items: center; }
.mh-wf__step--current .mh-wf__dot { background: var(--mh-blue); color: #FFFFFF; }
.mh-wf__step--current .mh-wf__text { padding: 0; font-weight: 600; color: var(--mh-blue-deep); }
.mh-wf__step--current .mh-wf__text span:last-child { font-weight: 500; }
.mh-wf__foot { display: flex; gap: 10px; align-items: flex-start; padding: 14px 20px; border-top: 1px solid var(--mh-border); background: var(--mh-surface-subtle); font-size: 13px; line-height: 1.5; color: var(--mh-text-secondary); }
.mh-wf__foot svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--mh-amber); }

/* ---------- Partners ---------- */
.mh-partners { padding-block: 40px 48px; border-top: 1px solid var(--mh-border); }
.mh-partners__in { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.mh-partners__title { flex: 0 1 260px; display: flex; align-items: center; gap: 14px; }
.mh-partners__title h2 { font-size: 17px; line-height: 1.3; font-weight: 600; }
.mh-partners__list { flex: 1 1 600px; min-width: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.mh-partners__list li { flex: 1 1 150px; min-width: 0; height: 72px; display: flex; align-items: center; justify-content: center; padding: 0 16px; background: var(--mh-surface); border: 1px solid var(--mh-border); border-radius: 12px; }
.mh-partners__list img { height: 28px; width: auto; max-width: 100%; object-fit: contain; display: block; }

/* ---------- Cases (tabs) ---------- */
.mh-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.mh-tab { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.2); background: transparent; color: var(--mh-on-navy-body); font-size: 15px; font-weight: 500; cursor: pointer; transition: border-color .18s ease, color .18s ease, background-color .18s ease; }
.mh-tab small { font-size: 12px; font-weight: 600; color: var(--mh-on-navy-muted); }
.mh-tab:hover { border-color: rgba(255,255,255,0.45); color: #FFFFFF; }
.mh-tab[aria-selected="true"] { background: #FFFFFF; border-color: #FFFFFF; color: var(--mh-navy); font-weight: 600; }
.mh-tab[aria-selected="true"] small { color: var(--mh-text-secondary); }
.mh-case { background: var(--mh-surface); color: var(--mh-ink); border-radius: 16px; padding: 48px; display: flex; flex-wrap: wrap; gap: 48px; }
.mh-case[hidden] { display: none; }
.mh-case__main { flex: 1.1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.mh-case__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.mh-case__title { font-size: 30px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
.mh-case__problem { font-size: 17px; line-height: 1.6; color: var(--mh-text-strong); }
.mh-case__block { display: flex; gap: 16px; align-items: flex-start; }
.mh-case__block--first { padding-top: 24px; border-top: 1px solid var(--mh-border); }
.mh-case__block > div { display: flex; flex-direction: column; gap: 6px; }
.mh-case__block p { font-size: 15px; line-height: 1.65; color: var(--mh-text-secondary); }
.mh-case__side { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.mh-case__measures { background: var(--mh-surface-muted); border: 1px solid var(--mh-border-subtle); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.mh-case__measures p { font-size: 14px; line-height: 1.65; color: var(--mh-text-strong); }
.mh-timeline { display: flex; gap: 4px; }
.mh-timeline > div { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--mh-text-secondary); }
.mh-timeline i { height: 8px; border-radius: 4px; background: var(--mh-border-control); }
.mh-timeline > div:last-child i { background: var(--mh-blue); }
.mh-timeline b { color: var(--mh-ink); }
.mh-timeline > div:last-child b { color: var(--mh-blue-deep); }
.mh-case__delivery { border: 1px solid var(--mh-border); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.mh-case__delivery ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; font-size: 14px; color: var(--mh-text-strong); }
.mh-case__delivery li { display: flex; align-items: center; gap: 10px; }
.mh-cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; }
.mh-cta-row__text { font-size: 20px; line-height: 1.4; font-weight: 600; }
.mh-cta-row__text span { color: var(--mh-on-navy-body); font-weight: 500; }

/* ---------- Services rows ---------- */
.mh-services__intro { flex: 1 1 340px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.mh-services__intro p { font-size: 16px; line-height: 1.6; color: var(--mh-text-body); max-width: 380px; }
.mh-rows { flex: 2 1 600px; min-width: 0; display: flex; flex-direction: column; border-top: 1px solid var(--mh-border); }
.mh-row { display: flex; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--mh-border); }
.mh-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.mh-row__title { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.mh-row__label { font-size: 12px; font-weight: 600; color: var(--mh-text-muted); padding-right: 4px; }

/* ---------- Approach ---------- */
.mh-scale { display: flex; align-items: center; gap: 16px; font-size: 13px; font-weight: 600; color: var(--mh-text-muted); }
.mh-scale::after { content: none; }
.mh-scale i { flex: 1; height: 1px; background: var(--mh-border-control); }
.mh-scale svg { width: 16px; height: 16px; margin-left: -10px; }
.mh-meter { display: flex; gap: 4px; }
.mh-meter span { width: 24px; height: 6px; border-radius: 3px; background: var(--mh-border); }
.mh-meter span.is-on { background: var(--mh-navy); }
.mh-card--featured .mh-meter span.is-on { background: var(--mh-blue); }
.mh-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mh-notice { display: flex; gap: 8px; align-items: flex-start; background: var(--mh-amber-tint); border-radius: 8px; padding: 10px 12px; font-size: 13px; line-height: 1.5; color: var(--mh-amber-ink); }
.mh-notice svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--mh-amber); }
.mh-linkcard { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: 12px; background: var(--mh-surface); border: 1px solid var(--mh-border); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease; }
.mh-linkcard strong { display: block; font-size: 15px; font-weight: 600; color: var(--mh-ink); }
.mh-linkcard small { font-size: 13px; color: var(--mh-text-muted); }
.mh-linkcard svg { width: 18px; height: 18px; flex: none; color: var(--mh-blue); transition: transform .2s ease; }
.mh-linkcard:hover { border-color: var(--mh-blue); transform: translateY(-4px); box-shadow: var(--mh-shadow-card-hover); }
.mh-linkcard:hover svg { transform: translateX(4px); }
.mh-related { display: flex; flex-direction: column; gap: 14px; }
.mh-related > span { font-size: 14px; font-weight: 600; color: var(--mh-text-strong); }

/* ---------- Banner ---------- */
.mh-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; background: var(--mh-navy); color: var(--mh-on-navy); border-radius: 16px; padding: 28px 32px; }
.mh-banner__text { flex: 1 1 520px; display: flex; gap: 16px; align-items: center; font-size: 16px; line-height: 1.5; }
.mh-banner__text .mh-tile { background: rgba(255,212,59,0.16); color: var(--mh-accent); }
.mh-banner__text span span { color: var(--mh-on-navy-body); }

/* ---------- Integrations ---------- */
.mh-integrations__top { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: center; }
.mh-integrations__copy { flex: 1 1 380px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.mh-integrations__copy p { font-size: 16px; line-height: 1.6; color: var(--mh-text-body); }
.mh-integrations__copy p.mh-note { font-size: 13px; color: var(--mh-text-muted); }
.mh-integrations__tiles { flex: 1.4 1 560px; min-width: 0; }
.mh-benefit svg { width: 22px; height: 22px; }

/* ---------- Security (navy cards) ---------- */
.mh-tile--on-navy-blue { background: rgba(129,160,255,0.16); color: #A5B8FF; }
.mh-tile--on-navy-amber { background: rgba(251,191,36,0.16); color: #FCD34D; }
.mh-tile--on-navy-green { background: rgba(74,222,128,0.14); color: #86EFAC; }
.mh-tile--on-navy-violet { background: rgba(196,167,255,0.16); color: #C4B5FD; }
.mh-tile--on-navy-teal { background: rgba(94,234,212,0.14); color: #5EEAD4; }
.mh-tile--on-accent { background: rgba(9,9,11,0.08); color: var(--mh-ink); }

/* ---------- Evaluation ---------- */
.mh-eval { display: flex; flex-wrap: wrap; gap: 24px; }
.mh-eval__metrics { flex: 1.3 1 560px; min-width: 0; }
.mh-eval__panel { flex: 1 1 380px; min-width: 0; background: var(--mh-surface-muted); border: 1px solid var(--mh-border-subtle); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.mh-eval__panel h3 { font-size: 16px; font-weight: 600; }
.mh-eval__panel > div { display: flex; flex-direction: column; gap: 14px; }
.mh-eval__panel hr { border: 0; height: 1px; background: var(--mh-border); margin: 0; }
.mh-eval__panel p { font-size: 14px; line-height: 1.6; color: var(--mh-text-secondary); }

/* ---------- Process ---------- */
.mh-step-num { width: 36px; height: 36px; border-radius: 999px; background: var(--mh-navy); color: var(--mh-on-navy); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.mh-step-num { transition: background-color .25s ease, color .25s ease; }
.mh-card:hover .mh-step-num { background: var(--mh-accent); color: var(--mh-ink); }
.mh-step-num--last { background: var(--mh-accent); color: var(--mh-ink); }
.mh-card--compact .mh-h3 { font-size: 17px; }
.mh-card--compact .mh-text { font-size: 14px; }
.mh-you-get { background: var(--mh-blue-tint); border-radius: 8px; padding: 10px 12px; font-size: 13px; line-height: 1.5; color: var(--mh-blue-deep); }
.mh-you-get b { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding-bottom: 2px; }

/* ---------- Cost ---------- */
.mh-cost { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 80px; }
.mh-cost__copy { flex: 1 1 440px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.mh-cost__copy > p { font-size: 16px; line-height: 1.6; color: var(--mh-text-body); }
.mh-cost__drivers { align-self: stretch; display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.mh-cost__drivers > span { font-size: 14px; font-weight: 600; }
.mh-proposal { flex: 1 1 460px; min-width: 0; background: var(--mh-surface); border: 1px solid var(--mh-border); border-radius: 16px; box-shadow: var(--mh-shadow-elevated); overflow: hidden; }
.mh-proposal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--mh-border); }
.mh-proposal__head small { display: block; font-size: 12px; color: var(--mh-text-muted); }
.mh-proposal__head strong { font-size: 16px; font-weight: 600; }
.mh-proposal__head svg { width: 22px; height: 22px; color: var(--mh-blue); }
.mh-proposal__row { display: flex; gap: 16px; align-items: flex-start; padding: 20px 24px; border-bottom: 1px solid var(--mh-fill-chip); }
.mh-proposal__row:last-of-type { border-bottom: 0; }
.mh-proposal__row > span { width: 32px; height: 32px; flex: none; border-radius: 8px; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.mh-proposal__row strong { display: block; font-size: 15px; font-weight: 600; }
.mh-proposal__row p { font-size: 14px; line-height: 1.5; color: var(--mh-text-muted); }
.mh-proposal__foot { padding: 16px 24px; background: var(--mh-surface-muted); border-top: 1px solid var(--mh-border); font-size: 14px; line-height: 1.5; color: var(--mh-text-strong); }

/* ---------- Working with Merehead ---------- */
.mh-stat { flex: 0 1 440px; display: flex; align-items: center; gap: 20px; }
.mh-stat strong { font-size: 56px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; color: var(--mh-accent); }
.mh-stat span { font-size: 15px; line-height: 1.5; color: var(--mh-on-navy-body); }
.mh-engage { display: flex; flex-direction: column; gap: 14px; }
.mh-engage > span { font-size: 14px; font-weight: 600; color: var(--mh-on-navy-body); }
.mh-engage .mh-text { color: var(--mh-text-body); }
.mh-feature { border-top: 1px solid rgba(255,255,255,0.18); padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.mh-feature p { font-size: 15px; line-height: 1.6; color: var(--mh-on-navy-body); }

/* ---------- Testimonials ---------- */
.mh-quote { padding: 32px; gap: 18px; }
.mh-quote__mark { color: var(--mh-blue); width: 28px; height: 28px; }
.mh-quote h3 { font-size: 19px; }
.mh-quote blockquote { font-size: 15px; line-height: 1.65; color: var(--mh-text-secondary); }
.mh-quote figcaption { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--mh-fill-chip); }
.mh-avatar { width: 44px; height: 44px; flex: none; border-radius: 999px; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.mh-avatar--blue { background: var(--mh-blue-tint); color: var(--mh-blue-deep); }
.mh-avatar--violet { background: var(--mh-violet-tint); color: var(--mh-violet-deep); }
.mh-avatar--teal { background: var(--mh-teal-tint); color: var(--mh-teal); }
.mh-quote figcaption strong { display: block; font-size: 15px; font-weight: 600; }
.mh-quote figcaption small { display: block; font-size: 13px; line-height: 1.4; color: var(--mh-text-muted); }

/* ---------- FAQ ---------- */
.mh-faq__intro { flex: 1 1 340px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.mh-expert { align-self: stretch; margin-top: 12px; background: var(--mh-surface-muted); border: 1px solid var(--mh-border-subtle); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.mh-expert__person { display: flex; align-items: center; gap: 12px; }
.mh-expert__person img { width: 56px; height: 56px; border-radius: 999px; object-fit: cover; display: block; }
.mh-expert__person strong { display: block; font-size: 16px; font-weight: 600; }
.mh-expert__person small { display: block; font-size: 13px; color: var(--mh-text-muted); }
.mh-expert p { font-size: 15px; line-height: 1.6; color: var(--mh-text-strong); }
.mh-acc { flex: 2 1 600px; min-width: 0; border-top: 1px solid var(--mh-border); }
.mh-acc__item { border-bottom: 1px solid var(--mh-border); }
.mh-acc__q { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; min-height: 72px; padding: 20px 0; background: transparent; border: 0; font-size: 17px; font-weight: 600; color: var(--mh-ink); text-align: left; cursor: pointer; }
.mh-acc__q > span:first-child { transition: color .15s ease; }
.mh-acc__q:hover > span:first-child { color: var(--mh-blue); }
.mh-acc__icon { width: 32px; height: 32px; flex: none; border-radius: 999px; border: 1px solid var(--mh-border-control); color: var(--mh-ink); display: flex; align-items: center; justify-content: center; transition: transform .3s ease, background-color .3s ease, color .3s ease, border-color .3s ease; }
.mh-acc__icon svg { width: 16px; height: 16px; }
.mh-acc__q:hover .mh-acc__icon { border-color: var(--mh-blue); }
.mh-acc__panel { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .35s ease, opacity .25s ease; }
.mh-acc__panel > div { overflow: hidden; }
.mh-acc__panel p { padding: 0 56px 24px 0; font-size: 15px; line-height: 1.65; color: var(--mh-text-secondary); }
.mh-acc__item.is-open .mh-acc__panel { grid-template-rows: 1fr; opacity: 1; }
.mh-acc__item.is-open .mh-acc__icon { transform: rotate(45deg); background: var(--mh-navy); color: #FFFFFF; border-color: var(--mh-navy); }

/* ---------- Contact form ---------- */
.mh-contact { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px 80px; }
.mh-contact__copy { flex: 1 1 420px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.mh-contact__copy > p { font-size: 17px; line-height: 1.6; color: var(--mh-text-body); }
.mh-contact__include { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.mh-contact__include > span { font-size: 14px; font-weight: 600; }
.mh-form { flex: 1 1 480px; min-width: 0; background: var(--mh-surface); border: 1px solid var(--mh-border); border-radius: 16px; box-shadow: var(--mh-shadow-elevated); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.mh-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mh-label { font-size: 14px; font-weight: 500; color: var(--mh-ink); }
.mh-input, .mh-select, .mh-textarea { width: 100%; height: 46px; border: 1px solid var(--mh-border-control); border-radius: 8px; padding: 0 12px; background: var(--mh-surface); font: inherit; font-size: 15px; color: var(--mh-ink); transition: border-color .15s ease, box-shadow .15s ease; }
.mh-textarea { height: auto; padding: 12px; line-height: 1.5; resize: vertical; }
.mh-input::placeholder, .mh-textarea::placeholder { color: var(--mh-text-muted); }
.mh-input:hover, .mh-select:hover, .mh-textarea:hover { border-color: var(--mh-border-hover); }
.mh-input:focus, .mh-select:focus, .mh-textarea:focus { outline: none; border-color: var(--mh-blue); box-shadow: var(--mh-shadow-focus); }
.mh-select-wrap { position: relative; display: flex; }
.mh-select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.mh-select:invalid { color: var(--mh-text-muted); }
.mh-select-wrap > svg { position: absolute; right: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--mh-text-muted); pointer-events: none; }
.mh-phone { display: flex; height: 46px; border: 1px solid var(--mh-border-control); border-radius: 8px; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.mh-phone:hover { border-color: var(--mh-border-hover); }
.mh-phone:focus-within { border-color: var(--mh-blue); box-shadow: var(--mh-shadow-focus); }
.mh-phone .mh-select-wrap { flex: none; }
.mh-phone .mh-select { width: 104px; height: 100%; border: 0; border-right: 1px solid var(--mh-border); border-radius: 0; background: var(--mh-surface-subtle); padding: 0 30px 0 12px; }
.mh-phone .mh-input { flex: 1; height: 100%; border: 0; border-radius: 0; }
.mh-phone .mh-select:focus, .mh-phone .mh-input:focus { box-shadow: none; }
.mh-field.is-invalid .mh-input, .mh-field.is-invalid .mh-select, .mh-field.is-invalid .mh-textarea, .mh-field.is-invalid .mh-phone { border-color: #B42318; }
.mh-error { font-size: 13px; line-height: 1.4; color: #B42318; }
.mh-error[hidden] { display: none; }
.mh-legal { font-size: 13px; line-height: 1.5; color: var(--mh-text-muted); }
.mh-form__success { display: flex; flex-direction: column; gap: 8px; padding: 8px 0; }
.mh-form__success[hidden] { display: none; }
.mh-form__success strong { font-size: 18px; }
.mh-form__success p { font-size: 15px; line-height: 1.6; color: var(--mh-text-body); }

/* ---------- Lead modal ---------- */
.mh-modal { width: min(640px, calc(100% - 32px)); max-width: none; max-height: calc(100% - 48px); margin: auto; padding: 0; border: 0; border-radius: 16px; background: var(--mh-surface); color: var(--mh-ink); box-shadow: 0 32px 64px -24px rgba(14,27,61,0.45); overflow: auto; overscroll-behavior: contain; }
.mh-modal::backdrop { background: rgba(14,27,61,0.55); }
.mh-modal[open] { animation: mh-modal-in .25s ease; }
.mh-modal[open]::backdrop { animation: mh-fade-in .25s ease; }
@keyframes mh-modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes mh-fade-in { from { opacity: 0; } to { opacity: 1; } }
.mh-modal__box { position: relative; padding: 48px; display: flex; flex-direction: column; gap: 28px; }
.mh-modal__close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--mh-border); background: var(--mh-surface); color: var(--mh-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.mh-modal__close:hover { background: var(--mh-fill-chip); border-color: var(--mh-border-hover); }
.mh-modal__close svg { width: 20px; height: 20px; }
.mh-modal__head { display: flex; flex-direction: column; gap: 12px; padding-right: 40px; }
.mh-modal__title { font-size: 34px; line-height: 1.15; letter-spacing: -0.025em; font-weight: 600; text-wrap: balance; }
.mh-modal__desc { font-size: 17px; line-height: 1.6; color: var(--mh-text-body); }
.mh-modal__form { display: flex; flex-direction: column; gap: 18px; }
.mh-modal__note { font-size: 13px; line-height: 1.6; color: var(--mh-text-muted); }
.mh-modal__note a { color: var(--mh-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.mh-modal__note a:hover { color: var(--mh-blue-deep); }
.mh-modal .mh-form__success { align-items: flex-start; gap: 12px; padding: 8px 0 0; }
html.mh-modal-open { overflow: hidden; }

/* ---------- Footer ---------- */
.mh-footer { background: var(--mh-navy); color: var(--mh-on-navy); padding-block: 80px 32px; }
.mh-footer__in { display: flex; flex-direction: column; gap: 40px; }
.mh-footer__top { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.mh-footer__brand { flex: 1.4 1 300px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.mh-footer__brand > img { height: 30px; width: auto; display: block; }
.mh-footer__brand > p { font-size: 15px; line-height: 1.6; color: var(--mh-on-navy-body); max-width: 340px; }
.mh-footer__contacts { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.mh-footer__contacts a { color: var(--mh-on-navy); text-decoration: none; }
.mh-footer__contacts a:first-child { font-weight: 600; }
.mh-footer__contacts address { font-style: normal; color: var(--mh-on-navy-muted); line-height: 1.6; max-width: 300px; }
.mh-social { display: flex; flex-wrap: wrap; gap: 8px; }
.mh-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); color: var(--mh-on-navy-body); display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 15px; font-weight: 700; letter-spacing: -0.02em; transition: transform .18s ease, background-color .18s ease, color .18s ease; }
.mh-social a svg { width: 18px; height: 18px; }
.mh-social a:hover { transform: translateY(-2px); background: rgba(255,255,255,0.16); color: #FFFFFF; }
.mh-footer__col { flex: 1 1 200px; display: flex; flex-direction: column; gap: 12px; }
.mh-footer__col--narrow { flex: 0.8 1 160px; }
.mh-footer__links { flex: 3 1 640px; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.mh-footer__links .mh-footer__col { gap: 10px; }
.mh-footer__links .mh-footer__col a { font-size: 14px; line-height: 1.45; }
.mh-footer__col h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mh-on-navy-muted); padding-bottom: 4px; }
.mh-footer__col a { font-size: 15px; color: var(--mh-on-navy-strong); text-decoration: none; transition: color .15s ease; }
.mh-footer__col a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 4px; }
.mh-footer__col a[aria-current="page"] { color: #FFFFFF; font-weight: 600; }
.mh-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 14px; color: var(--mh-on-navy-muted); }
.mh-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.mh-footer__bottom a { color: var(--mh-on-navy-body); text-decoration: none; }
.mh-footer__bottom a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .mh-grid--4, .mh-grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .mh-nav, .mh-header__cta, .mh-mega { display: none !important; }
  .mh-burger { display: inline-flex; }
  .mh-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mh-float { display: none; }
  .mh-footer__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .mh-grid--2, .mh-grid--3, .mh-grid--4, .mh-grid--5 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .mh-section, .mh-hero { padding-block: 72px; }
  .mh-header__in { height: 64px; }
  .mh-header__logo img { height: 24px; }
  .mh-hero__statement { font-size: 40px; }
  .mh-h2 { font-size: 32px; }
  .mh-case { padding: 24px; }
  .mh-case__title { font-size: 24px; }
  .mh-case__delivery ul { grid-template-columns: 1fr; }
  .mh-eval__panel, .mh-form { padding: 24px; }
  .mh-banner { padding: 24px; }
  .mh-acc__panel p { padding-right: 0; }
  .mh-card--white-on-navy { flex-direction: column; }
  .mh-modal { width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
  .mh-modal__box { padding: 64px 20px 32px; gap: 24px; }
  .mh-modal__title { font-size: 28px; }
  .mh-partners__list li { flex-basis: calc(50% - 6px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mh-modal[open], .mh-modal[open]::backdrop { animation: none; }
  .mh-page *, .mh-page *::before, .mh-page *::after { transition: none !important; }
  .mh-card:hover, .mh-btn:hover, .mh-linkcard:hover, .mh-social a:hover { transform: none !important; }
}
