/* Product pages (CRM & ERP, messenger, Truvatruv): one layout, the accent
   colour comes from the variables below. */
.prod {
  --p:#00c48c; --p-rgb:0,196,140; --p-dark:#00b07e; --p-text:#00a876; --p-deep:#007a5a; --p-tint:#f0fdf8;
  --p-hero:linear-gradient(135deg,#0a1628,#0d2b1a,#071a10);
}
.prod.prod-violet {
  --p:#8b5cf6; --p-rgb:139,92,246; --p-dark:#7c3aed; --p-text:#7c3aed; --p-deep:#6d28d9; --p-tint:#f5f3ff;
  --p-hero:linear-gradient(135deg,#0d0a24,#1e1147,#0a0720);
}
.prod.prod-blue {
  --p:#3b82f6; --p-rgb:59,130,246; --p-dark:#2563eb; --p-text:#2563eb; --p-deep:#1d4ed8; --p-tint:#eff6ff;
  --p-hero:linear-gradient(135deg,#0a1628,#0b1f45,#071233);
}
/* ── CRM + ERP PAGE STYLES (shares the erp-* look and erp.js) ── */
.erp-hero {
  background: var(--p-hero);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.erp-hero::before {
  content:'';
  position:absolute;inset:0;
  background: radial-gradient(ellipse 70% 60% at 60% 40%, rgba(var(--p-rgb),.13) 0%, transparent 70%),
              radial-gradient(ellipse 40% 50% at 80% 70%, rgba(var(--p-rgb),.07) 0%, transparent 60%);
  pointer-events:none;
}
.hero-bg-grid { position:absolute;inset:0;pointer-events:none; }
.erp-hero-inner {
  max-width:1160px; margin:0 auto; padding:0 24px;
  display:grid; grid-template-columns:1fr 420px; gap:60px; align-items:center;
  position:relative;z-index:1;
}
@media(max-width:900px){
  .erp-hero-inner{grid-template-columns:1fr;gap:40px;}
  .erp-hero-svg{display:none;}
}
.erp-hero-tag {
  display:inline-flex; align-items:center; gap:8px;
  background:rgba(var(--p-rgb),.12); border:1px solid rgba(var(--p-rgb),.3);
  color:var(--p); font-size:.78rem; font-weight:700; letter-spacing:.08em;
  text-transform:uppercase; padding:6px 14px; border-radius:100px; margin-bottom:22px;
}
.erp-hero h1 {
  font-size:clamp(2rem,4vw,3rem); font-weight:800; color:#fff;
  line-height:1.18; margin:0 0 10px;
}
.erp-hero h1 em { color:var(--p); font-style:normal; }
.erp-hero-sub {
  color:rgba(255,255,255,.72); font-size:1.05rem; line-height:1.65;
  max-width:520px; margin:0 0 36px;
}
.erp-hero-btns { display:flex; gap:14px; flex-wrap:wrap; }
.erp-btn-primary {
  background:var(--p); color:#fff; font-weight:700; font-size:.95rem;
  padding:13px 28px; border-radius:10px; text-decoration:none;
  transition:background .18s,transform .18s;
}
.erp-btn-primary:hover { background:var(--p-dark); transform:translateY(-2px); color:#fff; }
.erp-btn-outline {
  border:1px solid rgba(var(--p-rgb),.45); color:var(--p); font-weight:600;
  font-size:.95rem; padding:13px 28px; border-radius:10px; text-decoration:none;
  transition:all .18s;
}
.erp-btn-outline:hover { background:rgba(var(--p-rgb),.1); color:var(--p); }

/* ── SVG TOPOLOGY ── */
.erp-hero-svg svg { width:100%;height:auto;max-width:400px; }

/* ── PACKAGES ── */
.erp-pkg-section {
  background:#fff; padding:72px 0 64px;
  border-bottom:1px solid rgba(0,0,0,.07);
}
.erp-section-tag {
  display:inline-flex; align-items:center; gap:7px;
  background:rgba(var(--p-rgb),.08); border:1px solid rgba(var(--p-rgb),.2);
  color:var(--p-text); font-size:.75rem; font-weight:700; letter-spacing:.09em;
  text-transform:uppercase; padding:5px 13px; border-radius:100px; margin-bottom:16px;
}
.erp-section-h {
  font-size:clamp(1.55rem,2.8vw,2.1rem); font-weight:800;
  color:#0f172a; margin:0 0 48px; line-height:1.25;
}
.erp-inner { max-width:1160px; margin:0 auto; padding:0 24px; }
.erp-pkg-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:24px;
}
@media(max-width:820px){ .erp-pkg-grid{grid-template-columns:1fr;max-width:400px;} }
.erp-pkg-card {
  border:1.5px solid rgba(0,0,0,.09); border-radius:18px; padding:32px 28px;
  background:#fff; position:relative; transition:box-shadow .2s,transform .2s;
  display:flex; flex-direction:column;
}
.erp-pkg-card:hover { box-shadow:0 8px 30px rgba(var(--p-rgb),.12); transform:translateY(-3px); }
.erp-pkg-card.featured {
  border-color:var(--p);
  background:linear-gradient(160deg,var(--p-tint),#fff);
  box-shadow:0 4px 24px rgba(var(--p-rgb),.15);
}
.erp-pkg-badge {
  position:absolute; top:-13px; left:50%; transform:translateX(-50%);
  background:var(--p); color:#fff; font-size:.72rem; font-weight:700;
  letter-spacing:.07em; text-transform:uppercase; padding:4px 14px; border-radius:100px;
  white-space:nowrap;
}
.erp-pkg-name { font-size:1.2rem; font-weight:800; color:#0f172a; margin:0 0 4px; }
.erp-pkg-cat {
  display:inline-block; background:rgba(var(--p-rgb),.1); color:var(--p-deep);
  font-size:.75rem; font-weight:600; padding:3px 10px; border-radius:100px;
  margin-bottom:16px;
}
.erp-pkg-desc { color:#475569; font-size:.93rem; line-height:1.6; margin:0 0 24px; }
.erp-pkg-btn {
  display:block; text-align:center; background:var(--p); color:#fff;
  font-weight:700; font-size:.9rem; padding:11px 20px; border-radius:9px;
  text-decoration:none; transition:background .18s; margin-top:auto;
}
.erp-pkg-btn:hover { background:var(--p-dark); color:#fff; }
.erp-pkg-card.featured .erp-pkg-btn { background:#0f172a; }
.erp-pkg-card.featured .erp-pkg-btn:hover { background:#1e293b; }

/* ── DETAILS TOGGLE ── */
.erp-toggle-wrap { padding:16px 0 0; text-align:center; }
.erp-toggle-btn {
  display:inline-flex; align-items:center; gap:9px;
  background:none; border:1.5px solid rgba(var(--p-rgb),.35); color:var(--p-text);
  font-size:.92rem; font-weight:700; padding:11px 26px; border-radius:10px;
  cursor:pointer; transition:all .2s;
}
.erp-toggle-btn:hover { background:rgba(var(--p-rgb),.07); border-color:var(--p); }
.erp-toggle-btn svg { transition:transform .35s; }
.erp-toggle-btn.open svg { transform:rotate(180deg); }
.erp-details-wrap {
  max-height:0; overflow:hidden;
  transition:max-height .55s cubic-bezier(.4,0,.2,1);
}
.erp-details-wrap.open { max-height:12000px; }

/* ── FEATURE BLOCKS ── */
.erp-steps-section { background:#f8fafc; padding:72px 0; }
.erp-steps-grid {
  display:grid; grid-template-columns:repeat(2,1fr); gap:28px;
}
@media(max-width:720px){ .erp-steps-grid{grid-template-columns:1fr;} }
.erp-step-card {
  background:#fff; border-radius:18px; padding:32px;
  border:1px solid rgba(0,0,0,.07); transition:box-shadow .2s;
}
.erp-step-card:hover { box-shadow:0 6px 24px rgba(0,0,0,.07); }
.erp-step-tag {
  display:inline-block; color:var(--p); font-size:.72rem; font-weight:700;
  letter-spacing:.1em; text-transform:uppercase; margin-bottom:12px;
}
.erp-step-h { font-size:1.18rem; font-weight:800; color:#0f172a; margin:0 0 10px; }
.erp-step-p { color:#64748b; font-size:.93rem; line-height:1.6; margin:0 0 20px; }
.erp-step-feats { display:flex; flex-direction:column; gap:8px; }
.erp-step-feat {
  display:flex; align-items:center; gap:9px;
  font-size:.85rem; color:#334155; font-weight:500;
}
.erp-step-feat::before {
  content:''; width:7px; height:7px; border-radius:50%;
  background:var(--p); flex-shrink:0;
}

/* ── MODULES GRID ── */
.erp-modules-section { background:#fff; padding:72px 0; }
.erp-mod-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:22px;
}
@media(max-width:820px){ .erp-mod-grid{grid-template-columns:repeat(2,1fr);} }
@media(max-width:520px){ .erp-mod-grid{grid-template-columns:1fr;} }
.erp-mod-card {
  background:#f8fafc; border-radius:14px; padding:26px 24px;
  border:1px solid rgba(0,0,0,.06); transition:box-shadow .2s,transform .2s;
}
.erp-mod-card:hover { box-shadow:0 4px 20px rgba(var(--p-rgb),.1); transform:translateY(-2px); }
.erp-mod-icon {
  width:42px; height:42px; background:rgba(var(--p-rgb),.1); border-radius:10px;
  display:flex; align-items:center; justify-content:center; margin-bottom:14px;
}
.erp-mod-h { font-size:1rem; font-weight:700; color:#0f172a; margin:0 0 8px; }
.erp-mod-p { font-size:.87rem; color:#64748b; line-height:1.6; margin:0; }

/* ── STATS ── */
.erp-stats-section {
  background:var(--p-hero);
  padding:72px 0;
}
.erp-stats-header { text-align:center; margin-bottom:52px; }
.erp-stats-header .erp-section-tag {
  background:rgba(var(--p-rgb),.15); border-color:rgba(var(--p-rgb),.35); color:var(--p);
}
.erp-stats-header .erp-section-h { color:#fff; margin-bottom:0; }
.erp-stats-grid {
  display:grid; grid-template-columns:repeat(4,1fr); gap:24px;
}
@media(max-width:720px){ .erp-stats-grid{grid-template-columns:repeat(2,1fr);} }
.erp-stat-card {
  background:rgba(255,255,255,.06); border:1px solid rgba(var(--p-rgb),.18);
  border-radius:16px; padding:32px 24px; text-align:center;
  opacity:0; transform:translateY(20px); transition:opacity .5s,transform .5s;
}
.erp-stat-card.visible { opacity:1; transform:translateY(0); }
.erp-stat-n {
  font-size:2.4rem; font-weight:800; color:var(--p);
  letter-spacing:-.02em; margin-bottom:8px; display:block;
}
.erp-stat-l { color:rgba(255,255,255,.7); font-size:.87rem; font-weight:500; }

/* ── WHY SECTION ── */
.erp-why-section { background:#fff; padding:72px 0; }
.erp-why-grid {
  display:grid; grid-template-columns:repeat(4,1fr); gap:24px; margin-top:40px;
}
@media(max-width:900px){ .erp-why-grid{grid-template-columns:repeat(2,1fr);} }
@media(max-width:540px){ .erp-why-grid{grid-template-columns:1fr;} }
@media(max-width:640px){
  .erp-hero { padding:52px 0 44px; }
  .erp-hero h1 { font-size:clamp(1.6rem,5vw,2.2rem); }
  .erp-section { padding:48px 0; }
  .erp-pkg-section { padding:48px 0; }
  .erp-steps-section { padding:48px 0; }
  .erp-mod-section { padding:48px 0; }
  .erp-stats-section { padding:44px 0; }
  .erp-cta-section { padding:52px 0; }
  .erp-why-section { padding:48px 0; }
  .erp-hero-btns { flex-direction:column; align-items:stretch; }
  .erp-hero-btns .btn { width:100%; justify-content:center; }
  .erp-stat-num { font-size:2rem; }
  .erp-pkg-grid { max-width:100%; }
}
.erp-why-item { display:flex; flex-direction:column; }
.erp-why-num {
  font-size:2rem; font-weight:900; color:rgba(var(--p-rgb),.2);
  line-height:1; margin-bottom:12px;
}
.erp-why-h { font-size:1rem; font-weight:700; color:#0f172a; margin:0 0 8px; }
.erp-why-body { flex:1; margin:0; }
.erp-why-body p { margin:0; color:#64748b; font-size:.9rem; line-height:1.6; min-height:72px; padding-top:2px; }

/* ── CTA SECTION ── */
.erp-cta-section {
  background:linear-gradient(135deg,#2238b2,#4f46e5,#6366f1);
  padding:80px 0; text-align:center;
  position:relative; overflow:hidden;
}
.erp-cta-section::before {
  content:'';
  position:absolute; inset:0; pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size:48px 48px;
}
.erp-cta-section > * { position:relative; z-index:1; }
.erp-inner.cta-inner { position:relative; z-index:1; }
.erp-cta-h {
  font-size:clamp(1.5rem,3vw,2.2rem); font-weight:800;
  color:#fff; margin:0 0 16px;
}
.erp-cta-p { color:rgba(255,255,255,.7); font-size:1rem; max-width:560px; margin:0 auto 36px; }
.erp-cta-btns { display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }
.erp-cta-btn {
  background:#fff; color:#3730a3; font-weight:700; font-size:1rem;
  padding:14px 32px; border-radius:10px; text-decoration:none;
  transition:background .18s,transform .18s,box-shadow .18s;
  box-shadow:0 4px 16px rgba(0,0,0,.15);
}
.erp-cta-btn:hover { background:#f1f5ff; transform:translateY(-2px); color:#3730a3; box-shadow:0 6px 22px rgba(0,0,0,.2); }
.erp-cta-tel {
  border:1.5px solid rgba(255,255,255,.45); color:#fff; font-weight:600;
  font-size:1rem; padding:14px 32px; border-radius:10px; text-decoration:none;
  transition:all .18s;
}
.erp-cta-tel:hover { background:rgba(255,255,255,.12); border-color:rgba(255,255,255,.7); color:#fff; }

/* ── TWO SYSTEMS ── */
.ce-two-section { background:#f8fafc; padding:72px 0; border-bottom:1px solid rgba(0,0,0,.06); }
.ce-card { background:#fff; border:1px solid rgba(0,0,0,.07); border-radius:18px; padding:32px 30px; }
.ce-card p { color:#475569; font-size:.95rem; line-height:1.65; margin:0 0 20px; }
.ce-list { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(4,1fr); gap:12px 20px; }
@media(max-width:900px){ .ce-list{grid-template-columns:1fr 1fr;} }
@media(max-width:520px){ .ce-list{grid-template-columns:1fr;} }
.ce-list li { display:flex; gap:9px; align-items:flex-start; font-size:.88rem; font-weight:500; color:#334155; line-height:1.45; }
.ce-list li::before { content:''; width:7px; height:7px; margin-top:6px; border-radius:50%; flex-shrink:0; background:var(--p); }
.ce-note { margin-top:24px; display:flex; gap:14px; align-items:flex-start; background:linear-gradient(135deg,var(--p-tint),#f5f3ff); border:1px solid rgba(var(--p-rgb),.25); border-radius:14px; padding:20px 24px; color:#0f172a; font-size:.95rem; line-height:1.6; }
.ce-note svg { flex-shrink:0; margin-top:2px; color:var(--p-text); }
@media(max-width:640px){ .ce-two-section{padding:48px 0;} .ce-card{padding:26px 22px;} }

/* ── shared extras ── */
.erp-mod-icon { color:var(--p); }
.erp-mod-grid.cols-4 { grid-template-columns:repeat(4,1fr); }
.erp-steps-grid.cols-3 { grid-template-columns:repeat(3,1fr); }
.erp-steps-grid.cols-4 { grid-template-columns:repeat(4,1fr); }
.erp-section-lead { color:#64748b; font-size:1rem; line-height:1.65; max-width:680px; margin:-32px 0 40px; }
.erp-hero-note { display:inline-flex; align-items:center; gap:8px; margin-top:22px; color:rgba(255,255,255,.6); font-size:.88rem; }
.erp-hero-note svg { color:var(--p); }
@media(max-width:1000px){ .erp-mod-grid.cols-4, .erp-steps-grid.cols-4 { grid-template-columns:repeat(2,1fr); } }
@media(max-width:820px){ .erp-steps-grid.cols-3 { grid-template-columns:1fr; } }
@media(max-width:520px){ .erp-mod-grid.cols-4, .erp-steps-grid.cols-4 { grid-template-columns:1fr; } }

/* ── one colour for the service and section pages ── */
.prod.prod-brand {
  --p:#5f82ff; --p-rgb:95,130,255; --p-dark:#4062ff; --p-text:#4062ff; --p-deep:#2f4fe6; --p-tint:#eef2ff;
  --p-hero:linear-gradient(135deg,#0a1230,#141a52,#080c24);
}
.erp-hero-inner.no-visual { grid-template-columns:1fr; }
.erp-hero-inner.no-visual .erp-hero-sub { max-width:640px; }

/* ── every coloured hero has the same height on desktop ── */
@media (min-width: 901px) {
  .erp-hero { min-height: var(--hero-h); padding: 48px 0; display: flex; align-items: center; box-sizing: border-box; }
  .erp-hero-inner { width: 100%; box-sizing: border-box; }
}
