:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f2f4f7;
  --border: rgba(20, 24, 33, 0.10);
  --ink: #26292e;
  --muted: #626873;
  --charcoal: #3a3a3a;
  --accent: #e8991e;
  --accent-strong: #cf850f;
  --accent-soft: #fbedd3;
  --radius: 16px;
  --maxw: 1160px;
  --shadow-sm: 0 2px 10px rgba(24, 28, 35, 0.06);
  --shadow: 0 18px 44px rgba(24, 28, 35, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }
img, svg, video { max-width: 100%; height: auto; }
button, input, select, textarea { max-width: 100%; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(620px 420px at 12% -5%, rgba(232, 153, 30, 0.10), transparent 60%),
    radial-gradient(680px 480px at 95% 6%, rgba(58, 58, 58, 0.05), transparent 60%);
}

header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
header.scrolled { border-color: var(--border); background: rgba(255, 255, 255, 0.92); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800; font-size: 1.06rem; color: var(--charcoal);
}
.brand img { width: 42px; height: 42px; display: block; }
.brand .wm { line-height: 1; }
.brand .wm b { color: var(--accent); font-weight: 800; }
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: .95rem;
  cursor: pointer; border: none; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(232, 153, 30, 0.28); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(232, 153, 30, 0.36); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.menu-toggle { display: none; background: none; border: none; color: var(--ink); cursor: pointer; }
.mobile-sticky-cta { display: none; }
.body-lock, body.nav-open { overflow: hidden; }

.hero {
  padding: 92px 0 76px; text-align: center; position: relative;
  background-image: linear-gradient(rgba(255,255,255,0.55), rgba(255,255,255,0.68)), url('../hero_background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; }
.hero-map { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .88; }
.map-line {
  position: absolute; height: 2px; width: 340px; transform-origin: left center;
  background: linear-gradient(90deg, transparent, rgba(232,153,30,.62), rgba(34,103,164,.42), transparent);
}
.line-a { left: 13%; top: 32%; transform: rotate(18deg); }
.line-b { right: 11%; top: 34%; transform: rotate(142deg); }
.line-c { left: 39%; top: 70%; transform: rotate(-22deg); }
.map-node {
  position: absolute; display: grid; place-items: center; min-width: 86px; height: 38px; padding: 0 13px;
  border-radius: 999px; background: rgba(255,255,255,.78); border: 1px solid rgba(20,24,33,.12);
  box-shadow: 0 12px 28px rgba(24,28,35,.10); backdrop-filter: blur(10px);
  color: var(--charcoal); font-size: .78rem; font-weight: 700;
}
.map-node::before {
  content: ""; position: absolute; left: 10px; width: 8px; height: 8px; border-radius: 50%;
  background: #2267a4; box-shadow: 0 0 0 5px rgba(34,103,164,.12);
}
.map-node b { padding-left: 13px; }
.node-shop { left: 11%; top: 26%; }
.node-crm { right: 13%; top: 25%; }
.node-billing { left: 18%; bottom: 19%; }
.node-chat { right: 19%; bottom: 22%; }
.node-crm::before, .node-chat::before { background: var(--accent); box-shadow: 0 0 0 5px rgba(232,153,30,.15); }
.map-packet {
  position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 7px rgba(232,153,30,.16), 0 0 22px rgba(232,153,30,.55);
}
.packet-a { left: 18%; top: 35%; animation: packetA 5.5s linear infinite; }
.packet-b { right: 20%; bottom: 26%; animation: packetB 6.5s linear infinite; }
@keyframes packetA {
  0% { transform: translate3d(0,0,0); opacity: 0; }
  10%, 85% { opacity: 1; }
  100% { transform: translate3d(420px,160px,0); opacity: 0; }
}
@keyframes packetB {
  0% { transform: translate3d(0,0,0); opacity: 0; }
  12%, 86% { opacity: 1; }
  100% { transform: translate3d(-360px,-165px,0); opacity: 0; }
}
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; margin-bottom: 26px;
  border: 1px solid var(--border); border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm);
  font-size: .82rem; color: var(--muted); font-weight: 500;
}
.badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(232,153,30,.5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(232,153,30,.5);} 70%{ box-shadow: 0 0 0 10px rgba(232,153,30,0);} 100%{ box-shadow: 0 0 0 0 rgba(232,153,30,0);} }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); font-weight: 800; margin-bottom: 22px; }
.hero h1 .grad { color: var(--accent); }
.hero p.lead { font-size: clamp(1.05rem, 2.2vw, 1.26rem); color: var(--muted); max-width: 680px; margin: 0 auto 36px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; margin-top: 64px; }
.stat h3 { font-size: 2.2rem; color: var(--accent); }
.stat p { color: var(--muted); font-size: .9rem; }

.reveal { transition: opacity .7s ease, transform .7s ease; }
.js .reveal { opacity: 0; transform: translateY(28px); }
.js .reveal.visible { opacity: 1; transform: none; }
.js .hero .reveal {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  body { padding-bottom: 76px; }
  body.nav-open { overflow: hidden; }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .menu-toggle.open svg line:nth-child(1) { transform: translateY(6px) rotate(45deg); transform-origin: center; }
  .menu-toggle.open svg line:nth-child(2) { opacity: 0; }
  .menu-toggle.open svg line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); transform-origin: center; }
  .nav-links.open {
    display: flex; flex-direction: column; position: fixed; top: 74px; left: 0; right: 0;
    max-height: calc(100vh - 74px); overflow-y: auto;
    background: rgba(255,255,255,.98); backdrop-filter: blur(12px); padding: 18px 24px 96px; gap: 8px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .nav-links.open a { min-height: 46px; display: flex; align-items: center; padding: 10px 12px; border-radius: 12px; }
  .nav-links.open a:hover { background: var(--bg-soft); }
  .nav-links.open .has-dropdown { width: 100%; }
  .nav-links.open .dropdown a { min-height: 42px; font-size: .9rem; }
  .hero .hero-cta .btn-primary { display: none; }
  .mobile-sticky-cta {
    position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 60;
    display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 14px;
    background: var(--accent); color: #fff; font-weight: 800; box-shadow: 0 14px 32px rgba(232,153,30,.34);
  }
  body.nav-open .mobile-sticky-cta { display: none; }
}

@media (max-width: 680px) {
  .container { padding: 0 16px; }
  .nav { height: 64px; }
  .brand { min-width: 0; gap: 9px; font-size: .98rem; }
  .brand img { width: 38px; height: 38px; flex: none; }
  .brand .wm { display: none; }
  .nav-links.open { top: 64px; padding: 18px 16px 96px; max-height: calc(100vh - 64px); overflow-y: auto; }
  .nav-links.open a { width: 100%; }
  .nav-links.open .btn { justify-content: center; }
  .dropdown { padding-left: 8px; }
  .dropdown a { white-space: normal; }
  .hero {
    padding: 42px 0 30px;
    background-position: center;
    background-image: linear-gradient(rgba(255,255,255,0.72), rgba(255,255,255,0.84)), url('../hero_background-mobile.webp');
  }
  .hero-map { display: none; }
  .map-line, .map-node { display: none; }
  .packet-a { left: 8%; top: 28%; }
  .packet-b { right: 12%; bottom: 30%; }
  .hero h1 {
    font-size: clamp(1.9rem, 10vw, 2.45rem);
    margin-bottom: 14px;
  }
  .hero h1 br { display: none; }
  .hero p.lead {
    font-size: .96rem;
    line-height: 1.55;
    margin-bottom: 18px;
  }
  .badge {
    max-width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
    margin-bottom: 14px;
  }
  .hero-cta { align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-stats { display: none; }
}
