/* ==========================================================================
   Bijlesschool Succes - stylesheet
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy-900: #061a3f;
  --navy: #0a2a5c;
  --navy-600: #17408a;
  --gold: #c8963e;
  --gold-light: #e6c274;
  --gold-dark: #9a7024;
  --ice: #eaf1fb;
  --ice-2: #f4f8fd;
  --cream: #fbf2df;
  --ink: #14213d;
  --muted: #56657f;
  --line: #dbe4f2;
  --white: #fff;
  --blue-soft: #3a86c8;

  --ff: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ff-script: 'Caveat', 'Segoe Print', cursive;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 14px 40px rgba(10, 42, 92, .12);
  --shadow-lg: 0 24px 60px rgba(10, 42, 92, .2);
  --radius: 22px;
  --gold-grad: linear-gradient(120deg, #b98a36 0%, #e2bc69 52%, #c8963e 100%);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff);
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  font-size: 1rem;
  overflow-x: hidden;
  animation: pageIn .6s var(--ease) both;
}
body.is-leaving { opacity: 0; transform: translateY(-6px); transition: opacity .25s ease, transform .25s ease; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.15; color: var(--navy); font-weight: 800; letter-spacing: -.01em; }
p + p { margin-top: 1em; }
strong { font-weight: 700; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; position: relative; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.gold { color: var(--gold); }
.script { font-family: var(--ff-script); font-weight: 700; }
.center { text-align: center; margin-top: 44px; }

.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.arrow { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; transition: transform .35s var(--ease); }

/* ---------- Typography helpers ---------- */
.kicker { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); }
.kicker--gold { color: var(--gold-dark); }
.h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.h3 { font-size: 1.35rem; }
.eyebrow { font-size: .8rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 15px 28px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 .92rem/1.2 var(--ff); letter-spacing: .02em; text-align: center;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s;
}
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover { transform: translateY(-3px); }
.btn:hover::after { transform: translateX(120%); }
.btn:hover .arrow { transform: translateX(6px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--navy { background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(10, 42, 92, .28); }
.btn--navy:hover { background: var(--navy-600); box-shadow: 0 14px 28px rgba(10, 42, 92, .35); }
.btn--gold { background: var(--gold-grad); background-size: 160% 100%; color: var(--navy-900); box-shadow: 0 8px 20px rgba(200, 150, 62, .35); }
.btn--gold:hover { background-position: 100% 0; box-shadow: 0 14px 28px rgba(200, 150, 62, .45); }
.btn--block { display: flex; width: 100%; }
.btn--sm { padding: 11px 20px; font-size: .85rem; }
.btn--lg { padding: 19px 38px; font-size: 1rem; }
.btn--pulse { animation: pulse 2.6s ease-out infinite; }
.btn--pulse:hover { animation-play-state: paused; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
.site-header.is-scrolled { box-shadow: 0 8px 28px rgba(10, 42, 92, .1); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 92px; transition: height .3s var(--ease); }
.is-scrolled .header__inner { height: 74px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav > ul { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { position: relative; white-space: nowrap; display: inline-block; padding: 8px 0; font-size: .95rem; font-weight: 500; color: var(--navy); transition: color .25s; }
.nav > ul > li > a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; border-radius: 3px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav > ul > li > a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { font-weight: 700; }
.has-sub > a::before { content: ''; position: absolute; right: -14px; top: 50%; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); }
.has-sub { margin-right: 6px; }
.sub {
  position: absolute; top: 100%; left: -16px; min-width: 250px; padding: 10px; border-radius: 16px;
  background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; translate: 0 10px; transition: opacity .3s, translate .3s var(--ease), visibility .3s;
  display: block !important;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; translate: 0 0; }
.sub a { display: block; padding: 12px 16px !important; border-radius: 10px; }
.sub a:hover { background: var(--ice); }

.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: var(--ice); border-radius: 14px; cursor: pointer; padding: 0; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s, top .35s var(--ease); }
.nav-toggle span:nth-child(1) { top: 15px; } .nav-toggle span:nth-child(2) { top: 22px; } .nav-toggle span:nth-child(3) { top: 29px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- Generic entrance + reveal ---------- */
.hero-in, .hero__title .line { animation: fadeUp .9s var(--ease) var(--d, 0s) both; }

.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.js [data-reveal="left"] { transform: translateX(-44px); }
.js [data-reveal="right"] { transform: translateX(44px); }
.js [data-reveal="zoom"] { transform: scale(.92); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* hover-lift that does not fight the reveal transform (uses `translate`) */
.lift { transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s), translate .4s var(--ease), box-shadow .4s var(--ease), background-color .3s, color .3s; }
.lift:hover { translate: 0 -8px; box-shadow: var(--shadow-lg); }

/* ---------- Home hero ---------- */
.hero { position: relative; background: linear-gradient(100deg, var(--navy-900) 0%, var(--navy) 45%, #1d4c93 100%); color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); animation: drift 16s ease-in-out infinite alternate; }
.orb--1 { width: 360px; height: 360px; background: var(--gold); opacity: .28; top: -120px; left: 26%; }
.orb--2 { width: 420px; height: 420px; background: #2f6fd0; opacity: .35; bottom: -160px; left: -80px; animation-delay: -6s; }

.hero__photo {
  position: absolute; z-index: 1; top: 0; right: 9%; bottom: 0; width: min(54%, 820px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%, #000 80%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 38%, #000 80%, transparent 100%);
  translate: 0 var(--py, 0px);
}
.hero__photo img { width: 100%; height: calc(100% + 60px); object-fit: cover; object-position: 55% 22%; animation: photoIn 1.4s var(--ease) .2s both; }

.hero__inner { position: relative; z-index: 2; padding: 78px 0 296px; }
.hero__inner > .eyebrow, .hero__lead { max-width: 660px; }
.hero__title { max-width: 760px; }
.hero__title { margin-top: 26px; font-size: clamp(2.3rem, 4.6vw, 3.7rem); line-height: 1.06; letter-spacing: -.025em; color: #fff; }
.hero__title .line { display: block; }
.hero__title .gold { color: var(--gold-light); }
.hero__lead { margin-top: 26px; font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.5; font-weight: 400; color: rgba(255, 255, 255, .95); }

.usps { display: flex; margin-top: 44px; max-width: 700px; }
.usps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 12px; text-align: center; font-size: .86rem; line-height: 1.3; border-left: 1px solid rgba(255, 255, 255, .25); }
.usps li:first-child { border-left: 0; padding-left: 0; }
.usps .icon { font-size: 40px; stroke-width: 2; transition: transform .5s var(--ease); }
.usps li:hover .icon { transform: translateY(-6px) scale(1.12) rotate(-4deg); stroke: var(--gold-light); }

.books { position: absolute; left: 250px; bottom: 112px; width: 460px; display: flex; flex-direction: column-reverse; gap: 2px; }
.book {
  position: relative; display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 22px 0 42px;
  font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; color: #fff; border-radius: 3px 7px 7px 3px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .35);
  animation: bookDrop .9s var(--ease) var(--d) both, bob 6s ease-in-out calc(var(--d) + 1s) infinite;
}
.book::before { content: ''; position: absolute; left: 0; top: 5px; bottom: 5px; width: 22px; background: repeating-linear-gradient(#f6f0e4 0 2px, #d8d0bf 2px 3px); border-radius: 2px; }
.book .icon { font-size: 24px; }
.book .pi { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.book--eco { width: 410px; margin-left: 14px; background: linear-gradient(90deg, #1b48a8, #2456c4); }
.book--wis { width: 430px; margin-left: 2px; background: linear-gradient(90deg, #0b2144, #14315f); }
.book--rek { width: 450px; margin-left: -8px; background: linear-gradient(90deg, #e9e5da, #fbf9f3); color: var(--navy); }

.hero__script { position: absolute; z-index: 2; right: 1.5%; top: 24%; rotate: -8deg; font-family: var(--ff-script); font-weight: 500; font-size: clamp(1.7rem, 2.7vw, 2.7rem); line-height: 1.15; color: #dbe7ff; }
.hero__script span { display: block; animation: write 1s steps(18, end) var(--d) both; }
.hero__script span:nth-child(2) { margin-left: 1.1rem; }
.hero__script span:nth-child(3) { margin-left: 2rem; }
.hero__script span:nth-child(4) { margin-left: 1.6rem; }
.hero__script svg { display: block; width: 180px; height: 14px; margin: 2px 0 0 4rem; fill: none; stroke: var(--gold-light); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 170; stroke-dashoffset: 170; animation: draw 1s ease 2.9s forwards; }

/* ---------- Path cards ---------- */
.path-cards { z-index: 5; margin-top: -102px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pcard { display: flex; flex-direction: column; gap: 22px; padding: 28px 28px 30px; border-radius: 26px; border: 4px solid #fff; box-shadow: 0 18px 44px rgba(10, 42, 92, .18); }
.pcard--ice { background: var(--ice); }
.pcard--cream { background: var(--cream); }
.pcard__top { display: flex; gap: 20px; align-items: center; flex: 1; }
.pcard__icon { flex: none; font-size: 70px; color: var(--navy); transition: transform .6s var(--ease); }
.pcard:hover .pcard__icon { transform: scale(1.1) rotate(-5deg); }
.pcard .kicker { font-size: .62rem; margin-bottom: 6px; }
.pcard h2 { font-size: 1.22rem; margin-bottom: 8px; }
.pcard p:not(.kicker) { font-size: .9rem; line-height: 1.45; color: var(--ink); }
.pcard .btn { font-size: .76rem; padding: 17px 16px; letter-spacing: .01em; gap: 10px; }

/* ---------- Trust strip ---------- */
.trust { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 38px 0 12px; flex-wrap: wrap; }
.trust ul { display: flex; flex: 1; flex-wrap: wrap; gap: 14px 0; }
.trust li { display: flex; align-items: center; gap: 10px; padding: 0 18px; font-size: .85rem; border-left: 1px solid var(--line); }
.trust li:first-child { padding-left: 0; border-left: 0; }
.trust .icon { font-size: 32px; color: var(--navy); }
.trust__script { font-size: 1.6rem; line-height: 1.1; color: var(--navy); rotate: -4deg; max-width: 200px; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; position: relative; }
.section--tint { background: var(--ice-2); }
.section--stats { background: linear-gradient(120deg, var(--navy-900), var(--navy)); color: #fff; padding: 64px 0; margin-top: 60px; }
.section__head { max-width: 780px; margin: 0 auto 48px; text-align: center; }
.section__head--left { margin-left: 0; text-align: left; }
.section__head .h2 { margin: 10px 0 16px; }
.section__head p:not(.kicker) { color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split--top { align-items: start; }
.split p { color: var(--muted); }
.split .h2 { margin: 10px 0 18px; }
.split .btn { margin-top: 30px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.cta-wrap { margin-top: 20px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat strong { display: block; font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 800; line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat > span { display: block; margin-top: 10px; font-size: .9rem; color: rgba(255, 255, 255, .85); max-width: 200px; margin-inline: auto; }

.portrait { position: relative; width: min(420px, 88%); margin-inline: auto; }
.portrait img { position: relative; z-index: 1; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 42% 20%; border-radius: 50%; border: 8px solid #fff; box-shadow: var(--shadow-lg); }
.portrait__ring { position: absolute; inset: -18px; border-radius: 50%; border: 3px dashed var(--gold); animation: spin 40s linear infinite; }
.portrait::before { content: ''; position: absolute; z-index: 0; right: -26px; bottom: -14px; width: 62%; aspect-ratio: 1; border-radius: 50%; background: var(--ice); animation: drift 9s ease-in-out infinite alternate; }
.portrait figcaption { position: relative; margin-top: 22px; text-align: center; font-weight: 700; color: var(--navy); }
.story p { font-size: 1.04rem; }

/* ---------- Cards / checklists ---------- */
.card { position: relative; background: #fff; border-radius: 26px; padding: 34px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.card h3 { font-size: 1.25rem; margin-bottom: 20px; }
.card--feature { border-top: 5px solid var(--gold); padding-top: 42px; }
.card--feature h3 { padding-right: 96px; }
.badge-big { position: absolute; top: -34px; right: 26px; width: 108px; height: 108px; border-radius: 50%; background: var(--gold-grad); color: var(--navy-900); display: grid; place-content: center; text-align: center; box-shadow: 0 12px 26px rgba(200, 150, 62, .45); animation: bob 5s ease-in-out infinite; }
.badge-big strong { font-size: 2.2rem; line-height: 1; color: var(--navy-900); }
.badge-big span { font-size: .66rem; font-weight: 700; line-height: 1.2; text-transform: uppercase; letter-spacing: .04em; }

.checklist { display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; font-size: .97rem; line-height: 1.5; color: var(--ink); }
.tick { flex: none; width: 24px; height: 24px; margin-top: 1px; }
.tick svg { width: 100%; height: 100%; }
.tick circle { fill: var(--navy); }
.tick path { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .6s var(--ease) calc(var(--d, 0s) + .35s); }
.js li.is-in .tick path, html:not(.js) .tick path { stroke-dashoffset: 0; }

/* ---------- Call-to-action blocks ---------- */
.cta { display: flex; align-items: center; gap: 38px; max-width: 940px; margin: 64px auto 0; padding: 30px 44px 30px 30px; background: #fff; border: 1px solid var(--line); border-radius: 34px; box-shadow: var(--shadow); }
.cta__icon { flex: none; display: grid; place-items: center; width: 150px; height: 150px; border-radius: 50%; background: var(--ice); color: var(--navy); font-size: 78px; animation: bob 5s ease-in-out infinite; }
.cta--gold .cta__icon { background: var(--cream); }
.cta h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.cta p { margin: 8px 0 20px; color: var(--muted); }
.cta .btn { font-size: .98rem; }

.pill { display: inline-flex; align-items: center; gap: 18px; padding: 12px 14px 12px 14px; border-radius: 999px; background: linear-gradient(120deg, var(--navy), var(--navy-600)); color: #fff; box-shadow: 0 14px 30px rgba(10, 42, 92, .3); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.pill:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(10, 42, 92, .38); }
.pill:hover .arrow { transform: translateX(3px); }
.pill__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .14); font-size: 30px; animation: wiggle 3.5s ease-in-out infinite; }
.pill__text { display: flex; flex-direction: column; line-height: 1.25; padding-right: 8px; }
.pill__text strong { font-size: 1.12rem; }
.pill__text small { font-size: .95rem; opacity: .85; }
.pill__go { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--navy); }
.pill-wrap { display: flex; justify-content: center; margin-top: 52px; }

.banner { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 52px 56px; border-radius: 34px; background: linear-gradient(120deg, var(--navy-900), var(--navy) 60%, #1d4c93); color: #fff; box-shadow: var(--shadow-lg); }
.banner h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); max-width: 620px; }
.banner p { margin-top: 12px; max-width: 560px; color: rgba(255, 255, 255, .85); }
.banner__glow { position: absolute; width: 380px; height: 380px; right: -80px; top: -140px; border-radius: 50%; background: var(--gold); opacity: .28; filter: blur(70px); animation: drift 12s ease-in-out infinite alternate; }
.banner > * { position: relative; }
.banner .btn { flex: none; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(115deg, var(--navy-900), var(--navy) 55%, #1d4c93); padding: 68px 0 128px; }
.page-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.8vw, 3.5rem); letter-spacing: -.02em; max-width: 900px; }
.page-hero .lead { margin-top: 20px; max-width: 840px; font-size: 1.05rem; line-height: 1.7; color: rgba(255, 255, 255, .9); }
.page-hero .lead--strong { font-weight: 700; font-size: 1.25rem; color: var(--gold-light); }
.page-hero__inner { position: relative; z-index: 1; }
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 60px; display: block; }
.wave path { fill: #fff; }
.crumbs { display: flex; gap: 10px; margin-bottom: 22px; font-size: .82rem; color: rgba(255, 255, 255, .7); }
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--gold-light); }
.crumbs span:nth-child(even) { color: var(--gold-light); }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.chip { padding: 11px 22px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .45); font-size: .9rem; font-weight: 600; transition: background-color .3s, color .3s, transform .3s var(--ease), border-color .3s; }
.chip:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy-900); transform: translateY(-3px); }

/* ---------- Bijlessen page ---------- */
.method { display: flex; justify-content: center; align-items: stretch; flex-wrap: wrap; gap: 14px; margin: 0 auto 72px; max-width: 900px; }
.method > li:not(.method__sep) { flex: 1 1 210px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 22px; border-radius: 24px; background: var(--ice-2); border: 1px solid var(--line); text-align: center; }
.method__n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--gold-grad); color: var(--navy-900); font-weight: 800; font-size: 1.15rem; margin-bottom: 6px; }
.method strong { font-size: 1.2rem; color: var(--navy); }
.method small { color: var(--muted); font-size: .88rem; }
.method__sep { display: grid; place-items: center; color: var(--gold); }
.method__sep .arrow { width: 32px; height: 32px; animation: nudge 1.6s ease-in-out infinite; }

.subjects { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.subject { display: inline-flex; align-items: center; gap: 12px; padding: 16px 28px; border-radius: 999px; background: var(--ice); color: var(--navy); font-weight: 700; font-size: 1.15rem; transition: transform .35s var(--ease), background-color .3s, color .3s; }
.subject .icon { font-size: 28px; }
.subject:hover { transform: translateY(-4px) rotate(-1.5deg); background: var(--navy); color: #fff; }

.online-card { position: relative; padding: 40px 38px 38px; border-radius: 32px; background: linear-gradient(160deg, #fff, var(--cream)); box-shadow: var(--shadow-lg); border: 1px solid #f1e2bd; }
.online-card h3 { font-size: 2rem; margin-bottom: 24px; }
.online-card .pill { margin-top: 30px; }
.online-card__badge { position: absolute; top: 26px; right: 26px; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: #fff; color: var(--navy); font-size: 32px; box-shadow: var(--shadow); animation: wiggle 4s ease-in-out infinite; }

/* ---------- Timeline (Rekenen MBO) ---------- */
.timeline { position: relative; max-width: 960px; margin: 56px auto 0; padding: 8px 0; }
.timeline::before, .timeline::after { content: ''; position: absolute; left: 50%; top: 0; width: 4px; margin-left: -2px; border-radius: 4px; }
.timeline::before { bottom: 0; background: var(--line); }
.timeline::after { height: calc(var(--progress, 0) * 100%); background: var(--gold-grad); transition: height .15s linear; }
.timeline__item { position: relative; display: flex; margin-bottom: 30px; }
.timeline__item:nth-child(even) { justify-content: flex-end; }
.timeline__card { display: flex; gap: 18px; align-items: center; width: calc(50% - 50px); padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.timeline__icon { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--ice); color: var(--navy); font-size: 30px; }
.timeline__card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.timeline__card p { font-size: .9rem; color: var(--muted); line-height: 1.5; }
.timeline__num { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--line); transition: background-color .5s, color .5s, scale .5s var(--ease); scale: .7; }
.timeline__item.is-in .timeline__num { background: var(--gold-grad); color: var(--navy-900); scale: 1; transition-delay: .3s; }
html:not(.js) .timeline__num { scale: 1; }

/* ---------- Services & pricing ---------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; }
.service { display: flex; flex-direction: column; gap: 10px; padding: 32px 26px; border-radius: 24px; background: var(--cream); border: 1px solid #f1e2bd; }
.service__icon { font-size: 56px; color: var(--navy); transition: transform .5s var(--ease), color .3s; }
.service h3 { font-size: 1.2rem; transition: color .3s; }
.service p { color: var(--muted); font-size: .92rem; line-height: 1.5; flex: 1; transition: color .3s; }
.service__more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .88rem; color: var(--gold-dark); transition: color .3s; }
.service:hover { background: var(--navy); }
.service:hover h3, .service:hover .service__icon { color: #fff; }
.service:hover p { color: rgba(255, 255, 255, .8); }
.service:hover .service__more { color: var(--gold-light); }
.service:hover .service__icon { transform: rotate(-8deg) scale(1.12); }
.service:hover .arrow { transform: translateX(6px); }

.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; padding: 32px; background: #fff; border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.price-card .price-note { margin-top: auto; }
.price-card table { margin-bottom: 16px; }
/* Where supported, every card in a row shares the same 4 rows (title / intro / table / note),
   so titles, tables and notes line up exactly between neighbouring cards. */
@media (min-width: 981px) { @supports (grid-template-rows: subgrid) {
  .price-grid { grid-template-rows: none; grid-auto-rows: auto; row-gap: 28px; }
  .price-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
  .price-card > header { grid-row: 1; }
  .price-card > .price-intro { grid-row: 2; }
  .price-card > table { grid-row: 3; align-self: start; margin-bottom: 0; }
  .price-card > .price-note { grid-row: 4; align-self: end; margin-top: 16px; }
} }
.price-card header { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.price-card h3 { font-size: 1.3rem; }
.price-card header small { color: var(--muted); font-weight: 500; }
.price-card__num { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--gold-grad); color: var(--navy-900); font-weight: 800; }
.price-intro { font-size: .92rem; color: var(--muted); margin-bottom: 14px; min-height: 1px; }
.price-card table { width: 100%; border-collapse: collapse; font-size: .93rem; align-self: start; }
.price-card th { text-align: left; padding: 10px 12px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--ice-2); }
.price-card th:first-child { border-radius: 10px 0 0 10px; } .price-card th:last-child { border-radius: 0 10px 10px 0; }
.price-card td { padding: 13px 12px; border-bottom: 1px solid var(--line); transition: background-color .25s; }
.price-card td:last-child { text-align: right; font-weight: 800; color: var(--navy); white-space: nowrap; }
.price-card th:last-child { text-align: right; }
.price-card tbody tr:hover td { background: var(--cream); }
.price-card tr:last-child td { border-bottom: 0; }
.price-note { padding: 12px 14px; border-radius: 12px; background: var(--cream); font-size: .85rem; color: var(--gold-dark); font-weight: 600; }
.tagline-center { text-align: center; margin-top: 56px; font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--navy); }

/* ---------- About / reviews ---------- */
.unique-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.unique { padding: 30px 22px; text-align: center; background: #fff; border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.unique__icon { display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto 16px; border-radius: 50%; background: var(--ice); color: var(--navy); font-size: 38px; transition: transform .5s var(--ease), background-color .3s, color .3s; }
.unique:hover .unique__icon { transform: rotate(-8deg) scale(1.1); background: var(--navy); color: #fff; }
.unique p { font-size: .93rem; line-height: 1.5; font-weight: 500; }

.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.review { padding: 24px; background: #fff; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.review header { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.review header div { display: flex; flex-direction: column; line-height: 1.3; }
.review header small { color: var(--muted); }
.review__avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; }
.stars { display: flex; gap: 2px; margin-bottom: 14px; }
.stars span { display: inline-block; transform: scale(0); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1) calc(var(--d, 0s) + .3s + var(--i) * .09s); }
.js .is-in .stars span, html:not(.js) .stars span { transform: scale(1); }
.star { width: 22px; height: 22px; fill: #f0a43a; }
.review__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.review__tags li { padding: 4px 11px; border-radius: 999px; background: var(--ice); font-size: .76rem; font-weight: 600; color: var(--navy); }

/* ---------- Contact page ---------- */
.contact { position: relative; padding: 64px 0 100px; background: linear-gradient(180deg, var(--ice-2), #fff 60%); overflow: hidden; }
.contact__bg { position: absolute; inset: 0; pointer-events: none; }
.contact__bg .orb { opacity: .16; }
.contact__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 72px; align-items: start; }
.script-blue { font-size: 1.7rem; font-weight: 400; color: var(--blue-soft); }
.contact__title { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 4px 0 34px; }

.fcard { min-width: 0; margin: 0 0 16px; padding: 0; border: 0; background: #fff; border-radius: 18px; box-shadow: 0 8px 28px rgba(10, 42, 92, .09); overflow: hidden; }
.fcard__head { float: left; width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 26px; font-weight: 700; color: var(--navy); }
.fcard .topics { clear: both; }
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #d5dcec; transition: background-color .4s, transform .4s var(--ease); }
.dots i.on { background: var(--gold); transform: scale(1.3); }

.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 14px; padding: 20px 22px 24px; background: #eef2fb; }
.topics--moments { background: #fff; padding-top: 4px; grid-template-columns: repeat(2, 1fr); }
.check { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; cursor: pointer; font-size: .9rem; line-height: 1.3; transition: background-color .25s; }
.check:hover { background: rgba(255, 255, 255, .8); }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #fff; border: 2px solid #b6c3dc; transition: background-color .25s, border-color .25s, transform .3s var(--ease); }
.check__box svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset .35s var(--ease); }
.check input:checked + .check__box { background: var(--navy); border-color: var(--navy); transform: scale(1.1); }
.check input:checked + .check__box svg { stroke-dashoffset: 0; }
.check input:checked ~ .check__label { font-weight: 700; color: var(--navy); }
.check input:focus-visible + .check__box { outline: 3px solid var(--gold); outline-offset: 2px; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { position: relative; display: block; }
.field input, .field textarea { width: 100%; padding: 19px 22px; border: 2px solid transparent; border-radius: 16px; background: #fff; box-shadow: 0 8px 28px rgba(10, 42, 92, .09); font: 500 .95rem var(--ff); color: var(--ink); transition: border-color .25s, box-shadow .25s, transform .3s var(--ease); }
.field textarea { resize: vertical; min-height: 130px; }
.field ::placeholder { color: #a3aec4; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 5px rgba(200, 150, 62, .18), 0 8px 28px rgba(10, 42, 92, .09); transform: translateY(-2px); }
.field--area { margin-bottom: 16px; }
.field__error { display: block; min-height: 0; padding: 6px 6px 0; color: #c0392b; font-size: .8rem; font-weight: 600; }
.field__error:empty { display: none; }
.field.has-error input { border-color: #e0685a; animation: shake .4s; }
.form-error { margin-bottom: 16px; padding: 14px 18px; border-radius: 14px; background: #fdecea; color: #a5281b; font-weight: 600; font-size: .92rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

form .btn { margin-top: 10px; min-width: 300px; }
.btn__spinner { display: none; width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(6, 26, 63, .25); border-top-color: var(--navy-900); animation: spin .7s linear infinite; }
form.is-loading .btn__spinner { display: block; }
form.is-loading .arrow { display: none; }
form.is-loading .btn { pointer-events: none; opacity: .85; animation: none; }

.success { padding: 48px 40px; text-align: center; background: #fff; border-radius: 28px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); animation: pop .7s var(--ease) both; }
.success[hidden] { display: none; }
.success svg { width: 104px; height: 104px; margin-bottom: 16px; fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.success circle { stroke-dasharray: 152; stroke-dashoffset: 152; animation: draw 1s var(--ease) .1s forwards; }
.success path { stroke-dasharray: 44; stroke-dashoffset: 44; animation: draw .6s var(--ease) .8s forwards; }
.success h2 { font-size: 1.8rem; margin-bottom: 10px; }
.success p { color: var(--muted); margin-bottom: 26px; }

.contact__side { display: grid; gap: 18px; position: sticky; top: 120px; }
.avatar { position: relative; width: min(340px, 80%); aspect-ratio: 1; margin: 0 auto 26px; }
.avatar img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: 42% 20%; border-radius: 50%; border: 7px solid #fff; box-shadow: var(--shadow-lg); }
.avatar__ring { position: absolute; inset: -12px; border-radius: 50%; background: conic-gradient(var(--gold), var(--navy-600), var(--gold-light), var(--navy), var(--gold)); animation: spin 14s linear infinite; }
.reach { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 26px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 8px 28px rgba(10, 42, 92, .08); }
.reach small { display: block; font-weight: 500; color: var(--muted); }
.reach strong { display: block; font-size: 1.05rem; color: var(--navy); word-break: break-word; }
.reach__icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--gold-grad); color: var(--navy-900); font-size: 26px; transition: transform .5s var(--ease); }
.reach:hover .reach__icon { transform: rotate(-12deg) scale(1.1); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .8); padding-top: 72px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr; gap: 56px; padding-bottom: 52px; }
.footer__logo { display: inline-block; margin-bottom: 18px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:not(.btn):not(.footer__logo) { transition: color .25s; }
.site-footer a:not(.btn):hover { color: var(--gold-light); }
.footer__contact li { display: flex; align-items: center; gap: 12px; }
.footer__contact .icon { font-size: 20px; color: var(--gold-light); }
.footer__contact + .btn { margin-top: 10px; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 22px 0 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; }
.footer__bottom .script { font-size: 1.4rem; color: var(--gold-light); }

.notfound { padding: 120px 0; }
.notfound__code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; animation: bob 4s ease-in-out infinite; }
.notfound .h2 { margin: 8px 0 12px; }
.notfound p:not(.notfound__code) { margin-bottom: 26px; color: var(--muted); }

/* ---------- Keyframes ---------- */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@keyframes photoIn { from { opacity: 0; transform: scale(1.1) translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes bookDrop { 0% { opacity: 0; transform: translateY(-90px) rotate(-6deg); } 60% { opacity: 1; transform: translateY(6px) rotate(1deg); } 100% { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes wiggle { 0%, 88%, 100% { rotate: 0deg; } 91% { rotate: -10deg; } 94% { rotate: 9deg; } 97% { rotate: -5deg; } }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.15); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes write { from { clip-path: inset(-10% 100% -10% 0); opacity: 1; } to { clip-path: inset(-10% -10% -10% 0); opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes nudge { 50% { transform: translateX(7px); } }
@keyframes pulse { 0% { box-shadow: 0 8px 20px rgba(200, 150, 62, .35), 0 0 0 0 rgba(200, 150, 62, .55); } 70%, 100% { box-shadow: 0 8px 20px rgba(200, 150, 62, .35), 0 0 0 18px rgba(200, 150, 62, 0); } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes pop { from { opacity: 0; transform: scale(.9) translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1420px) {
  .books { left: 130px; }
  .path-cards { gap: 16px; }
  .pcard { padding: 24px 20px 26px; }
  .pcard__icon { font-size: 56px; }
}

@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 24px 26px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(10, 42, 92, .14);
    max-height: calc(100vh - 80px); overflow: auto;
    opacity: 0; visibility: hidden; translate: 0 -12px; transition: opacity .3s, translate .35s var(--ease), visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; translate: 0 0; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li > a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav > ul > li > a::after, .has-sub > a::before { display: none; }
  .sub { position: static; opacity: 1; visibility: visible; translate: 0; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
  .sub a { border-bottom: 1px solid var(--line); border-radius: 0; font-size: .9rem; }
  .nav__cta { margin-top: 18px; }
  .lang { margin-top: 18px; }
  .lang .sub { position: static; opacity: 1; visibility: visible; translate: 0; display: flex !important; gap: 8px; padding: 0; border: 0; box-shadow: none; }
  .lang .sub li { flex: 1; }
  .lang .sub a { border: 1px solid var(--line); border-radius: 12px; justify-content: center; }
  .lang__current { display: none !important; }
  .hero__script { display: none; }
  .books { display: none; }
  .hero__inner { padding-bottom: 190px; }
}

@media (max-width: 980px) {
  .section { padding: 68px 0; }
  .hero__photo { top: auto; right: 0; width: 100%; height: 340px; -webkit-mask-image: linear-gradient(0deg, #000 55%, transparent 100%); mask-image: linear-gradient(0deg, #000 55%, transparent 100%); }
  .hero__photo img { object-position: 60% 30%; }
  .hero__inner { padding-bottom: 330px; }
  .path-cards { grid-template-columns: 1fr; max-width: 560px; margin-top: -120px; }
  .split, .two-col, .price-grid, .contact__grid, .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact__side { position: static; }
  .banner { flex-direction: column; align-items: flex-start; padding: 40px 30px; }
  .trust ul { flex: 1 1 100%; flex-direction: column; }
  .trust li, .trust li:first-child { border-left: 0; padding: 0; }
  .trust__script { rotate: 0deg; }

  .timeline::before, .timeline::after { left: 24px; }
  .timeline__item, .timeline__item:nth-child(even) { justify-content: flex-start; padding-left: 64px; }
  .timeline__card { width: 100%; }
  .timeline__num { left: 24px; top: 34px; }
}

@media (max-width: 640px) {
  .container { width: min(1180px, 100% - 32px); }
  .header__inner { height: 76px; }
  .hero__inner { padding: 52px 0 320px; }
  .usps { flex-wrap: wrap; gap: 18px 0; }
  .usps li { flex: 1 1 50%; }
  .usps li:nth-child(3) { border-left: 0; padding-left: 0; }
  .cta { flex-direction: column; text-align: center; padding: 28px 22px; }
  .cta__icon { width: 116px; height: 116px; font-size: 60px; }
  .topics, .topics--moments, .row2 { grid-template-columns: 1fr; }
  .card { padding: 26px 22px; }
  .card--feature h3 { padding-right: 0; margin-top: 26px; }
  .badge-big { right: 18px; width: 92px; height: 92px; top: -30px; }
  .price-card { padding: 24px 18px; }
  .price-card th, .price-card td { padding-inline: 6px; font-size: .84rem; }
  .online-card { padding: 30px 22px; }
  .online-card h3 { font-size: 1.6rem; padding-right: 60px; }
  .pill { gap: 12px; }
  .pill__text strong { font-size: 1rem; }
  .pill__icon { width: 46px; height: 46px; font-size: 24px; }
  .pill__go { width: 40px; height: 40px; }
  .banner .btn, form .btn { width: 100%; min-width: 0; }
  .stats { gap: 26px 12px; }
  .method__sep { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero__script svg { stroke-dashoffset: 0; }
}

.nav__cta { white-space: nowrap; padding: 14px 24px; }

/* ---------- Language switcher ---------- */
.lang { position: relative; margin-right: 0; }
.nav .lang__current { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; font-size: .85rem; letter-spacing: .04em; }
.nav .lang__current::after, .nav .lang__current::before { display: none; }
.nav .lang__current .icon { font-size: 18px; }
.nav .lang:hover .lang__current { border-color: var(--gold); }
.lang .sub { left: auto; right: 0; min-width: 190px; }
.lang .sub a { display: flex !important; align-items: center; gap: 12px; }
.lang .sub b { display: inline-grid; place-items: center; width: 34px; height: 26px; border-radius: 8px; background: var(--ice); color: var(--navy); font-size: .75rem; }
.lang .sub a.is-current { font-weight: 700; background: var(--cream); }
.lang .sub a.is-current b { background: var(--gold-grad); }
.has-sub.lang { margin-right: 0; }
.has-sub.lang > a::before { display: none; }
.nav > ul > li > .lang__current::after { display: none; }

@media (min-width: 1181px) {
  .nav, .nav > ul { gap: 20px; }
  .nav a:not(.btn) { font-size: .9rem; }
  .nav__cta { padding: 13px 20px; font-size: .85rem; }
}

/* ---------- Mobile polish ---------- */
.portrait figcaption { margin-top: 40px; }
.split p + .checklist { margin-top: 22px; }

@media (max-width: 980px) {
  /* let grid children shrink so a wide table can never push the card past the screen edge */
  .price-grid, .two-col, .split, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .price-card, .card, .online-card { min-width: 0; }
}

@media (max-width: 640px) {
  .hero__title { font-size: clamp(1.75rem, 8.2vw, 2.4rem); }
  .eyebrow { letter-spacing: .22em; font-size: .72rem; }
  .page-hero { padding: 48px 0 104px; }
  .section { padding: 56px 0; }
  .section__head { margin-bottom: 32px; }

  .card--feature { padding-top: 48px; }
  .card--feature h3 { margin-top: 30px; }

  .timeline__card { gap: 12px; padding: 16px 14px; }
  .timeline__icon { width: 42px; height: 42px; font-size: 22px; border-radius: 12px; }
  .timeline__card h3 { font-size: 1rem; }

  .online-card__badge { width: 48px; height: 48px; font-size: 24px; top: 20px; right: 18px; }
  .online-card h3 { margin-bottom: 18px; }

  /* compact, horizontal service cards */
  .service-grid { gap: 14px; }
  .service { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; row-gap: 2px; padding: 18px; align-items: start; }
  .service__icon { grid-row: 1 / span 3; font-size: 46px; }
  .service h3 { font-size: 1.1rem; }
  .service p { flex: none; font-size: .88rem; }
  .service__more { margin-top: 6px; }

  /* compact "unique" cards */
  .unique-grid { gap: 12px; }
  .unique { display: flex; align-items: center; gap: 16px; padding: 16px 18px; text-align: left; }
  .unique__icon { flex: none; width: 56px; height: 56px; margin: 0; font-size: 28px; }

  .review-grid { gap: 16px; }
  .pill { width: 100%; }
  .pill__text { flex: 1; }
  .cta { margin-top: 44px; }
  .cta h3 { font-size: 1.3rem; }
  .banner { padding: 32px 22px; border-radius: 26px; }
  .footer__grid { gap: 32px; }
  .fcard__head { padding: 18px 18px; }
  .topics { padding: 14px 12px 18px; }
  .contact { padding: 40px 0 72px; }
  .avatar { width: min(260px, 70%); }
}

@media (max-width: 1180px) {
  .nav > ul > li > a:not(.btn), .sub a { display: block; }
  .lang .sub { flex-wrap: nowrap; }
  .lang .sub li { min-width: 0; }
  .lang .sub a { padding: 10px 6px !important; gap: 8px; }
}
@media (max-width: 480px) {
  .lang .sub a span { display: none; }
  .lang .sub b { width: 44px; height: 30px; font-size: .85rem; }
}
@media (max-width: 1180px) { .nav .sub a:not(.btn) { display: block; } .nav .lang .sub a:not(.btn) { display: flex; } }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); line-height: 1; }
.logo__mark { width: 54px; height: 54px; flex: none; overflow: visible; transition: transform .5s var(--ease), width .3s var(--ease), height .3s var(--ease); }
.is-scrolled .logo__mark { width: 46px; height: 46px; }
.brand:hover .logo__mark { transform: rotate(-6deg) scale(1.06); }
.logo__cap { transform-origin: 32px 28px; animation: capDrop 1s var(--ease) .2s both; }
.logo__star { transform-box: fill-box; transform-origin: center; animation: twinkle 3.4s ease-in-out 1.2s infinite; }
.logo__text { display: flex; flex-direction: column; gap: 3px; }
.logo__name { font-weight: 800; font-size: 1.2rem; letter-spacing: .13em; }
.logo__succes { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.32rem; letter-spacing: .25em; color: var(--gold); }
.logo__succes::before, .logo__succes::after { content: ''; flex: 1; height: 2px; min-width: 6px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--gold)); }
.logo__succes::after { background: linear-gradient(270deg, transparent, var(--gold)); }
.logo__tag { font-size: .52rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--navy-600); white-space: nowrap; }
.logo--light { color: #fff; }
.logo--light .logo__succes { color: var(--gold-light); }
.logo--light .logo__succes::before { background: linear-gradient(90deg, transparent, var(--gold-light)); }
.logo--light .logo__succes::after { background: linear-gradient(270deg, transparent, var(--gold-light)); }
.logo--light .logo__tag { color: rgba(255, 255, 255, .75); }
.logo--light .logo__mark { width: 60px; height: 60px; }
@media (max-width: 480px) {
  .logo { gap: 9px; }
  .logo__mark, .is-scrolled .logo__mark { width: 42px; height: 42px; }
  .logo__name { font-size: .95rem; }
  .logo__succes { font-size: 1.05rem; letter-spacing: .22em; }
  .logo__tag { font-size: .42rem; letter-spacing: .14em; }
}
@keyframes capDrop { from { opacity: 0; transform: translateY(-14px) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(1.35) rotate(20deg); opacity: .75; } }
.nav .lang a.lang__current:not(.btn) { display: inline-flex; align-items: center; gap: 7px; }
.logo__mark { width: 60px; height: 60px; }
.is-scrolled .logo__mark { width: 50px; height: 50px; }
.logo--light .logo__mark { width: 64px; height: 64px; }
@media (max-width: 480px) { .logo__mark, .is-scrolled .logo__mark { width: 44px; height: 44px; } }
