:root {
  --bg: #f8f9fa;
  --paper: #ffffff;
  --ink: #444444;
  --heading: #212529;
  --muted: #6c757d;
  --line: #eeeeee;
  --brand: #0d6efd;
  --brand-dark: #064096;
  --max: 1080px;
  --header: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.75;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
code { font-family: Consolas, "Cascadia Mono", ui-monospace, monospace; font-size: 0.92em; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--brand);
  color: #fff;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}
.header-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--heading); text-decoration: none; }
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
}
.brand-name { font-weight: 800; font-size: 1.35rem; color: var(--brand); letter-spacing: 0; }
.brand small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-btn { display: none; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: #555;
  text-decoration: none;
  padding: 8px 10px;
  font-size: 15px;
  font-weight: 500;
}
.nav a.active, .nav a:hover { color: var(--brand); }
.nav .contact-link {
  margin-left: 8px;
  border-radius: 50px;
  background: var(--brand);
  color: #fff;
  padding: 8px 16px;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}
.nav .contact-link:hover, .nav .contact-link.active { color: #fff; background: var(--brand-dark); }

.hero {
  background: linear-gradient(135deg, #0d6efd 0%, #064096 100%);
  color: #fff;
  padding: 72px 0 36px;
}
.kicker {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 14px;
  border-radius: 50px;
  background: #fff;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
h1, h2, h3 { line-height: 1.3; color: var(--heading); }
h1 {
  font-size: clamp(1.8rem, 4.2vw, 3rem);
  font-weight: 800;
  margin: 0 0 16px;
  overflow-wrap: anywhere;
}
.hero h1 { color: #fff; }
h2 { font-size: 1.7rem; font-weight: 800; margin: 0 0 12px; }
h3 { font-size: 1.12rem; font-weight: 700; margin: 0 0 8px; }
.lead { font-size: 1.1rem; max-width: 42rem; margin: 0; }
.hero .lead { color: rgba(255, 255, 255, 0.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 50px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.hero .btn { background: #fff; color: var(--brand); border-color: #fff; }
.hero .btn:hover { background: #e7f1ff; color: var(--brand-dark); }
.btn.ghost, .hero .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.85); }
.hero .btn.ghost:hover { background: #fff; color: var(--brand); }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  color: var(--heading);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin: 42px 0 -52px;
  position: relative;
  z-index: 2;
}
.facts div { padding: 28px 20px; text-align: center; }
.facts div + div { box-shadow: inset 1px 0 0 #eee; }
.facts strong { display: block; color: var(--brand); font-size: 1.35rem; font-weight: 800; }
.facts span { color: var(--muted); font-size: 14px; }
.hero + .section { padding-top: 108px; }

.section { padding: 56px 0; }
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin-bottom: 28px;
}
.section-head h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 4px;
  background: var(--brand);
}
.section-head p { margin: 0; color: var(--muted); }
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.service-list a {
  background: #fff;
  color: inherit;
  text-decoration: none;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 28px 24px 22px;
  min-height: 148px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-list a:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(13, 110, 253, 0.1);
}
.service-list span { color: var(--brand); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; }
.service-list p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}
.card:hover { transform: translateY(-5px); }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #e9ecef; }
.card div, .card article { padding: 16px 18px 18px; }
.card h3 { font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.meta { color: var(--brand); font-size: 13px; font-weight: 700; margin-bottom: 6px; }

.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.logos figure {
  margin: 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  padding: 12px 8px;
}
.logos img { width: 100%; height: 42px; object-fit: contain; filter: grayscale(1); opacity: 0.7; }
.logos figure:hover img { filter: none; opacity: 1; }
.logos figcaption { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.4; }

.panel {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  padding: 28px;
}
.split { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 28px; align-items: start; }
.contact-lines { list-style: none; padding: 0; margin: 0; }
.contact-lines li { margin: 0 0 14px; }
.contact-lines span { display: block; color: var(--muted); font-size: 13px; }

.page-hero { padding: 36px 0 28px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: 0.35em 0; }
.note {
  border-left: 4px solid var(--brand);
  background: #e7f1ff;
  border-radius: 0 12px 12px 0;
  padding: 12px 14px;
  margin: 18px 0;
}
.figure { margin: 18px 0 28px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); }
.figure img { width: auto; max-width: 100%; max-height: 540px; margin: 0 auto; }
.figure figcaption { padding: 10px 14px 12px; color: var(--muted); font-size: 14px; }
.related { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.related a {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 50px;
  text-decoration: none;
  color: var(--heading);
  padding: 8px 14px;
}
.related a:hover { border-color: var(--brand); color: var(--brand); }

.site-footer {
  background: #212529;
  color: rgba(255, 255, 255, 0.72);
  padding: 36px 0 22px;
  font-size: 14px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 22px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #9ec5fe; }
.site-footer h2 { font-size: 14px; letter-spacing: 0.08em; color: #fff; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.legal { margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.12); }

@media (max-width: 860px) {
  .brand { min-width: 0; }
  .brand small { display: none; }
  .section-head { align-items: flex-start; text-align: left; }
  .section-head h2::after { margin-left: 0; }
  h1 { overflow-wrap: anywhere; word-break: break-word; max-width: 100%; }
  .hero h1 { font-size: 1.45rem; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; }
  .nav-btn, .nav-toggle { display: none !important; }
  .nav {
    display: flex !important;
    position: static;
    width: 100%;
    flex-wrap: wrap;
    gap: 0;
    padding: 4px 0 0;
  }
  .nav a, .nav .contact-link { margin: 0; padding: 8px 10px; }
  .facts, .service-list, .cards, .split, .footer-grid { grid-template-columns: 1fr; }
  .facts div + div { box-shadow: inset 0 1px 0 #eee; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 36px; }
  .hero + .section { padding-top: 88px; }
}
@media (min-width: 861px) {
  .nav-btn { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .service-list a, .card { transition: none; }
}
