:root {
  --brand-50: #eff6ff;
  --brand-100: #dbeafe;
  --brand-200: #bfdbfe;
  --brand-300: #93c5fd;
  --brand-400: #60a5fa;
  --brand-500: #2563eb;
  --brand-600: #1558da;
  --brand-700: #1649b8;
  --electric: #0ea5ff;
  --navy: #0f172a;
  --navy-800: #172554;
  --text: #0f285f;
  --text-soft: #4c6083;
  --text-muted: #526581;
  --surface: #ffffff;
  --surface-soft: #f6faff;
  --surface-blue: #e0f2ff;
  --border: #dce7f5;
  --border-strong: #bdcfe6;
  --success: #22c55e;
  --danger: #ff3d57;
  --warning: #ff9418;
  --violet: #7c4dff;
  --container: 1440px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 6px 24px rgba(27, 75, 145, 0.08);
  --shadow-md: 0 18px 50px rgba(18, 72, 151, 0.14);
  --shadow-blue: 0 14px 34px rgba(37, 99, 235, 0.24);
  --transition: 180ms ease;
  --section-py: 80px;
  --section-h2: clamp(32px, 3.4vw, 46px);
  --card-icon: 46px;
  --card-text: 13px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; color: var(--text); background: #fff; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.menu-open { position: fixed; left: 0; right: 0; overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(14, 165, 255, 0.55); outline-offset: 3px; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.icon { width: 21px; height: 21px; flex: 0 0 auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 9999; padding: 10px 16px; color: #fff; background: var(--navy); border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 21px; border: 1px solid transparent; border-radius: 999px; font-weight: 700; font-size: 14px; line-height: 1.2; cursor: pointer; transition: transform var(--transition), color var(--transition), background-color var(--transition), background-position 260ms ease, border-color var(--transition), box-shadow var(--transition); }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: linear-gradient(120deg, var(--brand-500) 0%, #1d4ed8 48%, var(--brand-600) 100%); background-size: 210% 100%; background-position: 0 0; box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2); }
.button-primary:hover { background-position: 100% 0; box-shadow: var(--shadow-blue); }
.button-secondary { color: var(--brand-600); background: #fff; border-color: #8ab6f7; }
.button-secondary:hover { border-color: var(--brand-500); background: var(--brand-50); }
.button-light { color: var(--navy); background: #fff; }
.button-outline-light { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.07); }
.button-electric { color: #fff; background: linear-gradient(120deg, var(--brand-500) 0%, #0753aa 50%, #003f8c 100%); background-size: 210% 100%; background-position: 0 0; box-shadow: 0 10px 28px rgba(14,165,255,.3); }
.button-lg { min-height: 52px; padding-inline: 25px; }
.header-inner { height: 100%; min-height: 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
.custom-logo-link { min-height: 44px; display: inline-flex; flex: 0 0 auto; align-items: center; }
.custom-logo { width: auto; max-width: 220px; max-height: 58px; }
.main-nav { justify-self: center; }
.nav-list, .main-nav > ul { display: flex; align-items: center; gap: 7px; margin: 0; padding: 0; list-style: none; }
.nav-list a, .main-nav > ul a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 13px; color: #30486d; border-radius: 9px; font-size: 14px; font-weight: 600; }
.nav-list a:hover, .main-nav > ul a:hover { color: var(--brand-600); background: var(--brand-50); }
.header-actions { display: flex; align-items: center; gap: 24px; }
.header-phone { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; color: #18375f; font-size: 14px; font-weight: 700; }
.header-phone > span { display: flex; flex-direction: column; gap: 1px; line-height: 1.5; }
.header-phone small { color: #63738a; font-size: 11px; font-weight: 400; }
.header-phone:hover { color: var(--brand-600); }
.header-phone .icon { width: 18px; height: 18px; }
.menu-toggle { width: 46px; height: 46px; display: none; align-items: center; justify-content: center; padding: 0; color: var(--navy); background: #fff; border: 1px solid var(--border); border-radius: 11px; cursor: pointer; }
.menu-close-icon { display: none; }
.menu-toggle[aria-expanded="true"] .menu-open-icon { display: none; }
.menu-toggle[aria-expanded="true"] .menu-close-icon { display: block; }

.field-group label { display: block; margin-bottom: 8px; color: #344e72; font-size: 15px; font-weight: 600; }
.field-group input, .field-group textarea { width: 100%; min-height: 48px; padding: 12px 15px; color: var(--navy); background: #fff; border: 1px solid var(--border-strong); border-radius: 9px; font-size: 15px; outline: none; resize: vertical; }
.field-group input::placeholder, .field-group textarea::placeholder { color: #61738d; font-size: 14px; font-weight: 400; opacity: 1; }
.field-group textarea { height: 48px; min-height: 48px; line-height: 1.5; }
.field-group input:focus, .field-group textarea:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.privacy-check { display: grid; grid-template-columns: 16px 1fr; gap: 8px; align-items: start; color: var(--text-muted); font-size: 13px; line-height: 1.5; cursor: pointer; }
.privacy-check input { width: 15px; height: 15px; margin: 1px 0 0; accent-color: var(--brand-500); }
.honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; }
.form-notice { margin-bottom: 12px; padding: 13px 17px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.form-notice.success { color: #166534; background: #dcfce7; border: 1px solid #86efac; }
.form-notice.error { color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; }

.section { padding: var(--section-py) 0; }
.section-soft { background: linear-gradient(180deg, #f7fbff, #fafdff); border-block: 1px solid #eaf1f9; }
.eyebrow { margin: 0 0 8px; color: var(--brand-500); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow-light { color: #7dd3fc; }
.faq-intro h2 { margin: 0; color: #102963; font-size: var(--section-h2); line-height: 1.16; letter-spacing: -.035em; }
.faq-intro > p { max-width: 720px; margin: 12px auto 0; color: var(--text-soft); font-size: 15px; }

.faq-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 80px; align-items: start; }
.faq-intro { position: sticky; top: 115px; }
.faq-intro > p { margin: 15px 0 24px; }
.faq-list { display: grid; gap: 11px; }
.faq-list details { background: #fff; border: 1px solid var(--border); border-radius: 13px; box-shadow: 0 4px 15px rgba(30,72,135,.04); }
.faq-list summary { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 18px; font-weight: 700; font-size: 14px; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { position: relative; width: 22px; height: 22px; flex: 0 0 auto; }
.faq-list summary span::before, .faq-list summary span::after { content: ""; position: absolute; top: 10px; left: 4px; width: 14px; height: 2px; background: var(--brand-500); transition: transform var(--transition); }
.faq-list summary span::after { transform: rotate(90deg); }
.faq-list details[open] summary span::after { transform: rotate(0); }
.faq-list details p { margin: 0; padding: 0 18px 18px; color: var(--text-soft); font-size: 13px; }

.emergency-cta { position: relative; overflow: hidden; color: #fff; background: radial-gradient(circle at 65% 10%, rgba(14,165,255,.38), transparent 32%), linear-gradient(115deg, #061f50, #0753aa 62%, #0a69ce); }
.emergency-cta::after { content: ""; position: absolute; right: -60px; bottom: -120px; width: 460px; height: 310px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 50px rgba(255,255,255,.025), 0 0 0 100px rgba(255,255,255,.018); transform: rotate(-15deg); }
.emergency-inner { position: relative; z-index: 1; min-height: 245px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 55px; align-items: center; }
.emergency-inner h2 { max-width: 650px; margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.2; letter-spacing: -.03em; }
.emergency-inner p:not(.eyebrow) { margin: 12px 0 0; color: #c8e3ff; }
.emergency-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 11px; }
.site-footer { background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.55fr 1fr 1fr 1.2fr; gap: 45px; padding-top: 49px; padding-bottom: 38px; }
.footer-brand p { max-width: 330px; margin: 17px 0 0; color: var(--text-muted); font-size: 12px; }
.footer-wootech { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 10px 14px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 10px; }
.footer-wootech span { color: var(--text-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.footer-wootech img { height: 20px; width: auto; }
.footer-heading { margin: 4px 0 15px; font-size: 13px; }
.footer-links { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.footer-links a, .footer-links span { min-height: 44px; display: inline-flex; align-items: center; color: var(--text-muted); font-size: 12px; }
.footer-links a:hover { color: var(--brand-500); }
.footer-contact li { min-height: 44px; display: flex; align-items: center; gap: 9px; }
.footer-contact .icon { width: 16px; height: 16px; color: var(--brand-500); }
.footer-bottom { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--text-muted); border-top: 1px solid var(--border); font-size: 12px; }
.footer-bottom p { margin: 0; }
.footer-bottom div { display: flex; gap: 24px; }
.footer-bottom a { min-height: 44px; display: inline-flex; align-items: center; }

.content-shell { padding: 75px 0 90px; }
.content-narrow { width: min(calc(100% - 40px), 860px); margin-inline: auto; }
.page-header { margin-bottom: 35px; }
.page-header h1 { margin: 0; color: var(--text); font-size: clamp(36px, 5vw, 58px); line-height: 1.12; letter-spacing: -.04em; }
.page-header p { margin: 12px 0 0; color: var(--text-soft); font-size: 18px; }
.entry-content { color: #344e72; font-size: 17px; }
.entry-content h2, .entry-content h3 { margin: 1.7em 0 .65em; color: var(--text); line-height: 1.25; }
.entry-content h2 { font-size: 30px; }
.entry-content h3 { font-size: 22px; }
.entry-content a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { height: auto; border-radius: 14px; }
.entry-content blockquote { margin: 28px 0; padding: 20px 24px; background: var(--brand-50); border-left: 4px solid var(--brand-500); border-radius: 0 12px 12px 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.post-card-media { aspect-ratio: 16/9; background: var(--brand-50); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 22px; }
.post-card-body h2 { margin: 0 0 10px; font-size: 20px; line-height: 1.35; }
.post-card-body p { margin: 0; color: var(--text-soft); font-size: 14px; }
.not-found { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.not-found strong { color: var(--brand-500); font-size: clamp(90px, 15vw, 180px); line-height: 1; }

@media (max-width: 1180px) {
  .header-inner { gap: 18px; }
  .header-actions { gap: 12px; }
  .header-actions .header-phone span { display: none; }
  .header-phone { width: 46px; justify-content: center; padding: 0; }
}

@media (max-width: 960px) {
  .header-inner { display: flex; }
  .menu-toggle { display: flex; margin-left: 0; }
  .header-actions { margin-left: auto; }
  .main-nav { position: absolute; inset: 100% 0 auto 0; justify-self: stretch; width: 100%; display: none; max-height: calc(100dvh - 118px); overflow-y: auto; margin: 0; padding: 16px 20px 24px; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); }
  .main-nav.is-open { display: block; }
  .nav-list, .main-nav > ul { display: grid; gap: 3px; }
  .nav-list a, .main-nav > ul a { width: 100%; min-height: 48px; }
  .faq-layout { grid-template-columns: 1fr; gap: 35px; }
  .faq-intro { position: static; text-align: center; }
  .faq-intro > p { margin-inline: auto; }
  .emergency-inner { grid-template-columns: 1fr; gap: 24px; padding-block: 45px; text-align: center; }
  .emergency-inner h2 { margin-inline: auto; }
  .emergency-actions { justify-content: center; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-grid > :last-child { grid-column: 2 / -1; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .container, .content-narrow { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { gap: 8px; }
  .header-phone { display: inline-flex; width: 44px; height: 44px; border: 1px solid #dde5ef; border-radius: 8px; }
  .menu-toggle { width: 44px; height: 44px; border-radius: 8px; }
  .header-cta { display: none; }
  .privacy-check { font-size: 12px; }
  .emergency-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > :last-child { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; padding-block: 20px; }
  .post-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand, .footer-grid > :last-child { grid-column: auto; }
  .footer-bottom div { flex-direction: column; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Editorial homepage: calm incident-response direction. */
.header-cta { min-height: 46px; background: #2460df; box-shadow: none; }
.header-cta:hover { background: #194fc7; box-shadow: none; }
.wa-icon-flip { transform: rotate(180deg); }

/* Service page identity system: each service wrapper sets its own accent, shared modules read it. */

/* Sửa lỗi website — bảng mã lỗi */

/* Xử lý mã độc — hồ sơ điều tra */

/* Tối ưu tốc độ — minh hoạ trước/sau (định tính, không phải số đo cam kết) */

/* Bảo trì định kỳ — vòng lặp chăm sóc */

@media (max-width: 860px) {
  :root { --section-py: 64px; }
}

@media (max-width: 620px) {
  :root { --section-py: 52px; --section-h2: clamp(28px, 7.5vw, 36px); --card-icon: 42px; }
}
