:root {
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #ffffff;
  --soft: #f8fafc;
  --navy: #0f172a;
  --accent: #1d4ed8;
  --ok: #166534;
  --err: #b91c1c;
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --max: 1120px;
  --r: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
button, .btn, .nav-toggle, .lang-btn { cursor: pointer; }

h1, h2, h3 {
  margin: 0 0 12px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); max-width: 16ch; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 12px; }
ul { margin: 0; padding: 0; list-style: none; }

.shell {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--navy);
  color: #fff;
  padding: 8px 12px;
  z-index: 20;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.logo img { width: 120px; height: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav > ul {
  display: flex;
  gap: 20px;
}

.site-nav > ul a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.site-nav > ul a:hover { color: var(--accent); }

.nav-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 10px 0 6px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  font: inherit;
  color: var(--text);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.lang-btn:hover {
  border-color: #cbd5e1;
  background: var(--soft);
}

.lang.is-open .lang-btn {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.flag {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #e2e8f0;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.14);
}

.flag svg {
  display: block;
  width: 100%;
  height: 100%;
}

.iso {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}

.lang-btn .iso {
  min-width: 1.6em;
}

.chev {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.chev svg {
  display: block;
  width: 12px;
  height: 12px;
  transition: transform 160ms ease;
}

.lang.is-open .chev svg { transform: rotate(180deg); }

.lang-list {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  min-width: 228px;
  margin: 0;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
}

.lang-list[hidden] {
  display: none !important;
}

.lang-list a {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
}

.lang-list a:hover,
.lang-list a:focus-visible {
  background: var(--soft);
  color: var(--text);
}

.lang-list a[aria-current="true"] { background: var(--soft); }

.lang-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.lang-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.lang-copy .iso {
  color: var(--muted);
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.lang-check {
  display: grid;
  place-items: center;
  color: var(--accent);
  min-height: 16px;
}

.lang-check svg {
  display: block;
  width: 16px;
  height: 16px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  margin: 0 auto;
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 160ms ease;
}
.btn:hover { background: var(--accent); color: #fff; }
.btn-small { padding: 8px 14px; font-size: 13px; min-height: 40px; }

.hero {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 460px;
  height: min(680px, max(460px, 40vw));
  overflow: hidden;
  background: #071428;
}

.hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 38%;
}

.hero-media img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: 70% 30%;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 38%;
  background: linear-gradient(90deg, #071428 0%, rgba(7, 20, 40, 0) 22%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(20rem, 32%);
  margin-left: clamp(20px, 5vw, 64px);
  padding: 48px 0;
}

.hero .eyebrow {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1 {
  color: #fff;
  max-width: none;
  font-size: clamp(2.1rem, 3.4vw, 3.35rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero h1 span {
  display: block;
}

.hero .lede {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  max-width: 26ch;
  margin: 18px 0 28px;
}

.hero .btn {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.78);
  padding: 12px 22px;
}

.hero .btn:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

.section { padding: 72px 0; }
.section-alt { background: var(--soft); }
.section-head { max-width: 560px; margin-bottom: 32px; }
.intro, .prose p, .muted { color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.photo { margin: 0; }
.photo img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--r);
}
.photo figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
}

.card p { margin: 0; color: var(--muted); font-size: 15px; }

.news article {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.news time {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.news p { margin: 0; color: var(--muted); }
.empty { color: var(--muted); }

.people {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.people article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 12px;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.people p { margin: 0; color: var(--muted); font-size: 14px; }

.facts { display: grid; gap: 8px; margin-top: 20px; }
.facts a { color: var(--text); text-decoration: none; font-weight: 500; }
.facts a:hover { color: var(--accent); }

.form {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
}

.form form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.form input,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

.form input:focus,
.form textarea:focus,
.btn:focus-visible,
.lang-btn:focus-visible,
.lang-list a:focus-visible,
.site-nav ul a:focus-visible {
  outline: 2px solid rgba(29, 78, 216, 0.45);
  outline-offset: 2px;
}

.honeypot { position: absolute; left: -9999px; }
.ok { color: var(--ok); }
.err { color: var(--err); }

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer a { color: var(--text); text-decoration: none; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  padding-bottom: 24px;
}
.footer-name { color: var(--text); font-weight: 700; margin-bottom: 4px; }
.footer-nav { display: grid; gap: 8px; }
.footer-copy {
  border-top: 1px solid var(--line);
  padding: 16px 0 24px;
}

@media (max-width: 860px) {
  .split, .cards, .people, .footer-inner { grid-template-columns: 1fr; }
  .photo img { height: 260px; }
  .hero {
    height: auto;
    min-height: min(640px, 78svh);
    align-items: flex-end;
  }
  .hero-media {
    left: 0;
  }
  .hero-media img {
    height: 100%;
    object-position: 72% 28%;
  }
  .hero::after {
    left: 0;
    background: linear-gradient(180deg, rgba(7, 20, 40, 0.08) 28%, rgba(7, 20, 40, 0.82) 78%);
  }
  .hero-copy {
    width: auto;
    max-width: 22rem;
    margin-left: 16px;
    margin-right: 16px;
    padding: 40px 0 36px;
  }
  .hero h1 { max-width: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 72px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 12px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav > ul { flex-direction: column; gap: 10px; }
  .nav-tools {
    flex-wrap: wrap;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .lang { width: 100%; }
  .lang-btn {
    width: 100%;
    justify-content: flex-start;
  }
  .lang-btn .chev { margin-left: auto; }
  .lang-list {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 8px;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lang-btn,
  .chev svg { transition: none; }
}
