/* ============================================================
   武汉数一数科技有限公司 官网样式
   ============================================================ */
:root {
  --c-primary: #0a5cb9;
  --c-primary-d: #063e7d;
  --c-primary-l: #e8f2fc;
  --c-accent: #12b3a6;
  --c-accent-l: #e6f7f5;
  --c-text: #2b3444;
  --c-text-l: #6b7686;
  --c-border: #e6eaf1;
  --c-bg: #ffffff;
  --c-bg-g: #f5f8fc;
  --shadow-s: 0 2px 10px rgba(12, 52, 105, .07);
  --shadow-m: 0 8px 28px rgba(12, 52, 105, .12);
  --radius: 12px;
  --max: 1200px;
  --font: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-primary); }

h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 700; line-height: 1.35; }
h1 { font-size: 38px; }
h2 { font-size: 30px; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; list-style: none; }

/* ---------- 布局 ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.section { padding: 78px 0; }
.section.gray { background: var(--c-bg-g); }
.section.dark { background: linear-gradient(135deg, #063e7d, #0a5cb9); color: #fff; }

.section-head { text-align: center; margin-bottom: 46px; }
.section-head .en {
  display: block; font-size: 13px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--c-accent); font-weight: 600; margin-bottom: 6px;
}
.section-head h2 { font-size: 32px; margin-bottom: 12px; }
.section-head .sub { color: var(--c-text-l); max-width: 720px; margin: 0 auto; }
.section-head.left { text-align: left; }
.section-head.left .sub { margin: 0; }
.dark .section-head .sub { color: rgba(255, 255, 255, .8); }

.row { display: flex; flex-wrap: wrap; gap: 24px; }
.col-2 { flex: 0 0 calc(50% - 12px); }
.col-3 { flex: 0 0 calc(33.3333% - 16px); }
.col-4 { flex: 0 0 calc(25% - 18px); }
.col-6 { flex: 0 0 calc(50% - 12px); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 12px 30px; border-radius: 30px;
  font-size: 15px; font-weight: 600; cursor: pointer; border: 1px solid transparent;
  transition: all .25s;
}
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-d); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-m); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-ghost:hover { background: #fff; color: var(--c-primary); border-color: #fff; }
.btn-light { background: #fff; color: var(--c-primary); }
.btn-light:hover { color: var(--c-primary-d); transform: translateY(-2px); box-shadow: var(--shadow-m); }
.btn-sm { padding: 8px 20px; font-size: 14px; }

.link-more { display: inline-block; color: var(--c-primary); font-weight: 600; }
.link-more::after { content: " →"; }

/* ---------- 顶部联系条 ---------- */
.topbar { background: var(--c-primary-d); color: rgba(255, 255, 255, .85); font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.topbar ul { display: flex; gap: 22px; }
.topbar a:hover { color: #fff; }

/* ---------- 导航 ---------- */
.header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  box-shadow: 0 1px 0 var(--c-border); transition: box-shadow .2s;
}
.header.scrolled { box-shadow: var(--shadow-s); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.logo { display: flex; align-items: center; gap: 11px; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: #fff; font-weight: 800; font-size: 17px; letter-spacing: -.5px;
  display: flex; align-items: center; justify-content: center;
}
.logo-img { width: 46px; height: 46px; object-fit: contain; display: block; flex: none; }
.footer .f-logo .logo-img { width: 44px; height: 44px; }
.logo-txt b { display: block; font-size: 18px; color: var(--c-primary-d); line-height: 1.2; }
.logo-txt span { display: block; font-size: 11px; color: var(--c-text-l); letter-spacing: 1.2px; }

.menu { display: flex; align-items: center; gap: 4px; }
.menu > li { position: relative; }
.menu > li > a {
  display: block; padding: 0 17px; line-height: 74px; font-size: 16px; font-weight: 600;
  color: var(--c-text);
}
.menu > li > a:hover,
.menu > li.active > a { color: var(--c-primary); }
.menu > li.active > a { position: relative; }
.menu > li.active > a::after {
  content: ""; position: absolute; left: 17px; right: 17px; bottom: 14px;
  height: 3px; background: var(--c-primary); border-radius: 2px;
}

.dropdown {
  position: absolute; top: 100%; left: 8px; min-width: 232px; padding: 10px 0;
  background: #fff; border-radius: 10px; box-shadow: var(--shadow-m);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .22s;
}
.menu li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 9px 20px; font-size: 15px; }
.dropdown a:hover { background: var(--c-primary-l); color: var(--c-primary); }
.dropdown .d-en { display: block; font-size: 11px; color: var(--c-text-l); letter-spacing: .5px; }

.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--c-border); border-radius: 8px; background: #fff; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--c-text); margin: 4px auto; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(120deg, #05346b 0%, #0a5cb9 55%, #12b3a6 130%);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, .06);
}
.hero::before { width: 620px; height: 620px; right: -180px; top: -240px; }
.hero::after { width: 380px; height: 380px; left: -140px; bottom: -180px; }
.hero .container { position: relative; z-index: 1; padding-top: 92px; padding-bottom: 104px; }
.hero-inner { display: flex; align-items: center; gap: 50px; }
.hero-copy { flex: 1 1 540px; }
.hero-tag {
  display: inline-block; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 24px; padding: 5px 18px; font-size: 14px; margin-bottom: 22px;
}
.hero h1 { font-size: 46px; line-height: 1.28; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: #9df3ea; }
.hero .lead { font-size: 17px; color: rgba(255, 255, 255, .88); max-width: 620px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 46px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats div span { display: block; }
.hero-stats .num { font-size: 32px; font-weight: 800; line-height: 1.2; }
.hero-stats .num i { font-style: normal; font-size: 18px; margin-left: 2px; }
.hero-stats .lbl { font-size: 14px; color: rgba(255, 255, 255, .75); }

.hero-panel { flex: 0 1 420px; }
.hero-card {
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px); border-radius: 16px; padding: 26px 28px;
}
.hero-card h3 { color: #fff; font-size: 18px; margin-bottom: 16px; }
.hero-card li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px dashed rgba(255, 255, 255, .2); font-size: 16px;
}
.hero-card li:last-child { border-bottom: 0; }
.hero-card li b { font-weight: 600; }
.hero-card li .code { font-size: 12px; letter-spacing: 1px; color: #9df3ea; }

/* ---------- 卡片 ---------- */
.card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 28px; transition: all .28s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); border-color: transparent; }

.feature { text-align: left; }
.feature .ico {
  width: 54px; height: 54px; border-radius: 14px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-primary-l); color: var(--c-primary); font-size: 24px; font-weight: 700;
}
.feature:nth-child(even) .ico { background: var(--c-accent-l); color: var(--c-accent); }
.feature h3 { font-size: 19px; }
.feature p { color: var(--c-text-l); font-size: 14px; margin: 0; }

/* 产品卡 */
.product-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.product-card .p-top { padding: 30px 28px 24px; color: #fff; background: linear-gradient(120deg, var(--c-primary), #2f8ad6); }
.product-card:nth-child(2) .p-top { background: linear-gradient(120deg, #0f8f86, var(--c-accent)); }
.product-card:nth-child(3) .p-top { background: linear-gradient(120deg, #6a3fb5, #9268dd); }
.product-card .p-code { font-size: 13px; letter-spacing: 2px; opacity: .85; }
.product-card .p-name { font-size: 23px; margin: 6px 0 0; color: #fff; }
.product-card .p-body { padding: 24px 28px 28px; flex: 1; display: flex; flex-direction: column; }
.product-card .p-body p { color: var(--c-text-l); font-size: 14px; }
.product-card .p-list { margin: 0 0 20px; }
.product-card .p-list li { position: relative; padding-left: 20px; font-size: 14px; margin-bottom: 8px; color: var(--c-text); }
.product-card .p-list li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--c-accent); opacity: .55;
}
.product-card .p-foot { margin-top: auto; }

/* 图标方块列表 */
.tile-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 22px 20px; text-align: center; transition: all .25s;
}
.tile:hover { border-color: var(--c-primary); box-shadow: var(--shadow-s); transform: translateY(-4px); }
.tile .t-ico { font-size: 26px; margin-bottom: 8px; }
.tile b { display: block; font-size: 16px; margin-bottom: 4px; }
.tile span { font-size: 13px; color: var(--c-text-l); }

/* ---------- 数字统计 ---------- */
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.nums .num { font-size: 44px; font-weight: 800; line-height: 1.1; }
.nums .num i { font-style: normal; font-size: 22px; }
.nums .lbl { color: var(--c-text-l); margin-top: 6px; }
.dark .nums .lbl { color: rgba(255, 255, 255, .78); }

/* ---------- 内部 Banner ---------- */
.page-banner {
  background: linear-gradient(120deg, #05346b, #0a5cb9); color: #fff; padding: 62px 0;
  position: relative; overflow: hidden;
}
.page-banner::after {
  content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: rgba(255, 255, 255, .07); right: -120px; top: -200px;
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { font-size: 36px; margin-bottom: 8px; }
.page-banner .en { color: rgba(255, 255, 255, .7); letter-spacing: 2px; font-size: 14px; }
.breadcrumb { margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, .8); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span::before { content: "/"; margin: 0 8px; opacity: .55; }
.breadcrumb a { color: inherit; }

/* 子导航（产品页二级菜单） */
.subnav { background: #fff; border-bottom: 1px solid var(--c-border); }
.subnav ul { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; }
.subnav a {
  display: block; white-space: nowrap; padding: 7px 18px; border-radius: 22px;
  font-size: 14px; color: var(--c-text-l); background: var(--c-bg-g);
}
.subnav a:hover { background: var(--c-primary-l); color: var(--c-primary); }
.subnav a.on { background: var(--c-primary); color: #fff; font-weight: 600; }

/* ---------- 内容排版 ---------- */
.content { padding: 64px 0; }
.prose p { margin-bottom: 1.1em; color: #3b4657; }
.prose h2 { font-size: 24px; margin: 34px 0 14px; padding-left: 13px; border-left: 4px solid var(--c-primary); }
.prose h3 { font-size: 18px; margin: 24px 0 10px; }
.prose ul.bullet { margin: 0 0 1.2em; }
.prose ul.bullet li { position: relative; padding-left: 22px; margin-bottom: 8px; color: #3b4657; }
.prose ul.bullet li::before { content: "▪"; position: absolute; left: 2px; color: var(--c-accent); }

.split { display: flex; gap: 46px; align-items: flex-start; }
.split > .s-main { flex: 1 1 0; min-width: 0; }
.split > .s-side { flex: 0 0 320px; }

.figure {
  border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden;
  background: var(--c-bg-g);
}
.figure figcaption { padding: 12px 16px; font-size: 13px; color: var(--c-text-l); text-align: center; background: #fff; }

/* 表格 */
.table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.table th, .table td { border: 1px solid var(--c-border); padding: 12px 14px; text-align: left; }
.table th { background: var(--c-primary-l); color: var(--c-primary-d); font-weight: 700; }
.table tr:nth-child(even) td { background: #fbfcfe; }

/* 步骤 / 流程 */
.steps { display: flex; gap: 16px; flex-wrap: wrap; counter-reset: step; }
.step {
  flex: 1 1 0; min-width: 170px; background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 22px 20px; position: relative;
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-size: 26px; font-weight: 800; color: var(--c-primary); opacity: .25; display: block; margin-bottom: 6px;
}
.step b { display: block; font-size: 16px; margin-bottom: 4px; }
.step span { font-size: 13px; color: var(--c-text-l); }

/* 时间线 */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--c-border); }
.timeline li { position: relative; padding-bottom: 22px; }
.timeline li::before {
  content: ""; position: absolute; left: -26px; top: 8px; width: 14px; height: 14px;
  border-radius: 50%; background: #fff; border: 3px solid var(--c-primary);
}
.timeline .t-year { font-weight: 800; color: var(--c-primary); font-size: 18px; }

/* FAQ */
.faq details { border: 1px solid var(--c-border); border-radius: 10px; margin-bottom: 12px; background: #fff; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 14px; font-size: 20px; color: var(--c-primary); }
.faq details[open] summary::after { content: "−"; }
.faq .faq-body { padding: 0 20px 18px; color: var(--c-text-l); font-size: 14px; }

/* 标签 */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { background: var(--c-primary-l); color: var(--c-primary-d); border-radius: 6px; padding: 5px 14px; font-size: 13px; }

/* 侧栏 */
.side-box { border: 1px solid var(--c-border); border-radius: var(--radius); padding: 22px; margin-bottom: 22px; background: #fff; }
.side-box h4 { font-size: 17px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--c-primary-l); }
.side-box li { padding: 8px 0; border-bottom: 1px dashed var(--c-border); font-size: 14px; }
.side-box li:last-child { border-bottom: 0; }
.contact-hot { background: linear-gradient(135deg, var(--c-primary), var(--c-accent)); color: #fff; border: 0; }
.contact-hot h4 { color: #fff; border-bottom-color: rgba(255, 255, 255, .3); }
.contact-hot .tel { font-size: 25px; font-weight: 800; margin-bottom: 4px; }
.contact-hot p { font-size: 13px; color: rgba(255, 255, 255, .9); margin: 0; }

/* ---------- 新闻 ---------- */
.news-item { display: flex; gap: 22px; padding: 22px 0; border-bottom: 1px dashed var(--c-border); }
.news-item:last-child { border-bottom: 0; }
.news-date {
  flex: none; width: 86px; height: 86px; border-radius: 10px; background: var(--c-primary-l);
  color: var(--c-primary-d); text-align: center; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.news-date b { font-size: 26px; line-height: 1; }
.news-date span { font-size: 12px; }
.news-body h3 { font-size: 18px; margin-bottom: 6px; }
.news-body h3 a:hover { color: var(--c-primary); }
.news-body p { color: var(--c-text-l); font-size: 14px; margin: 0; }
.news-cat { display: inline-block; font-size: 12px; color: var(--c-accent); border: 1px solid var(--c-accent); border-radius: 4px; padding: 0 8px; margin-bottom: 6px; }

/* ---------- 优势 / 双色块 ---------- */
.adv-band { background: var(--c-bg-g); }
.adv-item { display: flex; gap: 16px; }
.adv-item .n {
  flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--c-primary);
  color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.adv-item:nth-child(even) .n { background: var(--c-accent); }
.adv-item h4 { font-size: 17px; margin-bottom: 4px; }
.adv-item p { font-size: 14px; color: var(--c-text-l); margin: 0; }

/* ---------- CTA ---------- */
.cta { text-align: center; padding: 70px 0; background: linear-gradient(120deg, #063e7d, #0a5cb9 60%, #12b3a6); color: #fff; }
.cta h2 { font-size: 30px; margin-bottom: 10px; }
.cta p { color: rgba(255, 255, 255, .85); margin-bottom: 26px; }
.cta .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; margin-bottom: 6px; font-weight: 600; }
.field label i { color: #e04b4b; font-style: normal; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 14px; padding: 11px 13px; border: 1px solid var(--c-border);
  border-radius: 8px; background: #fff; color: var(--c-text); transition: border-color .2s;
}
.field textarea { min-height: 118px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(10, 92, 185, .1); }
.form-msg { margin-top: 14px; font-size: 14px; color: var(--c-accent); display: none; }
.form-msg.show { display: block; }
.form-msg.err { color: #d33a2f; }

/* ---------- 页脚 ---------- */
.footer { background: #08243f; color: rgba(255, 255, 255, .68); font-size: 14px; padding-top: 56px; }
.footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer .f-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer .f-logo .logo-txt b { color: #fff; }
.footer .f-logo .logo-txt span { color: rgba(255, 255, 255, .55); }
.footer li { padding: 5px 0; }
.footer .f-about p { font-size: 13px; line-height: 1.9; max-width: 320px; }
.f-contact li { padding-left: 20px; position: relative; }
.f-contact li::before { content: "·"; position: absolute; left: 4px; color: var(--c-accent); }
.f-qr { display: flex; gap: 18px; margin-top: 14px; }
.f-qr figure { text-align: center; }
.qr {
  width: 96px; height: 96px; border-radius: 8px; background: #fff; margin-bottom: 8px;
  display: flex; align-items: center; justify-content: center; color: #08243f; font-size: 11px;
}
.qr-img {
  width: 96px; height: 96px; box-sizing: border-box; padding: 4px; background: #fff;
  border-radius: 8px; margin-bottom: 8px; object-fit: contain; display: block;
}
.f-qr figcaption { font-size: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; text-align: center;
  font-size: 13px; color: rgba(255, 255, 255, .5);
}
.footer-bottom .links { margin-bottom: 6px; }
.footer-bottom .links a { margin: 0 10px; }
.site-stats { margin-bottom: 10px; color: rgba(255, 255, 255, .55); }
.site-stats b { color: var(--c-accent); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- 工具页统计卡 ---------- */
.tool-stats {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px;
}
.tool-stats > div {
  flex: 1 1 120px; min-width: 110px; padding: 16px 18px; border-radius: 12px;
  background: var(--c-primary-soft, rgba(10, 92, 185, .06));
  border: 1px solid rgba(10, 92, 185, .14); text-align: center;
}
.tool-stats b { display: block; font-size: 26px; font-weight: 800; color: var(--c-primary); font-variant-numeric: tabular-nums; line-height: 1.2; }
.tool-stats span { font-size: 12px; color: var(--c-text-l); }

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 28px; width: 44px; height: 44px; border-radius: 10px;
  background: var(--c-primary); color: #fff; border: 0; cursor: pointer; font-size: 18px;
  opacity: 0; visibility: hidden; transition: all .25s; z-index: 90; box-shadow: var(--shadow-m);
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--c-primary-d); }

/* ---------- 淡入动画 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid-4, .tile-list { grid-template-columns: repeat(2, 1fr); }
  .nums { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split { flex-direction: column; }
  .split > .s-side { flex: none; width: 100%; }
  .hero h1 { font-size: 36px; }
}

@media (max-width: 768px) {
  .topbar .container { justify-content: center; }
  .topbar .top-right { display: none; }
  h1 { font-size: 28px; }
  .hero .container { padding: 60px 0 70px; }
  .hero h1 { font-size: 30px; }
  .hero-inner { flex-direction: column; }
  .hero-panel { width: 100%; }
  .section { padding: 52px 0; }
  .section-head h2 { font-size: 25px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .col-2, .col-3, .col-4, .col-6 { flex: 0 0 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .menu {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; box-shadow: var(--shadow-m); padding: 10px 0; gap: 0;
    transform: translateY(-130%); transition: transform .28s; z-index: 99; max-height: 78vh; overflow: auto;
  }
  .menu.open { transform: translateY(0); }
  .menu > li > a { line-height: 48px; padding: 0 24px; font-size: 15px; }
  .menu > li.active > a::after { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 6px; display: none; }
  .menu li.open .dropdown { display: block; }
  .nav-toggle { display: block; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
}
