:root {
  --navy: #0b3d6e;
  --blue: #1266b5;
  --blue-soft: #eaf3fb;
  --orange: #f39c2b;
  --orange-soft: #fff4e2;
  --ink: #12263a;
  --muted: #60758a;
  --line: #dce6f0;
  --bg: #f6f9fc;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(13, 61, 110, 0.09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; border-radius: 9px; background: var(--navy); display: grid; align-content: center; gap: 4px; padding: 7px 8px; }
.brand-mark span { display: block; height: 4px; border-radius: 2px; background: #fff; }
.brand-mark span:nth-child(2) { background: var(--orange); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-size: 20px; letter-spacing: 2px; color: var(--navy); }
.brand-text small { font-size: 9px; letter-spacing: 3.2px; color: var(--muted); margin-top: 4px; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a { padding: 10px 13px; border-radius: 8px; font-size: 14px; font-weight: 600; color: #344a60; white-space: nowrap; transition: .18s; }
.main-nav a:hover, .main-nav a.active { background: var(--blue-soft); color: var(--navy); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-picker { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; background: #fff; }
.lang-picker .globe { color: var(--blue); font-size: 16px; }
.lang-picker select { border: 0; outline: 0; background: transparent; color: var(--navy); font-size: 13px; font-weight: 600; max-width: 110px; cursor: pointer; }
.menu-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 11px; cursor: pointer; font-size: 18px; color: var(--navy); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 9px; padding: 12px 22px; font-weight: 700; font-size: 14px; cursor: pointer; transition: .2s; text-align: center; }
.btn-primary { background: var(--orange); color: #1c2b38; box-shadow: 0 8px 20px rgba(243,156,43,.25); }
.btn-primary:hover { background: #e88d18; transform: translateY(-2px); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* Shared sections */
.app { min-height: 62vh; }
.section { padding: 76px 0; }
.section-tight { padding: 52px 0; }
.section-alt { background: #fff; }
.section-head { max-width: 720px; margin: 0 auto 42px; text-align: center; }
.eyebrow { display: inline-block; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: 2.4px; text-transform: uppercase; margin-bottom: 12px; }
.section-head h2, .hero h1 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.25; letter-spacing: -.6px; margin: 0 0 14px; color: var(--navy); }
.section-head p { color: var(--muted); margin: 0; font-size: 16px; }
.lead { font-size: 17px; color: #40566b; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Page banner */
.page-banner { background: linear-gradient(120deg, var(--navy), var(--blue)); color: #fff; padding: 64px 0 58px; position: relative; overflow: hidden; }
.page-banner:after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 2px, transparent 2px 46px); pointer-events: none; }
.page-banner .eyebrow { color: #ffca78; }
.page-banner h1 { color: #fff; margin: 0 0 10px; font-size: clamp(30px, 4vw, 46px); }
.page-banner p { color: #d5e6f6; margin: 0; max-width: 680px; }
.crumbs { font-size: 13px; color: #bcd6ee; margin-bottom: 18px; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* Hero */
.hero { background: linear-gradient(115deg, #f7fbff 0%, #eaf3fb 58%, #dfeefa 100%); position: relative; overflow: hidden; }
.hero:after { content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; border: 70px solid rgba(18,102,181,.05); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 84px 0 72px; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--orange-soft); color: #9a5d0c; font-size: 12px; font-weight: 800; letter-spacing: 1.2px; padding: 8px 14px; border-radius: 100px; margin-bottom: 20px; text-transform: uppercase; }
.hero h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.18; letter-spacing: -1.4px; margin: 0 0 20px; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-desc { font-size: 17px; color: #4b6278; max-width: 580px; margin: 0 0 26px; }
.hero-bullets { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 0 0 30px; padding: 0; list-style: none; color: #3f566b; font-size: 14px; font-weight: 600; }
.hero-bullets li:before { content: "✓"; color: var(--orange); font-weight: 900; margin-right: 7px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(11,61,110,.16); background: #fff; border: 8px solid rgba(255,255,255,.8); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .visual-tag { position: absolute; left: 18px; bottom: 18px; background: rgba(11,61,110,.92); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; font-size: 13px; }

/* Stats */
.stats-strip { background: var(--navy); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 34px 0; }
.stat { text-align: center; padding: 10px; border-right: 1px solid rgba(255,255,255,.15); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 34px; color: var(--orange); line-height: 1.1; }
.stat span { font-size: 13px; color: #c6dced; }

/* Cards and grids */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .22s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #bcd3e8; }
.card-media { aspect-ratio: 16/10; background: var(--blue-soft); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px; flex: 1; }
.card-body h3 { color: var(--navy); margin: 0 0 8px; font-size: 18px; line-height: 1.35; }
.card-body p { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.card-tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--blue); text-transform: uppercase; margin-bottom: 8px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 700; font-size: 13px; }
.card-link:hover { gap: 10px; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 32px; }
.tab { border: 1px solid var(--line); background: #fff; color: #445d74; padding: 9px 18px; border-radius: 100px; cursor: pointer; font-weight: 600; font-size: 13px; transition: .18s; }
.tab:hover, .tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: 16px; box-shadow: var(--shadow); width: 100%; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: #40566b; }
.check-list li:before { content: "✓"; flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-size: 12px; font-weight: 900; }

/* CTA */
.cta-band { background: linear-gradient(110deg, var(--navy), #135da6); color: #fff; border-radius: 20px; padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 30px; margin: 70px 0; }
.cta-band h2 { margin: 0 0 8px; font-size: 30px; }
.cta-band p { margin: 0; color: #cfe2f3; }

/* Detail */
.detail-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.detail-visual { border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.detail-visual img { width: 100%; }
.detail-content h2 { color: var(--navy); margin: 0 0 12px; font-size: 32px; }
.info-table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 14px; }
.info-table th, .info-table td { border-bottom: 1px solid var(--line); padding: 12px 8px; text-align: start; }
.info-table th { color: var(--navy); width: 38%; }

/* Service steps */
.step-card { position: relative; padding: 28px; }
.step-number { font-size: 38px; font-weight: 900; color: #e3edf7; line-height: 1; margin-bottom: 10px; }
.step-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 18px; }
.step-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 46px; }
.contact-info { display: grid; gap: 14px; }
.contact-item { display: flex; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.contact-icon { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-weight: 900; }
.contact-item strong { display: block; color: var(--navy); font-size: 13px; }
.contact-item span { color: var(--muted); font-size: 14px; word-break: break-word; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 700; color: #36506a; }
.field input, .field textarea, .field select { border: 1px solid #ccdbea; border-radius: 9px; padding: 11px 13px; outline: none; background: #fff; color: var(--ink); width: 100%; }
.field textarea { min-height: 118px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18,102,181,.1); }

/* FAQ */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; text-align: start; border: 0; background: transparent; padding: 18px 20px; font-weight: 700; color: var(--navy); cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.faq-a { padding: 0 20px 18px; color: var(--muted); margin: 0; }

/* Footer */
.site-footer { background: #082e55; color: #b7cee3; padding-top: 56px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 50px; padding-bottom: 44px; }
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text small { color: #8fb2d1; }
.brand-light .brand-mark { background: #fff; }
.brand-light .brand-mark span { background: var(--navy); }
.brand-light .brand-mark span:nth-child(2) { background: var(--orange); }
.footer-about p { max-width: 360px; font-size: 14px; }
.cert-row { display: flex; gap: 8px; margin-top: 16px; }
.cert-row span { border: 1px solid #416b93; border-radius: 6px; padding: 5px 10px; font-size: 11px; font-weight: 700; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: 1px; margin: 4px 0 18px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 13px; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; display: flex; justify-content: space-between; font-size: 12px; gap: 10px; flex-wrap: wrap; }

/* Admin */
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 70vh; background: #fff; }
.admin-side { background: #0b3d6e; color: #cfe0ef; padding: 24px 0; }
.admin-side h3 { color: #fff; font-size: 15px; letter-spacing: 1.5px; padding: 0 22px 18px; margin: 0; }
.admin-side button { display: block; width: 100%; border: 0; background: transparent; color: #cfe0ef; text-align: start; padding: 12px 22px; cursor: pointer; font-size: 14px; border-left: 3px solid transparent; }
.admin-side button:hover, .admin-side button.active { background: rgba(255,255,255,.1); color: #fff; border-left-color: var(--orange); }
.admin-side .side-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 18px; padding-top: 14px; }
.admin-main { padding: 30px 34px; overflow: auto; }
.admin-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
.admin-head h2 { margin: 0; color: var(--navy); font-size: 25px; }
.admin-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: start; background: #f3f7fb; color: #47617a; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; padding: 11px 12px; }
.admin-table td { border-bottom: 1px solid var(--line); padding: 11px 12px; vertical-align: middle; }
.admin-table tr:hover td { background: #fbfdff; }
.admin-actions { display: flex; gap: 8px; }
.icon-btn { border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 5px 10px; cursor: pointer; font-size: 12px; color: var(--navy); }
.icon-btn:hover { border-color: var(--blue); color: var(--blue); }
.icon-btn.danger:hover { border-color: #d74545; color: #d74545; }
.lang-tabs { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 20px; }
.lang-tabs button { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 6px 10px; font-size: 12px; cursor: pointer; color: #47617a; }
.lang-tabs button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.editor-grid .full { grid-column: 1 / -1; }
.upload-row { display: flex; gap: 10px; align-items: center; }
.upload-row input { flex: 1; min-width: 0; }
.upload-trigger { white-space: nowrap; cursor: pointer; display: inline-flex; align-items: center; }
.upload-preview { margin-top: 10px; min-height: 90px; border: 1px dashed #ccdbea; border-radius: 9px; background: #f8fbfe; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.upload-preview img { max-width: 100%; max-height: 220px; object-fit: contain; }
.upload-empty { color: #93a7b9; font-size: 13px; }
#uploadStatus { margin: 7px 0 0; }
.admin-note { background: var(--blue-soft); color: #365f86; border-radius: 9px; padding: 12px 16px; font-size: 13px; margin-bottom: 20px; }
.login-wrap { max-width: 440px; margin: 70px auto; }
.login-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 36px; box-shadow: var(--shadow); }
.login-card h1 { color: var(--navy); margin: 0 0 8px; font-size: 26px; }
.login-card p { color: var(--muted); font-size: 14px; }
.otp-row { display: flex; gap: 10px; align-items: end; }
.otp-row .field { flex: 1; }
.otp-row .btn { margin-bottom: 16px; white-space: nowrap; }

/* Misc */
.loading-state { padding: 90px 0; text-align: center; color: var(--muted); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: 14px; }
.toast { position: fixed; right: 24px; bottom: 24px; background: var(--navy); color: #fff; padding: 13px 20px; border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transform: translateY(12px); transition: .25s; z-index: 200; font-size: 14px; max-width: 360px; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: #a33232; }

@media (max-width: 980px) {
  .main-nav { display: none; position: absolute; top: 74px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px; flex-direction: column; align-items: stretch; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .menu-toggle { display: inline-flex; }
  .quote-btn { display: none; }
  .hero-inner, .split, .detail-layout, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .stat:nth-child(2) { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 52px 0; }
  .grid-2, .grid-3, .grid-4, .form-row, .editor-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 28px; flex-direction: column; align-items: flex-start; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { display: flex; flex-wrap: wrap; padding: 10px; gap: 4px; }
  .admin-side h3 { width: 100%; padding: 6px 10px; }
  .admin-side button { width: auto; padding: 8px 10px; border-left: 0; border-bottom: 2px solid transparent; }
  .admin-side .side-bottom { border: 0; margin: 0; padding: 0; display: contents; }
  .admin-main { padding: 20px 16px; }
  .header-inner { gap: 10px; }
  .brand-text strong { font-size: 17px; }
}
