:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-alt: #eaf1ff;
  --text: #192946;
  --text-soft: #556789;
  --primary: #1448b8;
  --primary-dark: #0f3a93;
  --accent: #ff7a18;
  --accent-dark: #d96406;
  --border: #d6e1f2;
  --success: #0c7a49;
  --danger: #b42318;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 14px 32px rgba(18, 42, 89, 0.08);
  --maxw: 1160px;
  --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, #f9fbff 0%, var(--bg) 100%);
  line-height: 1.65;
}
img { max-width: 100%; display: block; border-radius: var(--radius); }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

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

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

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

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

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

.eyebrow {
  color: var(--primary);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  margin-bottom: .6rem;
}
h1 { font-size: clamp(1.72rem, 5vw, 3rem); line-height: 1.2; margin-bottom: .8rem; }
h2 { font-size: clamp(1.34rem, 4vw, 2.2rem); line-height: 1.25; margin-bottom: .78rem; }
h3 { font-size: 1.14rem; margin-bottom: .45rem; line-height: 1.3; }

.hero-grid,
.about-grid,
.contact-grid { display: grid; gap: 1rem; align-items: center; }
.hero-subtitle { color: var(--text-soft); margin-bottom: .7rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1rem 0; }
.trust-inline { list-style: none; display: grid; gap: .4rem; color: var(--text-soft); }
.trust-inline li::before { content: "✔ "; color: var(--success); font-weight: 700; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: .8rem 1.12rem;
  font-weight: 700;
  transition: .25s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #2f6fe6);
  color: #fff;
}
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover { background: #f9fbff; border-color: #bfd0ec; }
.btn-light {
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: rgba(255,255,255,.36);
}
.btn-light:hover { background: rgba(255,255,255,.24); color: #fff; }

.section-head { max-width: 780px; margin-bottom: 1.4rem; }
.cards-grid { display: grid; gap: 1rem; }
.card,
.service-card,
.panel,
.trust-box,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.08rem;
}
.icon { font-size: 1.3rem; margin-bottom: .42rem; }
.check-list { list-style: none; display: grid; gap: .45rem; }
.check-list li::before { content: "• "; color: var(--primary); font-weight: 800; }
.service-card { border-top: 4px solid #cfe0ff; }
.text-link { display: inline-block; margin-top: .5rem; font-weight: 700; }

.steps-list { list-style: none; display: grid; gap: .9rem; }
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .95rem 1rem;
}
.step span { display: block; color: var(--text-soft); }

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

.contact-list { list-style: none; display: grid; gap: .45rem; }
address { font-style: normal; margin: .6rem 0; }

.faq-list { display: grid; gap: .65rem; }
.faq-item {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  border: 0;
  background: #fff;
  color: var(--text);
  text-align: left;
  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(--text-soft); }
.faq-item.open .faq-answer { max-height: 220px; }

.cta-section {
  background: linear-gradient(135deg, #123d9a, #2f67d9);
  color: #fff;
}
.cta-box p { color: #e3edff; margin-bottom: 1rem; }

.contact-main { padding-top: 6.8rem; }
.contact-layout { display: grid; gap: 1rem; }
.form-note { color: var(--text-soft); font-size: .92rem; }

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;
  color: var(--text);
  background: #fff;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus, select:focus, button:focus, a:focus {
  outline: 3px solid rgba(20, 72, 184, .2);
  outline-offset: 2px;
  border-color: var(--primary);
}
.check {
  display: inline-flex;
  align-items: flex-start;
  gap: .55rem;
  font-weight: 500;
}
.check input { width: auto; margin-top: .2rem; }
.error { min-height: 1.1em; color: var(--danger); font-size: .86rem; }
.form-status {
  border: 1px solid #c8d8f6;
  background: #f3f7ff;
  color: #19335f;
  border-radius: 10px;
  padding: .78rem;
}

.legal-main { padding-top: 6.8rem; padding-bottom: 2rem; }
.legal-wrap {
  width: min(calc(100% - 2rem), 930px);
  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(--text-soft); margin-bottom: .9rem; }
.legal-index {
  background: #f6f9ff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .85rem;
  margin: 1rem 0;
}
.legal-index ul { padding-left: 1.15rem; }
.legal-wrap section { margin-top: 1.1rem; }
.legal-wrap h2 { font-size: 1.22rem; margin-bottom: .45rem; }
.legal-wrap p, .legal-wrap li { color: #334665; }
.legal-wrap ul { padding-left: 1.15rem; }

.site-footer {
  margin-top: 2rem;
  background: #0c1c3b;
  color: #d8e5ff;
}
.footer-grid {
  display: grid;
  gap: 1rem;
  padding: 2rem 0;
}
.site-footer h3, .site-footer h4 { color: #fff; margin-bottom: .45rem; }
.site-footer ul { list-style: none; display: grid; gap: .3rem; }
.site-footer a { color: #d8e5ff; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.16);
  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: 0;
  background: var(--accent);
  color: #fff;
  font-size: 1.05rem;
  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-dark); }

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .45s ease, transform .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;
    gap: .25rem;
    background: transparent;
    border: 0;
    padding: 0;
  }
  .nav-cta { display: inline-flex; }
  .hero-grid { grid-template-columns: 1.08fr .92fr; }
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .about-grid,
  .contact-grid,
  .contact-layout { grid-template-columns: 1.05fr .95fr; }
  .footer-grid { grid-template-columns: 1.25fr .8fr 1fr 1fr; }
}

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