:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eef3fb;
  --text: #1e293b;
  --muted: #5b6b84;
  --primary: #1f4b99;
  --primary-2: #3b82f6;
  --accent: #0ea5a4;
  --light: #f8fbff;
  --border: #dbe4f0;
  --success: #0f766e;
  --error: #b91c1c;
  --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1120px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.6;
}
img { max-width: 100%; display: block; border-radius: var(--radius-md); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #000;
  color: #fff;
  padding: .5rem .75rem;
  border-radius: 8px;
  z-index: 9999;
}

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.section { padding: var(--space-7) 0; }
.section-head { margin-bottom: var(--space-5); }
.kicker { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; }
h1, h2, h3 { line-height: 1.2; margin-bottom: .75rem; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { color: var(--muted); margin-bottom: .8rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .7rem; font-weight: 800; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-badge {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; font-size: .9rem;
}
.main-nav { display: none; gap: 1rem; }
.main-nav a { padding: .5rem .6rem; border-radius: 8px; font-weight: 600; color: var(--text); }
.main-nav a.active, .main-nav a:hover { background: var(--surface-2); text-decoration: none; }

.menu-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 44px; height: 44px;
  border-radius: 10px;
  display: grid; place-content: center;
  gap: 4px;
}
.menu-toggle span { width: 18px; height: 2px; background: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .78rem 1.2rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: .25s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:focus-visible, .menu-toggle:focus-visible, input:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid rgba(59,130,246,.35);
  outline-offset: 2px;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-light { background: #fff; color: var(--primary); }
.header-cta { display: none; }

.hero-grid { display: grid; gap: var(--space-5); align-items: center; }
.hero-copy p { max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1rem 0 1.2rem; }
.hero-highlights { list-style: none; display: grid; gap: .5rem; }
.hero-highlights li::before { content: "✔"; color: var(--success); margin-right: .5rem; }
.hero-media img { box-shadow: var(--shadow-md); }

.card-grid { display: grid; gap: 1rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
}

.steps-list { list-style: none; display: grid; gap: .9rem; }
.steps-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: .9rem;
}
.steps-list span {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary);
  color: #fff; font-weight: 700;
}

.faq-item { margin-bottom: .8rem; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); }
.faq-question {
  width: 100%; text-align: left; border: 0; background: var(--surface);
  padding: 1rem; font-weight: 700; color: var(--text);
}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-answer p { padding: 0 1rem 1rem; margin: 0; }
.faq-item.open .faq-answer { max-height: 220px; }

.cta-band { background: linear-gradient(135deg, var(--primary), #142f63); color: #fff; }
.cta-inner { text-align: center; }
.cta-inner h2, .cta-inner p { color: #fff; }

.contact-page .contact-grid { display: grid; gap: 1rem; }
.contact-card, .form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.2rem; box-shadow: var(--shadow-sm); }
.form-group { margin-bottom: .9rem; }
label { display: block; font-weight: 600; margin-bottom: .35rem; }
input, textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 10px;
  padding: .78rem .85rem; font: inherit; background: #fff;
}
textarea { min-height: 130px; resize: vertical; }
.form-message { margin-top: .8rem; font-weight: 600; }
.form-message.success { color: var(--success); }
.form-message.error { color: var(--error); }
.error-text { color: var(--error); font-size: .85rem; margin-top: .3rem; }

.legal-page .legal-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.2rem;
}
.legal-meta {
  display: flex; flex-wrap: wrap; gap: 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: .8rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}
.legal-toc { margin: 1rem 0 1.5rem; padding-left: 1rem; }
.legal-toc li { margin-bottom: .3rem; }
.legal-wrap h2 { margin-top: 1.2rem; }

.site-footer {
  background: #0f1c34;
  color: #dbeafe;
  padding-top: 2rem;
  margin-top: 2rem;
}
.site-footer h3 { color: #fff; margin-bottom: .6rem; }
.site-footer p, .site-footer li, .site-footer a { color: #dbeafe; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 1.2rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: .4rem; }
.footer-bottom { border-top: 1px solid rgba(219,234,254,.2); margin-top: 1.2rem; padding: 1rem 0; text-align: center; }

.back-to-top {
  position: fixed; right: 1rem; bottom: 1rem;
  width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: var(--primary); color: #fff;
  box-shadow: var(--shadow-sm);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: .2s ease;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

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

@media (min-width: 760px) {
  .main-nav { display: flex; }
  .menu-toggle { display: none; }
  .header-cta { display: inline-flex; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
  .card-grid.three { grid-template-columns: repeat(3, 1fr); }
  .contact-page .contact-grid { grid-template-columns: .9fr 1.1fr; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .legal-page .legal-wrap { padding: 2rem; }
}

@media (max-width: 759px) {
  .main-nav {
    position: absolute; top: 78px; left: 1rem; right: 1rem;
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    padding: .8rem; box-shadow: var(--shadow-md);
    flex-direction: column;
  }
  .main-nav.open { display: flex; }
}

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