:root {
  --brand: #3a4fa3;
  --brand-dark: #2b3c80;
  --ink: #14161c;
  --muted: #5a5f6e;
  --line: #e3e5ec;
  --bg: #ffffff;
  --bg-alt: #f5f6fa;
  --radius: 10px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo img { height: 44px; width: auto; display: block; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--brand); }

.btn {
  display: inline-block;
  background: var(--brand); color: #fff !important;
  padding: 12px 22px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none; border: 0; cursor: pointer;
  font-size: 15px; font-family: inherit;
}
.btn:hover { background: var(--brand-dark); }
.btn:disabled { opacity: 0.6; cursor: default; }
.nav .btn { padding: 9px 16px; }

/* Hero */
.hero { padding: 96px 0 88px; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 13px; font-weight: 600; color: var(--brand); margin: 0 0 12px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 54px); line-height: 1.1; letter-spacing: -0.02em;
  margin: 0 0 20px; max-width: 16ch;
}
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 58ch; margin: 0 0 32px; }

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--bg-alt); }
h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.01em; margin: 0 0 12px; }
.section-intro { color: var(--muted); max-width: 60ch; margin: 0 0 40px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }
.card .icon {
  width: 40px; height: 40px; border-radius: 8px; background: var(--brand);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card .icon svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.contact-details { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-details li { margin-bottom: 14px; }
.contact-details strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; padding: 11px 12px; font: inherit; font-size: 15px;
  border: 1px solid #cfd3de; border-radius: 8px; background: #fff; color: var(--ink);
}
input:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
textarea { min-height: 130px; resize: vertical; }

.consent {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--bg-alt); border-radius: 8px; padding: 14px; margin: 8px 0 18px;
}
.consent input { margin-top: 4px; flex-shrink: 0; width: 16px; height: 16px; }
.consent label { font-weight: 400; font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }

.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 14px; font-size: 14px; }
.form-status.ok { color: #1c7a3e; }
.form-status.err { color: #b3261e; }
.cf-turnstile { margin-bottom: 16px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer a { color: var(--muted); margin-left: 18px; }
.site-footer a:first-child { margin-left: 0; }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: 36px; margin: 0 0 4px; }
.legal .updated { color: var(--muted); margin: 0 0 32px; }
.legal h2 { font-size: 21px; margin: 32px 0 8px; }
.legal p, .legal li { color: #2c303b; }

@media (max-width: 820px) {
  .cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav a:not(.btn) { display: none; }
  .hero { padding: 64px 0 56px; }
  section { padding: 56px 0; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .logo img { height: 36px; }
}
