/* ==========================================================================
   BidSparx — site styles
   Palette taken from the logo: blue #0070CC + black, on white.
   ========================================================================== */

:root {
  --blue: #0070cc;
  --blue-600: #005fae;
  --blue-700: #004c8c;
  --blue-300: #5cb0f2;
  --blue-100: #d6e9fb;
  --blue-50: #eef6fd;
  --ink: #05080f;
  --ink-2: #0a111d;
  --ink-3: #131d2e;
  --text: #18212f;
  --muted: #5b6779;
  --line: #e1e7ef;
  --soft: #f4f7fb;
  --white: #fff;
  --danger: #c62f2f;
  --ok: #12805c;

  --font-head: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(9, 20, 40, .05), 0 12px 32px -12px rgba(9, 20, 40, .16);
  --shadow-lg: 0 30px 70px -30px rgba(0, 60, 120, .45);
  --container: 1200px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); margin: 0 0 .5em; line-height: 1.12; letter-spacing: -.022em; font-weight: 800; }
h1 { font-size: clamp(2.35rem, 5.2vw, 4.1rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.012em; line-height: 1.25; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .15s; }
.skip-link:focus { top: 12px; color: #fff; }
.icon { flex: none; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; line-height: 1;
  padding: 15px 22px; border-radius: 10px; border: 1.5px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn .icon { transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 22px -12px rgba(0, 112, 204, .9); }
.btn-primary:hover { background: var(--blue-600); color: #fff; transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: #c9d2de; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--blue-700); }
.btn-light:hover { background: var(--blue-50); color: var(--blue-700); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-50); color: var(--blue-700); border-color: var(--blue-700); }
.btn-sm { padding: 9px 16px; font-size: .88rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

.nav-ctas { display: flex; align-items: center; gap: 8px; }
.nav-cta { white-space: nowrap; font-size: .88rem; padding: 10px 16px; }

@media (max-width: 1160px) and (min-width: 941px) {
  .nav { gap: 14px; }
  .nav-list > li > a { padding: 8px 8px; font-size: .88rem; }
  .nav-cta { padding: 9px 11px; font-size: .82rem; }
}

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--blue); }
.link-arrow .icon { transition: transform .2s; }
a.link-arrow:hover .icon, .svc-card:hover .link-arrow .icon { transform: translateX(4px); }

/* ------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-stuck { border-color: var(--line); box-shadow: 0 8px 24px -20px rgba(9, 20, 40, .5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand img { width: 166px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list > li > a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 8px; font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--ink); transition: color .15s, background .15s; }
.nav-list > li > a:hover, .nav-list > li > a.is-active { color: var(--blue); }
.nav-list > li > a.is-active { background: var(--blue-50); }
.has-mega { position: static; height: var(--header-h); display: flex; align-items: center; }
.has-mega > a .icon { transition: transform .2s; }
.mega {
  position: absolute; left: 50%; top: calc(100% - 6px); width: min(920px, calc(100vw - 48px)); transform: translate(-50%, 8px);
  display: grid; grid-template-columns: 1fr 250px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 30px 60px -24px rgba(9, 20, 40, .35); overflow: hidden;
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-mega:hover > a .icon, .has-mega:focus-within > a .icon { transform: rotate(180deg); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 14px; }
.mega-item { display: flex; gap: 14px; padding: 14px; border-radius: 10px; color: var(--text); transition: background .15s; }
.mega-item:hover { background: var(--soft); color: var(--text); }
.mega-num { font-family: var(--font-head); font-weight: 800; font-size: .8rem; color: var(--blue); padding-top: 3px; }
.mega-item strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: .98rem; }
.mega-item small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.45; margin-top: 3px; }
.mega-aside { background: var(--ink-2); color: #b8c3d4; padding: 24px; display: flex; flex-direction: column; gap: 12px; font-size: .9rem; }
.mega-aside p { margin: 0 0 4px; }
.mega-aside strong { display: block; color: #fff; font-family: var(--font-head); font-size: 1rem; margin-bottom: 6px; }
.mega-aside .link-arrow { color: var(--blue-300); font-size: .9rem; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; padding: 0; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s, top .2s; }
.burger span:nth-child(1) { top: 14px; } .burger span:nth-child(2) { top: 20px; } .burger span:nth-child(3) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ------------------------------------------------------------ sections */
.section { padding: clamp(72px, 9vw, 128px) 0; position: relative; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--ink-2); color: #b8c3d4; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin: 0 0 18px; }
.eyebrow-num { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.eyebrow-num::after { content: ""; width: 34px; height: 1.5px; background: currentColor; opacity: .35; }
.section-dark .eyebrow { color: var(--blue-300); }
.section-dark .eyebrow-num { color: #fff; }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head h2 { margin-bottom: .35em; }
.sec-intro { font-size: 1.1rem; color: var(--muted); margin: 0; max-width: 640px; }
.section-dark .sec-intro { color: #a9b6c9; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head-row .sec-head { margin-bottom: 0; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ------------------------------------------------------------ hero */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 110px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(0, 112, 204, .13), transparent 62%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: linear-gradient(#000 40%, transparent 96%); mask-image: linear-gradient(#000 40%, transparent 96%);
  opacity: .75;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-text { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; border-top: 1px solid var(--line); padding-top: 24px; }
.hero-facts div { padding-right: 32px; margin-right: 32px; border-right: 1px solid var(--line); }
.hero-facts div:last-child { border: 0; margin: 0; padding: 0; }
.hero-facts dt { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; }
.hero-facts dd { margin: 4px 0 0; font-size: .85rem; color: var(--muted); }

.hero-visual { position: relative; background: linear-gradient(160deg, #0b1626, #06101d 70%); border-radius: 22px; padding: 18px; box-shadow: var(--shadow-lg); color: #9fb2cc; isolation: isolate; }
.hero-visual::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; background: linear-gradient(rgba(92, 176, 242, .09) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(92, 176, 242, .09) 1px, transparent 1px) 0 0 / 28px 28px; }
.hv-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 4px 6px 14px; }
.hv-live { display: inline-flex; align-items: center; gap: 8px; color: #fff; background: rgba(0, 112, 204, .28); border: 1px solid rgba(92, 176, 242, .45); padding: 6px 10px; border-radius: 99px; letter-spacing: .1em; }
.hv-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #58d68d; box-shadow: 0 0 0 0 rgba(88, 214, 141, .7); animation: pulse 2s infinite; }
.hv-plan { display: block; width: 100%; height: auto; }
.hv-plan .wall { stroke: #dbe8f8; stroke-width: 2.2; fill: none; }
.hv-plan .wall-thin { stroke: #6f86a5; stroke-width: 1.2; fill: none; }
.hv-plan .circuit { stroke: var(--blue-300); stroke-width: 1.8; fill: none; stroke-dasharray: 6 6; animation: dash 22s linear infinite; }
.hv-plan .circuit-b { stroke: #ffc857; }
.hv-plan .dev { fill: #0b1626; stroke: var(--blue-300); stroke-width: 1.8; }
.hv-plan .dev-b { stroke: #ffc857; }
.hv-plan .panel { fill: var(--blue); stroke: #fff; stroke-width: 1.4; }
.hv-plan text { font-family: var(--font-head); font-size: 9px; font-weight: 700; letter-spacing: .12em; fill: #7f95b3; text-transform: uppercase; }
.hv-card { position: absolute; right: -18px; bottom: -26px; width: min(300px, 78%); background: #fff; color: var(--text); border-radius: 14px; padding: 18px 18px 14px; box-shadow: 0 24px 50px -18px rgba(3, 12, 26, .55); }
.hv-card h4 { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 10px; display: flex; justify-content: space-between; }
.hv-card h4 span { color: var(--blue); }
.hv-card li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: .86rem; }
.hv-card li b { font-family: var(--font-head); color: var(--ink); white-space: nowrap; }
.hv-card small { display: block; margin-top: 8px; color: var(--muted); font-size: .72rem; }
@keyframes dash { to { stroke-dashoffset: -480; } }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(88, 214, 141, 0); } 100% { box-shadow: 0 0 0 0 rgba(88, 214, 141, 0); } }

/* ------------------------------------------------------------ page hero (inner pages) */
.page-hero { position: relative; padding: clamp(36px, 5vw, 64px) 0 clamp(52px, 7vw, 88px); overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 400px at 92% 0, rgba(0, 112, 204, .12), transparent 60%), linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 56px; -webkit-mask-image: linear-gradient(#000 20%, transparent 95%); mask-image: linear-gradient(#000 20%, transparent 95%); opacity: .7; }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 860px; }
.page-hero .lead { max-width: 700px; margin-bottom: 28px; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.breadcrumb { margin-bottom: 28px; font-size: .85rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumb a { color: var(--muted); } .breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { color: var(--ink); font-weight: 500; }

.svc-badge { background: linear-gradient(160deg, #0b1626, #06101d 70%); border-radius: 22px; padding: 32px; color: #a9b6c9; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.svc-badge::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(92, 176, 242, .08) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(92, 176, 242, .08) 1px, transparent 1px) 0 0 / 28px 28px; }
.svc-badge > * { position: relative; }
.svc-badge-icon { width: 64px; height: 64px; border-radius: 16px; background: var(--blue); color: #fff; display: grid; place-items: center; margin-bottom: 22px; }
.svc-badge-num { position: absolute; right: 22px; top: 8px; font-family: var(--font-head); font-weight: 800; font-size: 6rem; line-height: 1; color: rgba(255, 255, 255, .06); }
.svc-badge h2 { color: #fff; font-size: 1.15rem; margin-bottom: 14px; letter-spacing: 0; }
.svc-badge li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .09); font-size: .92rem; color: #d5deea; }
.svc-badge li .icon { color: var(--blue-300); margin-top: 3px; }

/* ------------------------------------------------------------ service cards */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.svc-grid-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svc-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .25s, transform .25s; }
.svc-card:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-3px); }
.svc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.svc-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; transition: background .2s, color .2s; }
.svc-card:hover .svc-icon { background: var(--blue); color: #fff; }
.svc-num { font-family: var(--font-head); font-weight: 700; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.svc-card h3 { font-size: 1.4rem; font-weight: 800; }
.svc-card h3 a { color: var(--ink); }
.svc-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.svc-card p { color: var(--muted); margin-bottom: 20px; }
.svc-card .link-arrow { margin-top: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chips li { font-size: .8rem; font-weight: 500; color: var(--ink-3); background: var(--soft); border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; }
.section-dark .chips li, .page-hero .chips li { background: transparent; }

/* ------------------------------------------------------------ features (dark) */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--ink-2); padding: 30px 26px; transition: background .2s; }
.feature:hover { background: var(--ink-3); }
.feature .icon { color: var(--blue-300); margin-bottom: 20px; }
.feature h3 { font-size: 1.1rem; }
.feature p { margin: 0; font-size: .95rem; color: #a9b6c9; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; }
.stat { border-top: 2px solid var(--ink); padding-top: 18px; }
.stat dt { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -.035em; color: var(--ink); line-height: 1.05; }
.stat dd { margin: 8px 0 0; color: var(--muted); font-size: .92rem; max-width: 240px; }
.stats-dark { margin-top: clamp(40px, 5vw, 64px); }
.stats-dark .stat { border-color: var(--blue); }
.stats-dark .stat dt { color: #fff; }
.stats-dark .stat dd { color: #a9b6c9; }

/* ------------------------------------------------------------ steps */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.step { position: relative; padding: 28px 22px 0 0; border-top: 1.5px solid var(--line); }
.step::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px var(--blue-100); }
.step-num { display: block; font-family: var(--font-head); font-weight: 700; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }
.section-soft .step::before { box-shadow: 0 0 0 5px var(--blue-100); }

/* ------------------------------------------------------------ split / lists / cards */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split .sec-head { margin-bottom: 28px; }
.check-list { display: grid; gap: 0; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--ink-3); }
.check-list li:first-child { border-top: 1px solid var(--line); }
.check-list .icon { color: #fff; background: var(--blue); border-radius: 50%; padding: 4px; margin-top: 1px; }
.check-list-2 { grid-template-columns: 1fr 1fr; column-gap: 32px; }
.check-list-2 li:nth-child(2) { border-top: 1px solid var(--line); }

.div-list { display: grid; gap: 10px; }
.div-list li { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.div-list b { font-family: var(--font-head); font-weight: 800; color: var(--blue); font-size: .85rem; letter-spacing: .08em; }
.div-list span { font-weight: 500; color: var(--ink-3); }
.div-list small { display: block; color: var(--muted); font-weight: 400; font-size: .86rem; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .2s, box-shadow .2s; }
.card:hover { border-color: #c5d3e4; box-shadow: var(--shadow); }
.card-num { display: block; font-family: var(--font-head); font-weight: 800; font-size: .8rem; letter-spacing: .12em; color: var(--blue); margin-bottom: 18px; }
.card h3 { font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card .icon { color: var(--blue); margin-bottom: 16px; }

.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: #3a4557; font-size: 1.05rem; }
.prose-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.prose-cols h2 { font-size: 1.3rem; margin-top: 0; padding-top: 20px; border-top: 2px solid var(--ink); }
.prose-cols p { font-size: 1rem; }

/* ------------------------------------------------------------ FAQ */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue); }
.faq-mark { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); position: relative; transition: background .2s, border-color .2s, transform .25s; }
.faq-mark::before, .faq-mark::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); transition: background .2s; }
.faq-mark::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-mark { background: var(--blue); border-color: var(--blue); transform: rotate(45deg); }
.faq-item[open] .faq-mark::before, .faq-item[open] .faq-mark::after { background: #fff; }
.faq-body { padding: 0 60px 24px 0; color: var(--muted); }
.faq-body p { margin: 0; }

/* ------------------------------------------------------------ quote form */
.section-quote { background: var(--soft); }
.quote-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.quote-copy { position: sticky; top: calc(var(--header-h) + 32px); }
.quote-copy .sec-head { margin-bottom: 32px; }
.contact-list { display: grid; gap: 4px; }
.contact-list li { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink-3); font-weight: 500; }
.contact-list .icon { color: var(--blue); width: 44px; height: 44px; padding: 11px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.contact-list small { display: block; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-list a { color: var(--ink); } .contact-list a:hover { color: var(--blue); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3.4vw, 40px); box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; min-width: 0; }
.field > label:first-child { display: block; font-family: var(--font-head); font-weight: 700; font-size: .86rem; color: var(--ink); margin-bottom: 7px; }
.field label b { color: var(--blue); }
.optional { color: var(--muted); font-weight: 500; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="password"], .field input[type="number"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid #cfd8e3; border-radius: 10px; padding: 13px 14px; transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6779' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9fb0c4; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 112, 204, .16); }
.field ::placeholder { color: #93a0b2; }
.field.has-error input, .field.has-error select, .field.has-error textarea, .field.has-error .file-drop { border-color: var(--danger); }
.field-error { display: block; color: var(--danger); font-size: .84rem; margin-top: 6px; }
.field-error:empty { display: none; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-drop { display: flex; align-items: center; gap: 12px; border: 1.5px dashed #b9c6d6; border-radius: 10px; padding: 16px; color: var(--muted); font-size: .92rem; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.file-drop:hover, .file-drop.is-drag, .file-input:focus-visible + .file-drop, .file-drop.has-file { border-color: var(--blue); background: var(--blue-50); color: var(--ink-3); }
.file-drop .icon { color: var(--blue); }
.file-drop span { overflow: hidden; text-overflow: ellipsis; }
.field-check label { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--muted); cursor: pointer; font-family: var(--font-body) !important; font-weight: 400 !important; }
.field-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.checkbox-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.check-pill { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border: 1.5px solid #cfd8e3; border-radius: 10px; cursor: pointer; transition: border-color .15s, background .15s; font-size: .92rem; font-weight: 500; color: var(--ink); }
.check-pill:hover { border-color: var(--blue); background: var(--blue-50); }
.check-pill input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); flex: none; cursor: pointer; }
.check-pill:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.form-note { text-align: center; color: var(--muted); font-size: .84rem; margin: 14px 0 0; }
.form-alert { background: #fdeeee; border: 1px solid #f3c4c4; color: #8f1f1f; border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; font-size: .93rem; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-success { text-align: center; padding: clamp(24px, 5vw, 56px) 8px; }
.form-success:focus { outline: none; }
.success-mark { width: 68px; height: 68px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; margin: 0 auto 22px; box-shadow: 0 0 0 10px var(--blue-50); }
.form-success h3 { font-size: 1.5rem; }
.form-success p { color: var(--muted); margin-bottom: 24px; }

/* ------------------------------------------------------------ CTA band */
.cta-band { background: var(--blue); color: #dcecfb; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px) 0 0 / 44px 44px, linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px) 0 0 / 44px 44px; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-top: clamp(48px, 6vw, 76px); padding-bottom: clamp(48px, 6vw, 76px); }
.cta-inner h2 { color: #fff; margin-bottom: .25em; }
.cta-inner p { margin: 0; font-size: 1.08rem; max-width: 560px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------------ contact page */
.info-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.info-card .icon { color: var(--blue); margin-bottom: 14px; }
.info-card small { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.info-card strong, .info-card a { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.02rem; overflow-wrap: anywhere; }
.info-card a:hover { color: var(--blue); }

/* ------------------------------------------------------------ legal pages */
.legal-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 32px); font-size: .9rem; }
.legal-toc h2 { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.legal-toc li a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--line); color: var(--muted); }
.legal-toc li a:hover { color: var(--blue); border-color: var(--blue); }
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 1.4rem; margin-top: 2em; scroll-margin-top: calc(var(--header-h) + 24px); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: #3a4557; }
.legal-body ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.legal-body li { margin-bottom: .4em; }
.legal-note { background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 12px; padding: 16px 18px; font-size: .95rem; margin-bottom: 2em; }
.legal-switch { display: flex; flex-wrap: wrap; gap: 8px; }
.legal-switch a { padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--ink-3); font-weight: 500; font-size: .9rem; }
.legal-switch a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ------------------------------------------------------------ footer */
.site-footer { background: var(--ink); color: #94a2b7; padding-top: clamp(56px, 7vw, 88px); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1.15fr .8fr 1.1fr; gap: clamp(28px, 4vw, 56px); padding-bottom: clamp(40px, 5vw, 64px); }
.footer-brand img { width: 166px; margin-bottom: 20px; }
.footer-brand p { max-width: 320px; }
.footer-title { font-family: var(--font-head); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 20px; padding-bottom: 14px; position: relative; }
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--blue); }
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: #94a2b7; transition: color .15s; overflow-wrap: anywhere; }
.footer-links a:hover { color: #fff; }
.footer-links .link-arrow { color: var(--blue-300); }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; color: #cfd8e5; transition: background .15s, border-color .15s, color .15s; }
.social a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .86rem; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-bottom a { color: #94a2b7; } .footer-bottom a:hover { color: #fff; }

/* ------------------------------------------------------------ reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hv-plan .circuit, .hv-live::before { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .feature-grid, .card-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .svc-grid-compact, .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hv-card { right: 12px; }
}

@media (max-width: 940px) {
  :root { --header-h: 68px; }
  .burger { display: block; }
  .site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .has-mega { height: auto; display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; flex-direction: column; align-items: stretch; gap: 20px; padding: 20px 24px 32px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s; border-top: 1px solid var(--line); }
  .nav.is-open { transform: none; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list > li > a { padding: 16px 4px; font-size: 1.1rem; justify-content: space-between; border-radius: 0; }
  .nav-list > li > a.is-active { background: none; }
  .mega { position: static; width: auto; transform: none !important; opacity: 1; visibility: inherit; display: block; border: 0; box-shadow: none; border-radius: 0; transition: none; }
  .mega-grid { grid-template-columns: 1fr; padding: 0 0 12px; }
  .mega-item { padding: 10px 4px; }
  .mega-item small, .mega-aside, .has-mega > a .icon { display: none; }
  .nav-ctas { display: flex; flex-direction: column; width: 100%; gap: 10px; }
  .nav-ctas .btn { width: 100%; }
  .nav-cta { width: 100%; text-align: center; }
  body.nav-open { overflow: hidden; }

  .hero-grid, .page-hero-grid, .split, .quote-grid, .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .quote-copy, .legal-toc { position: static; }
  .hero-visual { margin-bottom: 30px; }
  .prose-cols { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { display: none; }
}

@media (max-width: 680px) {
  .container { padding: 0 18px; }
  .svc-grid, .svc-grid-compact, .card-grid, .card-grid-4, .feature-grid, .check-list-2, .field-row, .checkbox-group { grid-template-columns: minmax(0, 1fr); }
  .check-list-2 li:nth-child(2) { border-top: 0; }
  .field-row { gap: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .step { border-top: 0; border-left: 1.5px solid var(--line); padding: 0 0 30px 26px; }
  .step:last-child { padding-bottom: 0; }
  .step::before { top: 2px; left: -6.5px; }
  .hero-facts { grid-template-columns: 1fr 1fr 1fr; }
  .hero-facts div { padding-right: 12px; margin-right: 12px; }
  .hero-facts dt { font-size: 1.25rem; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 100%; }
  .svc-card { padding: 24px; }
  .hv-card { position: relative; right: auto; bottom: auto; width: auto; margin-top: 14px; }
  .hero-visual { margin-bottom: 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-body { padding-right: 0; }
  .div-list li { grid-template-columns: 60px 1fr; }
}

/* ------------------------------------------------------------ late adjustments */
.section-dark .step { border-color: rgba(255, 255, 255, .16); }
.section-dark .step::before { box-shadow: 0 0 0 5px rgba(0, 112, 204, .3); }
.section-dark .step p { color: #a9b6c9; }
.section-dark .step-num { color: var(--blue-300); }
.info-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.hero, .page-hero { isolation: isolate; }
.legal-body code { background: var(--soft); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: .9em; }
.hv-card { width: min(264px, 70%); bottom: -44px; padding: 15px 16px 12px; }
.hv-card li { padding: 6px 0; font-size: .82rem; }
.hero-visual { margin-bottom: 44px; }
@media (max-width: 680px) { .hv-card { width: auto; bottom: auto; } .hero-visual { margin-bottom: 0; } }
.hv-live, .hv-head > span { white-space: nowrap; }

/* ------------------------------------------------------------ estimating software showcase */
.software-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.software-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: transform .2s, border-color .2s, box-shadow .2s; }
.software-card:hover { transform: translateY(-3px); border-color: #0070cc; box-shadow: var(--shadow); }
.software-icon { width: 64px; height: 64px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(10, 20, 40, .06); margin-bottom: 6px; padding: 10px; overflow: hidden; }
.software-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.software-card h3 { font-size: 1.08rem; margin: 0; color: var(--ink); }
.software-card p { font-size: .86rem; color: var(--muted); margin: 0; line-height: 1.45; }
@media (max-width: 940px) { .software-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .software-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

