:root {
  --blue: #0a2f6b;
  --blue-deep: #071e45;
  --blue-mid: #12408c;
  --red: #c8102e;
  --gold: #c9a227;
  --gold-soft: #f4e4a8;
  --bg: #f4f6f8;
  --white: #ffffff;
  --text: #1c2430;
  --muted: #5b6777;
  --line: #d9e0ea;
  --ok: #0f7a4a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(7, 30, 69, .08);
  --header-h: 64px;
  --font: "Poppins", "Noto Sans", system-ui, sans-serif;
}
[data-theme="dark"] {
  --bg: #0b1220;
  --white: #121a2b;
  --text: #eef3fb;
  --muted: #a9b6c9;
  --line: #24324a;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-mid); text-decoration: none; }
a:hover { color: var(--red); }
.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--gold); color: #111; padding: 8px 12px; z-index: 10000;
}
.skip-link:focus { left: 8px; }
.container-pad { width: min(1180px, calc(100% - 28px)); margin: 0 auto; }

/* Topbar */
.topbar {
  background: var(--blue-deep);
  color: #fff;
  font-size: 12px;
  padding: 6px 0;
}
.topbar-inner, .head-inner, .nav-inner {
  width: min(1180px, calc(100% - 20px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.topbar a { color: #fff; }
.helpline, .top-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pill {
  border: 0; background: transparent; color: #fff; cursor: pointer; font: inherit; font-size: 12px;
  padding: 4px 8px; border-radius: 999px;
}
.pill:hover, .pill.active { background: rgba(255,255,255,.12); }
.helpline { color: var(--gold-soft); font-weight: 600; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 3px solid var(--gold);
  box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); min-width: 0; }
.brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 14px; color: var(--blue); }
.brand-text span { font-size: 11px; color: var(--muted); }
.head-tools { display: flex; align-items: center; gap: 8px; }
.search-wrap { display: none; position: relative; }
.search-wrap input {
  width: 240px; height: 40px; border: 1px solid var(--line); border-radius: 999px;
  padding: 0 14px 0 38px; background: var(--bg); color: var(--text); font: inherit;
}
.search-wrap i { position: absolute; left: 12px; top: 11px; color: var(--muted); }
.icon-btn, .menu-btn {
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); display: grid; place-items: center; cursor: pointer;
}
.menu-btn { background: var(--blue); color: #fff; border: 0; }

/* Nav */
.desktop-nav { display: none; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 11px; color: var(--text);
  font-weight: 600; font-size: 14px; border-radius: 8px;
}
.nav-link:hover, .nav-link.active { background: var(--bg); color: var(--blue); }
.mega {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-top: 1px solid var(--line); box-shadow: var(--shadow); padding: 22px 0 28px;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { display: block; }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; width: min(1180px, calc(100% - 28px)); margin: 0 auto; }
.mega h4 { margin: 0 0 8px; color: var(--blue); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.mega a { display: block; padding: 6px 0; color: var(--text); font-size: 14px; }
.mobile-nav {
  display: none; background: var(--white); border-top: 1px solid var(--line); max-height: calc(100vh - 120px); overflow: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a, .mobile-nav summary {
  display: block; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--text); font-weight: 600;
}
.mobile-nav details a { padding-left: 28px; font-weight: 500; }

/* Disclaimer */
.disclaimer-bar {
  background: #fff6d8; color: #5a4300; font-size: 13px; padding: 8px 0; border-bottom: 1px solid #efd98a;
}
[data-theme="dark"] .disclaimer-bar { background: #3a2f12; color: #f7e7a6; border-color: #6a5720; }

/* Hero */
.hero { position: relative; min-height: 420px; overflow: hidden; background: var(--blue-deep); }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease;
  background-size: cover; background-position: center;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,30,69,.82) 0%, rgba(7,30,69,.35) 70%, rgba(200,16,46,.18) 100%);
}
.hero-copy {
  position: relative; z-index: 2; width: min(1180px, calc(100% - 28px)); margin: 0 auto;
  padding: 72px 0 90px; color: #fff;
}
.hero-copy .kicker { color: var(--gold-soft); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.hero-copy h1 { font-size: clamp(28px, 6vw, 48px); line-height: 1.15; margin: 8px 0 12px; max-width: 16ch; }
.hero-copy p { max-width: 52ch; color: #e8eef8; }
.hero-dots { position: absolute; z-index: 3; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: #fff; opacity: .45; cursor: pointer; }
.hero-dots button.active { opacity: 1; background: var(--gold); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 0; font-weight: 700; cursor: pointer;
}
.btn-gold { background: var(--gold); color: #1a1404; }
.btn-red { background: var(--red); color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 1px solid #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-ghost { background: var(--white); color: var(--blue); border: 1px solid var(--line); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* Cards / sections */
.section { padding: 42px 0; }
.section.alt { background: var(--white); }
.section h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 32px); color: var(--blue); }
[data-theme="dark"] .section h2 { color: var(--gold-soft); }
.lead { color: var(--muted); margin-bottom: 22px; }
.quick-grid, .card-grid, .news-grid, .stat-grid, .faq-grid {
  display: grid; gap: 14px;
}
.quick-grid { grid-template-columns: 1fr 1fr; }
.service-card, .info-card, .news-card, .stat-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
}
.service-card i { font-size: 22px; color: var(--red); }
.service-card h3, .info-card h3, .news-card h3 { margin: 8px 0 6px; font-size: 16px; }
.stat-card { text-align: center; }
.stat-card strong { display: block; font-size: 28px; color: var(--blue); }
.route-line {
  display: flex; gap: 8px; overflow: auto; padding: 12px 0 18px; scroll-snap-type: x mandatory;
}
.st {
  flex: 0 0 auto; scroll-snap-align: start; min-width: 150px; background: var(--white);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px; border-top: 4px solid var(--gold);
}
.st.blue { border-top-color: #1d4ed8; }
.st.uc { opacity: .86; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #e8f6ee; color: var(--ok); }
.badge.warn { background: #fff3cd; color: #7a5b00; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
th { background: var(--blue); color: #fff; }
.breadcrumbs { font-size: 13px; color: var(--muted); padding: 14px 0 0; }
.breadcrumbs a { color: var(--muted); }
.page-hero {
  background: linear-gradient(120deg, var(--blue-deep), var(--blue-mid) 60%, #8b1e2d);
  color: #fff; padding: 28px 0 34px;
}
.page-hero h1 { margin: 8px 0; font-size: clamp(24px, 4vw, 38px); }
.toc { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0 0 22px; }
.toc a { display: inline-block; margin: 4px 10px 4px 0; }
.prose h2, .prose h3 { color: var(--blue); }
.prose p, .prose li { color: var(--text); }
.two-col, .form-grid { display: grid; gap: 16px; }
.search-results {
  position: absolute; top: 46px; left: 0; right: 0; background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; display: none; z-index: 20; max-height: 320px; overflow: auto;
}
.search-results a { display: block; padding: 10px 12px; color: var(--text); border-bottom: 1px solid var(--line); }
.ticker { background: var(--red); color: #fff; overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-block; padding: 8px 0; animation: tick 28s linear infinite; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.footer {
  background: var(--blue-deep); color: #d7e2f3; padding: 36px 0 18px; margin-top: 20px;
}
.footer a { color: #fff; }
.footer-grid { display: grid; gap: 18px; }
.footer h3 { color: var(--gold-soft); font-size: 14px; margin: 0 0 8px; }
.subfoot { border-top: 1px solid rgba(255,255,255,.12); margin-top: 18px; padding-top: 12px; font-size: 12px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.a11y-panel, .lang-panel {
  display: none; position: fixed; right: 12px; top: 120px; z-index: 80; width: min(280px, calc(100% - 24px));
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px; box-shadow: var(--shadow);
}
.a11y-panel.open, .lang-panel.open { display: block; }
.to-top {
  position: fixed; right: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: #fff; border: 0; display: none; place-items: center; cursor: pointer; z-index: 40;
}
.to-top.show { display: grid; }
.calc { display: grid; gap: 10px; background: var(--white); padding: 16px; border-radius: 14px; border: 1px solid var(--line); }
.calc select, .calc input, .form-card input, .form-card select, .form-card textarea {
  width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px;
  font: inherit; background: var(--bg); color: var(--text);
}
.form-card { background: var(--white); padding: 16px; border-radius: 14px; border: 1px solid var(--line); }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 8px 12px; cursor: pointer; }
.chip.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery img { width: 100%; height: 160px; object-fit: cover; border-radius: 12px; }
.notice { background: #eef5ff; border-left: 4px solid var(--blue); padding: 12px 14px; border-radius: 8px; }
[data-theme="dark"] .notice { background: #18253d; }
.job { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--white); margin-bottom: 10px; }
iframe.map { width: 100%; min-height: 280px; border: 0; border-radius: 12px; }
html.xl body { font-size: 18px; }
html.sm body { font-size: 15px; }

@media (max-width: 767.98px) {
  .hero { min-height: 460px; }
  .hero-copy { padding: 48px 0 80px; }
  .hide-mobile { display: none !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .news-grid, .faq-grid, .stat-grid, .two-col, .form-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery img { height: 190px; }
  .search-wrap { display: block; }
  .hero { min-height: 520px; }
}
@media (min-width: 992px) {
  .menu-btn { display: none; }
  .desktop-nav { display: block; position: relative; background: var(--white); }
  .nav-inner { justify-content: flex-start; gap: 2px; min-height: 48px; }
  .brand-text strong { font-size: 16px; }
  .two-col.wide, .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
  .hero { min-height: 600px; }
  .hero-copy { padding: 110px 0 120px; }
  .hide-desktop { display: none !important; }
}
@media print {
  .topbar, .site-header, .footer, .to-top, .a11y-panel, .disclaimer-bar, .ticker { display: none !important; }
  body { background: #fff; color: #000; }
}
