:root {
  --bg: #f5f8ff;
  --surface: #ffffff;
  --text: #1a1f2b;
  --muted: #5d677a;
  --primary: #0d4cd3;
  --primary-2: #1d6dff;
  --accent: #13a36e;
  --border: #d9e1f2;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(9, 36, 89, 0.12);
  --shadow-soft: 0 6px 20px rgba(18, 45, 98, 0.08);
  --container: 1120px;
  --space: 1rem;
  --font: "Inter", "Segoe UI", Roboto, Helvetica, 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, #f7f9ff 0%, #eef3ff 100%);
  line-height: 1.6;
}
img { max-width: 100%; display: block; border-radius: var(--radius); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.section { padding: 4rem 0; }
.section-head { margin-bottom: 1.8rem; }
.section-head p { color: var(--muted); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; padding: .9rem 0; }
.brand-title { font-weight: 800; display: block; color: var(--text); }
.brand-sub { font-size: .85rem; color: var(--muted); }
.main-nav ul { list-style: none; display: flex; gap: 1rem; }
.main-nav a { padding: .5rem .75rem; border-radius: 8px; font-weight: 600; }
.main-nav a.active, .main-nav a:hover, .main-nav a:focus-visible { background: #e9f0ff; text-decoration: none; }

.menu-toggle { display: none; border: 1px solid var(--border); background: #fff; padding: .45rem; border-radius: 10px; }
.menu-toggle span { width: 22px; height: 2px; background: var(--text); display: block; margin: 4px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.2rem; border-radius: 999px; font-weight: 700; border: 1px solid transparent;
  transition: .25s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:focus-visible { outline: 3px solid #8fb3ff; outline-offset: 2px; }
.btn-primary { background: linear-gradient(90deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: var(--shadow-soft); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }

.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 700; margin-bottom: .8rem; }
h1 { font-size: clamp(1.7rem, 2.6vw, 2.8rem); line-height: 1.2; margin-bottom: 1rem; }
h2 { font-size: clamp(1.4rem, 2vw, 2rem); margin-bottom: .7rem; }
h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.2rem 0; }
.hero-list { list-style: none; display: grid; gap: .4rem; color: var(--muted); }
.hero-list li::before { content: "✓"; color: var(--accent); margin-right: .5rem; }

.cards-grid, .steps-grid, .footer-grid { display: grid; gap: 1rem; }
.cards-grid { grid-template-columns: repeat(3, 1fr); }
.card, .step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.2rem; box-shadow: var(--shadow-soft);
}
.step span {
  width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center;
  font-weight: 800; background: #e9f0ff; color: var(--primary); margin-bottom: .6rem;
}
.steps-grid { grid-template-columns: repeat(3, 1fr); }

.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: .8rem; overflow: hidden; }
.faq-question {
  width: 100%; text-align: left; padding: .95rem 1rem; border: 0; background: #fff; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; cursor: pointer;
}
.faq-answer { padding: 0 1rem 1rem; display: none; color: var(--muted); }
.faq-item.open .faq-answer { display: block; }

.contact-page .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.panel {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.2rem; box-shadow: var(--shadow-soft);
}
form { display: grid; gap: .8rem; }
label { font-weight: 600; }
input, textarea {
  width: 100%; border: 1px solid #cbd7f0; border-radius: 10px; padding: .72rem .8rem; font: inherit;
}
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 3px solid #aecdff; border-color: #6ca1ff; }
.message { padding: .75rem 1rem; border-radius: 10px; font-weight: 600; display: none; }
.message.error { background: #ffe7e7; color: #9d1a1a; }
.message.success { background: #e7ffef; color: #126b39; }

.legal-page main { padding-top: 2rem; }
.legal-wrap {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); padding: 1.5rem;
}
.legal-meta { color: var(--muted); margin-bottom: 1rem; }
.legal-index { background: #f5f8ff; border: 1px dashed #bfd0f7; border-radius: 12px; padding: 1rem; margin-bottom: 1rem; }
.legal-wrap h2 { margin-top: 1.2rem; }
.legal-wrap ul { padding-left: 1.2rem; }

.site-footer { background: #0d1b3d; color: #e7ecfa; margin-top: 2rem; padding-top: 2rem; }
.site-footer a { color: #cde0ff; }
.footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
.footer-grid ul { list-style: none; display: grid; gap: .3rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 1rem; padding: 1rem 0; font-size: .95rem; }

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

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

@media (max-width: 960px) {
  .header-inner { grid-template-columns: 1fr auto auto; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--border); display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: .6rem 1rem 1rem; }
  .menu-toggle { display: inline-block; }
  .header-cta { display: none; }
  .hero-grid, .cards-grid, .steps-grid, .footer-grid, .contact-page .contact-grid { grid-template-columns: 1fr; }
}

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