/* ==========================================================================
   Meuse Marchitage Ai — hand-written stylesheet (design.md)
   Dark theme, accent #2fd6b0. Tokens first, then components.
   ========================================================================== */

:root {
  /* palette (design.md §1) */
  --bg: #0d1620;
  --surface: #12202e;
  --surface-2: #182a3a;
  --border: #24384c;
  --border-soft: #1c2d3e;
  --text: #e9f1f4;
  --text-muted: #9db2bf;
  --accent: #2fd6b0;
  --accent-hover: #5ce4c6;
  --accent-tint: rgba(47, 214, 176, 0.12);
  --accent-tint-strong: rgba(47, 214, 176, 0.2);
  --danger: #ff7a76;
  --ok: #3ddc97;

  /* shape + depth (design.md §4) */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(3, 10, 16, 0.5), 0 2px 8px rgba(3, 10, 16, 0.35);
  --shadow-md: 0 2px 4px rgba(3, 10, 16, 0.45), 0 10px 28px rgba(3, 10, 16, 0.45);
  --shadow-lg: 0 4px 10px rgba(3, 10, 16, 0.5), 0 24px 60px rgba(3, 10, 16, 0.55);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --container: 1200px;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* ---- base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe, video, canvas { max-width: 100%; }
iframe { border: 0; }

h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 0.6em; font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.05rem); }
h3 { font-size: clamp(1.12rem, 1.8vw, 1.32rem); }
p  { margin: 0 0 1em; }
a  { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
ul, ol { margin: 0 0 1em; padding-left: 1.35em; }
li { margin-bottom: 0.4em; }
strong { color: var(--text); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #08211a; padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: #08211a; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.container-narrow { width: 100%; max-width: 880px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

.site-main { min-height: 60vh; }

/* ---- buttons (design.md §10) ------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; line-height: 1; white-space: nowrap;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  padding: 14px 26px; cursor: pointer; text-decoration: none;
  transition: background 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease), border-color 160ms var(--ease);
}
.btn--primary { background: var(--accent); color: #07231b; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); color: #07231b; box-shadow: var(--shadow-md); }
.btn--primary:active { transform: translateY(0); }
.btn--secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--secondary:hover { background: var(--accent-tint); transform: translateY(-1px); color: var(--accent-hover); }
.btn--sm { padding: 10px 18px; font-size: 0.92rem; }
.btn--block { width: 100%; }

/* ---- header + dropdown (design.md §11) --------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(13, 22, 32, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow 200ms var(--ease), background 200ms var(--ease);
}
.site-header.is-scrolled { background: rgba(11, 19, 27, 0.97); box-shadow: var(--shadow-md); }

.header__inner { display: flex; align-items: center; gap: 22px; min-height: 68px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); flex-shrink: 0; }
.logo__mark { width: 38px; height: 38px; }
.logo__word { font-weight: 700; font-size: 1.06rem; letter-spacing: -0.01em; display: flex; align-items: baseline; gap: 5px; }
.logo__word em { font-style: normal; color: var(--accent); }
.logo__word small { font-size: 0.62rem; font-weight: 700; color: var(--text-muted); letter-spacing: 0.14em; }

.header__nav { margin-right: auto; }
.nav { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 5px;
  font: inherit; font-size: 0.95rem; font-weight: 500; color: var(--text);
  background: none; border: 0; padding: 10px 13px; border-radius: var(--radius-sm);
  cursor: pointer; transition: background 140ms var(--ease), color 140ms var(--ease);
}
.nav__link:hover, .nav__trigger[aria-expanded="true"] { background: var(--surface-2); color: var(--accent); }
.icon--caret { width: 14px; height: 14px; transition: transform 160ms var(--ease); }
.nav__trigger[aria-expanded="true"] .icon--caret { transform: rotate(180deg); }

.nav__menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 70;
  min-width: 250px; margin: 0; padding: 8px; list-style: none;
  background: var(--bg); border: 1px solid var(--border); border-radius: 13px;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity 150ms var(--ease), transform 150ms var(--ease), visibility 0s linear 150ms;
}
.nav__item.is-open > .nav__menu,
.nav__item:focus-within > .nav__menu { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
/* caret notch */
.nav__menu::before {
  content: ""; position: absolute; top: -5px; left: 26px;
  width: 9px; height: 9px; background: var(--bg);
  border-left: 1px solid var(--border); border-top: 1px solid var(--border);
  transform: rotate(45deg);
}
/* keep the last groups on screen near the right edge */
.nav__item:nth-last-child(-n + 2) .nav__menu { left: auto; right: 0; }
.nav__item:nth-last-child(-n + 2) .nav__menu::before { left: auto; right: 26px; }

.nav__menu-link {
  display: block; padding: 10px 12px; border-radius: 8px;
  color: var(--text); font-size: 0.93rem;
  transition: background 120ms var(--ease), color 120ms var(--ease);
}
.nav__menu-link:hover { background: var(--accent-tint); color: var(--accent); }

.header__actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 999px; padding: 3px; }
.lang-switch__item { font-size: 0.8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: var(--text-muted); }
.lang-switch__item.is-current { background: var(--accent-tint-strong); color: var(--accent); }
.lang-switch__item:hover { color: var(--accent); }

.nav-burger {
  display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); width: 42px; height: 42px; align-items: center; justify-content: center; cursor: pointer;
}
.nav-burger .icon { width: 22px; height: 22px; }
.nav-burger .icon--burger-close { display: none; }
.nav-burger[aria-expanded="true"] .icon--burger-open { display: none; }
.nav-burger[aria-expanded="true"] .icon--burger-close { display: block; }

/* ---- hero -------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  border-bottom: 1px solid var(--border-soft);
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(52rem 30rem at 82% -10%, rgba(47, 214, 176, 0.16), transparent 62%),
    radial-gradient(40rem 26rem at -8% 112%, rgba(24, 90, 120, 0.22), transparent 60%),
    linear-gradient(180deg, #0e1a26 0%, var(--bg) 78%);
}
/* faint grid + mesh texture (data-URI, design.md §13) */
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M56 0H0v56' fill='none' stroke='rgba(157,178,191,0.07)'/%3E%3C/svg%3E");
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.15) 80%);
}
.hero__motif { position: absolute; z-index: -1; pointer-events: none; color: var(--accent); opacity: 0.5; }
.hero--home .hero__motif { inset: auto 2% 0 auto; width: min(46vw, 620px); }
.hero--page .hero__motif { inset: -8% -4% auto auto; width: min(38vw, 480px); }

.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(24px, 4vw, 56px); align-items: start;
  padding-block: clamp(44px, 7vw, 92px);
}
/* home/auth hero: title, form, then the rest of the text (checklist block 1) */
.hero__inner--split { grid-template-areas: "title form" "rest form"; row-gap: 22px; }
.hero__inner--split .hero__title-group { grid-area: title; }
.hero__inner--split .hero__rest-group { grid-area: rest; }
.hero__inner--split .hero__form-col { grid-area: form; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-tint);
  border: 1px solid var(--accent-tint-strong);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { margin-bottom: 0.55em; }
.hero__lead { font-size: clamp(1rem, 1.4vw, 1.13rem); color: var(--text-muted); max-width: 54ch; }

.hero__places {
  display: flex; align-items: center; gap: 12px; margin: 22px 0 20px;
  font-size: 0.92rem; color: var(--text-muted);
}
.hero__flag { width: 26px; height: 18px; border-radius: 3px; box-shadow: var(--shadow-sm); flex-shrink: 0; }

.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: 0.9rem; font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: border-color 150ms var(--ease), transform 150ms var(--ease), background 150ms var(--ease);
}
.hero__badge:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); background: var(--surface-2); }
.hero__badge .icon { width: 18px; height: 18px; color: var(--accent); }

/* page hero (inner pages): heading left, form right */
.hero--page .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); padding-block: clamp(36px, 5vw, 64px); }

/* ---- form block (formFactory wrapper) ---------------------------------- */
.form-heading { font-size: 1.06rem; margin: 0 0 10px; color: var(--accent); }
.form-block {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(18px, 2.6vw, 30px);
  box-shadow: var(--shadow-md);
}
.form-block__intro { font-size: 0.93rem; color: var(--text-muted); margin-bottom: 14px; }
.form-block h2, .form-block .form-heading { margin-top: 0; }
.form-block form { margin: 0; }
.form-block label { display: block; font-size: 0.86rem; font-weight: 600; margin: 12px 0 5px; color: var(--text); }
.form-block input:not([type="checkbox"]):not([type="radio"]),
.form-block select, .form-block textarea {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 13px;
  transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}
.form-block input:focus, .form-block select:focus, .form-block textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint-strong);
}
.form-block button[type="submit"], .form-block .bf-submit {
  width: 100%; margin-top: 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; white-space: nowrap;
  background: var(--accent); color: #07231b; border: 0; border-radius: var(--radius-sm);
  padding: 14px 26px; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: background 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease);
}
.form-block button[type="submit"]:hover, .form-block .bf-submit:hover {
  background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md);
}
.form-legal { font-size: 0.8rem; color: var(--text-muted); margin: 12px 0 0; }
.form-legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.form-note { display: flex; gap: 9px; align-items: flex-start; font-size: 0.9rem; color: var(--text-muted); margin-top: 12px; }
.form-note .icon { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* ---- sections ----------------------------------------------------------- */
.section { padding-block: clamp(48px, 6.5vw, 88px); position: relative; }
.section--band { background: var(--surface); border-block: 1px solid var(--border-soft); }
.section--tint { background:
  radial-gradient(48rem 24rem at 88% 8%, rgba(47, 214, 176, 0.07), transparent 60%),
  radial-gradient(40rem 22rem at 0% 100%, rgba(24, 90, 120, 0.12), transparent 55%),
  var(--bg);
}
.section--tint::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cpath d='M72 0H0v72' fill='none' stroke='rgba(157,178,191,0.05)'/%3E%3C/svg%3E");
  background-size: 72px 72px;
}
.section__head { max-width: 720px; margin-bottom: clamp(24px, 3.5vw, 44px); }
.section__head p { color: var(--text-muted); font-size: 1.02rem; }
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 10px;
}

/* ---- cards --------------------------------------------------------------- */
.card-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card-grid--asym { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--asym > .card:first-child { grid-row: span 2; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 22px 20px;
  box-shadow: var(--shadow-md);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease);
  display: flex; flex-direction: column; gap: 8px;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent-tint-strong); color: var(--text); }
.card h3 { margin: 0; }
.card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.card--flat:hover { transform: none; }

.icon-badge {
  width: 50px; height: 50px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-tint); border-radius: 13px; color: var(--accent);
  margin-bottom: 6px;
}
.icon-badge .icon { width: 25px; height: 25px; }
.icon-badge--sm { width: 42px; height: 42px; border-radius: 11px; }
.icon-badge--sm .icon { width: 21px; height: 21px; }

/* steps: small accent circles, not display numerals */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 22px 20px; box-shadow: var(--shadow-md);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.step__num {
  counter-increment: step;
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #07231b; font-weight: 800; font-size: 0.92rem;
  margin-bottom: 12px;
}
.step__num::before { content: counter(step); }
.step h3 { font-size: 1.08rem; }
.step p { color: var(--text-muted); font-size: 0.94rem; margin: 0; }

/* ---- tables --------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); margin-bottom: 1.4em; background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 560px; }
table.data th, table.data td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-soft); }
table.data thead th { background: var(--surface-2); color: var(--text); font-weight: 700; font-size: 0.88rem; letter-spacing: 0.02em; }
table.data tbody tr:nth-child(even) { background: rgba(24, 42, 58, 0.4); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td { color: var(--text-muted); }
table.data td:first-child { color: var(--text); font-weight: 600; }
.tick { color: var(--ok); font-weight: 800; }
.cross { color: var(--danger); font-weight: 800; }

/* ---- exchange logos (home) ------------------------------------------------ */
.xlogos {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center;
}
.xlogo {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); font-weight: 700; font-size: 0.98rem; letter-spacing: 0.01em;
  box-shadow: var(--shadow-sm);
  transition: color 150ms var(--ease), border-color 150ms var(--ease), transform 150ms var(--ease);
}
.xlogo:hover { color: var(--accent); border-color: var(--accent-tint-strong); transform: translateY(-2px); }
.xlogo__mark { width: 20px; height: 20px; opacity: 0.85; }

/* ---- reviews ---------------------------------------------------------------- */
.reviews-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.review {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: 12px;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.review:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.review__head { display: flex; align-items: center; gap: 12px; }
.review__photo {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border); background: var(--accent-tint); flex-shrink: 0;
}
.review__avatar {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-tint); color: var(--accent);
  border: 2px solid var(--accent-tint-strong);
}
.review__avatar .icon { width: 26px; height: 26px; }
.review__name { font-weight: 700; font-size: 0.98rem; }
.review__meta { font-size: 0.82rem; color: var(--text-muted); }
.review__text { font-size: 0.93rem; color: var(--text-muted); margin: 0; }
.review__text::before { content: "« "; color: var(--accent); }
.review__text::after { content: " »"; color: var(--accent); }
.reviews-note { font-size: 0.84rem; color: var(--text-muted); margin-top: 18px; }

/* ---- company block ----------------------------------------------------------- */
.company-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 52px); align-items: start; }
.fact-list { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 12px; }
.fact-list li { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-size: 0.95rem; color: var(--text-muted); }
.fact-list .icon { width: 19px; height: 19px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.fact-list strong { color: var(--text); display: block; font-size: 0.86rem; }

/* ---- map embed (contact) -------------------------------------------------- */
.map-embed {
  max-width: 860px; aspect-ratio: 16 / 9; min-height: 320px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md); background: var(--surface);
  margin-bottom: 1.4em;
}
.map-embed iframe { display: block; width: 100%; height: 100%; }

/* ---- calculator section -------------------------------------------------------- */
.calc-wrap { position: relative; }
.calc-canvas { position: absolute; inset: auto 0 0 0; width: 100%; height: 180px; pointer-events: none; opacity: 0.5; }

/* ---- FAQ ------------------------------------------------------------------------ */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-weight: 600; color: var(--text);
  transition: background 140ms var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--surface-2); }
.faq-item summary .icon--caret { flex-shrink: 0; }
.faq-item[open] summary .icon--caret { transform: rotate(180deg); }
.faq-item .faq-item__a { padding: 0 20px 18px; color: var(--text-muted); font-size: 0.95rem; }
.faq-item .faq-item__a p:last-child { margin-bottom: 0; }

/* ---- breadcrumbs ------------------------------------------------------------------ */
.breadcrumbs { padding-top: 18px; }
.breadcrumbs__list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 10px; padding: 0; font-size: 0.85rem; }
.breadcrumbs__item { display: flex; align-items: center; gap: 8px; color: var(--text-muted); }
.breadcrumbs__sep { color: var(--border); }
.breadcrumbs__item a { color: var(--text-muted); }
.breadcrumbs__item a:hover { color: var(--accent); }

/* ---- generic page body -------------------------------------------------------------- */
.page-body { padding-block: clamp(28px, 4vw, 56px) clamp(48px, 6vw, 80px); }
.page-body h2 { margin-top: 1.9em; }
.page-body h2:first-child { margin-top: 0; }
.page-body h3 { margin-top: 1.4em; }
.page-body > .prose > p, .page-body p { color: var(--text-muted); }
.page-body strong { color: var(--text); }

/* document hero (slim, no form) */
.doc-hero { padding-block: clamp(26px, 4vw, 48px) 0; }

/* ---- footer -------------------------------------------------------------------------- */
.site-footer { background: #0a1119; border-top: 1px solid var(--border-soft); margin-top: clamp(40px, 6vw, 80px); }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); padding-block: clamp(36px, 5vw, 56px) 26px; }
.footer__brand .logo { margin-bottom: 12px; }
.footer__tagline, .footer__contact { font-size: 0.88rem; color: var(--text-muted); }
.footer__contact { display: flex; align-items: center; gap: 8px; }
.footer__contact .icon { width: 17px; height: 17px; color: var(--accent); }
.footer__head { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: 9px; }
.footer__col a { color: var(--text-muted); font-size: 0.9rem; }
.footer__col a:hover { color: var(--accent); }
.footer__disclaimer { border-top: 1px solid var(--border-soft); padding-block: 22px; }
.footer__disclaimer p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; border-top: 1px solid var(--border-soft); padding-block: 18px 26px; font-size: 0.82rem; color: var(--text-muted); }
.footer__bottom p { margin: 0; }

/* ---- decorative canvas sections -------------------------------------------------------- */
.deco-note { font-size: 0.8rem; color: var(--text-muted); opacity: 0.75; }

/* ---- scroll reveal (design.md §5) ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity 420ms var(--ease), transform 420ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
html.no-js .reveal, .no-motion .reveal { opacity: 1; transform: none; transition: none; }

/* hero parallax layer (JS adds translate3d) */
.hero__bg { will-change: transform; }

/* ---- responsive ------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .hero__inner, .hero--page .hero__inner { grid-template-columns: 1fr; }
  .hero__inner--split { grid-template-columns: 1fr; grid-template-areas: "title" "form" "rest"; }
  .hero__form-col { order: 0; }
  .hero--page .hero__form-col { order: 0; }
  .company-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid--asym { grid-template-columns: 1fr; }
  .card-grid--asym > .card:first-child { grid-row: auto; }

  /* mobile nav: accordion groups */
  .nav-burger { display: inline-flex; }
  .header__nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg); padding: 14px clamp(16px, 4vw, 40px) 22px;
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .header__nav.is-open { display: block; }
  .nav { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__item { width: 100%; }
  .nav__link { width: 100%; justify-content: space-between; padding: 13px 12px; font-size: 1rem; }
  .nav__menu {
    position: static; min-width: 0; opacity: 1; visibility: hidden; transform: none;
    display: none; border: 0; box-shadow: none; background: transparent; padding: 0 0 6px 14px;
  }
  .nav__menu::before { display: none; }
  .nav__item.is-open > .nav__menu { display: block; visibility: visible; }
}

@media (max-width: 599px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .header__cta { display: none; } /* CTA lives inside the mobile menu via nav + hero form */
  .hero__badges { flex-direction: column; align-items: stretch; }
  .steps { grid-template-columns: 1fr; }
  .lang-switch__item { padding: 4px 8px; }
}

@media (max-width: 379px) {
  .footer__grid { grid-template-columns: 1fr; }
  .xlogo { padding: 9px 14px; font-size: 0.9rem; }
}

/* ---- reduced motion: static fallbacks (design.md §1/§5/§13) ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__motif { opacity: 0.35; }
  .hero__bg { transform: none !important; }
}

/* no-JS / low-power fallback: keep the static motif visible, hide canvas */
html.no-js .calc-canvas { display: none; }
