/* =========================================================
   Mex Línea Service — Revisión documental privada
   Estilo "expediente / papel" cálido. Sistema propio (ml-*)
   ========================================================= */

:root {
  --ink: #1c1917;
  --ink-soft: #57534e;
  --ink-faint: #8b857e;
  --paper: #faf7f2;
  --paper-2: #f3ede3;
  --paper-3: #efe7da;
  --card: #ffffff;
  --line: #e6ddd0;
  --line-2: #d8cdbb;
  --amber: #c2410c;
  --amber-d: #9a3412;
  --amber-soft: #fbe9dd;
  --teal: #0f766e;
  --gold: #b45309;
  --ok: #15803d;
  --radius: 4px;
  --radius-lg: 10px;
  --maxw: 1140px;
  --shadow:
    0 1px 0 rgba(28, 25, 23, 0.04), 0 12px 30px -18px rgba(28, 25, 23, 0.25);
  --serif: "Fraunces", "Georgia", "Times New Roman", serif;
  --sans:
    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.7rem);
  font-weight: 600;
}
h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
}
h3 {
  font-size: 1.25rem;
}
p {
  margin: 0 0 1rem;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
video {
  max-width: 100%;
  display: block;
}
strong {
  font-weight: 600;
  color: var(--ink);
}

.ml-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
.ml-narrow {
  max-width: 820px;
}

.ml-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-d);
  margin: 0 0 1rem;
}
.ml-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--amber);
  display: inline-block;
}
.ml-lead {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 62ch;
  line-height: 1.6;
}
.ml-muted {
  color: var(--ink-soft);
}
.ml-section {
  padding: 96px 0;
}
.ml-section--paper {
  background: var(--paper-2);
}
.ml-section--ink {
  background: var(--ink);
  color: #f5f0e8;
}
.ml-section--ink h2,
.ml-section--ink h3 {
  color: #fff;
}
.ml-section--ink .ml-lead {
  color: #d6cfc4;
}

/* ---------- Buttons ---------- */
.ml-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: 0.18s ease;
  letter-spacing: 0.01em;
}
.ml-btn--solid {
  background: var(--ink);
  color: #fff;
}
.ml-btn--solid:hover {
  background: #000;
  transform: translateY(-1px);
}
.ml-btn--amber {
  background: var(--amber);
  color: #fff;
}
.ml-btn--amber:hover {
  background: var(--amber-d);
  transform: translateY(-1px);
}
.ml-btn--line {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.ml-btn--line:hover {
  border-color: var(--ink);
  background: var(--card);
}
.ml-btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.ml-btn--ghost-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.ml-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Top ribbon ---------- */
.ml-ribbon {
  background: var(--ink);
  color: #cbbfae;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}
.ml-ribbon .ml-wrap {
  display: flex;
  gap: 8px 22px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 8px 28px;
}
.ml-ribbon b {
  color: #fff;
  font-weight: 700;
}
.ml-ribbon .ml-ribbon-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.ml-ribbon .ml-ribbon-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

/* ---------- Header (ledger / folder-tabs) ---------- */
.ml-header {
  position: relative;
  z-index: 60;
  background: var(--paper);
  border-bottom: 3px double var(--line-2);
}
.ml-header .ml-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 28px;
  min-height: 86px;
  padding-top: 8px;
}
.ml-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.16rem;
  letter-spacing: -0.01em;
}
.ml-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 0.92rem;
  font-weight: 600;
  position: relative;
  flex: 0 0 auto;
  box-shadow: 3px 3px 0 var(--amber);
}
.ml-brand-mark::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 8px;
  width: 15px;
  height: 4px;
  border-radius: 2px 2px 0 0;
  background: var(--amber);
}
.ml-brand small {
  display: block;
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-d);
  font-weight: 700;
  line-height: 1;
  margin-top: 3px;
}

/* folder-tab navigation: tabs sit on a shared baseline */
.ml-nav {
  justify-self: center;
  align-self: end;
}
.ml-nav ul {
  list-style: none;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid transparent;
}
.ml-nav li:not(.ml-nav-cta) {
  position: relative;
}
.ml-nav a:not(.ml-btn) {
  display: block;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 7px 7px 0 0;
  transition: 0.15s;
  position: relative;
  top: 1px;
}
.ml-nav a:not(.ml-btn):hover {
  color: var(--ink);
  background: var(--paper-2);
  border-color: var(--line);
}
.ml-nav a:not(.ml-btn)::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}
.ml-nav a:not(.ml-btn):hover::after {
  transform: scaleX(1);
}
.ml-nav-cta {
  margin-left: 14px;
  align-self: center;
  padding-bottom: 4px;
}

/* stamp-style CTA in header */
.ml-header .ml-nav-cta .ml-btn {
  border-radius: 6px;
  border: 1.5px solid var(--amber);
  background: var(--amber);
  box-shadow: 2px 2px 0 var(--amber-d);
  padding: 11px 20px;
}
.ml-header .ml-nav-cta .ml-btn:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--amber-d);
}
.ml-header-cta {
  justify-self: end;
}

#ml-burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--ink);
  border-radius: 7px;
  background: var(--card);
  cursor: pointer;
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--amber);
  justify-self: end;
}
#ml-burger span,
#ml-burger span::before,
#ml-burger span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  margin: 0 auto;
  transition: 0.2s;
  position: relative;
}
#ml-burger span::before {
  position: absolute;
  top: -6px;
}
#ml-burger span::after {
  position: absolute;
  top: 6px;
}

/* ---------- Hero (full-bleed background video, centered) ---------- */
.ml-hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  padding: 110px 0 96px;
  overflow: hidden;
  background: var(--ink);
  color: #f5f0e8;
  text-align: center;
  border-bottom: 3px double var(--amber-d);
}
.ml-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.ml-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(28, 25, 23, 0.55) 0%, rgba(28, 25, 23, 0.72) 60%, rgba(28, 25, 23, 0.9) 100%),
    radial-gradient(900px 420px at 50% 18%, rgba(194, 65, 12, 0.32) 0%, transparent 60%);
}
.ml-hero .ml-wrap {
  position: relative;
  z-index: 2;
}
.ml-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}
.ml-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(250, 247, 242, 0.1);
  border: 1px solid rgba(250, 247, 242, 0.28);
  border-radius: 999px;
  padding: 7px 16px 7px 9px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #f5f0e8;
  margin-bottom: 26px;
  backdrop-filter: blur(4px);
}
.ml-hero-badge i {
  font-style: normal;
  background: var(--amber);
  color: #fff;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  font-weight: 700;
}
.ml-hero h1 {
  color: #fff;
  margin-bottom: 0.4em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}
.ml-hero h1 em {
  font-style: italic;
  color: #fcd9c4;
}
.ml-hero .ml-lead {
  color: #e7ddd0;
  max-width: 58ch;
  margin: 0 auto;
  font-size: 1.2rem;
}
.ml-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 30px 0 22px;
}
.ml-microdisc {
  font-size: 0.86rem;
  color: #c9bfb2;
  max-width: 56ch;
  margin: 0 auto;
  padding-top: 10px;
  border-top: 1px solid rgba(250, 247, 242, 0.18);
}

/* ---------- Stat strip ---------- */
.ml-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
}
.ml-stats div {
  padding: 26px 24px;
  border-right: 1px solid var(--line);
}
.ml-stats div:last-child {
  border-right: 0;
}
.ml-stats b {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--amber-d);
  line-height: 1;
}
.ml-stats span {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ---------- Section heading block ---------- */
.ml-head {
  max-width: 720px;
  margin-bottom: 44px;
}
.ml-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Risk cards (numbered dossier) ---------- */
.ml-risks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.ml-risk {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  position: relative;
  transition: 0.18s;
}
.ml-risk:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.ml-risk-no {
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--amber-d);
  border: 1px solid var(--amber);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.ml-risk h3 {
  margin: 0 0 0.4rem;
}
.ml-risk p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.97rem;
}

/* ---------- Service tiles ---------- */
.ml-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.ml-tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: 0.18s;
}
.ml-section--paper .ml-tile {
  background: var(--card);
}
.ml-tile:hover {
  border-color: var(--amber);
}
.ml-tile-ico {
  width: 46px;
  height: 46px;
  border-radius: 9px;
  background: var(--amber-soft);
  color: var(--amber-d);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.ml-tile-ico svg {
  width: 24px;
  height: 24px;
}
.ml-tile h3 {
  margin: 0 0 0.5rem;
}
.ml-tile p {
  color: var(--ink-soft);
  font-size: 0.97rem;
  flex: 1;
}
.ml-tile-link {
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--amber-d);
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.ml-tile-link:hover {
  gap: 10px;
}

/* ---------- Process timeline ---------- */
.ml-flow {
  display: grid;
  gap: 0;
  max-width: 840px;
}
.ml-flow-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding: 28px 0;
  position: relative;
}
.ml-flow-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 60px;
  bottom: -6px;
  width: 2px;
  background: var(--line-2);
}
.ml-flow-n {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--line-2);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  z-index: 1;
}
.ml-flow-step--gov .ml-flow-n {
  background: var(--amber);
  border-color: var(--amber);
  color: #fff;
}
.ml-flow-step h3 {
  margin: 6px 0 0.3rem;
}
.ml-flow-step p {
  margin: 0;
  color: var(--ink-soft);
}
.ml-flow-step--gov h3 {
  color: var(--amber-d);
}

/* ---------- Checklist panel ---------- */
.ml-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.ml-split img {
  border-radius: var(--radius-lg);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  border: 1px solid var(--line-2);
}
.ml-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.ml-checklist li {
  padding: 16px 18px 16px 50px;
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.97rem;
}
.ml-checklist li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 18px;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--ok);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>")
    center/16px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>")
    center/16px no-repeat;
}
.ml-xlist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.ml-xlist li {
  padding-left: 34px;
  position: relative;
  color: var(--ink-soft);
}
.ml-xlist li::before {
  content: "×";
  position: absolute;
  left: 6px;
  top: -2px;
  font-size: 1.3rem;
  color: var(--amber);
  font-weight: 700;
}

/* ---------- Quotes ---------- */
.ml-quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.ml-quote {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}
.ml-quote::before {
  content: "\201C";
  font-family: var(--serif);
  font-size: 3.4rem;
  color: var(--amber);
  line-height: 0.6;
  display: block;
  margin-bottom: 8px;
}
.ml-quote p {
  font-size: 1rem;
  color: var(--ink);
  margin: 0 0 14px;
}
.ml-quote cite {
  font-style: normal;
  color: var(--ink-faint);
  font-size: 0.84rem;
  display: block;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

/* ---------- Trámites chips ---------- */
.ml-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.ml-tags li {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.ml-tags li:hover {
  border-color: var(--amber);
  color: var(--ink);
}

/* ---------- Accordion ---------- */
.ml-acc {
  border-bottom: 1px solid var(--line);
}
.ml-acc-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 24px 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.ml-acc-btn::after {
  content: "";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--line-2);
  border-radius: 50%;
  background:
    linear-gradient(var(--amber-d), var(--amber-d)) center/10px 1.6px no-repeat,
    linear-gradient(var(--amber-d), var(--amber-d)) center/1.6px 10px no-repeat;
  transition: transform 0.25s;
}
.ml-acc-btn[aria-expanded="true"]::after {
  transform: rotate(135deg);
  border-color: var(--amber);
}
.ml-acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.ml-acc-panel p {
  color: var(--ink-soft);
  padding-bottom: 6px;
  margin: 0;
}
.ml-acc-btn[aria-expanded="true"] + .ml-acc-panel {
  max-height: 640px;
  padding-bottom: 24px;
}

/* ---------- CTA band ---------- */
.ml-cta {
  text-align: center;
  background:
    radial-gradient(
      800px 360px at 50% 120%,
      rgba(194, 65, 12, 0.25) 0%,
      transparent 60%
    ),
    var(--ink);
  color: #f5f0e8;
}
.ml-cta h2 {
  color: #fff;
}
.ml-cta .ml-lead {
  color: #d6cfc4;
  margin: 0 auto 26px;
}
.ml-cta .ml-hero-actions {
  justify-content: center;
}
.ml-cta-note {
  margin-top: 22px;
  font-size: 0.84rem;
  color: #b5ab9c;
}

/* ---------- Page hero (interior) ---------- */
.ml-pagehead {
  padding: 70px 0 46px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.ml-crumbs {
  font-size: 0.84rem;
  color: var(--ink-faint);
  margin-bottom: 1rem;
}
.ml-crumbs a:hover {
  color: var(--amber-d);
}

/* ---------- Service detail (interior) ---------- */
.ml-svc {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  padding: 36px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1.55fr 0.9fr;
  gap: 40px;
}
.ml-svc-no {
  font-family: var(--serif);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-d);
  margin-bottom: 6px;
}
.ml-svc h4 {
  font-family: var(--sans);
  margin: 1.4rem 0 0.6rem;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
}
.ml-svc aside {
  background: var(--paper-2);
  border-radius: 8px;
  padding: 24px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  align-self: start;
}
.ml-svc aside h4 {
  margin-top: 0;
  color: var(--amber-d);
}
.ml-svc aside h4:not(:first-child) {
  margin-top: 1.1rem;
}
.ml-svc aside p {
  margin: 0;
}

/* ---------- Table ---------- */
.ml-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}
.ml-table th,
.ml-table td {
  text-align: left;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.ml-table th {
  width: 34%;
  font-weight: 600;
  color: var(--ink);
}
.ml-table td {
  color: var(--ink-soft);
}

/* ---------- Cards (generic) ---------- */
.ml-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.ml-cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.ml-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.ml-section--paper .ml-card {
  background: var(--paper);
}
.ml-card h3 {
  margin-top: 0;
}
.ml-card p {
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Form ---------- */
.ml-form {
  display: grid;
  gap: 18px;
}
.ml-field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 7px;
  color: var(--ink);
}
.ml-field input,
.ml-field select,
.ml-field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  font: inherit;
  font-size: 0.95rem;
  background: var(--card);
  color: var(--ink);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.ml-field input:focus,
.ml-field select:focus,
.ml-field textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-soft);
}
.ml-field textarea {
  min-height: 140px;
  resize: vertical;
}
.ml-consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.ml-consent input {
  width: auto;
  margin-top: 5px;
}
.ml-consent a {
  color: var(--amber-d);
  text-decoration: underline;
}

.ml-contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: start;
}
.ml-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}
.ml-contact-list b {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-d);
  font-weight: 700;
  margin-bottom: 3px;
}
.ml-contact-list a:hover {
  color: var(--amber-d);
}

/* ---------- Article (legal) ---------- */
.ml-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 28px;
}
.ml-article .ml-meta {
  color: var(--ink-faint);
  font-size: 0.86rem;
  margin-bottom: 1.8rem;
}
.ml-article ol {
  padding-left: 0;
  counter-reset: sec;
  list-style: none;
}
.ml-article ol > li {
  margin-bottom: 1.8rem;
  counter-increment: sec;
  position: relative;
  padding-left: 52px;
}
.ml-article ol > li::before {
  content: counter(sec, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--amber-d);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.8rem;
}
.ml-article h2 {
  font-size: 1.22rem;
  margin: 0 0 0.5rem;
}
.ml-article p {
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Footer ---------- */
.ml-footer {
  background: var(--paper-3);
  border-top: 1px solid var(--line);
  padding: 64px 0 30px;
}
.ml-footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
  gap: 36px;
}
.ml-footer h4 {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
  margin-bottom: 1rem;
}
.ml-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.ml-footer li {
  color: var(--ink-soft);
  font-size: 0.94rem;
}
.ml-footer a:hover {
  color: var(--amber-d);
}
.ml-footer .ml-brand {
  font-size: 1.05rem;
}
.ml-footer-note {
  color: var(--ink-soft);
  margin-top: 14px;
  font-size: 0.92rem;
  max-width: 34ch;
}
.ml-footer-bottom {
  border-top: 1px solid var(--line-2);
  margin-top: 44px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--ink-faint);
  font-size: 0.82rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .ml-split,
  .ml-svc,
  .ml-contact-grid {
    grid-template-columns: 1fr;
  }
  .ml-hero {
    min-height: 0;
    padding: 76px 0 70px;
  }
  .ml-risks,
  .ml-tiles,
  .ml-quotes,
  .ml-cards {
    grid-template-columns: 1fr 1fr;
  }
  .ml-stats {
    grid-template-columns: 1fr 1fr;
  }
  .ml-stats div:nth-child(2) {
    border-right: 0;
  }
  .ml-stats div:nth-child(1),
  .ml-stats div:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
  .ml-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ml-header .ml-wrap {
    grid-template-columns: 1fr auto;
    min-height: 72px;
  }
  #ml-burger {
    display: block;
  }
  .ml-nav {
    grid-column: 1 / -1;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
    z-index: 70;
  }
  .ml-nav[data-open="true"] {
    display: block;
  }
  .ml-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 28px 20px;
    border-bottom: 0;
  }
  .ml-nav li:not(.ml-nav-cta) {
    border-bottom: 1px solid var(--line);
  }
  .ml-nav a:not(.ml-btn) {
    display: block;
    padding: 15px 0;
    border: 0;
    border-radius: 0;
    top: 0;
  }
  .ml-nav a:not(.ml-btn):hover {
    background: none;
  }
  .ml-nav a:not(.ml-btn)::after {
    left: 0;
    right: auto;
    width: 30px;
    bottom: 8px;
  }
  .ml-nav-cta {
    margin: 14px 0 0;
    padding-bottom: 0;
  }
  .ml-header .ml-nav-cta .ml-btn,
  .ml-nav-cta .ml-btn {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 580px) {
  .ml-risks,
  .ml-tiles,
  .ml-quotes,
  .ml-cards,
  .ml-cards-2,
  .ml-footer-grid,
  .ml-stats {
    grid-template-columns: 1fr;
  }
  .ml-stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .ml-stats div:last-child {
    border-bottom: 0;
  }
  .ml-hero {
    padding: 54px 0 50px;
  }
  .ml-section {
    padding: 64px 0;
  }
  .ml-wrap {
    padding: 0 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

.ml-cookie{position:fixed;left:18px;bottom:18px;z-index:1000;max-width:420px;width:calc(100% - 36px);pointer-events:none}
.ml-cookie-inner{pointer-events:auto;background:var(--card);border:1px solid var(--line);border-left:4px solid var(--amber);border-radius:var(--radius-lg);box-shadow:0 16px 40px rgba(28,25,23,.16);padding:22px 24px;opacity:0;transform:translateY(20px) scale(.98);transition:opacity .4s ease,transform .4s cubic-bezier(.2,.7,.2,1)}
.ml-cookie[data-show="true"] .ml-cookie-inner{opacity:1;transform:translateY(0) scale(1)}
.ml-cookie[data-show="false"] .ml-cookie-inner{opacity:0;transform:translateY(20px) scale(.98)}
.ml-cookie-tag{display:inline-block;font-family:var(--serif);font-style:italic;font-size:.82rem;color:var(--teal);border-bottom:1px solid var(--line);padding-bottom:4px;margin-bottom:10px;letter-spacing:.02em}
.ml-cookie-text{font-family:var(--sans);color:var(--ink);font-size:.9rem;line-height:1.62;margin:0 0 16px}
.ml-cookie-text a{color:var(--gold);font-weight:600;text-decoration:underline;text-underline-offset:2px}
.ml-cookie-text a:hover{color:var(--amber)}
.ml-cookie-btn{font-family:var(--sans);cursor:pointer;border:1px solid var(--ink);background:var(--ink);color:var(--paper);padding:10px 20px;border-radius:var(--radius);font-size:.85rem;font-weight:600;transition:background .2s ease}
.ml-cookie-btn:hover{background:var(--amber);border-color:var(--amber)}
@media (max-width:520px){.ml-cookie{left:12px;bottom:12px;width:calc(100% - 24px)}}

.ml-form-status {
  margin: 14px 0 0;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.ml-form-status[data-state="pending"] {
  color: #0f766e;
  background: #eef6f4;
  border: 1px solid #0f766e;
  opacity: 0.85;
}
.ml-form-status[data-state="ok"] {
  color: #0f766e;
  background: #eef6f4;
  border: 1px solid #0f766e;
}
.ml-form-status[data-state="error"] {
  color: #b3261e;
  background: #f8ecea;
  border: 1px solid #b3261e;
}
