:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #eef3ff;
  --text: #16213a;
  --muted: #58627a;
  --primary: #1344b0;
  --primary-2: #0f378f;
  --accent: #ff8a00;
  --accent-2: #e77700;
  --border: #dbe3f4;
  --success: #0a7a40;
  --danger: #b42318;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 12px 28px rgba(15, 33, 72, 0.08);
  --max: 1140px;
  --space: 1rem;
  --font: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(180deg, #f8faff 0%, #f4f7ff 100%);
  line-height: 1.6;
}
img { max-width: 100%; display: block; border-radius: var(--radius); }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-2); }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  background: #fff;
  padding: .6rem .9rem;
  border-radius: 8px;
  border: 2px solid var(--primary);
}

.container { width: min(100% - 2rem, var(--max)); margin: 0 auto; }
.section { padding: 4.5rem 0; }
.alt-bg { background: var(--surface-2); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--text); }
.brand-badge {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #2a61d4);
  color: #fff;
}

.main-nav {
  position: fixed;
  inset: 78px 0 auto 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: none;
  flex-direction: column;
  padding: 1rem;
  gap: .25rem;
}
.main-nav a {
  padding: .75rem .8rem;
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
}
.main-nav a:hover,
.main-nav a.active { background: #edf3ff; color: var(--primary); }
.main-nav.open { display: flex; }

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: .55rem;
}
.menu-toggle span { width: 22px; height: 2px; background: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .8rem 1.15rem;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: .25s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), #2d67df); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); color: #fff; }
.btn-secondary { background: #fff; border-color: var(--border); color: var(--text); }
.btn-secondary:hover { border-color: #bfd1fb; background: #f9fbff; }
.header-cta { display: none; }

.hero-grid { display: grid; gap: 2rem; align-items: center; }
.eyebrow {
  font-size: .84rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  margin-bottom: .7rem;
}
h1 { font-size: clamp(1.7rem, 5vw, 2.9rem); line-height: 1.2; margin-bottom: .9rem; }
h2 { font-size: clamp(1.4rem, 4vw, 2.15rem); line-height: 1.25; margin-bottom: .8rem; }
h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.hero-subtitle { color: var(--muted); margin-bottom: .75rem; }
.hero-text { margin-bottom: 1.1rem; }
.hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 1rem; }
.trust-inline { list-style: none; display: grid; gap: .45rem; color: var(--muted); }
.trust-inline li::before { content: "✔ "; color: var(--success); font-weight: 700; }

.section-head { margin-bottom: 1.4rem; max-width: 760px; }
.card-grid { display: grid; gap: 1rem; }
.card, .service-card, .panel, .contact-card, .trust-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}
.icon { font-size: 1.35rem; margin-bottom: .45rem; }
.check-list { list-style: none; display: grid; gap: .55rem; }
.check-list li::before { content: "• "; color: var(--primary); font-weight: 800; }

.services-grid .service-card { border-top: 4px solid #d5e3ff; }
.text-link { font-weight: 700; display: inline-block; margin-top: .5rem; }

.split-grid { display: grid; gap: 1rem; align-items: start; }
.steps { list-style: none; display: grid; gap: .9rem; counter-reset: step; }
.steps li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .95rem 1rem;
}
.steps span { display: block; color: var(--muted); }

.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.pill { background: #edf3ff; color: var(--primary); border: 1px solid #cdddff; border-radius: 999px; padding: .35rem .7rem; font-size: .9rem; font-weight: 600; }

.faq { display: grid; gap: .65rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.faq-question {
  width: 100%;
  text-align: left;
  border: 0;
  background: #fff;
  color: var(--text);
  padding: .95rem 1rem;
  font-weight: 700;
  cursor: pointer;
}
.faq-question:hover { background: #f5f8ff; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-answer p { padding: 0 1rem 1rem; color: var(--muted); }
.faq-item.open .faq-answer { max-height: 220px; }

.cta-final { background: linear-gradient(135deg, #163f9f, #2c67df); color: #fff; }
.cta-final p { color: #e8efff; margin-bottom: 1rem; }
.cta-final .btn-secondary { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff; }
.cta-final .btn-secondary:hover { background: rgba(255,255,255,.22); }

.contact-hero { padding-top: 7rem; }
.contact-layout { display: grid; gap: 1rem; }
.contact-list { list-style: none; display: grid; gap: .5rem; margin-top: .7rem; }

form { display: grid; gap: .85rem; }
.field { display: grid; gap: .35rem; }
label { font-weight: 600; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .72rem .78rem;
  font: inherit;
  background: #fff;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus, select:focus, button:focus, a:focus {
  outline: 3px solid rgba(19,68,176,.2);
  outline-offset: 2px;
  border-color: var(--primary);
}
.error { color: var(--danger); font-size: .88rem; }
.form-note { font-size: .92rem; color: var(--muted); }
.form-message {
  padding: .8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
}
.form-message.info { border-color: #bfd1fb; background: #f4f8ff; }

.legal-main { padding-top: 7rem; }
.legal-wrap {
  width: min(100% - 2rem, 900px);
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}
.legal-meta { color: var(--muted); margin-bottom: 1rem; }
.legal-index { background: #f6f9ff; border: 1px solid var(--border); border-radius: 10px; padding: .85rem; margin: 1rem 0; }
.legal-index ul { padding-left: 1.2rem; }
.legal-wrap section { margin-top: 1.2rem; }
.legal-wrap h2 { font-size: 1.25rem; margin-bottom: .45rem; }
.legal-wrap p, .legal-wrap li { color: #34405b; }
.legal-wrap ul { padding-left: 1.2rem; }

.site-footer {
  background: #0f1d3c;
  color: #dbe6ff;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  gap: 1rem;
  padding: 2rem 0;
}
.site-footer h3, .site-footer h4 { color: #fff; margin-bottom: .45rem; }
.site-footer a { color: #dbe6ff; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; display: grid; gap: .35rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); text-align: center; padding: .95rem; font-size: .92rem; }

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--accent-2); }

.reveal { opacity: 0; transform: translateY(12px); transition: .45s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (min-width: 860px) {
  .menu-toggle { display: none; }
  .main-nav {
    position: static;
    display: flex;
    flex-direction: row;
    border: 0;
    padding: 0;
    background: transparent;
  }
  .header-cta { display: inline-flex; }
  .hero-grid { grid-template-columns: 1.12fr .88fr; }
  .benefits-grid { grid-template-columns: repeat(4, 1fr); }
  .three-col { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .split-grid { grid-template-columns: 1.1fr .9fr; }
  .contact-layout { grid-template-columns: .95fr 1.05fr; }
  .footer-grid { grid-template-columns: 1.3fr .8fr 1fr .8fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
