body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; color: #1a1a1a; margin: 0; line-height: 1.6; }
.wrap { max-width: 760px; margin: 0 auto; padding: 48px 24px; }
h1 { font-size: 2.2em; line-height: 1.2; margin: 0 0 12px; color: #2A3F8E; }
h2 { font-size: 1.5em; margin: 40px 0 12px; color: #2A3F8E; }
h3 { font-size: 1.1em; margin: 20px 0 4px; }
p { margin: 0 0 14px; }
.btn { display: inline-block; background: #2A3F8E; color: #fff; padding: 12px 24px; border-radius: 6px; text-decoration: none; font-weight: 600; margin: 8px 0 24px; }
.btn:hover { background: #1e2f6e; }
.rule { border: 0; border-top: 3px solid #C0392B; margin: 32px 0; }
.muted { color: #5a5a5a; }
ul { margin: 0 0 14px; padding-left: 20px; }
li { margin-bottom: 6px; }
a { color: #2A3F8E; }
.faq-item { margin: 0 0 20px; }
.faq-item h3 { margin: 0 0 6px; }
.about-intro { display: flex; gap: 24px; align-items: flex-start; margin: 0 0 14px; }
.about-intro img { width: 180px; max-width: 40%; height: auto; border-radius: 8px; flex-shrink: 0; border: 1px solid #ddd; }
.about-intro p { margin: 0; }
.hero {
  position: relative;
  overflow: hidden;
  color: #f4f6fb;
  background:
    radial-gradient(ellipse at bottom center, rgba(192, 57, 43, 0.28), transparent 58%),
    linear-gradient(165deg, #101a3a 0%, #2A3F8E 52%, #16244f 100%);
  border-bottom: 3px solid #C0392B;
}
.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; padding-top: 24px; padding-bottom: 64px; }
.hero h1, .hero h2 { color: #ffffff; }
.hero h2 { margin-top: 28px; }
.hero p { color: #e6eaf6; }
.hero .btn { background: #ffffff; color: #2A3F8E; }
.hero .btn:hover { background: #EEF1F8; }
.site-header {
  background: #16244f;
  border-bottom: 3px solid #C0392B;
  color: #fff;
}
.hero .site-header {
  background: transparent;
  border-bottom: 0;
  position: relative;
  z-index: 2;
}
.site-header .header-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  white-space: nowrap;
}
.hero .site-logo { color: #fff; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.site-nav a {
  color: #e6eaf6;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.crumbs { font-size: 0.92rem; color: #5a5a5a; margin: 0 0 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-main .wrap { padding-top: 36px; }
.site-footer {
  border-top: 3px solid #C0392B;
  background: #EEF1F8;
  color: #1a1a1a;
}
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; }
.site-footer p { margin: 0 0 8px; }
.service-list a { font-weight: 600; }
#chat-root { position: fixed; right: 20px; bottom: 72px; z-index: 40; font-family: inherit; }
.chat-launcher {
  background: #2A3F8E;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(16, 26, 58, 0.28);
}
.chat-launcher:hover { background: #1e2f6e; }
.chat-panel {
  display: none;
  width: min(380px, calc(100vw - 32px));
  height: min(520px, calc(100vh - 100px));
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(16, 26, 58, 0.22);
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 12px;
}
.chat-panel.open { display: flex; }
.chat-head {
  background: #2A3F8E;
  color: #fff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 3px solid #C0392B;
}
.chat-head strong { font-size: 0.98rem; }
.chat-close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: #f7f8fc;
}
.chat-msg { margin: 0 0 10px; padding: 8px 10px; border-radius: 8px; max-width: 90%; font-size: 0.95rem; }
.chat-msg.bot { background: #fff; border: 1px solid #ddd; }
.chat-msg.user { background: #2A3F8E; color: #fff; margin-left: auto; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #ddd; background: #fff; }
.chat-form input {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px;
  font: inherit;
}
.chat-form button {
  background: #2A3F8E;
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
}
.chat-form button:disabled { opacity: 0.6; cursor: default; }
@media (max-width: 560px) {
  .about-intro { flex-direction: column; align-items: center; }
  .about-intro img { width: 200px; max-width: 70%; }
  h1 { font-size: 1.7em; }
  #chat-root { right: 12px; bottom: 72px; }
  .chat-panel { width: calc(100vw - 24px); height: min(70vh, 560px); }
}
