:root {
  --ink: #0f2a44;
  --ink-2: #4a5d70;
  --ink-3: #7a8a99;
  --bg: #faf8f5;
  --surface: #ffffff;
  --alt: #f2efe9;
  --line: #e6e0d6;
  --accent: #2b8a7e;
  --accent-dark: #1f6d63;
  --accent-soft: #e4f1ee;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 42, 68, .04), 0 8px 24px rgba(15, 42, 68, .06);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  margin: 0;
  font-family: "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); margin-bottom: .6rem; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1rem; }
a { color: inherit; }
img { max-width: 100%; display: block; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.container { width: min(1160px, 100% - 48px); margin-inline: auto; }
.narrow { max-width: 780px; }
.narrow-left { max-width: 780px; }

.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
}
.lead { font-size: 1.25rem; color: var(--ink); font-weight: 400; margin: 1rem 0 2rem; max-width: 34ch; }
.lead-sm { font-size: 1.08rem; }
.subtitle { color: var(--ink-3); margin-bottom: 2rem; }
.h-small { font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); font-weight: 600; margin-bottom: .5rem; }
.list-title { font-weight: 600; color: var(--ink); margin: 1.25rem 0 .5rem; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 500;
  font-size: .98rem;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  border: 1.5px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-icon svg { width: 20px; height: 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 245, .85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 1.08rem; white-space: nowrap; }
.brand strong { font-weight: 600; }
.nav { display: flex; gap: 6px; }
.nav a {
  text-decoration: none; color: var(--ink-2); font-size: .95rem; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.nav a:hover { color: var(--ink); background: var(--alt); }
.nav a.active { color: var(--ink); background: var(--alt); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-toggle {
  font: inherit; font-size: .85rem; font-weight: 600; letter-spacing: .05em;
  color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: 6px 14px; cursor: pointer; transition: border-color .2s;
}
.lang-toggle:hover { border-color: var(--ink); }
.menu-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, top .25s; }
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 24px; }
.menu-open .menu-toggle span:first-child { top: 20px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 620px; height: 620px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 65%);
  z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.who { padding-left: 18px; border-left: 2px solid var(--accent); }
.who p { margin: 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.step:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(15,42,68,.05), 0 14px 32px rgba(15,42,68,.09); }
.step h3 { margin-bottom: .35rem; }
.step p { margin: 0; font-size: .94rem; line-height: 1.6; }
.step-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent-dark);
  display: grid; place-items: center;
}
.step-icon svg { width: 24px; height: 24px; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-alt { background: var(--alt); }
.section-dark { background: var(--ink); color: #c9d4de; }
.section-dark h2, .section-dark .list-title { color: #fff; }
.section-dark .eyebrow { color: #7fd1c4; }

/* About */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: 72px; align-items: start; }
.portrait {
  margin: 0; position: sticky; top: calc(var(--header-h) + 32px);
  aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden;
  background: linear-gradient(150deg, var(--accent-soft), #d9e4ec);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-fallback { display: none; }
.portrait.no-photo .portrait-fallback {
  display: grid; place-items: center; height: 100%;
  font-size: 4rem; font-weight: 300; color: var(--ink); opacity: .35; letter-spacing: .05em;
}
.mode-cards { display: grid; gap: 16px; margin: 1.75rem 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; }
.card h3 { margin-bottom: .75rem; }
.card p:last-child { margin-bottom: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: .75rem; }
.card-head h3 { margin: 0; }
.badge { font-size: .8rem; font-weight: 600; color: var(--accent-dark); background: var(--accent-soft); padding: 4px 12px; border-radius: 999px; white-space: nowrap; }

.checks { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6d63' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.founder {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 24px 0 0; border-top: 1px solid var(--line);
}
.founder p { margin: 0; flex: 1 1 340px; color: var(--ink); }

/* CV */
.prose p { margin-bottom: 1.2rem; }
.memberships { margin: 2rem 0 2.25rem; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-size: .9rem; color: var(--ink); }

/* Services */
.group-title { font-size: 1.3rem; margin: 3.5rem 0 1.5rem; }
.conditions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.condition {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: border-color .2s, transform .25s;
}
.condition:hover { border-color: var(--accent); transform: translateY(-2px); }
.condition h4 { font-size: 1.02rem; margin-bottom: .5rem; }
.condition h4::before { content: ""; display: block; width: 28px; height: 3px; border-radius: 3px; background: var(--accent); margin-bottom: 14px; }
.condition p { margin: 0; font-size: .92rem; line-height: 1.6; }

.diag { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.diag .checks { margin: 0; }
.note { background: var(--accent-soft); border-radius: var(--radius); padding: 28px 30px; color: var(--ink); }
.link-arrow { font-weight: 600; color: var(--accent-dark); text-decoration: none; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.email {
  display: inline-block; font-size: clamp(1.3rem, 2.6vw, 1.75rem); font-weight: 500; color: #fff;
  text-decoration: none; border-bottom: 2px solid #7fd1c4; padding-bottom: 2px; margin: .5rem 0 1.5rem;
  word-break: break-all;
}
.email:hover { color: #7fd1c4; }
.location, .phone {
  display: flex; gap: 14px; align-items: flex-start; text-decoration: none; color: #c9d4de;
  padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(255,255,255,.12); transition: background .2s, border-color .2s;
}
.location:hover, .phone:hover { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.28); }
.location svg, .phone svg { width: 22px; height: 22px; flex: none; margin-top: 3px; color: #7fd1c4; }
.location > span { display: grid; gap: 2px; }
.location strong { color: #fff; font-weight: 600; }
.location-cta { color: #7fd1c4; font-size: .9rem; margin-top: 4px; }
.phone { margin-top: 10px; align-items: center; color: #fff; }
.phone svg { margin-top: 0; }
.map { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; background: #1a3a58; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Footer */
.site-footer { background: var(--ink); color: #8da0b3; border-top: 1px solid rgba(255,255,255,.08); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: #8da0b3; text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .conditions { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { gap: 48px; }
}

@media (max-width: 880px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 0; padding: 12px 24px 24px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .nav a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:last-child { border-bottom: 0; }
  .nav a.active, .nav a:hover { background: none; }
  .menu-open .nav { opacity: 1; transform: none; pointer-events: auto; }

  .hero { padding: 48px 0 72px; }
  .hero-grid, .about-grid, .contact-grid, .diag { grid-template-columns: 1fr; }
  .about-grid { gap: 40px; }
  .portrait { position: static; max-width: 340px; }
  .section { padding: 72px 0; }
  .contact-grid { gap: 40px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 36px); }
  .conditions { grid-template-columns: 1fr; }
  .card, .note { padding: 22px; }
  .step { padding: 20px; gap: 14px; }
  .brand span { font-size: .98rem; }
}
