:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #1c2330;
  --muted: #5a6373;
  --line: #e5dfd4;
  --navy: #1c2f4a;
  --navy-2: #2a4468;
  --gold: #a88450;
  --gold-soft: #f3ebdd;
  --ok: #1f7a4d;
  --err: #b3261e;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11161f;
    --surface: #18202c;
    --ink: #ece8e1;
    --muted: #a7afbd;
    --line: #2a3443;
    --navy: #0c1522;
    --navy-2: #1c2f4a;
    --gold: #cfae78;
    --gold-soft: #2a2519;
    --ok: #5fcf97;
    --err: #ff8a80;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .005em; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); color: var(--ink); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--navy) 94%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  color: #fff;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--gold);
  font: 600 1.35rem/1 var(--serif);
}
.brand-name { font: 600 1.3rem/1.1 var(--serif); letter-spacing: .02em; }
.brand-name small { display: block; font: 500 .68rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #c9d2df; }
.nav { display: flex; align-items: center; gap: 22px; font-size: .92rem; }
.nav a { text-decoration: none; color: #dfe5ee; }
.nav a:hover { color: #fff; }
.nav .lang {
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 4px 12px;
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
}
@media (max-width: 820px) { .nav .nav-link { display: none; } }

/* Hero */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(168,132,80,.28), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 9vw, 120px);
}
.hero .wrap { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: clamp(32px, 6vw, 80px); }
.eyebrow { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.4rem); margin-bottom: .25em; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: #d7deea; max-width: 34em; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 34px; padding: 0; list-style: none; font-size: .92rem; color: #c9d2df; }
.hero-meta li::before { content: "◆"; color: var(--gold); font-size: .6em; margin-right: 8px; vertical-align: middle; }
.portrait { position: relative; justify-self: center; width: min(320px, 80vw); }
.portrait img {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  border: 6px solid rgba(255,255,255,.9);
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.portrait::after {
  content: ""; position: absolute; inset: -16px; border-radius: 50%;
  border: 1px solid rgba(207,174,120,.55); pointer-events: none;
}
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-meta { justify-content: center; }
  .portrait { order: -1; width: min(220px, 60vw); }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--gold); color: #fff; text-decoration: none;
  font: 600 .95rem/1 var(--sans); letter-spacing: .02em;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,.45); margin-left: 10px; }
@media (max-width: 480px) { .btn-ghost { margin: 12px 0 0; } }

/* Sections */
section { padding: clamp(64px, 9vw, 104px) 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--muted); }
.alt { background: var(--surface); border-block: 1px solid var(--line); }

.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about p { font-size: 1.05rem; }
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 0; }
.alt .facts { background: var(--bg); }
.facts div + div { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.facts dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-weight: 500; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.alt .card { background: var(--bg); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold); margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--gold);
}
.alt .timeline li::before { background: var(--surface); }
.timeline .role { font-weight: 600; display: block; }
.timeline .org { color: var(--muted); }

.cert-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.cert-groups ul { list-style: none; padding: 0; margin: 0; }
.cert-groups li { padding: 10px 0 10px 28px; position: relative; border-top: 1px solid var(--line); font-size: .96rem; }
.cert-groups li:first-child { border-top: 0; }
.cert-groups li::before {
  content: ""; position: absolute; left: 2px; top: 17px; width: 12px; height: 7px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg);
}

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact-note { color: var(--muted); }
.contact-note ul { padding-left: 1.1em; }
form.request { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); box-shadow: 0 20px 50px rgba(28,47,74,.08); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; margin-bottom: 16px; }
.field label { font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin: 4px 0 20px; }
.consent input { margin-top: 5px; accent-color: var(--gold); width: 18px; height: 18px; flex: none; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 16px 0 0; font-weight: 500; min-height: 1.4em; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }

/* Footer */
.site-footer { background: var(--navy); color: #c9d2df; padding: 44px 0; font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.site-footer a { color: #fff; }
.disclaimer { max-width: 640px; font-size: .8rem; color: #9aa6b8; margin: 0; }

/* Simple notice pages (404, no-JS form result) */
.notice { width: min(640px, 100% - 32px); margin: 14vh auto; text-align: center; }
.notice h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
.notice p { color: var(--muted); }
