:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --ink: #1b2121;
  --muted: #5b6463;
  --line: #e2e4e1;
  --accent: #0f766e;
  --accent-soft: #e3f1ef;
  --contact-accent: #5eead4;
  --radius: 14px;
  --max: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111515;
    --surface: #181e1e;
    --ink: #eef1f0;
    --muted: #a3acaa;
    --line: #2a3232;
    --accent: #5eead4;
    --accent-soft: #163331;
    --contact-accent: #0f766e;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo img { display: block; height: 22px; width: auto; }

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

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}

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

.lang {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 600;
  font-size: 13px !important;
  letter-spacing: .04em;
}

/* Hero */
.hero { padding: 96px 0 80px; }

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  max-width: 18ch;
}

.lead {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--muted);
  max-width: 58ch;
  margin: 0 0 36px;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid var(--ink);
}

.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Sections */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }

h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}

.section-intro { color: var(--muted); max-width: 60ch; margin: 0 0 40px; }

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}

.card .num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .08em;
  margin-bottom: 14px;
}

.card h3 { font-size: 21px; line-height: 1.25; margin: 0 0 12px; }
.card p { color: var(--muted); margin: 0 0 18px; font-size: 16px; }

.card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  font-size: 15px;
}

.card li {
  padding: 7px 0 7px 22px;
  position: relative;
  border-top: 1px solid var(--line);
}

.card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

.tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tags span.label { font-size: 13px; color: var(--muted); margin-right: 4px; }

.tag {
  font-size: 13px;
  background: var(--accent-soft);
  color: var(--ink);
  padding: 3px 10px;
  border-radius: 999px;
}

/* Process */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}

.step h3 { font-size: 19px; margin: 0 0 8px; }
.step p { color: var(--muted); margin: 0; font-size: 16px; }

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
}

/* Contact */
.contact-box {
  background: var(--ink);
  color: var(--bg);
  border-radius: calc(var(--radius) + 6px);
  padding: 56px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.contact-box h2 { color: var(--bg); }
.contact-box p { margin: 0; opacity: .75; max-width: 46ch; }

.contact-box .email {
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  color: var(--bg);
  text-decoration: none;
  border-bottom: 2px solid var(--contact-accent);
  padding-bottom: 2px;
}

.contact-box .email:hover { color: var(--contact-accent); }

/* Footer */
.site-footer {
  padding: 36px 0 48px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer dl { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer dt { display: inline; }
.site-footer dd { display: inline; margin: 0 0 0 4px; color: var(--ink); }

/* Error page */
.error { padding: 140px 0; text-align: center; }
.error h1 { margin: 0 auto 16px; }
.error p { color: var(--muted); }

@media (max-width: 860px) {
  .services, .steps { grid-template-columns: 1fr; }
  .steps { gap: 28px; }
  .nav a:not(.lang) { display: none; }
  .hero { padding: 64px 0 56px; }
  section { padding: 56px 0; }
  .contact-box { padding: 40px 28px; }
}

@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .logo img { height: 18px; }
}
