/* ═══════════════════════════════════════════════════════
   SBEC — design system
   Palette : paper / encre marine / cuivre
   Typo    : Fraunces (titres) + Inter (interface)
   ═══════════════════════════════════════════════════════ */

:root {
  --paper: #F6F4EE;
  --paper-raised: #FFFFFF;
  --tint: #EFECE3;
  --ink: #14232F;
  --ink-2: #43586A;
  --ink-3: #7E8E9B;
  --line: #DCD6C8;
  --line-dark: #2A3E4E;
  --accent: #C05E2A;
  --accent-deep: #9E4A1E;
  --gold: #E5B36A;
  --pending: #B9832F;
  --ok: #2E7D5B;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1200px;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-soft: 0 18px 50px -24px rgba(20, 35, 47, 0.28);
  --header-h: 76px;
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--accent); color: var(--paper); }

/* ── Accessibilité ─────────────────────────────────── */
.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: var(--paper);
  padding: 10px 18px; border-radius: 8px; z-index: 200;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ── Utilitaires ───────────────────────────────────── */
.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }

.overline {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.overline-gold { color: var(--gold); }

/* ── Boutons & liens ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 15px;
  padding: 15px 28px; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.btn-solid { background: var(--accent); color: #FFF8F1; box-shadow: 0 12px 30px -14px rgba(192, 94, 42, .55); }
.btn-solid:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn-outline-light { border-color: rgba(246, 244, 238, .55); color: var(--paper); }
.btn-outline-light:hover { background: var(--paper); color: var(--ink); }
.btn-sm { padding: 10px 20px; font-size: 13.5px; }

.link-arrow {
  display: inline-block; font-weight: 600; font-size: 15px;
  text-decoration: none; color: var(--ink);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 3px; transition: color .2s ease;
}
.link-arrow:hover { color: var(--accent); }
.link-gold { color: var(--gold); border-color: var(--gold); }
.link-gold:hover { color: #F3CE95; }

/* ── Header ────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(246, 244, 238, 0.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(246, 244, 238, 0.95); }

.header-inner {
  width: 100%; max-width: var(--container); margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 44px; height: 44px; flex: 0 0 44px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--gold);
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  border-radius: 12px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-display); font-size: 19px; letter-spacing: .02em; }
.brand-text small { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }

.main-nav { display: flex; gap: clamp(14px, 2vw, 28px); margin-left: auto; }
.main-nav a {
  position: relative; text-decoration: none; font-size: 14.5px; font-weight: 500;
  color: var(--ink-2); padding: 6px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .3s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.main-nav + .header-actions { margin-left: 0; }
.header-actions .btn-outline { border-color: var(--line); }
.header-actions .btn-outline:hover { border-color: var(--ink); }

.nav-toggle {
  display: none; width: 44px; height: 44px;
  background: transparent; border: 1.5px solid var(--line); border-radius: 12px;
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); transition: transform .3s ease, opacity .3s ease; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Menu mobile plein écran */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 90;
  background: var(--ink); color: var(--paper);
  padding: clamp(28px, 6vw, 56px) clamp(20px, 4vw, 48px);
  display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto;
}
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--font-display); font-size: clamp(26px, 6vw, 38px);
  text-decoration: none; padding: 14px 0;
  border-bottom: 1px solid var(--line-dark);
  transition: color .2s ease, padding-left .2s ease;
}
.mobile-menu nav a:hover { color: var(--gold); padding-left: 8px; }
.mobile-menu nav a em { font-family: var(--font-body); font-style: normal; font-size: 12px; color: var(--gold); letter-spacing: .14em; }
.mobile-menu .btn { margin-top: 26px; align-self: flex-start; }
.mobile-menu-foot { margin-top: auto; padding-top: 30px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
body.menu-open { overflow: hidden; }
.mobile-menu[hidden] { display: none; }

/* ── Hero ──────────────────────────────────────────── */
.hero { padding-top: calc(var(--header-h) + clamp(40px, 8vh, 90px)); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px); align-items: end;
}

.hero-kicker {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(64px, 11vw, 150px); line-height: .9;
  letter-spacing: .01em;
  background: linear-gradient(120deg, var(--ink) 55%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 10px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(24px, 3.2vw, 40px); line-height: 1.2;
  letter-spacing: .005em; max-width: 16ch;
  margin-bottom: 20px;
}
.lede { font-size: clamp(16px, 1.6vw, 18.5px); color: var(--ink-2); max-width: 52ch; margin-bottom: 34px; }
.hero-ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px; }

.hero-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-soft);
}
.card-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.card-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.fact-list { display: flex; flex-direction: column; }
.fact-list > div {
  display: grid; grid-template-columns: minmax(96px, auto) 1fr; gap: 16px;
  padding: 9px 0; border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
}
.fact-list > div:last-child { border-bottom: none; }
.fact-list dt { color: var(--ink-3); font-weight: 500; }
.fact-list dd { font-weight: 600; color: var(--ink); }
.card-src { margin-top: 18px; font-size: 12.5px; color: var(--ink-3); }
.card-src a { color: var(--ink-2); }

.hero-rule { margin-top: clamp(44px, 7vh, 80px); }
.hero-rule span { display: block; height: 1px; background: var(--line); }

/* ── Sections ──────────────────────────────────────── */
.section { padding: clamp(64px, 10vh, 120px) 0; }
.section-tinted { background: var(--tint); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark h2 { color: var(--paper); }

.section h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(30px, 4vw, 52px); line-height: 1.12;
  letter-spacing: -.005em; margin-bottom: 22px;
  max-width: 22ch;
}
.section-intro { color: var(--ink-2); max-width: 60ch; margin-bottom: 30px; }
.section-dark .section-intro { color: #B9C4CD; }

.section-grid {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
  gap: clamp(28px, 5vw, 80px); align-items: start;
}
.section-grid-right { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); }

.section-index { display: flex; flex-direction: column; gap: 6px; position: sticky; top: calc(var(--header-h) + 24px); }
.index-num {
  font-family: var(--font-display); font-size: clamp(44px, 5vw, 72px); font-weight: 400;
  color: transparent; -webkit-text-stroke: 1.2px var(--accent);
  line-height: 1;
}
.index-label { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.section-body p { color: var(--ink-2); max-width: 62ch; margin-bottom: 18px; }
.section-body .link-arrow { margin-top: 8px; }

/* ── Projet (bande sombre) ─────────────────────────── */
.dark-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap; margin-bottom: 40px;
}
.dark-note {
  font-size: 13px; color: var(--gold);
  border: 1px dashed rgba(229, 179, 106, .45);
  border-radius: 999px; padding: 8px 18px;
}
.project-copy { max-width: 68ch; margin-bottom: clamp(40px, 6vh, 64px); }
.project-copy p { color: #C5CFD8; font-size: clamp(16px, 1.6vw, 19px); margin-bottom: 24px; }

.principles {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius); overflow: hidden;
}
.principles li { background: var(--ink); padding: clamp(22px, 2.6vw, 34px); }
.p-num {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(229, 179, 106, .5);
  color: var(--gold); font-family: var(--font-display); font-size: 16px;
  margin-bottom: 18px;
}
.principles h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; margin-bottom: 10px; }
.principles p { color: #9DAAB5; font-size: 14.5px; }

/* ── Partenaire ────────────────────────────────────── */
.partner-card {
  display: flex; gap: clamp(22px, 3vw, 36px); align-items: center;
  background: var(--paper-raised);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 38px);
  box-shadow: var(--shadow-soft);
  margin-bottom: 30px;
}
.partner-logo {
  flex: 0 0 clamp(110px, 12vw, 150px); aspect-ratio: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 1.5px dashed var(--line); border-radius: 16px;
  color: var(--ink-3); background: var(--paper);
  font-family: var(--font-display); font-size: 19px;
}
.partner-logo small { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.partner-info h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(21px, 2.2vw, 27px); margin-bottom: 8px; }
.partner-info p { color: var(--ink-2); margin-bottom: 16px; max-width: 48ch; }

.status-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  border-radius: 999px; padding: 7px 15px;
}
.status-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pending { background: rgba(185, 131, 47, .13); color: var(--pending); }
.status-verified { background: rgba(46, 125, 91, .13); color: var(--ok); }

/* ── Documents ─────────────────────────────────────── */
.docs-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vh, 56px);
}
.docs-head h2 { margin-bottom: 0; }
.docs-head .section-intro { margin-bottom: 0; max-width: 46ch; }

.docs-grid {
  display: grid; grid-template-columns: 1.35fr 1fr;
  gap: clamp(20px, 2.6vw, 32px);
}

.doc-card {
  display: grid; grid-template-columns: minmax(180px, 42%) 1fr;
  background: var(--paper-raised);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-soft);
  transition: transform .3s ease, box-shadow .3s ease;
}
.doc-card:hover { transform: translateY(-4px); box-shadow: 0 26px 60px -28px rgba(20, 35, 47, .38); }
.doc-card:nth-child(2) { grid-template-columns: minmax(160px, 38%) 1fr; }

.doc-preview { position: relative; background: var(--tint); border-right: 1px solid var(--line); min-height: 240px; }
.doc-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.doc-preview::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20, 35, 47, .18));
  opacity: 0; transition: opacity .3s ease;
}
.doc-card:hover .doc-preview::after { opacity: 1; }
.doc-zoom {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  background: var(--ink); color: var(--paper);
  border: none; border-radius: 999px; cursor: pointer;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 600;
  padding: 8px 16px; opacity: 0; transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.doc-card:hover .doc-zoom, .doc-zoom:focus-visible { opacity: 1; transform: translateY(0); }

.doc-body { padding: clamp(22px, 2.6vw, 32px); display: flex; flex-direction: column; }
.doc-kind { font-size: 11.5px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.doc-body h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 2vw, 25px); line-height: 1.25; margin-bottom: 10px; }
.doc-body > p { color: var(--ink-2); font-size: 14.5px; margin-bottom: 18px; }
.doc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 12.5px; color: var(--ink-3); margin-bottom: 22px; }
.doc-meta span { display: inline-flex; align-items: center; gap: 6px; }
.doc-meta span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--line); }
.doc-cta { margin-top: auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.doc-cta .btn-solid { padding: 12px 24px; font-size: 14px; }

.noscript-docs { margin-top: 24px; padding: 22px; border: 1px dashed var(--line); border-radius: var(--radius-sm); background: var(--paper-raised); }
.noscript-docs ul { margin: 10px 0 0 20px; }

/* ── Bloc CTA ──────────────────────────────────────── */
.cta-block {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(28px, 4vw, 64px); flex-wrap: wrap;
  background: var(--ink); color: var(--paper);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(36px, 5vw, 72px);
  position: relative; overflow: hidden;
}
.cta-block::before {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 320px; height: 320px; border-radius: 50%;
  border: 1px solid rgba(229, 179, 106, .25);
  pointer-events: none;
}
.cta-block::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 320px; height: 320px; border-radius: 50%;
  border: 1px solid rgba(229, 179, 106, .15);
  pointer-events: none;
}
.cta-block h2 { color: var(--paper); margin-bottom: 14px; }
.cta-block p { color: #B9C4CD; max-width: 52ch; }
.cta-actions { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }

/* ── Informations ──────────────────────────────────── */
.info-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 64px); align-items: start;
  margin-top: clamp(24px, 4vh, 48px);
}
.legal-table { width: 100%; border-collapse: collapse; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.legal-table tr + tr th, .legal-table tr + tr td { border-top: 1px solid var(--line); }
.legal-table th, .legal-table td { text-align: left; padding: 13px 20px; font-size: 14.5px; vertical-align: top; }
.legal-table th { width: 38%; font-weight: 600; color: var(--ink-3); }
.legal-table td { font-weight: 600; }
.legal-src { margin-top: 16px; font-size: 13px; color: var(--ink-3); }
.legal-src a { color: var(--ink-2); }

.rg-panel {
  background: var(--paper-raised); border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-soft);
}
.rg-badge {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  font-weight: 700; font-size: 16px;
  margin-bottom: 18px;
}
.rg-panel h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; margin-bottom: 12px; }
.rg-panel p { font-size: 14.5px; color: var(--ink-2); margin-bottom: 14px; }
.rg-fine { font-size: 12.5px !important; color: var(--ink-3) !important; border-top: 1px dashed var(--line); padding-top: 14px; }

/* ── Footer ────────────────────────────────────────── */
.site-footer { background: var(--ink); color: #B9C4CD; }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.4fr));
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(48px, 7vh, 80px) clamp(32px, 5vh, 56px);
}
.footer-logo { font-family: var(--font-display); font-size: 34px; color: var(--paper); margin-bottom: 12px; }
.footer-desc { font-size: 14px; max-width: 34ch; margin-bottom: 18px; }
.footer-adress { font-size: 14px; font-style: normal; line-height: 1.7; }
.footer-col h3 {
  font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.footer-col a { display: block; text-decoration: none; font-size: 14.5px; padding: 5px 0; color: #B9C4CD; transition: color .2s ease; }
.footer-col a:hover { color: var(--paper); }
.footer-rg { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 12.5px; color: #8FA0AD; }
.rg-mini {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid #4A5E6E; font-size: 11px; font-weight: 700; color: var(--paper);
}
.footer-bottom { border-top: 1px solid var(--line-dark); padding-block: 22px; }
.footer-bottom p { font-size: 12px; color: #7E8E9B; letter-spacing: .01em; }

/* ── Lightbox ──────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(13, 22, 30, .88);
  display: grid; place-items: center;
  padding: clamp(16px, 4vw, 48px);
}
.lightbox figure {
  max-width: min(960px, 100%); max-height: 100%;
  display: flex; flex-direction: column; gap: 14px;
}
.lightbox img {
  max-height: calc(100vh - 160px); width: auto; max-width: 100%;
  margin-inline: auto; border-radius: 10px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7);
  background: var(--paper);
}
.lightbox figcaption {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  color: var(--paper); font-size: 14px;
}
.lightbox-close {
  position: absolute; top: 18px; right: 22px;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(246, 244, 238, .12); border: 1px solid rgba(246, 244, 238, .3);
  color: var(--paper); font-size: 24px; cursor: pointer;
  transition: background .2s ease;
}
.lightbox-close:hover { background: rgba(246, 244, 238, .25); }
.lightbox[hidden] { display: none; }

/* ── Reveal animations ─────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .doc-card { transition: none; }
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-card { max-width: 560px; }
  .principles { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn { display: none; }
  .section-grid, .section-grid-right { grid-template-columns: 1fr; }
  .section-index { position: static; flex-direction: row; align-items: baseline; gap: 14px; }
  .info-grid { grid-template-columns: 1fr; }
  .cta-block { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .brand-text small { display: none; }
  .hero { padding-top: calc(var(--header-h) + 36px); }
  .hero h1 { max-width: none; }
  .doc-card, .doc-card:nth-child(2) { grid-template-columns: 1fr; }
  .doc-preview { border-right: none; border-bottom: 1px solid var(--line); min-height: 200px; }
  .doc-preview img { object-fit: cover; }
  .doc-zoom { opacity: 1; transform: none; }
  .partner-card { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .fact-list > div { grid-template-columns: 1fr; gap: 2px; }
  .legal-table th { width: 42%; }
}
