/* ==========================================================================
   魔术手AI咨询官网 · style.css
   设计语言：深蓝主色 + 科技感渐变 + 大量留白 + 现代卡片
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  --primary: #3a6ea5;
  --primary-dark: #2a4f7c;
  --primary-light: #5b8cc7;
  --accent: #d97706;
  --text: #1d2939;
  --text-soft: #5a6678;
  --text-mute: #9aa9b8;
  --bg: #ffffff;
  --bg-alt: #f6f9fc;
  --bg-soft: #eef3f9;
  --border: #e3e9f1;
  --shadow-sm: 0 1px 3px rgba(20,40,80,.06);
  --shadow:    0 2px 14px rgba(20,40,80,.07);
  --shadow-lg: 0 6px 28px rgba(20,40,80,.10);
  --radius:    12px;
  --radius-lg: 16px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
          "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 基础重置 ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--text); margin: 0; line-height: 1.3; }
h1 { font-size: 38px; font-weight: 700; }
h2 { font-size: 30px; font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; margin: 0 0 10px; }
h4 { font-size: 15px; font-weight: 600; margin: 0 0 14px; }
p  { margin: 0 0 12px; color: var(--text-soft); }
small { font-size: 12.5px; color: var(--text-mute); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .18s ease;
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(58,110,165,.30);
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-ghost:hover {
  background: var(--primary);
  color: #fff;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}
.logo small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-mute);
  letter-spacing: 1px;
}
.logo-mark {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .5px;
  box-shadow: 0 2px 8px rgba(58,110,165,.30);
}
.main-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.main-nav a {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14.5px;
  color: var(--text-soft);
  transition: all .15s;
}
.main-nav a:hover { color: var(--primary); background: var(--bg-alt); }
.main-nav a.active {
  color: var(--primary);
  background: var(--bg-soft);
  font-weight: 500;
}
.nav-cta { font-size: 14px; padding: 9px 18px; }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  background: var(--bg-alt);
  padding: 14px 0;
  font-size: 14px;
  color: var(--text-mute);
}
.breadcrumb .inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: var(--text); }

/* ---------- Hero（首页大图区） ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at top right, rgba(58,110,165,.10), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(217,119,6,.06), transparent 60%),
    linear-gradient(180deg, #f9fbfe 0%, #eef3f9 100%);
  padding: 80px 28px 90px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(58,110,165,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,110,165,.04) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; max-width: 940px; margin-left: auto; margin-right: auto; }
.hero h1 {
  font-size: 52px;
  letter-spacing: -1px;
  margin: 28px 0 22px;
}
.hero h1 em { color: var(--primary); font-style: normal; }
.hero .slogan {
  font-size: 17px;
  color: var(--text-soft);
  max-width: 740px;
  margin: 0 auto 36px;
  line-height: 1.85;
}
.badge-line {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 10px;
}
.badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(58,110,165,.08);
  color: var(--primary);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(58,110,165,.18);
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-btns .btn { padding: 14px 28px; font-size: 16px; }

/* ---------- 数据带 ---------- */
.stats-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 50px 28px;
  position: relative;
}
.stats-wrap {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.stat-item { text-align: center; }
.stat-item .num {
  font-size: 42px;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -.5px;
}
.stat-item .lab {
  font-size: 14px;
  opacity: .85;
  margin-top: 6px;
}

/* ---------- Section 通用 ---------- */
.section {
  padding: 80px 28px;
  max-width: 1240px;
  margin: 0 auto;
}
.section.alt {
  background: var(--bg-alt);
  max-width: none;
  padding: 80px 0;
}
.section.alt .inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}
.sec-head { text-align: center; margin-bottom: 50px; }
.sec-head h2 { margin-top: 12px; margin-bottom: 14px; }
.sec-head p { font-size: 16px; max-width: 720px; margin: 0 auto; }
.sec-kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 2.5px;
  padding: 4px 12px;
  background: rgba(58,110,165,.08);
  border-radius: 4px;
}

/* ---------- 双引擎 ---------- */
.engine-wrap {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 0;
  align-items: stretch;
}
.engine {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
}
.engine.left { border-top-color: var(--primary); }
.engine.right { border-top-color: var(--accent); }
.engine .role {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
  background: rgba(58,110,165,.08);
  color: var(--primary);
}
.engine.right .role { background: rgba(217,119,6,.08); color: var(--accent); }
.engine h3 { font-size: 24px; margin-bottom: 18px; }
.engine ul {
  margin: 0; padding: 0; list-style: none;
}
.engine li {
  padding: 8px 0 8px 22px;
  position: relative;
  color: var(--text-soft);
  font-size: 14.5px;
  border-bottom: 1px dashed var(--border);
}
.engine li:last-child { border-bottom: 0; }
.engine li::before {
  content: "▸";
  position: absolute; left: 0; top: 8px;
  color: var(--primary);
  font-weight: 700;
}
.engine-plus {
  display: flex;
  align-items: center; justify-content: center;
  font-size: 56px;
  font-weight: 300;
  color: var(--text-mute);
}

/* ---------- 卡片 ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all .2s;
  height: 100%;
}
.card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card .ico {
  font-size: 32px;
  margin-bottom: 14px;
}
.card h3 {
  color: var(--text);
  margin-bottom: 8px;
}
.card p {
  font-size: 14.5px;
  color: var(--text-soft);
  margin: 0;
}
.more {
  display: inline-block;
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  margin-top: 14px;
  transition: gap .15s;
}
.more:hover { color: var(--primary-dark); }

/* ---------- 平台卡 ---------- */
.platform-card {
  position: relative;
  padding: 30px 22px 26px;
}
.platform-card .pno {
  position: absolute;
  top: 14px; right: 18px;
  font-size: 28px;
  font-weight: 700;
  color: var(--bg-soft);
  font-family: 'SF Mono', Consolas, monospace;
}

/* ---------- 网格 ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* ---------- 客户墙 ---------- */
.client-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.client-cell {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 22px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: all .2s;
  border: 1px solid var(--border);
}
.client-cell:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.client-cell small {
  display: block;
  margin-top: 6px;
  font-weight: 400;
  color: var(--text-mute);
  font-size: 13px;
}

/* ---------- CTA Band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 70px 28px;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.08) 0%, transparent 50%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 30px; font-size: 16px; }
.cta-band .btn {
  background: #fff;
  color: var(--primary);
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
}
.cta-band .btn:hover { background: var(--bg-alt); color: var(--primary-dark); }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #1a2433;
  color: #b8c2d0;
  padding: 60px 28px 24px;
}
.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.site-footer h4 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 15px;
}
.site-footer p { color: #b8c2d0; font-size: 14px; line-height: 1.8; }
.site-footer a {
  display: block;
  color: #b8c2d0;
  font-size: 14px;
  margin-bottom: 8px;
  transition: color .15s;
}
.site-footer a:hover { color: #fff; }
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  color: #fff;
}
.footer-brand b { font-size: 16px; }
.footer-bottom {
  max-width: 1240px;
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.10);
  text-align: center;
  color: #6c7a8e;
  font-size: 13px;
}
.footer-legal {
  max-width: 1240px;
  margin: 10px auto 0;
  padding: 0 22px 28px;
  /* 关键：用 flex 排成一行，抵消 .site-footer a{display:block} 的影响 */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  color: #6c7a8e;
  font-size: 12.5px;
  letter-spacing: .2px;
}
.footer-legal a,
.footer-legal .dot {
  display: inline-flex;
  align-items: center;
  margin: 0;
  white-space: nowrap;
}
.footer-legal a {
  color: #6c7a8e;
  text-decoration: none;
  transition: color .15s;
}
.footer-legal a:hover { color: #cfd6e3; }
.footer-legal .dot { opacity: .6; }
/* 公安网安备案：徽标 + 文字 同行对齐 */
.footer-legal .gongan { gap: 4px; }
.footer-legal .gongan img {
  width: 16px;
  height: 17px;
  flex: 0 0 auto;
  object-fit: contain;
  opacity: .95;
}

/* ---------- 内页 Hero ---------- */
.page-hero {
  background: linear-gradient(180deg, #f9fbfe 0%, #eef3f9 100%);
  text-align: center;
  padding: 70px 28px 60px;
}
.page-hero h1 {
  font-size: 36px;
  letter-spacing: -.5px;
}
.page-hero p {
  font-size: 16px;
  margin-top: 16px;
  max-width: 720px;
  margin-left: auto; margin-right: auto;
}

/* ---------- 企业档案 ---------- */
.detail-block {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--border);
  align-items: baseline;
}
.detail-block:last-child { border-bottom: 0; }
.detail-block dt {
  color: var(--text-mute);
  font-size: 14px;
  font-weight: 500;
}
.detail-block dd {
  margin: 0;
  color: var(--text);
  font-size: 15px;
}

/* ---------- 价值观 ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.value-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all .2s;
}
.value-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.value-item .vt {
  font-size: 19px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.value-item p {
  font-size: 14px;
  margin: 0;
  line-height: 1.75;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item details { padding: 0; }
.faq-item summary {
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  font-size: 15.5px;
  list-style: none;
  position: relative;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute; right: 24px; top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 22px;
  font-weight: 300;
  transition: transform .2s;
}
.faq-item details[open] summary::after {
  content: "−";
}
.faq-item summary:hover { background: var(--bg-alt); }
.faq-a {
  padding: 0 24px 20px;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.85;
}

/* ---------- 业务/平台项 ---------- */
.biz-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  align-items: flex-start;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.biz-item:last-child { border-bottom: 0; }
.biz-no {
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  background: var(--bg-soft);
  border-radius: var(--radius);
  height: 90px;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 1px;
}
.biz-item h3 {
  font-size: 22px;
  color: var(--text);
  margin-bottom: 12px;
}
.biz-item h3 span {
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  background: rgba(58,110,165,.10);
  padding: 2px 10px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}
.biz-item p {
  font-size: 15px;
  line-height: 1.85;
}

/* ---------- 案例卡 ---------- */
.case-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px;
}
.case-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.case-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(58,110,165,.10);
  color: var(--primary);
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 500;
}
.case-period {
  font-size: 12.5px;
  color: var(--text-mute);
}
.case-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 14px 8px;
}
.metric { text-align: center; }
.metric .v {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -.3px;
}
.metric .l {
  font-size: 11.5px;
  color: var(--text-mute);
  margin-top: 4px;
}
.case-note {
  font-size: 12px;
  color: var(--text-mute);
  font-style: italic;
  padding-top: 4px;
  border-top: 1px dashed var(--border);
  margin-top: 6px;
}

/* ---------- 新闻 ---------- */
.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.news-filter a {
  padding: 7px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-soft);
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.news-filter a:hover {
  color: var(--primary);
  border-color: var(--primary);
}
.news-filter a.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.news-filter a small {
  background: rgba(0,0,0,.06);
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11.5px;
}
.news-filter a.active small {
  background: rgba(255,255,255,.25);
  color: #fff;
}
.news-list { display: flex; flex-direction: column; gap: 22px; }
.news-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  transition: all .2s;
}
.news-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.news-date {
  text-align: center;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 16px 8px;
  display: block;
  color: var(--text);
}
.news-date .d {
  font-size: 30px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -.5px;
  line-height: 1;
}
.news-date .m {
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 6px;
}
.news-cat {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(58,110,165,.10);
  color: var(--primary);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 8px;
}
.news-item h3 {
  font-size: 19px;
  margin: 0 0 8px;
  line-height: 1.5;
}
.news-item h3 a {
  color: var(--text);
  transition: color .15s;
}
.news-item h3 a:hover { color: var(--primary); }
.news-summary {
  font-size: 14px;
  color: var(--text-soft);
  margin: 0;
}

/* ---------- 联系页 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.contact-info,
.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow-sm);
}
.contact-info h3,
.contact-form h3 {
  font-size: 21px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.contact-line {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}
.contact-line:last-child { border-bottom: 0; }
.contact-line .ci {
  font-size: 22px;
  line-height: 1;
}
.contact-line b {
  display: block;
  color: var(--text);
  font-size: 14.5px;
  margin-bottom: 4px;
}
.contact-line span {
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.7;
}

.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-size: 13.5px;
  color: var(--text);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14.5px;
  font-family: inherit;
  background: var(--bg-alt);
  transition: all .15s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(58,110,165,.12);
}
.form-row textarea { resize: vertical; min-height: 90px; }
.form-row .err {
  display: block;
  color: #c92a2a;
  font-size: 12.5px;
  margin-top: 4px;
}
.form-alert {
  margin: 0 0 18px;
  padding: 13px 16px;
  background: #fdeceb;
  color: #b3261e;
  border-left: 4px solid #d9483b;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.6;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .hero h1 { font-size: 36px; }
  .section { padding: 50px 20px; }
  .nav-wrap { padding: 12px 18px; flex-wrap: wrap; }
  .main-nav { order: 3; flex-basis: 100%; justify-content: center; flex-wrap: wrap; gap: 2px; }
  .main-nav a { padding: 6px 10px; font-size: 13.5px; }
  .grid-2, .grid-3, .grid-4,
  .value-grid, .stats-wrap,
  .footer-grid, .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .engine-wrap {
    grid-template-columns: 1fr;
  }
  .engine-plus { display: none; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-block { grid-template-columns: 1fr; gap: 6px; }
  .biz-item { grid-template-columns: 1fr; gap: 14px; }
  .biz-no { height: auto; padding: 14px; font-size: 22px; }
  .news-item { grid-template-columns: 80px 1fr; gap: 16px; padding: 18px 18px; }
  .news-date .d { font-size: 22px; }
}
@media (max-width: 540px) {
  .grid-2, .grid-3, .grid-4,
  .value-grid, .stats-wrap,
  .footer-grid, .contact-grid,
  .case-metrics, .client-grid {
    grid-template-columns: 1fr;
  }
  .case-metrics { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 50px 18px 60px; }
  .hero h1 { font-size: 28px; }
  .stats-band { padding: 36px 18px; }
  .stat-item .num { font-size: 30px; }
  .nav-cta { font-size: 13px; padding: 8px 14px; }
  .section { padding: 40px 16px; }
}