:root {
  --teal: #21a5a0;
  --teal-dark: #167f7b;
  --teal-hover: #0f5f5c;
  --ink: #12302f;
  --muted: #4d6665;
  --bg: #ffffff;
  --bg-soft: #f2f8f8;
  --line: #d6e6e5;
  --max: 1040px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --teal: #3cc3bd;
    --teal-dark: #5fd3ce;
    --teal-hover: #8ae0dc;
    --ink: #e6f2f1;
    --muted: #a5bdbc;
    --bg: #0e1c1c;
    --bg-soft: #142828;
    --line: #234040;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  font-size: 17px;
}
a { color: var(--teal-dark); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; }
.brand img { width: 34px; height: 34px; border-radius: 6px; }
nav.main { display: flex; gap: 22px; align-items: center; }
nav.main a { text-decoration: none; color: var(--ink); font-size: 15px; }
nav.main a:hover { color: var(--teal-dark); }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: 14px; }
.hero { padding: 88px 0 72px; background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.kicker { color: var(--teal-dark); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; margin: 0 0 14px; }
h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.08; margin: 0 0 20px; letter-spacing: -.02em; }
.lead { font-size: clamp(18px, 2.4vw, 22px); color: var(--muted); max-width: 680px; margin: 0 0 32px; }
.btn {
  display: inline-block; background: var(--teal-dark); color: #fff; padding: 14px 26px;
  border-radius: 8px; font-weight: 700; text-decoration: none;
}
.btn:hover { background: var(--teal-hover); color: #fff; }
.btn.ghost { background: transparent; color: var(--teal-dark); border: 2px solid var(--teal); padding: 12px 24px; }
@media (prefers-color-scheme: dark) { .btn, .btn:hover { color: #062524; } .btn.ghost { color: var(--teal-dark); } }
section { padding: 72px 0; }
section.soft { background: var(--bg-soft); }
h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 12px; letter-spacing: -.01em; }
.intro { color: var(--muted); max-width: 700px; margin: 0 0 36px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
section.soft .card { background: var(--bg); }
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0 0 10px; }
.card .result { color: var(--teal-dark); font-weight: 600; font-size: 15px; margin-top: 14px; }
.num { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--teal-dark); color: #fff; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px; }
@media (prefers-color-scheme: dark) { .num { color: #062524; } }
.two { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 800px) { .two { grid-template-columns: 1fr; gap: 28px; } nav.main a.hide-sm { display: none; } }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: 10px 0 10px 22px; border-bottom: 1px solid var(--line); position: relative; }
ul.plain li::before { content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.timeline .when { color: var(--muted); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.tags li { border: 1px solid var(--line); background: var(--bg); padding: 4px 14px; border-radius: 999px; font-size: 15px; }
.about { display: grid; gap: 40px; grid-template-columns: 220px 1fr; align-items: start; }
.about img { width: 100%; max-width: 220px; border-radius: 14px; display: block; }
@media (max-width: 700px) { .about { grid-template-columns: 1fr; } .about img { max-width: 160px; } .timeline li { grid-template-columns: 1fr; gap: 2px; } }
.contact { text-align: center; }
.contact .social { margin-top: 4px; font-size: 17px; }
section.soft a { color: var(--teal-hover); }
section.soft .btn { color: #fff; }
.contact .mail { font-size: clamp(22px, 4vw, 32px); font-weight: 700; }
footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer a { color: var(--muted); }
.legal main { padding: 56px 0 72px; }
.legal h1 { font-size: 34px; }
.legal h2 { font-size: 21px; margin-top: 32px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.mt28 { margin-top: 28px; }
.mt32 { margin-top: 32px; }
.center { margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bg); color: var(--ink); padding: 8px 14px; border-radius: 6px; z-index: 20; }
.skip:focus { left: 12px; }
