:root {
  --bg: #f7f9fc;
  --bg-alt: #eef3fa;
  --surface: #ffffff;
  --text: #0f1b2d;
  --muted: #55657d;
  --line: #dde5f0;
  --brand: #0b5cab;
  --brand-2: #1b96ff;
  --brand-soft: #e3f0ff;
  --accent: #7f3fd4;
  --wa: #1fa855;
  --wa-hover: #188a45;
  --danger: #c23934;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 8px 24px rgba(15, 27, 45, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-alt: #0f1a2e;
    --surface: #131f35;
    --text: #e8eef8;
    --muted: #9aabc4;
    --line: #23324d;
    --brand: #4aa8ff;
    --brand-2: #7cc0ff;
    --brand-soft: #16304f;
    --accent: #b08cf0;
    --wa: #25c264;
    --wa-hover: #1fa855;
    --danger: #ff7b72;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  /* System fonts only: no third-party font requests (GDPR-friendly, nothing external to load) */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--brand);
  background: var(--brand); color: #fff; font: inherit; font-weight: 700; text-decoration: none;
  cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s;
}
@media (prefers-color-scheme: dark) { .btn { color: #06101f; } }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--brand); }
@media (prefers-color-scheme: dark) { .btn-ghost { color: var(--brand); } }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.link { background: none; border: 0; color: var(--brand); font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; font-size: .85rem; font-weight: 800;
}
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .2s; }

@media (max-width: 760px) {
  .brand-name { display: none; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 12px; }
}

/* ---------- hero ---------- */
.hero {
  padding: 72px 0 64px;
  background:
    radial-gradient(800px 400px at 85% -10%, color-mix(in srgb, var(--brand-2) 18%, transparent), transparent 70%),
    radial-gradient(600px 300px at 0% 110%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: .85rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px color-mix(in srgb, var(--wa) 25%, transparent); }
.eyebrow.closed .dot { background: var(--danger); box-shadow: none; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; margin: 18px 0 18px; }
.hl { background: linear-gradient(90deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 58ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 32px; }
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-size: 1.05rem; }
.hero-facts span { color: var(--muted); font-size: .85rem; }

.hero-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px;
  box-shadow: var(--shadow); text-align: center;
}
.avatar {
  width: 112px; height: 112px; border-radius: 50%; margin: 0 auto 16px; object-fit: cover;
  display: grid; place-items: center; font-size: 2.2rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 0 0 6px var(--brand-soft);
  position: relative; overflow: hidden;
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-card h2 { font-size: 1.35rem; margin-bottom: 6px; }
.hero-card .muted { font-size: .95rem; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; text-align: left; }
.stats li { background: var(--bg-alt); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; }
.stats strong { font-size: 1.4rem; color: var(--brand); }
.stats span { font-size: .8rem; color: var(--muted); line-height: 1.3; }
.where { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 800; color: var(--brand); margin-bottom: 8px; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.section-lead { color: var(--muted); font-size: 1.08rem; max-width: 65ch; margin-bottom: 40px; }
.center .section-lead { margin-inline: auto; }
.sub { font-size: 1.1rem; margin: 32px 0 14px; }
.sub-top { margin-top: 0; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.1rem; margin-bottom: 12px; }

.ticks li { position: relative; padding-left: 28px; margin: 8px 0; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%231b96ff'%3E%3Cpath d='M8.1 13.3 4.8 10l-1.1 1.1 4.4 4.4 9-9-1.1-1.1z'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ---------- training details ---------- */
.details-grid { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
.details {
  margin: 0; background: linear-gradient(160deg, var(--brand), color-mix(in srgb, var(--brand) 60%, var(--accent)));
  color: #fff; border-radius: var(--radius); padding: 8px 24px; box-shadow: var(--shadow);
  position: sticky; top: 88px;
}
.details div { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.details div:last-child { border-bottom: 0; }
.details dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.details dd { margin: 2px 0 0; font-weight: 700; }
@media (prefers-color-scheme: dark) { .details { color: #06101f; } .details div { border-color: rgba(6, 16, 31, .18); } }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

/* ---------- curriculum ---------- */
.modules { display: grid; gap: 12px; }
.modules details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.modules summary {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; font-weight: 700;
}
.modules summary::-webkit-details-marker { display: none; }
.modules summary::after { content: "+"; margin-left: 8px; font-size: 1.4rem; color: var(--muted); transition: transform .2s; }
.modules details[open] summary::after { transform: rotate(45deg); }
.num { font-variant-numeric: tabular-nums; color: var(--brand); font-weight: 800; min-width: 28px; }
.mt { flex: 1; }
.tag { font-size: .72rem; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); white-space: nowrap; }
.tag-dc { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.tag-cap { background: color-mix(in srgb, var(--wa) 15%, transparent); color: var(--wa); }
.modules details ul { padding: 0 20px 18px 64px; color: var(--muted); }
.modules details li { list-style: disc; margin: 6px 0; }
@media (max-width: 560px) {
  .modules summary { gap: 10px; padding: 16px; flex-wrap: wrap; }
  .tag { order: 3; margin-left: 38px; }
  .modules details ul { padding-left: 54px; }
}

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
.about-copy p { color: var(--muted); }
.about-copy strong { color: var(--text); }
.badges { display: grid; gap: 10px; }
.badges li {
  padding: 12px 14px 12px 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; position: relative;
}
.badges li::before { content: "🏅"; position: absolute; left: 14px; top: 11px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; }
.timeline { border-left: 2px solid var(--line); padding-left: 22px; }
.timeline li { position: relative; padding-bottom: 22px; display: flex; flex-direction: column; }
.timeline li::before {
  content: ""; position: absolute; left: -29px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--brand);
}
.timeline li:first-child::before { background: var(--brand); }
.when { font-size: .8rem; font-weight: 700; color: var(--brand); }
.org { font-size: .9rem; color: var(--muted); }
.edu li { display: flex; flex-direction: column; margin-bottom: 12px; }
.edu span { font-size: .9rem; color: var(--muted); }
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.project { text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; }
a.project:hover { transform: translateY(-2px); border-color: var(--brand); }
.project h4 { font-size: 1.05rem; margin-bottom: 8px; }
.project p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- faq ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); padding-bottom: 8px; }

/* ---------- register ---------- */
.register-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.row { margin-bottom: 16px; }
.row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
label small { font-weight: 400; color: var(--muted); font-size: .78rem; }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--text); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.invalid { border-color: var(--danger) !important; }
textarea { resize: vertical; }
.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; margin: 10px 0; }
.check input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--brand); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--danger); font-weight: 600; font-size: .9rem; margin: 8px 0 12px; }
form .btn-block { margin-top: 8px; padding: 14px; font-size: 1.05rem; }
.success { text-align: center; padding: 12px 0; outline: none; }
.success-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--wa) 15%, transparent); color: var(--wa); font-size: 2rem; font-weight: 800;
}
.success h3 { font-size: 1.4rem; margin-bottom: 10px; }
.success .btn-wa { margin: 12px 0; padding: 14px; }
.success .small { margin-bottom: 18px; }

/* ---------- contact & footer ---------- */
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer p { margin: 0; }

/* ---------- legal pages ---------- */
.legal { padding: 56px 0 80px; }
.legal h1 { font-size: 2rem; margin-bottom: 8px; }
.legal h2 { font-size: 1.15rem; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { list-style: disc; padding-left: 22px; }
.legal li { margin: 6px 0; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero-grid, .about-grid, .register-grid, .details-grid { grid-template-columns: 1fr; }
  .details { position: static; }
  .hero { padding-top: 48px; }
  .hero-card { max-width: 480px; }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .row.two { grid-template-columns: 1fr; }
  .form-card, .hero-card { padding: 22px; }
  .hero-facts { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
