/* =========================================================
   AeT4 — site styles
   Corporate minimal, built around the AeT4 logo: black and cream,
   green as the accent, amber and red used only in small stripe details.
   Change the brand by editing the tokens in :root.
   ========================================================= */

:root {
  /* Colour */
  /* Brand (sampled from the logo) */
  --black: #0a0a09;
  --cream: #e5e8cb;
  --green: #00bf63;
  --amber: #e9a715;
  --red: #ff3131;
  --tricolour: linear-gradient(var(--green) 0 33.34%, var(--amber) 33.34% 66.67%, var(--red) 66.67%);

  /* UI */
  --ink: #0a0a09;
  --ink-2: #45463f;
  --muted: #6b6c63;
  --line: #e6e6dc;
  --line-strong: #cbccbf;
  --surface: #f6f6ee;
  --white: #ffffff;
  --accent: #00793d;        /* darker brand green: readable as text on white */
  --accent-soft: #e3f5ea;
  --dark: var(--black);
  --dark-2: #161613;
  --dark-line: #2b2b26;
  --dark-muted: #a9ab97;
  --error: #c62828;
  --success: #00793d;

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --header-h: 72px;
  --radius: 4px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--green); color: var(--black); }

/* Dark areas (header, hero, approach, footer) re-map the UI tokens,
   so components inside them switch to cream text and bright green. */
.site-header,
.hero,
.page-hero,
.section--dark,
.site-footer {
  --ink: var(--cream);
  --ink-2: var(--dark-muted);
  --muted: var(--dark-muted);
  --line: var(--dark-line);
  --line-strong: #3d3e36;
  --accent: var(--green);
  --accent-soft: rgba(0, 191, 99, 0.12);
  background: var(--dark);
  color: var(--ink);
}

@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; }
}

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: var(--white); padding: 12px 16px; border-radius: var(--radius); font-weight: 500; }
.skip-link:focus { top: 12px; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Placeholder content to confirm before launch.
   Set data-placeholders="hide" on <html> to preview without highlights. */
.ph {
  background: #fbe4f6;
  box-shadow: inset 0 -1px 0 #c026d3;
  border-radius: 2px;
  padding-inline: 2px;
  cursor: help;
}
.hero .ph,
.page-hero .ph,
.section--dark .ph,
.site-footer .ph { background: rgba(232, 121, 249, 0.16); box-shadow: inset 0 -1px 0 rgba(232, 121, 249, 0.7); }
html[data-placeholders="hide"] .ph { background: none; box-shadow: none; padding: 0; cursor: auto; }

/* ---------- Typography ---------- */
.display,
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.375rem); line-height: 1.03; letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 3.8vw, 3.125rem); line-height: 1.08; letter-spacing: -0.035em; }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.015em; }
.lead { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.6; color: var(--ink-2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.eyebrow__num { color: var(--accent); font-variant-numeric: tabular-nums; }
.eyebrow__rule { width: 18px; height: 9px; background: var(--tricolour); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.005em;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; transition: transform 0.18s ease; }
.btn:hover .icon { transform: translateX(3px); }
/* primary: black, for light backgrounds */
.btn--primary { background: var(--black); color: var(--white); }
.btn--primary:hover { background: #00793d; }
/* accent: brand green with black text, for dark backgrounds */
.btn--accent { background: var(--green); color: var(--black); }
.btn--accent:hover { background: #00d46e; }
.btn--secondary { border-color: var(--line-strong); color: var(--ink); background: var(--white); }
.btn--secondary:hover { border-color: var(--ink); }
.btn--ghost-light { border-color: rgba(229, 232, 203, 0.35); color: var(--cream); }
.btn--ghost-light:hover { border-color: var(--cream); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.875rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.9375rem; color: var(--accent);
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform 0.18s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow:hover { color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 16px; color: var(--cream); line-height: 1; }
.logo__img { height: 34px; width: auto; aspect-ratio: 289.4 / 83.55; flex: none; }
.logo__sub { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-left: 1px solid var(--line-strong); padding-left: 16px; line-height: 1.3; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__list { display: flex; align-items: center; gap: 28px; }
.nav__link { font-size: 0.9375rem; font-weight: 500; color: var(--dark-muted); position: relative; padding: 6px 0; transition: color 0.15s ease; }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--ink); }
.nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--green); }

.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: var(--cream); }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon--close { display: none; }
.nav-open .nav-toggle .icon--open { display: none; }
.nav-open .nav-toggle .icon--close { display: block; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 32px;
    background: var(--dark);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }
  .nav-open .nav { visibility: visible; opacity: 1; transform: none; transition: opacity 0.2s ease, transform 0.2s ease; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { display: block; padding: 18px 0; font-size: 1.25rem; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav .btn { margin-top: 24px; min-height: 52px; }
  .nav-open { overflow: hidden; }
  .logo__sub { display: none; }
  .logo__img { height: 30px; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--surface { background: var(--surface); }

.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .eyebrow { grid-column: 1 / -1; }
.section-head--stack { grid-template-columns: minmax(0, 760px); }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(56px, 7vw, 96px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy { max-width: 680px; }
.hero h1 { margin-top: 24px; }
.hero h1 .accent { color: var(--green); }
.hero .lead { margin-top: 28px; max-width: 580px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.hero__visual { position: relative; width: 100%; max-width: 520px; justify-self: end; }
.map { position: relative; }
.map img { width: 100%; height: auto; }
.map__label {
  position: absolute;
  display: inline-flex; align-items: center;
  padding: 4px 9px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1.2;
  color: var(--ink); background: var(--dark-2);
  border: 1px solid var(--line); border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
}
.map__label--dakar { left: 5.8%; top: 33.2%; transform: translate(-30%, calc(-100% - 16px)); }
.map__label--abidjan { left: 22.4%; top: 45.1%; transform: translate(-80%, 16px); }
.map__label--lagos { left: 31.5%; top: 43.6%; transform: translate(-10%, 16px); }
.map__legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; font-size: 0.8125rem; color: var(--muted); }
.map__legend span { display: inline-flex; align-items: center; gap: 8px; }
.map__legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.map__legend i.is-hub { background: var(--cream); box-shadow: 0 0 0 2px var(--dark), 0 0 0 3.5px var(--amber); width: 7px; height: 7px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__value { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.stat__label { margin-top: 10px; font-size: 0.9375rem; color: var(--muted); line-height: 1.45; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { justify-self: center; max-width: 440px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 24px 16px 24px 0; }
  .stat + .stat { padding-left: 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .hero__visual { max-width: 330px; }
}

/* ---------- Audiences ---------- */
.audiences { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.audience { display: grid; grid-template-columns: auto 1fr; align-content: start; gap: 6px 18px; padding: 32px 32px 32px 0; border-bottom: 1px solid var(--line); }
.audience:not(:nth-child(3n + 1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.audience .icon { grid-row: span 2; width: 24px; height: 24px; color: var(--accent); margin-top: 2px; }
.audience h3 { font-size: 1.0625rem; }
.audience p { color: var(--ink-2); font-size: 0.9375rem; }
@media (max-width: 960px) {
  .audiences { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audience:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .audience:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .audiences { grid-template-columns: 1fr; }
  .audience, .audience:nth-child(even) { padding: 24px 0; border-left: 0; }
}

/* ---------- Expertise ---------- */
.practice-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.practice {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(28px, 3vw, 40px); background: var(--white);
  transition: background-color 0.2s ease;
}
.practice::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: linear-gradient(90deg, var(--green) 0 33.34%, var(--amber) 33.34% 66.67%, var(--red) 66.67%); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.practice:hover::before, .practice:focus-within::before { transform: scaleX(1); }
.practice__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.practice__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent); }
.practice__icon .icon { width: 24px; height: 24px; }
.practice__num { font-size: 0.8125rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.practice h3 { font-size: 1.375rem; }
.practice > p { margin-top: 12px; color: var(--ink-2); font-size: 0.9688rem; }
.practice__list { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.practice__list li { position: relative; padding-left: 20px; font-size: 0.9375rem; color: var(--ink); line-height: 1.45; }
.practice__list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 2px; background: var(--green); }
.practice .link-arrow { margin-top: auto; padding-top: 28px; }
@media (max-width: 1024px) { .practice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .practice-grid { grid-template-columns: 1fr; } }

/* ---------- Approach (dark) ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--dark-line); border: 1px solid var(--dark-line); }
.pillar { padding: 32px 28px 36px; background: var(--dark); }
.pillar .icon { width: 24px; height: 24px; color: var(--green); }
.pillar h3 { margin-top: 28px; font-size: 1.125rem; }
.pillar p { margin-top: 10px; font-size: 0.9375rem; color: var(--dark-muted); }

.process { margin-top: clamp(64px, 8vw, 96px); }
.process__title { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dark-muted); margin-bottom: 32px; }
.process__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.step { position: relative; padding-top: 44px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  display: grid; place-items: center; width: 28px; height: 28px;
  font-size: 0.75rem; font-weight: 700; color: var(--black);
  background: var(--green); border-radius: 50%;
}
.step::after { content: ""; position: absolute; top: 14px; left: 40px; right: -20px; height: 1px; background: var(--dark-line); }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.125rem; }
.step p { margin-top: 8px; font-size: 0.9375rem; color: var(--dark-muted); }
@media (max-width: 1024px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .step:nth-child(2)::after { display: none; }
}
@media (max-width: 600px) {
  .pillars { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
}

/* ---------- Coverage ---------- */
.coverage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.coverage__group { padding: 28px 32px 32px 0; }
.coverage__group + .coverage__group { padding-left: 32px; border-left: 1px solid var(--line); }
.coverage__group h3 { font-size: 1.0625rem; }
.coverage__group > p { margin-top: 6px; font-size: 0.875rem; color: var(--muted); }
.country-list { margin-top: 20px; display: grid; gap: 0; }
.country-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.9688rem; }
.country-list li:last-child { border-bottom: 0; }
.country-list small { font-size: 0.75rem; color: var(--muted); font-weight: 500; letter-spacing: 0.02em; }
.coverage__group--split .country-list + h3 { margin-top: 32px; }

.frameworks { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; margin-top: clamp(48px, 6vw, 72px); padding-top: 32px; border-top: 1px solid var(--line); }
.frameworks h3 { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-family: var(--font-sans); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; font-size: 0.875rem; font-weight: 500; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); }
.chip abbr { text-decoration: none; }
@media (max-width: 900px) {
  .coverage { grid-template-columns: 1fr; }
  .coverage__group, .coverage__group + .coverage__group { padding: 28px 0; border-left: 0; }
  .coverage__group + .coverage__group { border-top: 1px solid var(--line); }
  .frameworks { grid-template-columns: 1fr; }
}

/* ---------- Briefings ---------- */
.briefings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.briefing { display: flex; flex-direction: column; padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.2s ease, transform 0.2s ease; }
.briefing:hover { border-color: var(--line-strong); }
.briefing .briefing__tag { align-self: flex-start; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.briefing h3 { margin-top: 16px; font-size: 1.25rem; line-height: 1.35; }
.briefing p { margin-top: 12px; font-size: 0.9375rem; color: var(--ink-2); }
.briefing .link-arrow { margin-top: auto; padding-top: 28px; }
@media (max-width: 960px) { .briefings { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green); color: var(--black); padding-block: clamp(64px, 8vw, 104px); }
.cta-band__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px 64px; align-items: end; }
.cta-band h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); max-width: 760px; }
.cta-band p { margin-top: 20px; font-size: 1.125rem; color: rgba(10, 10, 9, 0.78); max-width: 620px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .cta-band__inner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { color: var(--dark-muted); padding-top: clamp(56px, 7vw, 88px); font-size: 0.9375rem; }
.site-footer a { transition: color 0.15s ease; }
.site-footer a:hover { color: var(--cream); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--dark-line); }
.footer__brand .logo__img { height: 40px; }
.footer__brand p { margin-top: 20px; max-width: 320px; line-height: 1.6; }
.footer__col h2 { font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream); margin-bottom: 18px; }
.footer__col li + li { margin-top: 10px; }
.footer__col address { font-style: normal; line-height: 1.7; }
.footer__legal { display: grid; gap: 16px; padding-block: 32px 40px; font-size: 0.8125rem; line-height: 1.65; }
.footer__legal-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.footer__legal-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__disclaimer { max-width: 900px; color: #8a8c7c; }
@media (max-width: 960px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Page header (inner pages) ---------- */
.page-hero { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 6vw, 80px); }
.page-hero h1 { margin-top: 20px; max-width: 820px; }
.page-hero .lead { margin-top: 24px; max-width: 640px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }

.form { display: grid; gap: 24px; }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.form__section-title { font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.form__section-title + .form__row, .form__section-title + .field { margin-top: -4px; }

.field { display: grid; gap: 8px; align-content: start; }
.field > label, .field legend { font-size: 0.9375rem; font-weight: 500; color: var(--ink); }
.field legend { padding: 0; }
.field .optional { font-weight: 400; color: var(--muted); }
.field .hint { font-size: 0.8125rem; color: var(--muted); margin-top: -2px; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font-size: 1rem; line-height: 1.4; color: var(--ink);
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none; -webkit-appearance: none;
}
.input::placeholder, .textarea::placeholder { color: #9aa1ab; }
.input:hover, .select:hover, .textarea:hover { border-color: #a9b0ba; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 191, 99, 0.25); }
.select {
  padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23474c55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.textarea { min-height: 160px; resize: vertical; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--error); }
.field.has-error .input:focus, .field.has-error .select:focus, .field.has-error .textarea:focus { box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.15); }
.field__error { display: none; font-size: 0.8125rem; font-weight: 500; color: var(--error); }
.field.has-error .field__error { display: block; }

fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-group { display: flex; flex-wrap: wrap; gap: 12px; }
.choice { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; font-size: 0.9375rem; transition: border-color 0.15s ease, background-color 0.15s ease; }
.choice:hover { border-color: #a9b0ba; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__dot { width: 18px; height: 18px; border: 1.5px solid #a9b0ba; border-radius: 50%; display: grid; place-items: center; flex: none; transition: border-color 0.15s ease; }
.choice__dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform 0.15s ease; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input:checked + .choice__dot { border-color: var(--accent); }
.choice input:checked + .choice__dot::after { transform: scale(1); }
.choice input:focus-visible + .choice__dot { outline: 2px solid var(--accent); outline-offset: 3px; }

.field > label.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 0.9375rem; font-weight: 400; color: var(--ink-2); cursor: pointer; }
.consent input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 2px 0 0; border: 1.5px solid #a9b0ba; border-radius: 3px; display: grid; place-items: center; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease; }
.consent input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--white); border-bottom: 2px solid var(--white); transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform 0.12s ease; }
.consent input:checked { background: var(--accent); border-color: var(--accent); }
.consent input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.field.has-error .consent input { border-color: var(--error); }

.notice { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px 18px; background: var(--surface); border-left: 3px solid var(--ink); font-size: 0.875rem; color: var(--ink-2); line-height: 1.55; }
.notice .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--ink); }

.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 8px; }
.form__submit .btn { min-width: 200px; }
.form__submit .btn[disabled] { opacity: 0.65; cursor: progress; }
.form__status { font-size: 0.875rem; color: var(--muted); }
.form__status.is-error { color: var(--error); font-weight: 500; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-success { display: none; padding: clamp(32px, 4vw, 48px); border: 1px solid var(--line); border-top: 3px solid var(--success); border-radius: var(--radius); }
.form-success.is-visible { display: block; }
.form-success__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #e3f4ec; color: var(--success); }
.form-success__icon .icon { width: 24px; height: 24px; stroke-width: 2.25; }
.form-success h2 { margin-top: 24px; font-size: clamp(1.75rem, 3vw, 2.25rem); }
.form-success p { margin-top: 12px; color: var(--ink-2); max-width: 520px; }
.form-success .btn { margin-top: 28px; }

.aside { display: grid; gap: 0; position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 960px) { .aside { position: static; } }
.aside__block { padding: 28px 0; border-top: 1px solid var(--line); }
.aside__block:first-child { padding-top: 0; border-top: 0; }
.aside__block h2 { font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.contact-list { display: grid; gap: 16px; }
.contact-list li { display: grid; grid-template-columns: 20px 1fr; gap: 14px; align-items: start; }
.contact-list .icon { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.contact-list strong { display: block; font-weight: 600; font-size: 0.9375rem; }
.contact-list span, .contact-list address { font-style: normal; color: var(--ink-2); font-size: 0.9375rem; }
.contact-list a:hover { color: var(--accent); }
.next-steps { display: grid; gap: 20px; counter-reset: ns; }
.next-steps li { position: relative; padding-left: 44px; }
.next-steps li::before { counter-increment: ns; content: counter(ns); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 0.8125rem; font-weight: 600; }
.next-steps strong { display: block; font-size: 0.9688rem; }
.next-steps span { display: block; margin-top: 2px; font-size: 0.9063rem; color: var(--ink-2); }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; } }
