:root {
  --navy: #161A3E;
  --navy-2: #232858;
  --red: #C0202E;
  --red-dark: #A11A26;
  --tint: #EEF0F6;
  --paper: #FBFBF8;
  --white: #FFFFFF;
  --ink: #161A3E;
  --muted: #4A5068;
  --line: #D9DCE6;
  --sans: 'IBM Plex Sans', Arial, sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 2px; }
a:hover { color: var(--red); }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; text-wrap: balance; }
h1 { font: 600 clamp(34px, 5.4vw, 56px)/1.06 var(--serif); letter-spacing: -0.015em; }
h2 { font: 600 clamp(26px, 3.4vw, 34px)/1.12 var(--serif); }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0 0 12px; }
ul { margin: 0 0 12px; padding-left: 20px; }
li { margin-bottom: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 9; }
.skip:focus { left: 8px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 64ch; }
.muted, .small { color: var(--muted); }
.small { font-size: 14px; }
section { padding: 56px 0; }
section.tight { padding: 32px 0; }
section.alt { background: var(--white); border-block: 1px solid var(--line); }
.sec-head { max-width: 760px; margin-bottom: 28px; }

/* header */
.top { background: var(--white); position: sticky; top: 0; z-index: 5; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.brand img { display: block; height: 52px; width: auto; }
.rule { height: 3px; background: var(--red); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { border-color: var(--red); }
.nav a.btn { color: var(--white); border: 0; padding: 9px 16px; }
.menu-btn { display: none; font: 600 15px var(--sans); background: var(--tint); color: var(--navy); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; cursor: pointer; }

/* buttons */
.btn { display: inline-block; background: var(--red); color: var(--white); border: 0; border-radius: 8px; padding: 12px 22px; font: 600 16px var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--red-dark); color: var(--white); }
.btn.ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn.ghost:hover { background: var(--navy); color: var(--white); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* hero */
.hero { background: var(--navy); color: var(--white); padding: 64px 0 72px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 460px; height: 460px; border-radius: 50%; border: 60px solid rgba(255,255,255,.04); }
.hero .eyebrow { color: #F08A93; }
.hero h1 { max-width: 17ch; color: var(--white); }
.hero .lead { color: #C9CDE6; }
.hero .btn.ghost { color: var(--white); box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.hero .btn.ghost:hover { background: var(--white); color: var(--navy); }
.page-head { padding: 48px 0 8px; }
.page-head h1 { max-width: 22ch; }

/* numbers */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; position: relative; z-index: 1; }
.stat { background: var(--navy-2); border-radius: 14px; padding: 18px 20px; }
.stat b { display: block; font: 600 40px/1 var(--serif); color: var(--white); }
.stat span { display: block; margin-top: 6px; color: #C9CDE6; font-size: 15px; }

/* cards */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; }
.alt .card { background: var(--paper); }
.card p:last-child { margin-bottom: 0; }
.card .tag { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--red); background: #FBEAEC; border-radius: 999px; padding: 3px 10px; margin-bottom: 12px; }
.card .meta { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.card .more { margin-top: auto; padding-top: 12px; font-weight: 600; }
a.card { text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--navy); transform: translateY(-2px); color: var(--ink); }
.card.feature { border-left: 4px solid var(--red); }
.door h3 { font: 600 24px/1.15 var(--serif); }

/* programme table */
.ptable { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 16px; }
.ptable th, .ptable td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ptable th { background: var(--tint); font-size: 14px; letter-spacing: .02em; }
.ptable tr:last-child td { border-bottom: 0; }
.ptable td:first-child { font-weight: 600; min-width: 170px; }
.ptable .hrs { white-space: nowrap; }
.table-scroll { overflow-x: auto; }

/* steps */
.steps { counter-reset: s; display: grid; gap: 14px; grid-template-columns: repeat(5, 1fr); padding: 0; list-style: none; }
.steps li { counter-increment: s; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: var(--white); font-weight: 700; margin-bottom: 10px; }
.steps b { display: block; margin-bottom: 4px; }

/* lists */
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 10px; height: 6px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }

/* call-to-action band */
.band { background: var(--tint); border-top: 1px solid var(--line); }
.band-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.band h2 { margin-bottom: 6px; }
.band p { margin: 0; color: var(--muted); max-width: 60ch; }
.band .btns { margin-top: 0; }

/* offer box */
.offer { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 12px; padding: 20px 22px; display: flex; gap: 20px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.offer h3 { margin-bottom: 4px; }
.offer p { margin: 0; color: var(--muted); }

/* form */
.form { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 4vw, 32px); }
.form label { display: block; font-weight: 600; margin: 16px 0 6px; }
.form label:first-child { margin-top: 0; }
.form .opt { font-weight: 400; color: var(--muted); font-size: 14px; }
.form input, .form select, .form textarea { width: 100%; font: 400 17px var(--sans); padding: 11px 13px; border: 1px solid #B5BACB; border-radius: 8px; background: var(--paper); color: var(--ink); }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid #C9CDE8; border-color: var(--navy); }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form .hp { position: absolute; left: -5000px; }
.form .btn { margin-top: 20px; }
.ferr { display: block; color: #9B1A25; font-size: 14px; margin-top: 4px; }
.alert { border-radius: 10px; padding: 14px 18px; margin-bottom: 20px; }
.alert.ok { background: #E7F4EC; color: #14532D; }
.alert.bad { background: #FBEAEC; color: #9B1A25; }
.contact-side p { margin-bottom: 14px; }
.contact-side b { display: block; font-size: 14px; color: var(--muted); font-weight: 600; }

/* prose pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin-top: 32px; }

/* footer */
.foot { background: var(--navy); color: #B8BCD8; font-size: 15px; padding: 44px 0 24px; }
.foot a { color: #DADDF0; text-decoration: none; }
.foot a:hover { color: var(--white); text-decoration: underline; }
.foot p { margin: 0 0 8px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.foot-logo { display: block; height: 50px; width: auto; margin-bottom: 12px; }
.foot-h { color: var(--white); font-weight: 600; }
.foot-base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 18px; font-size: 14px; }

@media (max-width: 1000px) {
  .g4, .stats { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; border-bottom: 3px solid var(--red); box-shadow: 0 10px 20px rgba(22,26,62,.08); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { color: var(--red); border-color: var(--line); }
  .nav a.btn { margin-top: 12px; text-align: center; }
  .top-row { position: relative; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 40px 0; }
  .hero { padding: 44px 0 52px; }
  .g2, .g3, .g4, .steps, .foot-grid, .form .row2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat b { font-size: 32px; }
  .brand img { height: 44px; }
  .ptable td:first-child { min-width: 130px; }
}

/* consulting graphics */
.icon { width: 48px; height: 48px; border-radius: 12px; background: var(--navy); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 26px; height: 26px; stroke: var(--white); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.journey { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.journey .stage { position: relative; background: var(--white); border: 1px solid var(--line); padding: 22px 34px 22px 26px; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%, 22px 50%); margin-left: -10px; }
.journey .stage:first-child { clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%); margin-left: 0; }
.journey .stage:nth-child(1) { background: #E4E7F2; }
.journey .stage:nth-child(2) { background: #C9CEE6; }
.journey .stage:nth-child(3) { background: var(--navy); color: var(--white); }
.journey .stage:nth-child(3) .small { color: #C9CDE6; }
.journey .stage b { display: block; font: 600 22px/1.15 var(--serif); margin-bottom: 6px; }
.journey .stage .small { color: var(--muted); }
.journey ul { margin: 8px 0 0; padding-left: 18px; font-size: 15px; }
.flow { display: grid; grid-template-columns: 1fr auto 1.2fr auto 1fr auto 1fr; align-items: stretch; gap: 10px; }
.flow .node { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.flow .node.core { background: var(--navy); color: var(--white); border-color: var(--navy); }
.flow .node.core .small { color: #C9CDE6; }
.flow .node h3 { font-size: 17px; margin-bottom: 8px; }
.flow .node ul { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.flow .node li { padding: 5px 0; border-top: 1px solid var(--line); }
.flow .node.core li { border-color: rgba(255,255,255,.15); }
.flow .node li:first-child { border-top: 0; }
.flow .arrow { display: grid; place-items: center; color: var(--red); font-size: 26px; font-weight: 700; }
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.badge { border-left: 3px solid var(--red); padding: 4px 0 4px 14px; }
.badge b { display: block; font: 600 26px/1.1 var(--serif); color: var(--navy); }
.badge span { font-size: 15px; color: var(--muted); }
@media (max-width: 1000px) {
  .flow { grid-template-columns: 1fr; }
  .flow .arrow { transform: rotate(90deg); height: 20px; }
  .badges { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .journey { grid-template-columns: 1fr; gap: 6px; }
  .journey .stage, .journey .stage:first-child { clip-path: none; margin-left: 0; border-radius: 12px; padding: 18px; }
  .badges { grid-template-columns: 1fr; }
}

/* expandable module lists */
details.block { background: var(--white); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
details.block > summary { cursor: pointer; list-style: none; padding: 18px 22px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
details.block > summary::-webkit-details-marker { display: none; }
details.block > summary::after { content: "+"; margin-left: auto; font: 600 24px/1 var(--sans); color: var(--red); }
details.block[open] > summary::after { content: "−"; }
details.block > summary:focus-visible { outline: 3px solid #C9CDE8; border-radius: 14px; }
.bk { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--navy); color: var(--white); font-weight: 700; flex: none; }
.bk-title { font-weight: 600; font-size: 18px; }
.bk-meta { color: var(--muted); font-size: 15px; }
details.block .table-scroll { padding: 0 22px 20px; }
details.block .ptable { font-size: 15px; }
.ptable td.code { font-weight: 700; color: var(--red); min-width: 0; white-space: nowrap; }
.ptable td.code + td { font-weight: 600; }
/* gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.gallery figure { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.gallery img { display: block; width: 100%; height: auto; }
.gallery figcaption { padding: 12px 16px; font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.chips li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 15px; margin: 0; }
.datafacts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.datafacts div { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.datafacts b { display: block; font: 600 26px/1.1 var(--serif); color: var(--navy); }
.datafacts span { font-size: 14px; color: var(--muted); }
@media (max-width: 1000px) { .datafacts { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } .datafacts { grid-template-columns: 1fr 1fr; } details.block .table-scroll { padding: 0 12px 14px; } details.block > summary { padding: 14px 16px; } }
.offer .btns { margin-top: 0; }
