/* ES Private PKI Server — EncryptionSign Inc. product site */
:root {
  --navy-950: #071325;
  --navy-900: #0b1a30;
  --navy-800: #11243f;
  --navy-700: #1a3357;
  --sky: #0aa5e0;
  --sky-soft: #e6f6fd;
  --blue: #0a6fa8;
  --blue-hover: #085d8d;
  --ink: #0f1b2d;
  --text: #2a3950;
  --muted: #5a6a82;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --ok: #18a058;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 24px rgba(15, 27, 45, .06);
  --shadow-lg: 0 24px 60px rgba(7, 19, 37, .18);
  --container: 1180px;
  --gutter: 24px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="zh-CN"] body { line-height: 1.75; }
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.35rem); font-weight: 750; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); font-weight: 720; letter-spacing: -.02em; }
h3 { font-size: 1.18rem; font-weight: 680; }
h4 { font-size: 1rem; font-weight: 680; }
html[lang="zh-CN"] h1, html[lang="zh-CN"] h2 { letter-spacing: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
code, .mono { font-family: var(--mono); font-size: .92em; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--navy-900); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, .9);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand img { height: 32px; width: auto; }
.brand-product {
  font-size: .78rem; font-weight: 650; color: var(--muted); letter-spacing: .02em;
  padding-left: 12px; border-left: 1px solid var(--line); line-height: 1.25; white-space: nowrap;
}
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a {
  color: var(--text); font-size: .95rem; font-weight: 550; padding: 8px 12px; border-radius: 8px;
}
.site-nav a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--blue); background: var(--sky-soft); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600;
  color: var(--text); padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px;
}
.lang-switch:hover { text-decoration: none; border-color: #c8d3e1; color: var(--ink); }
.lang-switch svg { width: 16px; height: 16px; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .ico-close { display: none; }
.nav-open .nav-toggle .ico-open { display: none; }
.nav-open .nav-toggle .ico-close { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: .97rem; font-weight: 650; line-height: 1.2;
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
.btn-accent { background: var(--sky); color: var(--navy-950); }
.btn-accent:hover { background: #2bb6ec; color: var(--navy-950); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .32); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: #b9c6d6; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero, .page-hero, .cta-band {
  position: relative; overflow: hidden; color: #c9d6e8;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(10, 165, 224, .28), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(10, 165, 224, .14), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
}
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
}
.hero h1, .page-hero h1, .cta-band h2 { color: #fff; }
.hero .container, .page-hero .container, .cta-band .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.hero-lead { font-size: 1.15rem; color: #b8c7dc; max-width: 34em; margin-bottom: 30px; }
.hero h1 .accent, .page-hero h1 .accent { color: var(--sky); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
html[lang="zh-CN"] .eyebrow { letter-spacing: .06em; }
.hero .eyebrow, .page-hero .eyebrow {
  color: var(--sky); background: rgba(10, 165, 224, .12); border: 1px solid rgba(10, 165, 224, .3);
  padding: 6px 12px; border-radius: 999px;
}
.hero-note { margin-top: 22px; font-size: .9rem; color: #8fa3bf; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 16px; height: 16px; color: var(--sky); }
.hero-visual { position: relative; }
.hero-visual svg { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .35)); }

.page-hero { padding: 76px 0 72px; }
.page-hero .lead { font-size: 1.12rem; color: #b8c7dc; max-width: 46em; margin: 0; }
.page-hero h1 { max-width: 20em; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lead, .lead { font-size: 1.1rem; color: var(--muted); }
.section-head p:last-child { margin-bottom: 0; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); height: 100%;
}
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); margin-bottom: 0; }
.card p + p, .card p + ul { margin-top: .8em; }
.card ul { color: var(--muted); margin: .8em 0 0; }
.card-link { display: block; color: inherit; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.card-link:hover { text-decoration: none; color: inherit; border-color: #b7d9ec; transform: translateY(-2px); box-shadow: 0 2px 4px rgba(15, 27, 45, .06), 0 16px 36px rgba(15, 27, 45, .09); }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 650; color: var(--blue); font-size: .95rem; }
.card .more svg { width: 16px; height: 16px; }
.ico {
  width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--sky-soft); color: var(--blue); margin-bottom: 18px; flex-shrink: 0;
}
.ico svg { width: 24px; height: 24px; }
.ico-dark { background: var(--navy-800); color: var(--sky); }

/* Standards strip */
.standards { border-bottom: 1px solid var(--line); background: #fff; }
.standards-inner { display: flex; align-items: center; gap: 20px 36px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px; }
.standards-label { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.standards ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line); font-size: .88rem; font-weight: 650; color: var(--ink);
}
.chip small { font-family: var(--mono); font-weight: 500; color: var(--muted); font-size: .78rem; }

/* Checklists */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sky-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a6fa8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checks li strong { color: var(--ink); }
.checks.on-dark li { color: #c9d6e8; }
.checks.on-dark li::before { background-color: rgba(10, 165, 224, .16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230aa5e0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.checks-2 { columns: 2; column-gap: 32px; }
.checks-2 li { break-inside: avoid; }

/* Split feature rows */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split + .split { margin-top: 96px; }
.split.reverse > :first-child { order: 2; }
.split h2 { margin-bottom: .45em; }
.split .lead { margin-bottom: 1.4em; }
.panel {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); color: #c9d6e8;
  border-radius: 18px; padding: 30px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.panel h4 { color: #fff; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.panel-light { background: #fff; color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow); }
.panel-light h4 { color: var(--ink); }

/* Code / terminal block */
.terminal {
  background: var(--navy-950); border-radius: 14px; border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.terminal-bar { display: flex; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.terminal-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2a3b55; }
.terminal pre {
  margin: 0; padding: 20px 22px; overflow-x: auto; font-family: var(--mono); font-size: .86rem;
  line-height: 1.7; color: #d4e0f0;
}
.terminal .c { color: #6f84a3; }
.terminal .p { color: var(--sky); }
.terminal .s { color: #7fd8a8; }

/* Key-value rows in panels */
.kv { list-style: none; margin: 0; padding: 0; }
.kv li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: .93rem; }
.kv li:last-child { border-bottom: 0; }
.kv span:last-child { color: #fff; font-weight: 600; text-align: right; }
.panel-light .kv li { border-bottom-color: var(--line); }
.panel-light .kv span:last-child { color: var(--ink); }
.status { display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 3px rgba(46, 204, 113, .2); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px; box-shadow: var(--shadow); }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px;
  background: var(--navy-900); color: var(--sky); font-family: var(--mono); font-weight: 700; font-size: .92rem; margin-bottom: 16px;
}
.steps h3 { font-size: 1.08rem; }
.steps p { color: var(--muted); margin: 0; font-size: .96rem; }

/* Spec table */
.spec { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 16px 22px; border-bottom: 1px solid var(--line); font-size: .96rem; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { width: 28%; color: var(--ink); font-weight: 650; background: #fafcfe; }
.spec td { color: var(--text); }
.spec td .chip { margin: 2px 4px 2px 0; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }

/* Diagram figure */
.figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.figure-scroll-inner { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.figure-scroll-inner svg { min-width: 760px; width: 100%; height: auto; }
.spacer { height: 32px; }
.panel h4 svg { width: 20px; height: 20px; color: var(--sky); flex-shrink: 0; }
.panel-light h4 svg { color: var(--blue); }
.form-title { font-size: 1.5rem; }
.form-intro { margin-bottom: 20px; }
.figure figcaption { margin-top: 14px; font-size: .9rem; color: var(--muted); text-align: center; }

/* Stats / facts */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { background: #fff; padding: 26px 24px; }
.fact strong { display: block; font-size: 1.45rem; color: var(--ink); line-height: 1.2; margin-bottom: 6px; letter-spacing: -.01em; }
.fact span { color: var(--muted); font-size: .94rem; }

/* Anchor nav for long pages */
.subnav { position: sticky; top: 72px; z-index: 40; background: rgba(255, 255, 255, .95); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.subnav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; white-space: nowrap; padding: 7px 13px; border-radius: 8px; font-size: .92rem; font-weight: 600; color: var(--muted); }
.subnav a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
[id] { scroll-margin-top: 140px; }

/* CTA band */
.cta-band { padding: 80px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-band h2 { margin-bottom: .35em; }
.cta-band p { color: #b8c7dc; margin: 0; font-size: 1.08rem; max-width: 40em; }
.cta-band .btn-row { flex-shrink: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 18px; align-items: flex-start; }
.contact-card .ico { margin-bottom: 0; }
.contact-card h3 { margin-bottom: .2em; font-size: 1.05rem; }
.contact-card p { margin: 0; }
.contact-card .big { font-size: 1.12rem; font-weight: 650; overflow-wrap: anywhere; }
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 6px; }
.field label .req { color: #c0392b; margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .98rem; color: var(--ink); background: #fff;
  border: 1px solid #cfd8e3; border-radius: 10px; padding: 11px 14px; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(10, 165, 224, .15); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c0392b; }
.field .error { display: none; color: #c0392b; font-size: .85rem; margin-top: 5px; }
.field.invalid .error { display: block; }
.form-note { font-size: .88rem; color: var(--muted); margin: 0; }
.form-status { display: none; padding: 14px 16px; border-radius: 10px; background: var(--sky-soft); color: var(--navy-800); font-size: .94rem; }
.form-status.show { display: block; }

/* Values / about */
.quote { font-size: 1.35rem; line-height: 1.55; color: var(--ink); font-weight: 600; border-left: 4px solid var(--sky); padding-left: 24px; margin: 0; }
html[lang="zh-CN"] .quote { font-size: 1.25rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 64px 0 28px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr) 1.3fr; gap: 32px; }
.footer-brand img { height: 30px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: var(--muted); max-width: 22em; }
.site-footer h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--blue); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; margin-top: 3px; }
.footer-contact a { word-break: break-word; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer-bottom a { color: var(--muted); }

/* 404 */
.notfound { min-height: 56vh; display: flex; align-items: center; padding: 96px 0; }
.notfound .code { font-family: var(--mono); font-size: 1rem; font-weight: 700; color: var(--blue); background: var(--sky-soft); display: inline-block; padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .brand-product { display: none; }
  .header-inner { gap: 16px; }
  .site-nav a { padding: 8px 9px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px var(--gutter) 18px; box-shadow: 0 18px 30px rgba(15, 27, 45, .08);
  }
  .nav-open .site-nav { display: flex; }
  .site-nav a { padding: 12px 10px; font-size: 1rem; }
  .site-nav .nav-cta { display: block; margin-top: 8px; text-align: center; background: var(--blue); color: #fff; }
  .site-nav .nav-cta:hover { background: var(--blue-hover); color: #fff; }
  .header-actions { margin-left: auto; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 64px; padding-bottom: 72px; }
  .hero-visual { max-width: 560px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .steps.steps-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .split.reverse > :first-child { order: 0; }
  .split + .split { margin-top: 72px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .section { padding: 72px 0; }
}
@media (min-width: 961px) { .site-nav .nav-cta { display: none; } }
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 15.5px; }
  .brand img { height: 28px; }
  .grid-2, .grid-3, .grid-4, .steps, .steps.steps-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .checks-2 { columns: 1; }
  .facts { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .page-hero { padding: 56px 0 52px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 36px; }
  .hero-lead { font-size: 1.05rem; }
  .btn-row .btn { flex: 1 1 auto; }
  .spec th, .spec td { display: block; width: 100%; padding: 12px 16px; }
  .spec th { border-bottom: 0; padding-bottom: 2px; background: #fff; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-contact-col { grid-column: 1 / -1; }
  .figure { padding: 16px; }
  .panel { padding: 22px; }
  .quote { font-size: 1.15rem; }
  .contact-card { flex-direction: column; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card-link { transition: none; }
  .btn:hover, .card-link:hover { transform: none; }
}
