:root {
  --navy: #1b2a5c;
  --blue: #2b52a0;
  --green: #12984a;
  --ink: #1d2433;
  --muted: #5a6478;
  --bg: #f5f7fb;
  --card: #ffffff;
  --line: #e3e8f1;
  --icon-blue: #2f80ed;
  --icon-green: #17b26a;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(27, 42, 92, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
.container { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 1.15rem; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; color: var(--ink); font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--blue); }
.lang {
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
  font-weight: 600; font-size: .85rem; color: var(--navy) !important;
}
.lang:hover { border-color: var(--green); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 70%, #1f7a6a 130%);
  color: #fff;
  padding: 72px 0 84px;
}
.hero .container { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: #9fe3bd; font-weight: 600; margin: 0 0 14px; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.12; margin: 0 0 18px; }
.hero p.lead { font-size: 1.15rem; max-width: 560px; color: #dfe7f7; margin: 0 0 28px; }
.hero-logo {
  background: #fff; border-radius: 24px; padding: 28px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
  justify-self: center; width: min(340px, 100%);
}
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none;
  border: 2px solid transparent; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #0e8340; }
.btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }

/* Sections */
section { padding: 68px 0; }
section.alt { background: #fff; }
.section-title { font-size: 1.9rem; color: var(--navy); margin: 0 0 8px; }
.section-title::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--green); margin-top: 10px; }
.section-intro { color: var(--muted); max-width: 720px; margin: 14px 0 34px; }

.grid { display: grid; gap: 22px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--green)); color: #fff; font-size: 1.3rem; margin-bottom: 14px;
}

/* Key figures */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: -48px; position: relative; }
.figure { background: #fff; border-radius: var(--radius); padding: 20px; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--line); }
.figure strong { display: block; font-size: 1.9rem; color: var(--blue); line-height: 1.1; }
.figure span { color: var(--muted); font-size: .9rem; }
.figures-wrap { padding: 0; background: transparent; }

/* Timeline */
.timeline { border-left: 3px solid var(--line); margin-left: 8px; padding-left: 28px; }
.job { position: relative; margin-bottom: 30px; }
.job::before {
  content: ""; position: absolute; left: -38px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--green); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--green);
}
.job .period { font-size: .85rem; color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.job h3 { margin: 2px 0 2px; color: var(--navy); }
.job .org { color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.job p { margin: 0; color: var(--muted); }

/* Skills */
.skill-group h3 { margin: 0 0 12px; color: var(--navy); font-size: 1.05rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: #eef2fa; color: var(--navy); border: 1px solid #dbe3f3; padding: 5px 12px; border-radius: 999px; font-size: .88rem; font-weight: 500; }
.tag.green { background: #e8f6ee; border-color: #cbe9d7; color: #0b6b33; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { margin: 0; flex: none; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-list a { font-weight: 600; text-decoration: none; color: var(--navy); }
.contact-list a:hover { color: var(--blue); }
.contact-cta { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.contact-cta .btn-ghost { border-color: var(--blue); color: var(--blue); }
.contact-cta .btn-ghost:hover { background: #eef2fa; }

/* Footer */
footer { background: var(--navy); color: #c9d3ec; padding: 34px 0; font-size: .9rem; }
footer a { color: #fff; }
footer .row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
footer img { height: 34px; filter: brightness(0) invert(1); opacity: .9; }
details.legal { margin-top: 22px; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 18px; }
details.legal summary { cursor: pointer; font-weight: 600; color: #fff; }
details.legal p { margin: 10px 0 0; max-width: 780px; }

/* Responsive */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: left; }
  .hero-logo { width: 220px; order: -1; justify-self: start; }
  .grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .figures { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav a:not(.lang) { display: none; }
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  .hero { padding: 40px 0 70px; }
  .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* Icons: soft tile + duotone line icon, gradient fill on hover */
.icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px;
  background: #eaf2ff; color: var(--icon-blue); border: 1px solid #d3e3fb; box-shadow: none;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon .a { stroke: var(--icon-green); transition: stroke .25s; }
.icon .f { fill: rgba(47, 128, 237, .16); }
.card:hover .icon, .contact-list li:hover .icon {
  background: linear-gradient(135deg, var(--blue), var(--green)); color: #fff; border-color: transparent; transform: scale(1.06);
}
.card:hover .icon .a, .contact-list li:hover .icon .a { stroke: #fff; }
.card:hover .icon .f, .contact-list li:hover .icon .f { fill: rgba(255, 255, 255, .22); }
.contact-list .icon { width: 48px; height: 48px; border-radius: 14px; margin: 0; }
.contact-list .icon svg { width: 24px; height: 24px; }
.card { transition: transform .2s, box-shadow .2s; }
@media (hover: hover) { .card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(27, 42, 92, .14); } }
@media (prefers-reduced-motion: reduce) { .card, .icon { transition: none; } .card:hover, .card:hover .icon { transform: none; } }
