:root {
  --bg: #f4f8fb;
  --bg-soft: #edf3f8;
  --surface: #ffffff;
  --text: #0f2233;
  --text-soft: #496174;
  --primary: #0f6cab;
  --primary-dark: #0a4f84;
  --accent: #20ba83;
  --border: #d6e3ee;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 12px 30px rgba(15, 34, 51, 0.08);
  --shadow-soft: 0 8px 20px rgba(15, 34, 51, 0.06);
  --max: 1160px;
  --space: 1rem;
  --font: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(180deg, #f8fbfd 0%, var(--bg) 100%);
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; border-radius: var(--radius); }

.container { width: min(92%, var(--max)); margin: 0 auto; }
.section { padding: 4.5rem 0; }

h1, h2, h3 { line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 3vw, 3rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.3rem); margin-bottom: .85rem; }
h3 { font-size: 1.08rem; margin-bottom: .4rem; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  color: var(--text);
  padding: .75rem 1rem;
  border-radius: 8px;
  z-index: 9999;
  box-shadow: var(--shadow-soft);
}

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

.header-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--text);
  font-weight: 800;
}

.logo-badge {
  padding: .4rem .6rem;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.logo-text { letter-spacing: .2px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.main-nav a {
  color: var(--text);
  font-weight: 600;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .78rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform .25s ease, filter .25s ease, background .25s ease;
}

.btn-primary {
  color: #fff !important;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text) !important;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  font-size: .82rem;
  letter-spacing: .12em;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: .55rem;
}

.lead { color: var(--text-soft); font-size: 1.08rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin: 1.4rem 0;
}

.check-list {
  list-style: none;
  display: grid;
  gap: .35rem;
  color: var(--text-soft);
}

.check-list li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 900;
}

.section-title { max-width: 760px; margin-bottom: 1.5rem; }
.section-title p { color: var(--text-soft); }

.cards-grid,
.services-grid,
.steps-grid {
  display: grid;
  gap: 1rem;
}

.card,
.service-card,
.step-card,
.faq-item,
.contact-card,
.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.25rem;
}

.step-card span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  margin-bottom: .65rem;
  background: var(--bg-soft);
  color: var(--primary);
  font-weight: 800;
}

.faq-question {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  color: var(--text-soft);
}

.faq-item.open .faq-answer {
  max-height: 220px;
  margin-top: .7rem;
}

.contact-grid {
  display: grid;
  gap: 1rem;
}

form { display: grid; gap: .8rem; }
label { font-weight: 600; }
input, textarea {
  width: 100%;
  padding: .8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
}

input:focus,
textarea:focus,
button:focus,
a:focus {
  outline: 3px solid rgba(15, 108, 171, .2);
  outline-offset: 1px;
}

.msg { font-size: .95rem; }
.msg.error { color: #b42318; }
.msg.success { color: #0c7b47; }

.legal-wrap { max-width: 900px; }
.legal-card h2 { margin-top: 1.4rem; }
.legal-card ul { padding-left: 1.1rem; }

.site-footer {
  background: #0c1b2a;
  color: #d4e1ed;
  padding-top: 3rem;
}

.site-footer a { color: #bfddff; }

.footer-grid {
  display: grid;
  gap: 1.2rem;
}

.footer-col h3 {
  color: #fff;
  margin-bottom: .5rem;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: .35rem;
}

.footer-bottom {
  margin-top: 1.4rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: .95rem;
}

.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  font-size: 1.2rem;
  background: var(--primary);
  box-shadow: var(--shadow);
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: all .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 760px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute;
    inset: 78px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: .9rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1rem 4%;
  }
  .main-nav.open { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .faq-answer, .btn { transition: none !important; }
}