/* ============================================================
   苏州曼辉电子有限公司 官网样式
   主题：典雅商务 —— 深藏蓝 + 鎏金点缀 + 衬线标题
   定位：电子制造业，正式、稳重、有质感
   ============================================================ */
:root {
  --navy: #132a4d;          /* 深藏蓝：主品牌色 */
  --navy-deep: #0c1c36;     /* 更深：页头页脚底色 */
  --primary: #1d4e89;       /* 商务钢蓝：链接与交互 */
  --primary-dark: #163c6b;
  --gold: #b8933d;          /* 鎏金：点缀与强调 */
  --gold-light: #d9bc78;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --text: #222d3d;
  --muted: #5f6b7a;
  --border: #e2e6ec;
  --radius: 8px;
  --shadow: 0 8px 26px rgba(19, 42, 77, .10);
  --serif: Georgia, "Times New Roman", "Noto Serif SC", "Source Han Serif SC",
           "STZhongsong", "STSong", "SimSun", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 按钮（方正稳重，去掉圆滑胶囊感） ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 32px; border-radius: 4px; font-size: 15px; font-weight: 600;
  letter-spacing: 1px;
  transition: .25s; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-accent { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-accent:hover { background: #a5822f; border-color: #a5822f; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--bg); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.center { text-align: center; margin-top: 44px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 36px; height: 78px; }
.logo { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.logo-img { height: 46px; width: auto; max-width: 200px; object-fit: contain; display: block; }
.lang-switch {
  flex: none; border: 1px solid #c8d0dc; border-radius: 3px; padding: 5px 13px;
  font-size: 12.5px; font-weight: 700; color: #3a4a5e;
  transition: .2s; white-space: nowrap; line-height: 1.4;
}
.lang-switch:hover { border-color: var(--gold); color: var(--gold); }
.logo-mark {
  width: 44px; height: 44px; border-radius: 4px;
  background: var(--navy); color: var(--gold-light);
  font-weight: 700; font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-text b { font-size: 19px; color: var(--navy); letter-spacing: 1px; }
.logo-text small { font-size: 10px; letter-spacing: 2px; color: var(--muted); }
.main-nav { display: flex; gap: 32px; }
.main-nav a {
  font-size: 15.5px; color: #3a4a5e; font-weight: 500;
  padding: 6px 2px; border-bottom: 2px solid transparent; transition: .2s;
}
.main-nav a:hover { color: var(--navy); }
.main-nav a.active { color: var(--navy); border-color: var(--gold); font-weight: 700; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); }

/* ---------- 首页 Hero（沉稳深蓝，弱化渐变炫光） ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(150deg, #0c1c36 0%, #132a4d 60%, #1d4e89 160%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/hero-bg.svg") center / cover no-repeat;
  opacity: .14;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), rgba(184, 147, 61, 0) 70%);
}
.hero-inner { position: relative; z-index: 1; padding: 110px 24px 122px; max-width: 1180px; margin: 0 auto; }
.hero-tag {
  display: inline-block; margin-bottom: 24px; padding: 6px 20px;
  border: 1px solid rgba(217, 188, 120, .5); color: var(--gold-light);
  font-size: 13.5px; letter-spacing: 3px;
}
.hero h1 { font-size: 46px; line-height: 1.3; margin-bottom: 18px; letter-spacing: 2px; }
.hero-sub { font-size: 17.5px; opacity: .82; margin-bottom: 30px; max-width: 640px; }
.hero-chips { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-chips span {
  padding: 8px 22px; font-size: 14.5px; font-weight: 700; letter-spacing: 2px;
  border: 1px solid rgba(217, 188, 120, .45); color: var(--gold-light);
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- 数据亮点 ---------- */
.stats-bar { background: #fff; border-bottom: 1px solid var(--border); position: relative; z-index: 2; }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 34px 24px; }
.stat { text-align: center; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 12%; bottom: 12%;
  width: 1px; background: var(--border);
}
.stat b {
  display: block; font-size: 36px; color: var(--navy);
  font-weight: 700; line-height: 1.2; font-family: var(--serif);
}
.stat span { color: var(--muted); font-size: 14px; letter-spacing: 1px; }

/* ---------- 通用区块 ---------- */
.section { padding: 92px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 54px; }
.section-head .eyebrow {
  display: block; color: var(--gold); letter-spacing: 5px;
  font-size: 12.5px; font-weight: 700; margin-bottom: 12px; font-family: Georgia, serif;
  text-transform: uppercase;
}
.section-head h2 {
  font-size: 33px; color: var(--navy); margin-bottom: 14px; letter-spacing: 2px;
}
.section-head h2::after {
  content: ""; display: block; width: 46px; height: 2px;
  margin: 16px auto 0; background: var(--gold);
}
.section-head p { color: var(--muted); }
.section-head.light h2 { color: #fff; }
.section-head.light p { color: rgba(255, 255, 255, .75); }
.lead { font-size: 16.5px; }

/* ---------- 关于（首页） ---------- */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-media { position: relative; }
.about-media::before {
  content: ""; position: absolute; left: -14px; top: -14px; right: 14px; bottom: 14px;
  border: 1px solid var(--gold-light); z-index: 0; pointer-events: none;
}
.about-media img { border-radius: 2px; box-shadow: var(--shadow); position: relative; z-index: 1; }
.about-text .section-head { text-align: left; margin: 0 0 20px; max-width: none; }
.about-text .section-head h2::after { margin-left: 0; }
.about-text .lead { color: var(--muted); margin-bottom: 30px; }

/* ---------- 服务卡片（稳重线条风） ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 34px 28px;
  position: relative; overflow: hidden; transition: .3s;
}
.service-card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: var(--gold); transition: .35s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-card:hover::after { width: 100%; }
.service-icon {
  width: 56px; height: 56px; border-radius: 4px;
  background: var(--navy); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 19px; color: var(--navy); margin-bottom: 10px; letter-spacing: 1px; }
.service-card > p { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.service-points li { position: relative; padding-left: 18px; font-size: 13.5px; color: #43536a; margin-bottom: 5px; }
.service-points li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px;
  background: var(--gold); transform: rotate(45deg);
}

/* ---------- 荣誉资质（证书相框风） ---------- */
.certs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cert-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px; transition: .3s;
}
.cert-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.cert-link { display: block; cursor: zoom-out; border-radius: 3px; overflow: hidden; position: relative; }
.cert-img {
  border: 1px solid var(--border); background: #fafbfc;
  height: 190px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.cert-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s; }
.cert-card:hover .cert-img img { transform: scale(1.04); }
.cert-link::after {
  content: "⿻ 点击放大"; position: absolute; right: 8px; bottom: 8px;
  background: rgba(12, 28, 54, .78); color: #fff; font-size: 11.5px;
  padding: 3px 10px; border-radius: 3px; letter-spacing: 1px;
  opacity: 0; transition: .25s; pointer-events: none;
}
.cert-card:hover .cert-link::after { opacity: 1; }
.cert-card figcaption {
  text-align: center; font-family: var(--serif); font-size: 14.5px;
  color: var(--navy); padding: 14px 8px 8px; letter-spacing: .5px;
}

/* ---------- 生产设备 ---------- */
.equip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.equip-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: .3s;
}
.equip-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.equip-img { height: 215px; overflow: hidden; background: #eef1f5; }
.equip-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.equip-card:hover .equip-img img { transform: scale(1.04); }
.equip-card h3 { font-size: 17.5px; color: var(--navy); padding: 18px 22px 6px; letter-spacing: .5px; }
.equip-card p { color: var(--muted); font-size: 13.5px; padding: 0 22px 22px; white-space: pre-line; }
/* 设备介绍收起/展开：JS 检测到长文本才加 .collapsed 收起并显示箭头，无 JS 时全文可见 */
.equip-desc { position: relative; overflow: hidden; }
.equip-card.collapsed .equip-desc { max-height: 90px; }
.equip-card.collapsed .equip-desc::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 44px;
  background: linear-gradient(rgba(255,255,255,0), #fff 85%); pointer-events: none;
}
.equip-card.open .equip-desc { max-height: none; }
.equip-toggle {
  display: none; margin: 0 auto 18px; padding: 5px 16px;
  border: 1px solid var(--border); border-radius: 999px;
  background: #f6f8fb; color: var(--navy); font-size: 12.5px; letter-spacing: 1px;
  cursor: pointer; transition: background .2s;
}
.equip-toggle:hover { background: #eaf0f7; }
.equip-card.has-more .equip-toggle { display: inline-flex; align-items: center; gap: 6px; }
.equip-arrow { display: inline-block; font-size: 11px; line-height: 1; transition: transform .25s; }
.equip-card.open .equip-arrow { transform: rotate(180deg); }

/* ---------- 车间相册 ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.g-item {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius); height: 230px; background: #eef1f5;
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.g-item:hover img { transform: scale(1.05); }
.g-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 16px 12px;
  background: linear-gradient(180deg, rgba(12, 28, 54, 0), rgba(12, 28, 54, .82));
  color: #fff; font-size: 13.5px; letter-spacing: 1px;
  opacity: 0; transition: .3s;
}
.g-item:hover .g-cap { opacity: 1; }
/* ---------- 团建照片墙 ---------- */
.tb-intro { color: var(--muted); font-size: 14.5px; margin: -6px 0 26px; }
.tb-groups { display: flex; flex-direction: column; gap: 40px; }
.tb-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 16px; }
.tb-title { font-size: 16px; font-weight: 600; color: var(--navy); letter-spacing: .5px; }
.tb-date { font-size: 17px; font-weight: 600; color: var(--navy); letter-spacing: .5px; }
.tb-date::before { content: "📅 "; font-size: 15px; }
.tb-place { font-size: 14.5px; color: #b08d57; letter-spacing: 1px; }
.tb-place::before { content: "📍 "; font-size: 14px; }
/* ---------- 联系页地图卡 ---------- */
.map-card {
  display: flex; gap: 22px; align-items: flex-start;
  margin-top: 26px; padding: 26px 28px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
}
.map-pin { flex: 0 0 auto; margin-top: 3px; }
.map-info h3 { font-size: 18px; color: var(--navy); margin-bottom: 6px; letter-spacing: .5px; }
.map-info p { color: var(--muted); font-size: 14.5px; margin-bottom: 4px; }
.map-info .map-sub { font-size: 13px; opacity: .85; }
.map-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
/* 灯箱 */
.lightbox {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(9, 18, 36, .92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: .25s;
  cursor: zoom-out; padding: 4vh 4vw;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 92%; max-height: 88vh; border-radius: 4px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox figcaption {
  position: absolute; bottom: 3.5vh; left: 0; right: 0; text-align: center;
  color: rgba(255, 255, 255, .85); font-size: 14px; letter-spacing: 1px;
}

/* ---------- 合作伙伴（Logo 墙） ---------- */
.partners-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.partner-cell {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  min-height: 130px; padding: 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; transition: .3s;
}
.partner-cell img {
  height: 62px; width: auto; max-width: 82%; object-fit: contain;
  transition: .3s;
}
.partner-cell:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.partner-cell:hover img { transform: scale(1.05); }
.partner-cell span { font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- 经营理念 ---------- */
.ph-band {
  position: relative; overflow: hidden; color: #fff; padding: 92px 0;
  background: linear-gradient(150deg, #0c1c36, #17335c);
}
.ph-band::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/hero-bg.svg") center / cover; opacity: .10;
}
.ph-band .container { position: relative; z-index: 1; }
.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ph-card {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(217, 188, 120, .28);
  border-radius: var(--radius); padding: 40px 30px; text-align: center;
}
.ph-card h3 { font-size: 25px; margin-bottom: 12px; letter-spacing: 4px; color: #fff; }
.ph-card h3::after {
  content: ""; display: block; width: 34px; height: 2px; margin: 14px auto 0;
  background: var(--gold);
}
.ph-card p { color: rgba(255, 255, 255, .75); font-size: 14.5px; }

/* ---------- 品质流程 ---------- */
.quality-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.q-step {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px; transition: .3s;
}
.q-step:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.q-num {
  display: block; font-size: 40px; font-weight: 700; line-height: 1;
  color: #d8dfe9; font-family: Georgia, serif; margin-bottom: 10px;
}
.q-step h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.q-step p { color: var(--muted); font-size: 14px; }

/* ---------- 新闻动态 ---------- */
.news-list { max-width: 880px; margin: 0 auto; }
.news-item {
  display: flex; gap: 24px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 30px; margin-bottom: 18px; transition: .25s;
}
.news-item:hover { box-shadow: var(--shadow); }
.news-date {
  min-width: 78px; text-align: center; height: fit-content;
  background: var(--navy); border-radius: 3px; padding: 10px 0; color: #fff;
}
.news-date b { display: block; font-size: 24px; line-height: 1.15; font-family: var(--serif); }
.news-date span { font-size: 11.5px; opacity: .75; }
.news-body h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.news-body p { color: var(--muted); font-size: 14px; }
.empty-tip { text-align: center; color: var(--muted); padding: 30px 0; }

/* ---------- CTA 横幅 ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy-deep), var(--primary-dark)); color: #fff; padding: 66px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { font-size: 28px; margin-bottom: 8px; letter-spacing: 1px; }
.cta-band p { opacity: .85; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band .btn-ghost { border-color: rgba(255, 255, 255, .4); }

/* ---------- 内页横幅 ---------- */
.page-banner {
  position: relative; overflow: hidden; color: #fff; padding: 70px 0;
  background: linear-gradient(150deg, #0c1c36, #17335c);
}
.page-banner::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/hero-bg.svg") center / cover; opacity: .12;
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { font-size: 34px; margin-bottom: 10px; letter-spacing: 3px; }
.page-banner h1::after {
  content: ""; display: block; width: 46px; height: 2px;
  margin-top: 14px; background: var(--gold);
}
.page-banner p { color: rgba(255, 255, 255, .75); }

/* ---------- 关于页 ---------- */
.about-detail { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.about-detail > img { border-radius: 2px; box-shadow: var(--shadow); position: sticky; top: 100px; }
.about-detail h2 { font-size: 24px; color: var(--navy); margin: 26px 0 12px; }
.about-detail h2:first-child { margin-top: 0; }
.about-detail p { color: #43536a; margin-bottom: 14px; }
.about-detail p.lead { color: var(--navy); font-weight: 600; }

/* ---------- 合作流程 ---------- */
.process-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.process-step { text-align: center; }
.process-step .p-num {
  width: 52px; height: 52px; border-radius: 2px; margin: 0 auto 12px;
  background: #fff; border: 1px solid var(--gold); color: var(--gold);
  font-weight: 700; font-size: 16px; font-family: var(--serif);
  display: flex; align-items: center; justify-content: center;
}
.process-step b { display: block; font-size: 14.5px; color: var(--navy); margin-bottom: 4px; }
.process-step p { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 920px; margin: 0 auto; }
.contact-card {
  display: flex; gap: 18px; align-items: center;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 28px; transition: .25s;
}
.contact-card:hover { box-shadow: var(--shadow); }
.contact-icon {
  width: 52px; height: 52px; border-radius: 4px; flex-shrink: 0;
  background: var(--navy); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
}
.contact-icon svg { width: 26px; height: 26px; }
.contact-card span { display: block; font-size: 13px; color: var(--muted); }
.contact-card b { font-size: 16.5px; color: var(--navy); }
.contact-note { text-align: center; color: var(--muted); margin-top: 34px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .68); padding-top: 64px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; padding-bottom: 44px; }
.footer-grid h4 {
  color: #fff; font-size: 16px; margin-bottom: 18px; letter-spacing: 1px;
  position: relative; padding-bottom: 10px;
}
.footer-grid h4::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 28px; height: 2px; background: var(--gold);
}
.footer-grid p { margin-bottom: 6px; }
.footer-nav a { display: block; margin-bottom: 9px; transition: .2s; }
.footer-nav a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 18px 24px; text-align: center; font-size: 13px; color: rgba(255, 255, 255, .45);
}
.footer-bottom p { margin: 0; }
.footer-bottom .icp-line { margin-top: 6px; }
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: var(--gold-light); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .services-grid, .quality-grid, .ph-grid, .equip-grid { grid-template-columns: repeat(2, 1fr); }
  .certs-grid, .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .about-split, .about-detail { grid-template-columns: 1fr; }
  .about-detail > img { position: static; }
  .process-grid { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .stat + .stat::before { display: none; }
  .hero h1 { font-size: 34px; }
}
@media (max-width: 640px) {
  .main-nav {
    position: fixed; top: 78px; left: 0; right: 0; z-index: 99;
    background: #fff; flex-direction: column; gap: 0;
    padding: 10px 24px 20px; border-bottom: 1px solid var(--border);
    display: none; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: none; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .header-inner { gap: 16px; }
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 15.5px; }
  .services-grid, .quality-grid, .ph-grid, .contact-grid,
  .equip-grid, .certs-grid, .partners-grid, .gallery-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .map-card { flex-direction: column; gap: 8px; padding: 22px; }
  .map-btns .btn { flex: 1 1 100%; text-align: center; }
  .section { padding: 60px 0; }
  .section-head h2 { font-size: 26px; }
  .news-item { flex-direction: column; gap: 14px; }
}
