/* ============================================================
   Shenzhen Taoxin Automation Technology Co., Ltd.
   Industrial-tech theme
   ============================================================ */

:root {
  --bg: #0a1222;
  --bg-soft: #0e1830;
  --surface: #13203c;
  --surface-2: #1a2a4a;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.28);
  --text: #e9eef7;
  --text-soft: #b6c2d6;
  --muted: #8494ad;
  --accent: #ff7a1a;
  --accent-soft: rgba(255, 122, 26, 0.14);
  --accent-2: #38bdf8;
  --ok: #34d399;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px rgba(2, 8, 23, 0.45);
  --font: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --header-h: 74px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.55rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.55rem); }
h3 { font-size: 1.22rem; }

.lead {
  color: var(--text-soft);
  font-size: 1.08rem;
  max-width: 640px;
}

.section { padding: 92px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { margin: 14px 0 16px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, #ff8a2a, #f26100);
  color: #fff;
  box-shadow: 0 12px 30px rgba(255, 122, 26, 0.32);
}
.btn-primary:hover { box-shadow: 0 16px 38px rgba(255, 122, 26, 0.42); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--accent);
}

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 18, 34, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.brand img {
  height: 44px;
  width: auto;
  border-radius: 8px;
  background: #fff;
  padding: 3px 6px;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-text strong a:hover { color: var(--accent); }
.brand-text span {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-link {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  white-space: nowrap;
}
.brand-link:hover { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 9px 15px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--text-soft);
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: rgba(255, 122, 26, 0.12);
}

.nav-cta { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.lang-switch:hover {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent-soft);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 82% 18%, rgba(255, 122, 26, 0.16), transparent 62%),
    radial-gradient(760px 420px at 8% 82%, rgba(56, 189, 248, 0.12), transparent 60%),
    linear-gradient(180deg, #0b1428 0%, var(--bg) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 78%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  margin: 18px 0 20px;
}
.hero-copy h1 .hl {
  background: linear-gradient(120deg, #ff9a3d, #ff6a00 55%, #ffb36b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy .lead { margin-bottom: 32px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 520px;
}
.stat {
  background: rgba(19, 32, 60, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 15px 16px;
}
.stat b {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.stat span { font-size: 0.8rem; color: var(--muted); }

/* hero visual */
.hero-visual {
  position: relative;
  min-height: 460px;
}
.hero-card {
  position: absolute;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card.c1 { width: 62%; aspect-ratio: 1/1; top: 0; right: 6%; z-index: 2; }
.hero-card.c2 { width: 44%; aspect-ratio: 1/1; bottom: 8%; left: 0; z-index: 3; }
.hero-card.c3 { width: 40%; aspect-ratio: 4/3.2; top: 34%; right: 0; z-index: 1; opacity: 0.95; }

.hero-badge {
  position: absolute;
  z-index: 4;
  bottom: 22%;
  right: 2%;
  background: linear-gradient(140deg, rgba(255, 122, 26, 0.95), rgba(242, 97, 0, 0.95));
  color: #fff;
  padding: 13px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 14px 32px rgba(255, 122, 26, 0.35);
  line-height: 1.35;
}
.hero-badge small { display: block; font-weight: 500; opacity: 0.9; font-size: 0.74rem; }

/* ---------- Trust strip ---------- */
.trust {
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 26px 0;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 40px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.93rem;
}
.trust-item .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  flex: none;
}

/* ---------- Cards / grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.card {
  background: linear-gradient(180deg, rgba(26, 42, 74, 0.55), rgba(19, 32, 60, 0.85));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  height: 100%;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 122, 26, 0.45);
  box-shadow: 0 22px 46px rgba(2, 8, 23, 0.5);
}
.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-soft); font-size: 0.95rem; }

/* category cards */
.cat-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 220px at 90% 10%, rgba(255, 122, 26, 0.18), transparent 60%),
    linear-gradient(180deg, transparent 30%, rgba(10, 18, 34, 0.88) 100%);
  pointer-events: none;
}
.cat-card > * { position: relative; z-index: 1; }
.cat-card .count {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cat-card h3 { margin: 8px 0 6px; font-size: 1.32rem; }
.cat-card p { color: var(--text-soft); font-size: 0.92rem; }

/* product cards */
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 122, 26, 0.45);
  box-shadow: 0 22px 46px rgba(2, 8, 23, 0.5);
}
.product-card .thumb {
  aspect-ratio: 1/1;
  background: #f3f5f8;
  overflow: hidden;
}
.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.product-card:hover .thumb img { transform: scale(1.06); }
.product-card .body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-card .tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.product-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.45;
}
.product-card p {
  color: var(--muted);
  font-size: 0.88rem;
  flex: 1;
}
.product-card .link {
  margin-top: 6px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- About split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  min-height: 380px;
  background:
    radial-gradient(500px 300px at 70% 20%, rgba(255, 122, 26, 0.2), transparent 60%),
    linear-gradient(150deg, #16264a, #0c1730);
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 380px;
}
.split-media .overlay {
  position: absolute;
  inset: auto 18px 18px 18px;
  background: rgba(10, 18, 34, 0.82);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 16px 18px;
  backdrop-filter: blur(10px);
}
.split-media .overlay b { display: block; font-size: 1.05rem; margin-bottom: 3px; }
.split-media .overlay span { color: var(--text-soft); font-size: 0.88rem; }

.check-list { display: grid; gap: 13px; margin: 26px 0 30px; }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-soft);
}
.check-list li svg { flex: none; margin-top: 3px; color: var(--ok); }

/* ---------- Stats band ---------- */
.stats-band {
  background:
    radial-gradient(800px 300px at 20% 0%, rgba(255, 122, 26, 0.14), transparent 55%),
    var(--bg-soft);
  border-block: 1px solid var(--line);
  padding: 56px 0;
}
.stats-band .grid-4 { gap: 18px; }
.stat-big {
  text-align: center;
  padding: 26px 16px;
  border-radius: var(--radius);
  background: rgba(19, 32, 60, 0.55);
  border: 1px solid var(--line);
}
.stat-big b {
  display: block;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #fff, #ffb36b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-big span { color: var(--muted); font-size: 0.92rem; font-weight: 600; }

/* ---------- Process / steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  position: relative;
  padding: 28px 22px 24px;
  border-radius: var(--radius);
  background: rgba(19, 32, 60, 0.5);
  border: 1px solid var(--line);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-size: 2.15rem;
  font-weight: 800;
  color: rgba(255, 122, 26, 0.5);
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 12px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-soft); font-size: 0.92rem; }

/* ---------- CTA band ---------- */
.cta-band {
  padding: 84px 0;
  background:
    radial-gradient(900px 420px at 78% 30%, rgba(255, 122, 26, 0.2), transparent 58%),
    radial-gradient(700px 380px at 12% 80%, rgba(56, 189, 248, 0.12), transparent 58%),
    linear-gradient(180deg, #0d1930, #0a1222);
  border-top: 1px solid var(--line);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}
.cta-inner h2 { margin-bottom: 12px; }
.cta-inner .lead { margin: 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 74px 0 60px;
  background:
    radial-gradient(760px 340px at 80% 0%, rgba(255, 122, 26, 0.14), transparent 60%),
    linear-gradient(180deg, #0c1730, var(--bg));
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin: 14px 0 14px; }
.crumbs {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
}
.crumbs a { color: var(--text-soft); }
.crumbs a:hover { color: var(--accent); }

/* ---------- Filter bar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}
.filter-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.18s ease;
}
.filter-btn:hover { border-color: var(--accent); color: #fff; }
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.info-card {
  background: linear-gradient(180deg, rgba(26, 42, 74, 0.6), rgba(19, 32, 60, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.info-card h3 { margin-bottom: 6px; }
.info-card > p { color: var(--text-soft); margin-bottom: 22px; font-size: 0.95rem; }

.info-list { display: grid; gap: 16px; }
.info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.info-item .ico {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.info-item b { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.info-item span, .info-item a { color: var(--text); font-weight: 600; font-size: 0.98rem; word-break: break-word; }
.info-item a:hover { color: var(--accent); }

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.form-card h3 { margin-bottom: 8px; }
.form-card > p { color: var(--text-soft); margin-bottom: 24px; font-size: 0.95rem; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 0.04em;
}
.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(10, 18, 34, 0.6);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}
.form-field textarea { min-height: 132px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-field select option { background: var(--surface); color: var(--text); }

.form-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--muted);
}
.form-success {
  display: none;
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 9px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: var(--ok);
  font-weight: 600;
  font-size: 0.93rem;
}
.form-success.show { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: #070e1c;
  border-top: 1px solid var(--line);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 0.95fr 1.1fr;
  gap: 34px;
  padding-bottom: 44px;
}
.footer-brand img {
  height: 46px;
  background: #fff;
  padding: 3px 7px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.footer-brand p {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 320px;
}
.site-footer h4 {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 18px;
}
.footer-links { display: grid; gap: 11px; }
.footer-links a {
  color: var(--muted);
  font-size: 0.93rem;
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--accent); }
.footer-contact li {
  color: var(--muted);
  font-size: 0.93rem;
  margin-bottom: 11px;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.footer-contact li svg { flex: none; margin-top: 4px; color: var(--accent); }
.footer-contact a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.badge {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .brand-text span { display: none; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(10, 18, 34, 0.97);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 14px 5% 20px;
    gap: 4px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .main-nav.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav a { padding: 13px 12px; font-size: 1rem; }
  .nav-toggle { display: flex; }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-visual {
    min-height: 0;
    max-width: 620px;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: auto auto;
    gap: 14px;
  }
  .hero-card { position: relative; inset: auto; }
  .hero-card.c1 { grid-row: 1 / 3; width: auto; aspect-ratio: 4/4.4; }
  .hero-card.c2, .hero-card.c3 { width: auto; aspect-ratio: 4/3; }
  .hero-badge { position: relative; inset: auto; grid-column: 1 / -1; justify-self: start; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 68px 0; }
  .nav-cta .btn { display: none; }
  .hero { padding: 62px 0 58px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 9px; }
  .stat { padding: 12px 10px; }
  .stat b { font-size: 1.25rem; }
  .stat span { font-size: 0.72rem; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { min-height: 330px; }
  .hero-badge { bottom: 16%; padding: 11px 14px; font-size: 0.8rem; }
  .cta-inner { text-align: center; justify-content: center; }
  .cta-inner .lead { margin-inline: auto; }
}

@media (max-width: 420px) {
  .hero-stats { grid-template-columns: 1fr 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
}
