/* ==========================================================================
   LinguaMaster Academy — Design System
   ========================================================================== */

:root {
  /* Brand palette */
  --navy-950: #1b405d;
  --navy-900: #17364c;
  --navy-800: #122a3d;
  --navy-700: #0e2231;
  --ink: #101f30;
  --body: #3c4257;
  --muted: #6b7280;
  --line: #e6e8ef;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --bg-soft-2: #eef1fa;

  --lime: #cbff4d;
  --lime-dark: #a6e01f;
  --blue: #42acff;
  --blue-dark: #1b405d;
  --coral: #ff6b57;
  --green-ok: #1f9d55;
  --amber: #ffb84d;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
  --shadow-navy: 0 20px 50px rgba(10, 15, 31, 0.35);

  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 4.5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

.section-pad { padding: 96px 0; }
.section-pad-sm { padding: 64px 0; }

@media (max-width: 780px) {
  .section-pad { padding: 64px 0; }
  .section-pad-sm { padding: 44px 0; }
}

/* ---------- Eyebrow / badges ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--lime);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}
.eyebrow.on-dark { color: var(--navy-950); }
.eyebrow.alt {
  background: var(--bg-soft-2);
  color: var(--blue-dark);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--navy-950);
  display: inline-block;
}

.section-head { max-width: 680px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.96rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--lime);
  color: var(--navy-950);
  box-shadow: 0 10px 24px rgba(203, 255, 77, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(203, 255, 77, 0.45); }

.btn-dark {
  background: var(--navy-950);
  color: #fff;
}
.btn-dark:hover { transform: translateY(-2px); background: var(--navy-800); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn-outline-light:hover { border-color: #fff; transform: translateY(-2px); }

.btn-sm { padding: 10px 20px; font-size: 0.86rem; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink);
}
.logo .mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--navy-950);
  display: flex; align-items: center; justify-content: center;
  color: var(--lime);
  font-weight: 800;
  font-size: 1rem;
  flex: none;
}
.logo .mark svg { width: 20px; height: 20px; }
.logo-img { height: 82px; width: auto; display: block; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.main-nav a {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--body);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 3px;
  background: var(--lime);
  border-radius: 2px;
}
.nav-dropdown-wrap { position: relative; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 50;
}
.nav-dropdown-wrap:hover .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--body);
}
.nav-dropdown a:hover { background: var(--bg-soft); color: var(--ink); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .btn { padding: 12px 22px; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .header-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }
}

.mobile-nav {
  position: fixed;
  inset: 96px 0 0 0;
  background: #fff;
  z-index: 90;
  padding: 20px 24px 40px;
  display: none;
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 16px 4px;
  font-size: 1.1rem;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.mobile-nav .btn { margin-top: 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-950);
  overflow: hidden;
  padding: 72px 0 120px;
}
.hero::before {
  content: "";
  position: absolute;
  top: -220px; right: -160px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(203,255,77,0.28), transparent 70%);
  border-radius: 50%;
  filter: blur(10px);
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -260px; left: -200px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(66,172,255,0.35), transparent 70%);
  border-radius: 50%;
}
.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
}

.hero-copy h1 { color: #fff; }
.hero-copy .lede {
  color: rgba(255,255,255,0.72);
  font-size: 1.12rem;
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.rotator {
  display: inline-grid;
  vertical-align: bottom;
  overflow: hidden;
  height: 1.15em;
  position: relative;
}
.rotator-list { position: relative; }
.rotator-word {
  display: block;
  color: var(--lime);
  white-space: nowrap;
  position: absolute;
  left: 0; top: 0;
  opacity: 0;
  transform: translateY(60%);
  transition: transform .55s cubic-bezier(.22,1,.36,1), opacity .45s ease;
}
.rotator-word.is-active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
}
.rotator-word.is-leaving {
  opacity: 0;
  transform: translateY(-60%);
}

.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-trust .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
}
.hero-trust .stat span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

.hero-visual { position: relative; height: 480px; }
.hero-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px;
}
.hero-card-main {
  width: 100%;
  max-width: 380px;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  padding: 22px;
}
.hero-card-main .avatars { display: flex; margin-bottom: 16px; }
.avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  border: 3px solid #fff;
  margin-left: -12px;
}
.avatar:first-child { margin-left: 0; }
.hero-card-main .class-title { font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.hero-card-main .class-sub { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }
.progress-track {
  height: 8px; border-radius: 6px; background: var(--bg-soft-2); overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, var(--blue), var(--lime));
  width: 0%;
  transition: width 1.4s cubic-bezier(.22,1,.36,1);
}
.progress-label { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--muted); margin-top: 8px; }

.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  animation: float 5s ease-in-out infinite;
}
.float-badge .ico {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.badge-native { top: 40px; left: -10px; animation-delay: .3s; }
.badge-native .ico { background: rgba(66,172,255,0.12); color: var(--blue); }
.badge-level { bottom: 60px; right: -20px; animation-delay: .9s; }
.badge-level .ico { background: rgba(203,255,77,0.35); color: var(--green-ok); }
.badge-exam { bottom: 0px; left: 10px; animation-delay: 1.5s; }
.badge-exam .ico { background: rgba(255,107,87,0.14); color: var(--coral); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.flag-row { display: flex; gap: 8px; margin-top: 6px; }
.flag-chip {
  font-size: 0.72rem; font-weight: 700;
  padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--bg-soft-2); color: var(--blue-dark);
}

/* ---------- Trust / logo bar ---------- */
.trust-bar { padding: 40px 0; border-bottom: 1px solid var(--line); }
.trust-bar .container {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: space-between;
}
.trust-bar .label { font-size: 0.82rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.trust-logos { display: flex; gap: 30px; flex-wrap: wrap; align-items: center; }
.trust-logos span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  opacity: 0.55;
}

/* ---------- Cards / Services ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }

.service-card { position: relative; }
.service-card .badge-pop {
  position: absolute; top: 24px; right: 24px;
  font-size: 0.68rem; font-weight: 800; letter-spacing: .04em;
  background: var(--lime); color: var(--navy-950);
  padding: 5px 10px; border-radius: var(--radius-pill);
}
.icon-tile {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  background: var(--navy-950);
  color: var(--lime);
}
.icon-tile svg { width: 26px; height: 26px; }
.card ul.check-list { margin: 16px 0 20px; }
.check-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.92rem; color: var(--body);
  margin-bottom: 10px;
}
.check-list li svg { width: 18px; height: 18px; flex: none; color: var(--green-ok); margin-top: 1px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }
.card-link svg { width: 16px; height: 16px; transition: transform .2s; }
.card-link:hover svg { transform: translateX(4px); }

/* ---------- Language tabs ---------- */
.lang-tabs-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: start; }
@media (max-width: 860px) { .lang-tabs-wrap { grid-template-columns: 1fr; } }
.lang-tab-list { display: flex; flex-direction: column; gap: 10px; }
.lang-tab-btn {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  transition: all .25s ease;
}
.lang-tab-btn .flag { font-size: 1.4rem; }
.lang-tab-btn small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.78rem; color: var(--muted); }
.lang-tab-btn.active {
  background: var(--navy-950);
  color: #fff;
  border-color: var(--navy-950);
}
.lang-tab-btn.active small { color: rgba(255,255,255,0.6); }

.lang-panel {
  display: none;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.lang-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; animation: fadein .4s ease; }
@media (max-width: 640px) { .lang-panel.active { grid-template-columns: 1fr; padding: 26px; } }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0);} }

.level-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 16px; }
.level-chip {
  text-align: center;
  padding: 10px 4px;
  border-radius: 10px;
  background: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--ink);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.level-chip small {
  font-weight: 600;
  font-size: 0.6rem;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.1;
}
.lang-native-note { font-size: 0.82rem; color: var(--muted); margin-top: 12px; }
.lang-native-note strong { color: var(--ink); }
@media (max-width: 640px) { .level-grid { grid-template-columns: repeat(3,1fr); } }

/* ---------- Stats ---------- */
.stats-band {
  background: var(--navy-950);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 780px) { .stats-band { grid-template-columns: repeat(2,1fr); padding: 40px 24px;} }
.stat-item { text-align: center; }
.stat-item .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--lime);
}
.stat-item .lbl { color: rgba(255,255,255,0.65); font-size: 0.88rem; margin-top: 6px; }

/* ---------- Values / why us ---------- */
.value-row { display: flex; align-items: flex-start; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.value-row:last-child { border-bottom: none; }
.value-num { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--lime-dark); background: var(--navy-950); width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step-card { position: relative; padding-top: 8px; }
.step-card .step-index {
  font-family: var(--font-display);
  font-size: 2.6rem; font-weight: 800;
  color: var(--bg-soft-2);
  -webkit-text-stroke: 1px var(--line);
  margin-bottom: 6px;
}

/* ---------- Testimonials ---------- */
.testi-track-wrap { overflow: hidden; }
.testi-track {
  display: flex;
  gap: 22px;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.testi-card {
  flex: 0 0 calc(33.333% - 15px);
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
}
@media (max-width: 980px) { .testi-card { flex: 0 0 calc(50% - 11px); } }
@media (max-width: 680px) { .testi-card { flex: 0 0 100%; } }
.stars { display: flex; gap: 3px; margin-bottom: 14px; color: var(--amber); }
.stars svg { width: 16px; height: 16px; }
.testi-quote { color: var(--ink); font-size: 0.98rem; margin-bottom: 20px; }
.testi-person { display: flex; align-items: center; gap: 12px; }
.testi-person .name { font-weight: 700; color: var(--ink); font-size: 0.92rem; }
.testi-person .role { font-size: 0.8rem; color: var(--muted); }
.testi-nav { display: flex; gap: 12px; margin-top: 30px; justify-content: center; }
.testi-nav button {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.testi-nav button:hover { background: var(--navy-950); color: #fff; border-color: var(--navy-950); }
.testi-nav button svg { width: 18px; height: 18px; }

/* ---------- Blog ---------- */
.blog-card { display: flex; flex-direction: column; overflow: hidden; }
.blog-thumb {
  height: 170px; border-radius: var(--radius-md);
  margin: -30px -30px 20px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.blog-thumb svg { width: 56px; height: 56px; color: rgba(255,255,255,0.85); }
.blog-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,0.9); color: var(--ink);
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--radius-pill);
}
.blog-meta { font-size: 0.78rem; color: var(--muted); margin-bottom: 8px; }
.blog-card h3 { margin-bottom: 10px; }
.blog-card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- FAQ / Accordion ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  background: #fff;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}
.faq-q .plus {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-soft-2);
  display: flex; align-items: center; justify-content: center;
  flex: none;
  position: relative;
  transition: background .2s;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute; background: var(--ink);
  transition: transform .3s ease;
}
.faq-q .plus::before { width: 12px; height: 2px; }
.faq-q .plus::after { width: 2px; height: 12px; }
.faq-item.open .faq-q .plus { background: var(--lime); }
.faq-item.open .faq-q .plus::after { transform: rotate(90deg) scaleY(0); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-a-inner { padding: 0 24px 22px; color: var(--muted); font-size: 0.94rem; line-height: 1.65; }
.faq-cats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; justify-content: center; }
.faq-cat-btn {
  padding: 10px 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  font-weight: 700; font-size: 0.85rem; color: var(--body);
  transition: all .2s;
}
.faq-cat-btn.active { background: var(--navy-950); color: #fff; border-color: var(--navy-950); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--blue) 0%, var(--navy-950) 100%);
  border-radius: var(--radius-lg);
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(203,255,77,0.25);
}
.cta-banner h2 { color: #fff; margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,0.8); margin: 0; }
.cta-banner .btn-primary { position: relative; z-index: 2; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; }
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; } }
.contact-info-card {
  background: var(--navy-950);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-info-card h3 { color: #fff; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.contact-row:last-of-type { border-bottom: none; }
.contact-row .ico { width: 40px; height: 40px; border-radius: 11px; background: rgba(203,255,77,0.15); color: var(--lime); display: flex; align-items: center; justify-content: center; flex: none; }
.contact-row .ico svg { width: 19px; height: 19px; }
.contact-row .lbl { font-size: 0.78rem; color: rgba(255,255,255,0.55); }
.contact-row .val { font-weight: 700; }
.social-row { display: flex; gap: 10px; margin-top: 26px; }
.social-row a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.social-row a:hover { background: var(--lime); color: var(--navy-950); }
.social-row svg { width: 17px; height: 17px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 0.94rem;
  background: var(--bg-soft);
  transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: #fff;
}
.field-check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; color: var(--muted); grid-column: 1/-1; margin-bottom: 20px; }
.field-check input { margin-top: 3px; }
.field-check a { text-decoration: underline; color: var(--body); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.65); padding: 72px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr; gap: 30px; padding-bottom: 50px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.site-footer .logo { color: #fff; }
.site-footer .logo .mark { background: var(--lime); color: var(--navy-950); }
.site-footer .logo-img { filter: brightness(0) invert(1); height: 54px; }
.footer-about p { font-size: 0.9rem; margin: 16px 0 20px; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 18px; }
.footer-col a, .footer-col p { display: block; font-size: 0.9rem; margin-bottom: 12px; color: rgba(255,255,255,0.6); transition: color .2s; }
.footer-col a:hover { color: var(--lime); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem; flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.55); margin-left: 18px; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: .08s; }
.reveal-delay-2.in-view { transition-delay: .16s; }
.reveal-delay-3.in-view { transition-delay: .24s; }
.reveal-delay-4.in-view { transition-delay: .32s; }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  background: var(--navy-950);
  padding: 64px 0 84px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; top: -180px; right: -140px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(203,255,77,0.22), transparent 70%);
}
.page-hero .container { position: relative; z-index: 2; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,0.5); }
.breadcrumb a:hover { color: var(--lime); }
.page-hero h1 { color: #fff; max-width: 720px; }
.page-hero .lede { color: rgba(255,255,255,0.68); font-size: 1.08rem; max-width: 620px; margin-top: 10px;}

/* ---------- Table ---------- */
.compare-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.compare-table th { background: var(--navy-950); color: #fff; font-family: var(--font-display); font-size: 0.82rem; text-transform: uppercase; letter-spacing: .04em; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child, .compare-table th:first-child { font-weight: 700; color: var(--ink); }
.table-scroll { overflow-x: auto; }

/* ---------- Blog post / article ---------- */
.article-wrap { display: grid; grid-template-columns: 1fr 280px; gap: 50px; align-items: start; }
@media (max-width: 900px) { .article-wrap { grid-template-columns: 1fr; } }
.article-body h2 { margin-top: 2em; font-size: 1.7rem; }
.article-body h3 { margin-top: 1.6em; }
.article-body p { font-size: 1.02rem; line-height: 1.75; color: var(--body); }
.article-body ul { list-style: disc; padding-left: 22px; margin-bottom: 1.2em; }
.article-body li { margin-bottom: 8px; font-size: 1.02rem; line-height: 1.6; }
.article-body a { color: var(--blue); text-decoration: underline; font-weight: 600; }
.article-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.article-meta .sep { opacity: .5; }
.toc-card {
  position: sticky; top: 100px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 24px;
}
.toc-card h4 { margin-bottom: 14px; }
.toc-card ol { list-style: none; padding: 0; counter-reset: toc; }
.toc-card li { counter-increment: toc; margin-bottom: 12px; font-size: 0.88rem; }
.toc-card li a { display: flex; gap: 10px; color: var(--body); font-weight: 600; }
.toc-card li a::before { content: counter(toc); font-weight: 800; color: var(--blue); }
.callout {
  background: var(--bg-soft-2);
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 0.95rem;
}
.callout strong { color: var(--ink); }

/* ---------- Level test / quiz ---------- */
.quiz-shell { max-width: 760px; margin: 0 auto; }
.quiz-intro-card {
  background: var(--navy-950);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}
.quiz-intro-card h2 { color: #fff; }
.quiz-intro-card p { color: rgba(255,255,255,0.72); max-width: 520px; margin-left: auto; margin-right: auto; }
.quiz-intro-points { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; margin: 28px 0 32px; }
.quiz-intro-points span { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 700; color: rgba(255,255,255,0.85); }
.quiz-intro-points svg { width: 18px; height: 18px; color: var(--lime); flex: none; }

.quiz-progress-wrap { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.quiz-progress-track { flex: 1; height: 8px; border-radius: 6px; background: var(--bg-soft-2); overflow: hidden; }
.quiz-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--blue), var(--lime)); border-radius: 6px; transition: width .4s cubic-bezier(.22,1,.36,1); }
.quiz-progress-label { font-size: 0.8rem; font-weight: 700; color: var(--muted); white-space: nowrap; }

.quiz-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-md);
  display: none;
}
.quiz-title { margin-bottom: 6px; }
.quiz-subtitle { color: var(--muted); font-size: 0.92rem; margin-bottom: 26px; }
.quiz-exercise-text { font-weight: 700; color: var(--ink); background: var(--bg-soft); padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; }

.choice-grid { display: grid; gap: 12px; }
.choice-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line);
  background: var(--bg-soft);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all .2s ease;
}
.choice-card:hover { border-color: var(--blue); }
.choice-card.selected { border-color: var(--navy-950); background: var(--navy-950); }
.choice-card.selected .choice-label, .choice-card.selected .choice-sub { color: #fff; }
.choice-flag { font-size: 1.4rem; }
.choice-label { font-weight: 700; color: var(--ink); font-size: 0.96rem; }
.choice-sub { font-size: 0.78rem; color: var(--muted); }
@media (max-width: 640px) { .choice-grid { grid-template-columns: 1fr !important; } }

.quiz-form .field { margin-bottom: 18px; }
.quiz-form .field-check { margin-top: 4px; }

.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; }

.shake { animation: quiz-shake .4s; }
@keyframes quiz-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

.quiz-success {
  display: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 56px 44px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.quiz-success .success-icon {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--lime);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.quiz-success .success-icon svg { width: 36px; height: 36px; color: var(--navy-950); }
.quiz-success h2 { margin-bottom: 12px; }
.quiz-success p { color: var(--muted); max-width: 460px; margin-left: auto; margin-right: auto; }

/* ---------- Flag icons (SVG, not emoji — emoji flags don't render on Windows) ---------- */
.flag-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.1em;
  border-radius: 3px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
  vertical-align: middle;
  flex: none;
}
.flag-icon.flag-gb { background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2MCA0MCI+PGNsaXBQYXRoIGlkPSJzIj48cmVjdCB3aWR0aD0iNjAiIGhlaWdodD0iNDAiLz48L2NsaXBQYXRoPjxnIGNsaXAtcGF0aD0idXJsKCNzKSI+PHJlY3Qgd2lkdGg9IjYwIiBoZWlnaHQ9IjQwIiBmaWxsPSIjMDAyNDdEIi8+PHBhdGggZD0iTTAsMCBMNjAsNDAgTTYwLDAgTDAsNDAiIHN0cm9rZT0iI0ZGRkZGRiIgc3Ryb2tlLXdpZHRoPSI4Ii8+PHBhdGggZD0iTTAsMCBMNjAsNDAgTTYwLDAgTDAsNDAiIHN0cm9rZT0iI0NGMTQyQiIgc3Ryb2tlLXdpZHRoPSIzIi8+PHBhdGggZD0iTTMwLDAgVjQwIE0wLDIwIEg2MCIgc3Ryb2tlPSIjRkZGRkZGIiBzdHJva2Utd2lkdGg9IjE0Ii8+PHBhdGggZD0iTTMwLDAgVjQwIE0wLDIwIEg2MCIgc3Ryb2tlPSIjQ0YxNDJCIiBzdHJva2Utd2lkdGg9IjgiLz48L2c+PC9zdmc+"); }
.flag-icon.flag-fr { background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzIDIiPjxyZWN0IHdpZHRoPSIxIiBoZWlnaHQ9IjIiIGZpbGw9IiMwMDU1QTQiLz48cmVjdCB4PSIxIiB3aWR0aD0iMSIgaGVpZ2h0PSIyIiBmaWxsPSIjRkZGRkZGIi8+PHJlY3QgeD0iMiIgd2lkdGg9IjEiIGhlaWdodD0iMiIgZmlsbD0iI0VGNDEzNSIvPjwvc3ZnPg=="); }
.flag-icon.flag-de { background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzIDIiPjxyZWN0IHdpZHRoPSIzIiBoZWlnaHQ9IjAuNjY3IiBmaWxsPSIjMDAwMDAwIi8+PHJlY3QgeT0iMC42NjciIHdpZHRoPSIzIiBoZWlnaHQ9IjAuNjY3IiBmaWxsPSIjREQwMDAwIi8+PHJlY3QgeT0iMS4zMzQiIHdpZHRoPSIzIiBoZWlnaHQ9IjAuNjY2IiBmaWxsPSIjRkZDRTAwIi8+PC9zdmc+"); }
.flag-icon.flag-it { background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzIDIiPjxyZWN0IHdpZHRoPSIxIiBoZWlnaHQ9IjIiIGZpbGw9IiMwMDkyNDYiLz48cmVjdCB4PSIxIiB3aWR0aD0iMSIgaGVpZ2h0PSIyIiBmaWxsPSIjRkZGRkZGIi8+PHJlY3QgeD0iMiIgd2lkdGg9IjEiIGhlaWdodD0iMiIgZmlsbD0iI0NFMkIzNyIvPjwvc3ZnPg=="); }
.flag-chip .flag-icon { width: 1.6em; height: 1.15em; margin-right: 4px; }
.lang-tab-btn .flag.flag-icon { width: 1.8em; height: 1.3em; }
.choice-flag.flag-icon { width: 32px; height: 23px; }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  z-index: 200;
  transition: transform .25s ease, box-shadow .25s ease;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 14px 32px rgba(37, 211, 102, 0.55); }
.whatsapp-float svg { width: 30px; height: 30px; }
@media (max-width: 640px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 27px; height: 27px; }
}

/* ---------- Misc utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.tag-pill {
  display: inline-block;
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  background: var(--bg-soft-2); color: var(--blue-dark);
  padding: 5px 12px; border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.bg-soft { background: var(--bg-soft); }
.disclaimer-note {
  font-size: 0.78rem; color: var(--muted); text-align: center; margin-top: 14px;
}
