/* ============================================================
   智原求索 · 企业官网  |  设计系统（高级化改版）
   风格：Apple 风 · 简约克制 · 冷调科技感
   保留资产：logo.png / 浅蓝主题（light blue） / pill 形状体系
   ============================================================ */

:root {
  /* 主题色：浅蓝（light blue） */
  --blue: #2f6fe0;
  --blue-600: #2563c9;
  --blue-700: #1f56b3;
  --blue-ink: #163e7a;
  --blue-deep: #0f2f5e;

  /* 中性色（冷调、更深对比） */
  --ink: #14171d;
  --ink-2: #3b424e;
  --gray: #646b78;
  --gray-2: #98a0ad;

  /* 背景 */
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-blue: #eef4ff;

  /* 描边 */
  --line: #e6e9f0;
  --line-soft: #eef1f6;

  /* 圆角（保持 pill + 圆角卡片体系） */
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  /* 布局 */
  --maxw: 1120px;
  --nav-h: 64px;

  /* 阴影（叠加蓝色调，避免纯黑投影） */
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04), 0 6px 20px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 14px 46px rgba(16, 24, 40, 0.10);
  --shadow-blue: 0 16px 42px rgba(74, 144, 226, 0.22);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "微软雅黑", sans-serif;
}

/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--blue-600);
}
ul {
  list-style: none;
}
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}
.scroll-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  pointer-events: none;
  z-index: -1;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.14;
  color: var(--ink);
}
.section-sub {
  font-size: clamp(16px, 1.9vw, 19px);
  color: var(--gray);
  margin-top: 16px;
  max-width: 620px;
  line-height: 1.65;
}
.text-center {
  text-align: center;
}
.text-center .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 26px;
  border-radius: 980px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease,
    box-shadow 0.22s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 22px rgba(74, 144, 226, 0.18);
}
.btn-primary:hover {
  background: var(--blue-600);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue);
}
.btn-ghost {
  background: transparent;
  color: var(--blue-700);
  border-color: rgba(47, 111, 224, 0.32);
}
.btn-ghost:hover {
  background: var(--bg-blue);
  color: var(--blue-700);
  border-color: rgba(47, 111, 224, 0.45);
}
.btn-lg {
  font-size: 17px;
  padding: 14px 32px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 6px 26px rgba(16, 24, 40, 0.06);
}
.nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand:hover {
  color: var(--ink);
}
.brand .brand-logo {
  height: 36px;
  width: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand .brand-logo2 {
  height: 32px;
  width: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 400;
  padding: 8px 14px;
  border-radius: 980px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-links a:hover {
  color: var(--blue-700);
  background: var(--bg-soft);
}
.nav-links a.active {
  color: var(--blue-700);
  font-weight: 600;
}
.nav-cta {
  margin-left: 10px;
  padding: 9px 18px !important;
  background: var(--blue);
  color: #fff !important;
  font-weight: 500 !important;
  border: 1px solid var(--blue);
  box-shadow: 0 6px 18px rgba(74, 144, 226, 0.2);
}
.nav-cta:hover,
.nav-cta:focus-visible {
  background: #fff;
  color: var(--blue) !important;
  border: 1px solid var(--blue);
  box-shadow: 0 6px 18px rgba(74, 144, 226, 0.16);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 9px;
}
.nav-toggle span {
  display: block;
  height: 1.6px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(6.6px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6.6px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding: clamp(54px, 7.5vw, 92px) 0 clamp(56px, 8vw, 100px);
  min-height: clamp(480px, 60vh, 640px);
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: rgba(238, 245, 255, 0.5);
  background-image:
    radial-gradient(920px 540px at 10% -10%, rgba(74, 144, 226, 0.14), transparent 60%),
    radial-gradient(780px 560px at 100% 8%, rgba(47, 111, 224, 0.10), transparent 55%),
    radial-gradient(rgba(74, 144, 226, 0.10) 1.5px, transparent 1.6px);
  background-size: auto, auto, 28px 28px;
  background-position: 0 0, 0 0, 0 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
}

/* 首页：单栏 Hero（视觉作为背景层） */
.hero-split {
  position: relative;
  z-index: 1;
  display: block;
}
.hero-copy {
  max-width: min(720px, 100%);
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.16;
  color: var(--ink);
}
.hero .lead {
  font-size: clamp(16.5px, 2vw, 20px);
  color: var(--gray);
  margin-top: 22px;
  max-width: min(700px, 100%);
  line-height: 1.6;
}
.hero-inner.text-center .lead {
  margin-left: auto;
  margin-right: auto;
}
.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--gray-2);
  letter-spacing: 0.01em;
}

/* 首页 Hero 视觉（作为背景装饰层，宽度与 hero 一致） */
.hero-visual {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.82;
}
.hero-visual::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -160px;
  top: -160px;
  background: radial-gradient(circle, rgba(150, 198, 244, 0.15), transparent 62%);
  border-radius: 50%;
  pointer-events: none;
}
.hv-mesh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
  pointer-events: none;
}
.hv-mesh line {
  stroke: rgba(135, 182, 234, 0.24);
  stroke-width: 1;
}
.hv-mesh circle {
  fill: #bcdcf7;
}
/* 节点呼吸透明度改由 main.js 驱动，以便相连线条同步跟随（见 .mesh-node） */

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: clamp(66px, 8.5vw, 108px) 0;
}
.section.alt {
  background: var(--bg-soft);
}
.section-head {
  margin-bottom: clamp(40px, 5vw, 62px);
}

/* ---------- Stat strip（无边框内联，更克制高级） ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.stat {
  text-align: center;
  padding: 30px 14px;
  position: relative;
}
.stat:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26%;
  bottom: 26%;
  width: 1px;
  background: var(--line);
}
.stat .num {
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 700;
  color: var(--blue-700);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat .label {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--gray);
}

/* ---------- Feature / card grid ---------- */
.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: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.section.alt .card {
  background: var(--bg);
}
.card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), rgba(74, 144, 226, 0));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card:hover::before {
  opacity: 1;
}
.card .icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: var(--bg-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.card .icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--blue-700);
}
.card h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 11px;
  color: var(--ink);
}
.card p {
  color: var(--gray);
  font-size: 15.5px;
  line-height: 1.66;
}
.card .tags {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.card .tags span {
  font-size: 12.5px;
  color: var(--blue-700);
  background: var(--bg-blue);
  padding: 5px 12px;
  border-radius: 980px;
}

/* ---------- 蓝色渐变面板（愿景 / CTA 复用） ---------- */
.panel-blue {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #eaf3ff 0%, #d8e9ff 52%, #c6ddff 100%);
  color: var(--blue-ink);
  padding: clamp(46px, 6.5vw, 80px) clamp(28px, 5vw, 66px);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.panel-blue::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -150px;
  top: -190px;
  background: radial-gradient(circle, rgba(47, 111, 224, 0.16), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.panel-blue .eyebrow {
  color: var(--blue-700);
}
.panel-blue h2 {
  font-size: clamp(26px, 3.8vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
  max-width: min(30ch, 92%);
  margin: 0 auto;
}
.panel-blue p {
  margin: 20px auto 0;
  max-width: min(760px, 92%);
  color: #2f4a73;
  font-size: 17px;
  line-height: 1.66;
}
.panel-blue .hero-actions {
  justify-content: center;
  margin-top: 30px;
}
.panel-blue .btn-ghost {
  color: var(--blue-700);
  border-color: rgba(47, 111, 224, 0.4);
}
.panel-blue .btn-ghost:hover {
  background: rgba(47, 111, 224, 0.1);
  color: var(--blue-700);
  border-color: rgba(47, 111, 224, 0.6);
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  margin-top: 20px;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--blue), var(--line));
}
.tl-item {
  position: relative;
  padding-bottom: 38px;
}
.tl-item:last-child {
  padding-bottom: 0;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--blue);
}
.tl-year {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-700);
}
.tl-item h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 4px 0 6px;
  color: var(--ink);
}
.tl-item p {
  color: var(--gray);
  font-size: 15.5px;
  max-width: 640px;
  line-height: 1.66;
}

/* ---------- Values ---------- */
.value-card {
  text-align: center;
  padding: 42px 26px;
}
.value-card .vc-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 18px;
  background: var(--bg-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.value-card .vc-icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--blue-700);
}
.value-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 11px;
  color: var(--ink);
}
.value-card p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.66;
}

/* ---------- Product detail ---------- */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  padding: clamp(40px, 5vw, 62px) 0;
  border-bottom: 1px solid var(--line);
}
.product:last-child {
  border-bottom: none;
}
.product.reverse .p-media {
  order: 2;
}
.p-media {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #eef4ff, #f8fbff);
  border: 1px solid var(--line);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.p-media svg {
  width: 100%;
  max-width: 300px;
  height: auto;
}
.p-info .p-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-700);
  background: var(--bg-blue);
  padding: 5px 13px;
  border-radius: 980px;
  margin-bottom: 15px;
}
.p-info h3 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 13px;
  color: var(--ink);
}
.p-info .p-desc {
  color: var(--gray);
  margin-bottom: 22px;
  line-height: 1.66;
}
.p-features {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}
.p-features li {
  display: flex;
  gap: 11px;
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.p-features li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--blue-700);
  margin-top: 3px;
}
.p-scenes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.p-scenes span {
  font-size: 13px;
  color: var(--blue-700);
  background: var(--bg-blue);
  border-radius: 980px;
  padding: 6px 14px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-wrap {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: min(820px, 100%);
  margin: 0 auto;
}
.contact-info {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
}
.contact-info h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 22px;
  color: var(--ink);
}
.contact-photo {
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.contact-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.ci-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.ci-item:last-of-type {
  border-bottom: none;
}
.ci-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.ci-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--blue-700);
}
.ci-item .k {
  font-size: 13px;
  color: var(--gray-2);
}
.ci-item .v {
  font-size: 15.5px;
  color: var(--ink);
  font-weight: 500;
  word-break: break-all;
  line-height: 1.55;
}

/* ---------- Form ---------- */
.form-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  box-shadow: var(--shadow-sm);
}
.form-row {
  margin-bottom: 20px;
}
.form-row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--ink);
}
.field label .req {
  color: #ff3b30;
  margin-left: 2px;
}
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea {
  resize: vertical;
  min-height: 130px;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.12);
}
.field.invalid input,
.field.invalid textarea {
  border-color: #ff3b30;
  box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.1);
}
.field .error-msg {
  display: none;
  font-size: 13px;
  color: #ff3b30;
  margin-top: 6px;
}
.field.invalid .error-msg {
  display: block;
}
.form-card .btn-primary {
  width: 100%;
  margin-top: 6px;
  padding: 14px;
  font-size: 17px;
}
.form-success {
  display: none;
  text-align: center;
  padding: 30px 10px;
}
.form-success.show {
  display: block;
}
.form-success .check {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #e7f9ee;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-success .check svg {
  width: 34px;
  height: 34px;
  stroke: #34c759;
}
.form-success h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.form-success p {
  color: var(--gray);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 60px 0 32px;
  font-size: 14px;
  color: var(--gray);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}
.footer .f-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 15px;
}
.footer .f-brand .f-brand-logo {
  height: 34px;
  width: 34px;
  object-fit: contain;
  flex-shrink: 0;
}
.footer .f-desc {
  max-width: 290px;
  line-height: 1.66;
  color: var(--gray);
}
.footer h4 {
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 15px;
}
.footer ul li {
  margin-bottom: 10px;
}
.footer ul li a {
  color: var(--gray);
}
.footer ul li a:hover {
  color: var(--blue-700);
}
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-2);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal[data-d] {
  transition-delay: calc(var(--d, 0) * 0.09s);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  /* 移动端/平板保留 hero 网格动画背景，仅降低不透明度以保证文字可读性 */
  .hero-visual {
    opacity: 0.55;
  }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats .stat:nth-child(3)::before,
  .stats .stat:nth-child(odd)::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .product,
  .product.reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .product.reverse .p-media { order: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 22px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform 0.35s ease;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open {
    transform: translateY(0);
  }
  .nav-links a {
    padding: 14px 8px;
    font-size: 17px;
    border-radius: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-cta {
    margin: 12px 0 0;
    text-align: center;
  }
  .nav-toggle { display: flex; }
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat::before { display: none !important; }
  .form-row.two { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-actions .btn { width: 100%; }
  .container { padding: 0 18px; }
}
