:root {
  --ink: #14171f;
  --ink-soft: #4a5262;
  --line: #e4e7ec;
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --accent: #2f4bd8;
  --wrap: 1080px;
}

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

html { -webkit-text-size-adjust: 100%; }

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

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

.wrap.narrow { max-width: 720px; }

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

/* ---------- header ---------- */

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

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

.brand {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 28px;
}

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

.site-header nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */

.hero {
  padding: 104px 0 88px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(34px, 5.2vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 680;
  max-width: 16ch;
}

.lede {
  margin: 0 0 34px;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 60ch;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 550;
  padding: 13px 26px;
  border-radius: 8px;
}

.btn:hover { background: #2439ad; }

/* ---------- sections ---------- */

.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.4vw, 34px);
  letter-spacing: -0.02em;
  font-weight: 660;
}

.section-intro {
  margin: 0 0 42px;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- service cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

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

.card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 620;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

/* ---------- contact details ---------- */

.details {
  margin: 0;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.details dt {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: 15px;
}

.details dd {
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

/* ---------- contact form ---------- */

.contact-form { margin: 0 0 56px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field { margin: 0 0 20px; }

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 14.5px;
  font-weight: 570;
}

.field .opt { font-weight: 400; color: #8a93a3; }

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 13px;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.field textarea { resize: vertical; min-height: 120px; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 75, 216, 0.13);
}

/* honeypot — kept out of the layout and off the tab order */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 26px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.consent input { margin-top: 3px; flex-shrink: 0; }

.contact-form button.btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.details-compact { border-top: 1px solid var(--line); }

/* ---------- legal pages ---------- */

.legal-page { padding: 72px 0 96px; }
.legal-page h1 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -0.02em; margin: 0 0 8px; }
.legal-page .updated { color: var(--ink-soft); font-size: 15px; margin: 0 0 46px; }
.legal-page h2 { font-size: 20px; margin: 42px 0 12px; }
.legal-page p, .legal-page li { color: var(--ink-soft); }
.legal-page ul { padding-left: 20px; }
.legal-page li { margin-bottom: 8px; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 44px 0;
  font-size: 14.5px;
}

.legal { margin: 0 0 16px; color: var(--ink-soft); line-height: 1.7; }
.legal strong { color: var(--ink); font-weight: 620; }

.footer-links { margin: 0 0 16px; display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

.copyright { margin: 0; color: #8a93a3; font-size: 13.5px; }

/* ---------- responsive ---------- */

@media (max-width: 620px) {
  .hero { padding: 68px 0 60px; }
  .section { padding: 60px 0; }
  .details { grid-template-columns: 1fr; }
  .details dt { padding-bottom: 4px; border-bottom: none; }
  .details dd { padding-top: 0; }
  .header-inner { min-height: 60px; padding-top: 10px; padding-bottom: 10px; }
  .site-header nav { gap: 20px; }
}
