/* Next Level Liquids — local demo site styles */
:root {
  --ink: #0B1726;
  --navy: #10243E;
  --navy-2: #173253;
  --brand: #0E9F9A;
  --brand-dark: #0B7F7B;
  --brand-2: #0284C7;
  --lime: #C6F04D;
  --lime-ink: #2F3A08;
  --bg: #F4F6F9;
  --surface: #FFFFFF;
  --surface-2: #F8FAFC;
  --text: #142132;
  --muted: #5B6B7F;
  --line: #E1E7EF;
  --ok: #1F8F55;
  --ok-bg: #E4F5EC;
  --warn: #B26B00;
  --warn-bg: #FFF3DD;
  --bad: #C43C3C;
  --bad-bg: #FDE8E8;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(16, 36, 62, .06), 0 4px 14px rgba(16, 36, 62, .06);
  --shadow-lg: 0 10px 30px rgba(16, 36, 62, .14);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', system-ui, sans-serif;
  --wrap: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .4em; letter-spacing: .2px; color: var(--ink); }
h1 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 700; }
h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 4px; }

/* ---------- demo banner ---------- */
.demo-bar { background: var(--lime); color: var(--lime-ink); font-size: 12.5px; font-weight: 600; text-align: center; padding: 5px 12px; }

/* ---------- header ---------- */
.topbar { background: var(--ink); color: #C9D6E5; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; }
.topbar a { color: #E8F0F8; }
.topbar .right { display: flex; gap: 16px; align-items: center; }
.header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.header .main { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; flex-shrink: 0; }
.logo:hover { text-decoration: none; }
.logo img { width: 40px; height: 40px; }
.logo .word { font-family: var(--font-head); line-height: .92; }
.logo .word b { display: block; font-size: 25px; font-weight: 800; letter-spacing: .5px; }
.logo .word span { display: block; font-size: 13px; letter-spacing: 5.2px; color: var(--lime); font-weight: 600; }
.search { flex: 1; display: flex; max-width: 560px; margin-left: auto; }
.search input { flex: 1; min-width: 0; border: 0; border-radius: 8px 0 0 8px; padding: 11px 14px; background: #fff; color: var(--text); }
.search button { border: 0; border-radius: 0 8px 8px 0; background: var(--brand); color: #fff; padding: 0 16px; cursor: pointer; font-weight: 600; }
.search button:hover { background: var(--brand-dark); }
.hdr-actions { display: flex; gap: 10px; align-items: center; }
.btn-req { position: relative; display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 1.5px solid rgba(255,255,255,.35); color: #fff; padding: 9px 14px; border-radius: 8px; cursor: pointer; font-weight: 600; white-space: nowrap; }
.btn-req:hover { border-color: #fff; text-decoration: none; }
.btn-req .count { background: var(--lime); color: var(--lime-ink); border-radius: 999px; font-size: 12px; padding: 0 7px; min-width: 22px; text-align: center; font-weight: 700; }
.nav { background: var(--navy-2); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav ul::-webkit-scrollbar { display: none; }
.nav a { display: block; color: #DDE7F2; padding: 12px 16px; font-weight: 600; font-size: 14.5px; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav a:hover { color: #fff; text-decoration: none; background: rgba(255,255,255,.05); }
.nav a.active { color: #fff; border-bottom-color: var(--lime); }
.nav a.specials { color: var(--lime); }
.nav a.nav-office { color: var(--lime); }

/* ---------- buttons / form ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 8px; padding: 11px 18px; font-weight: 600; cursor: pointer; background: var(--brand); color: #fff; transition: background .15s, transform .05s; text-decoration: none !important; }
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.btn.secondary:hover { border-color: var(--brand); }
.btn.dark { background: var(--ink); }
.btn.lime { background: var(--lime); color: var(--lime-ink); }
.btn.lime:hover { background: #B4E033; }
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn.danger { background: var(--bad); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
label.field { display: block; margin-bottom: 14px; font-weight: 600; font-size: 13.5px; }
label.field span { display: block; margin-bottom: 5px; }
input.inp, select.inp, textarea.inp { width: 100%; border: 1.5px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fff; font-weight: 400; }
input.inp:focus, select.inp:focus, textarea.inp:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(14,159,154,.15); }
.qty { display: inline-flex; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.qty button { border: 0; background: var(--surface-2); width: 36px; cursor: pointer; font-size: 18px; }
.qty input { width: 52px; border: 0; text-align: center; padding: 9px 0; }

/* ---------- home ---------- */
.hero { position: relative; background: radial-gradient(1200px 500px at 85% -10%, rgba(45,212,191,.35), transparent 60%), linear-gradient(135deg, #0B1726 0%, #10243E 55%, #0B3B4F 100%); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero p.lead { font-size: 18px; color: #C9D6E5; max-width: 560px; }
.hero .eyebrow { display: inline-block; font-size: 12.5px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; color: var(--lime); margin-bottom: 14px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero .ctas .btn.secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-stats div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: 20px; backdrop-filter: blur(4px); }
.hero-stats b { display: block; font-family: var(--font-head); font-size: 40px; color: #fff; line-height: 1; }
.hero-stats span { color: #A9BBD0; font-size: 13.5px; }
.section { padding: 56px 0; }
.section.alt { background: var(--surface); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--muted); max-width: 640px; }
.tab-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; color: var(--text); display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, border-color .15s; position: relative; overflow: hidden; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand); text-decoration: none; }
.tile .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #D9F7F3, #DCEFFC); color: var(--brand-dark); margin-bottom: 8px; }
.tile.specials .ico { background: var(--lime); color: var(--lime-ink); }
.tile h3 { margin: 0; }
.tile p { margin: 0; color: var(--muted); font-size: 14px; }
.tile .count { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 700; color: var(--brand-dark); }
.markets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.market { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 210px; background: var(--navy); color: #fff; display: flex; align-items: flex-end; box-shadow: var(--shadow); }
.market img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .4s, opacity .3s; }
.market:hover img { transform: scale(1.05); opacity: .4; }
.market .txt { position: relative; padding: 18px; background: linear-gradient(transparent, rgba(11,23,38,.92) 55%); width: 100%; }
.market h3 { color: #fff; margin-bottom: 4px; }
.market p { margin: 0; font-size: 13px; color: #D5E0EC; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--text); }
.chip.brand { background: #DDF6F3; border-color: #BFEDE8; color: var(--brand-dark); }
.chip.lime { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.partners { display: grid; grid-template-columns: repeat(9, 1fr); gap: 14px; align-items: center; }
.partners a { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; height: 76px; display: grid; place-items: center; }
.partners img { max-height: 54px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: .2s; }
.partners a:hover img { filter: none; opacity: 1; }
.cta-band { background: linear-gradient(120deg, var(--brand-dark), var(--brand-2)); color: #fff; border-radius: var(--radius-lg); padding: 36px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: #E2F4F7; }

/* ---------- catalog ---------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 28px 0 22px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.catalog { display: grid; grid-template-columns: 250px 1fr; gap: 28px; padding: 28px 0 56px; }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; align-self: start; position: sticky; top: 140px; }
.filters h4 { font-family: var(--font); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 16px 0 8px; }
.filters h4:first-child { margin-top: 0; }
.filters label { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 14px; cursor: pointer; }
.filters label .n { margin-left: auto; color: var(--muted); font-size: 12px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar select { width: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; position: relative; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .media { aspect-ratio: 1 / 1; background: linear-gradient(180deg, #F7FAFC, #EEF3F8); display: grid; place-items: center; overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .type { font-size: 11.5px; letter-spacing: .8px; text-transform: uppercase; color: var(--brand-dark); font-weight: 700; }
.card h3 { font-size: 19px; margin: 0; }
.card h3 a { color: var(--ink); }
.card .sku { font-size: 12px; color: var(--muted); }
.card .price { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 16px; color: var(--ink); }
.card .price small { font-weight: 500; color: var(--muted); font-size: 12px; }
.card .actions { display: flex; gap: 8px; margin-top: 8px; }
.card .actions .btn { flex: 1; padding: 9px 10px; font-size: 13.5px; }
.flag { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--lime); color: var(--lime-ink); font-weight: 800; font-size: 12px; padding: 4px 9px; border-radius: 6px; letter-spacing: .3px; }
.was { text-decoration: line-through; color: var(--muted); font-weight: 500; font-size: 13px; margin-right: 6px; }
.empty { background: var(--surface); border: 1.5px dashed var(--line); border-radius: var(--radius-lg); padding: 48px 24px; text-align: center; color: var(--muted); }
.empty h3 { color: var(--ink); }

/* ---------- product ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding: 28px 0 40px; }
.gallery .main-img { background: linear-gradient(180deg, #FFFFFF, #EEF3F8); border: 1px solid var(--line); border-radius: var(--radius-lg); aspect-ratio: 1/1; display: grid; place-items: center; overflow: hidden; }
.gallery .main-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery .thumbs { display: flex; gap: 10px; margin-top: 10px; }
.gallery .thumbs button { width: 72px; height: 72px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; padding: 4px; cursor: pointer; }
.gallery .thumbs button.on { border-color: var(--brand); }
.pinfo .type { color: var(--brand-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .8px; font-size: 12.5px; }
.pinfo .meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.pinfo .bigprice { font-family: var(--font-head); font-size: 38px; font-weight: 700; color: var(--ink); line-height: 1; }
.pinfo .perg { color: var(--muted); font-size: 14px; margin-left: 6px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.sizes button { border: 1.5px solid var(--line); background: #fff; border-radius: 8px; padding: 9px 13px; cursor: pointer; font-weight: 600; font-size: 13.5px; text-align: left; }
.sizes button small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.sizes button.on { border-color: var(--brand); background: #E9FAF8; box-shadow: inset 0 0 0 1px var(--brand); }
.buybox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); }
.buybox .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.buybox .note { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
.desc { white-space: pre-line; }
.desc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 40px; }

/* ---------- rep panel ---------- */
.rep-panel { border: 2px solid var(--navy); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 40px; background: var(--surface); }
.rep-panel > header { background: var(--navy); color: #fff; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.rep-panel > header h3 { color: #fff; margin: 0; }
.rep-panel .inner { padding: 18px 20px; }
.sample-tag { background: var(--lime); color: var(--lime-ink); font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 5px; letter-spacing: .4px; text-transform: uppercase; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
table.t th.sortable { cursor: pointer; user-select: none; }
table.t th.sortable:hover { color: var(--ink); }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr:hover td { background: #FAFCFE; }
table.t .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.gray { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }

/* ---------- back office ---------- */
.office { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 200px); }
.office aside { background: var(--ink); color: #C9D6E5; padding: 20px 14px; }
.office aside .who { padding: 10px 10px 18px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 12px; }
.office aside .who b { color: #fff; display: block; }
.office aside .who span { font-size: 12.5px; }
.office aside a { display: flex; gap: 10px; align-items: center; color: #C9D6E5; padding: 10px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.office aside a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.office aside a.on { background: var(--brand); color: #fff; }
.office aside .sep { height: 1px; background: rgba(255,255,255,.1); margin: 12px 0; }
.office main { padding: 26px 28px 56px; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow); }
.kpi span { font-size: 12.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.kpi b { display: block; font-family: var(--font-head); font-size: 36px; color: var(--ink); line-height: 1.1; margin-top: 4px; }
.kpi small { color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px; }
.panel h3 { margin-bottom: 12px; }
.office-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.office-tools .inp { width: auto; min-width: 150px; }
.office-tools .grow { flex: 1; min-width: 200px; }
.sample-note { background: var(--warn-bg); border: 1px solid #F4D69C; color: #6B4500; padding: 10px 14px; border-radius: 8px; font-size: 13.5px; margin-bottom: 18px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.est-result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.est-result div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.est-result b { display: block; font-family: var(--font-head); font-size: 28px; color: var(--ink); }
.est-result span { font-size: 12.5px; color: var(--muted); }

/* ---------- login ---------- */
.login-wrap { min-height: calc(100vh - 260px); display: grid; place-items: center; padding: 48px 20px; background: radial-gradient(800px 400px at 50% 0%, rgba(14,159,154,.12), transparent 70%); }
.login-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 30px; }
.login-card .hint { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px; font-size: 13px; margin-top: 16px; }
.err { color: var(--bad); font-size: 13.5px; font-weight: 600; min-height: 20px; }

/* ---------- request list ---------- */
.req-item { display: grid; grid-template-columns: 72px 1fr auto auto auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.req-item img { width: 72px; height: 72px; object-fit: contain; background: var(--surface-2); border-radius: 8px; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; position: sticky; top: 140px; }
.summary .line { display: flex; justify-content: space-between; padding: 6px 0; }
.summary .total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-weight: 800; font-size: 18px; }

/* ---------- toast / modal ---------- */
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow-lg); opacity: 0; transition: .25s; z-index: 100; pointer-events: none; font-weight: 600; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.modal-bg { position: fixed; inset: 0; background: rgba(11,23,38,.55); display: grid; place-items: center; z-index: 90; padding: 16px; }
.modal { background: #fff; border-radius: var(--radius-lg); padding: 24px; width: 100%; max-width: 480px; box-shadow: var(--shadow-lg); max-height: 90vh; overflow: auto; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #A9BBD0; padding: 48px 0 24px; margin-top: 0; font-size: 14px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer h4 { color: #fff; font-family: var(--font); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.footer a { color: #D5E0EC; display: block; padding: 3px 0; }
.footer .legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 18px; font-size: 12.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- content pages ---------- */
.prose { max-width: 760px; }
.prose p { font-size: 16px; }
.timeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 28px 0; }
.timeline div { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 10px; padding: 14px; }
.timeline b { font-family: var(--font-head); font-size: 26px; color: var(--ink); display: block; }
.leaders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.leader { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; display: flex; gap: 14px; align-items: center; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.values li { margin-bottom: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .tab-tiles, .markets { grid-template-columns: repeat(3, 1fr); }
  .partners { grid-template-columns: repeat(6, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .hero .wrap, .split, .product, .two-col { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 40px; padding-bottom: 48px; }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; }
  .office { grid-template-columns: 1fr; }
  .office aside { display: flex; gap: 6px; overflow-x: auto; padding: 10px; }
  .office aside .who, .office aside .sep { display: none; }
  .office aside a { white-space: nowrap; }
  .office main { padding: 20px 16px 40px; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .leaders { grid-template-columns: 1fr 1fr; }
  .summary { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 16px; }
  .header { position: relative; }
  .header .main { flex-wrap: wrap; gap: 10px; padding: 10px 0; min-height: 0; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .hdr-actions { margin-left: auto; }
  .btn-req .lbl { display: none; }
  .topbar .left { display: none; }
  .tab-tiles, .markets { grid-template-columns: 1fr 1fr; }
  .markets .market { min-height: 170px; }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card .body { padding: 12px; }
  .card h3 { font-size: 16px; }
  .card .actions { flex-direction: column; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi b { font-size: 28px; }
  .est-result { grid-template-columns: 1fr; }
  .req-item { grid-template-columns: 56px 1fr; }
  .req-item img { width: 56px; height: 56px; }
  .req-item > :nth-child(n+3) { grid-column: 2; }
  .leaders, .footer .cols { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 24px; }
  .section { padding: 40px 0; }
}

/* ---------- back office: sections, sales, warehouse, delivery, payments ---------- */
.office aside .grp { font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: #7F93AB; padding: 14px 12px 4px; font-weight: 700; }
.sec-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.sec-bar a { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 10px; border-radius: 12px; background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); font-weight: 800; font-size: 16px; box-shadow: var(--shadow); }
.sec-bar a span { font-size: 20px; }
.sec-bar a:hover { border-color: var(--brand); text-decoration: none; }
.sec-bar a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.sec-bar a.off { opacity: .45; }
.ops-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 22px; }
.ops-tiles a { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--brand); border-radius: 12px; padding: 14px 16px; color: var(--text); box-shadow: var(--shadow); }
.ops-tiles a:hover { text-decoration: none; border-color: var(--brand); }
.ops-tiles span { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 700; }
.ops-tiles b { display: block; font-family: var(--font-head); font-size: 28px; color: var(--ink); line-height: 1.15; }
.ops-tiles small { color: var(--muted); }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.seg a { padding: 8px 14px; font-weight: 700; color: var(--muted); font-size: 14px; }
.seg a + a { border-left: 1.5px solid var(--line); }
.seg a.on { background: var(--navy); color: #fff; }
.seg a:hover { text-decoration: none; }
.rep-board { display: grid; gap: 10px; }
.rep-card { display: grid; grid-template-columns: 44px 48px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.rep-card.lead { background: #FBFDE9; border-color: #DCEB9C; }
.rep-card .rank { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--muted); text-align: center; }
.rep-card .rc-main b { font-size: 17px; }
.rep-card .rc-num { text-align: right; }
.rep-card .rc-num b { display: block; font-family: var(--font-head); font-size: 26px; color: var(--ink); line-height: 1.1; }
.rep-card .rc-num span { display: block; font-size: 12.5px; color: var(--muted); }
.bar { height: 8px; background: #E9EEF4; border-radius: 99px; overflow: hidden; margin-top: 8px; }
.bar span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.chart { width: 100%; height: auto; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; font-size: 13.5px; font-weight: 600; }
.legend i, .dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
td.top { background: #F4FADF !important; font-weight: 700; }
.crown { display: inline-block; border: 1.5px solid; border-radius: 999px; padding: 2px 10px; font-weight: 700; font-size: 13px; white-space: nowrap; background: #fff; }
.pill.brand { background: #DDF6F3; color: var(--brand-dark); }
.scan-jump { display: flex; gap: 10px; margin-bottom: 14px; }
.scan-jump .inp { flex: 1; }
.stage-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.stage-tabs a { padding: 10px 14px; border-radius: 10px; background: var(--surface); border: 1.5px solid var(--line); font-weight: 700; color: var(--ink); }
.stage-tabs a span { background: var(--surface-2); border-radius: 99px; padding: 0 8px; margin-left: 4px; color: var(--muted); }
.stage-tabs a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.stage-tabs a.on span { background: var(--lime); color: var(--lime-ink); }
.stage-tabs a:hover { text-decoration: none; }
.q-list { display: grid; gap: 10px; }
.q-row { display: grid; grid-template-columns: 1fr 220px; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--text); box-shadow: var(--shadow); }
.q-row:hover { border-color: var(--brand); text-decoration: none; }
.stepper { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stepper li { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stepper .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--surface-2); border: 1.5px solid var(--line); flex-shrink: 0; }
.stepper li.now { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14,159,154,.15); }
.stepper li.now .n { background: var(--brand); color: #fff; border-color: var(--brand); }
.stepper li.done .n { background: var(--ok); color: #fff; border-color: var(--ok); }
.scan-box { background: var(--navy); color: #DDE7F2; border-radius: 14px; padding: 16px 18px; margin-bottom: 16px; }
.scan-box b { color: #fff; font-size: 17px; }
.scan-box .muted { color: #A9BBD0 !important; }
.scan-form { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.scan-form .inp { flex: 1; min-width: 200px; font-size: 18px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.scan-msg { min-height: 24px; margin-top: 8px; font-weight: 700; }
.scan-msg.good { color: var(--lime); }
.scan-msg.bad { color: #FFB4A8; }
#camv { width: 100%; max-width: 420px; border-radius: 10px; margin-top: 10px; }
.cnt { display: inline-flex; gap: 8px; align-items: center; }
.cnt b { min-width: 22px; text-align: center; font-size: 16px; }
tr.ok-row td { background: #F3FBF6; }
.note-cell { min-width: 260px; }
.small-inp { padding: 6px 8px; font-size: 13px; margin-bottom: 4px; }
.order-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.order-actions:empty { display: none; }
.mgr-check { display: flex; gap: 10px; align-items: flex-start; flex: 1; min-width: 260px; font-size: 14.5px; }
.mgr-check input { width: 20px; height: 20px; margin-top: 2px; }
.hist { margin: 0; padding-left: 18px; font-size: 13.5px; }
.hist li { margin-bottom: 6px; }
.email-body { white-space: pre-wrap; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; max-height: 50vh; overflow: auto; }
.map-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 18px; box-shadow: var(--shadow); }
.map { height: 460px; position: relative; }
.svgmap { width: 100%; height: 100%; display: block; }
.map-note { position: absolute; left: 12px; bottom: 8px; background: rgba(255,255,255,.9); padding: 3px 8px; border-radius: 6px; }
.mk { width: 26px; height: 26px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 12px; display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.mk.depot { width: 30px; height: 30px; border-radius: 8px; background: var(--navy); color: var(--lime); }
.routes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.stops { list-style: none; padding: 0; margin: 14px 0; }
.stops li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.stop-n { width: 28px; height: 28px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.stop-n.depot { background: var(--navy); color: var(--lime); border-radius: 8px; }
.aging { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.aging > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.aging b { display: block; font-family: var(--font-head); font-size: 26px; color: var(--ink); margin-top: 6px; }
.aging small { color: var(--muted); }
@media (max-width: 1080px) { .ops-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) {
  .stepper { grid-template-columns: 1fr; }
  .aging { grid-template-columns: 1fr 1fr; }
  .q-row { grid-template-columns: 1fr; }
  .rep-card { grid-template-columns: 34px 40px 1fr; }
  .rep-card .rc-num { grid-column: 1 / -1; text-align: left; }
  .map { height: 340px; }
}
@media (max-width: 640px) {
  .sec-bar { grid-template-columns: 1fr 1fr; }
  .ops-tiles { grid-template-columns: 1fr 1fr; }
  .office aside .grp { display: none; }
  .scan-jump { flex-direction: column; }
}
.two-col > *, .office main > * { min-width: 0; }

/* ---------- home v3: tighter hero, logo strip, compact industries ---------- */
.hero-tight .wrap { padding-top: 48px; padding-bottom: 52px; }
.tab-tiles { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.logos-band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cust-logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; align-items: center; }
.cust-logos a, .cust-logos span { display: grid; place-items: center; height: 96px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.cust-logos img { max-height: 70px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .85; transition: .2s; }
.cust-logos a:hover img, .cust-logos span:hover img { filter: none; opacity: 1; }
.section.compact { padding: 36px 0; }
.industries { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.ind { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; color: var(--text); font-weight: 600; font-size: 13.5px; line-height: 1.2; }
.ind:hover { border-color: var(--brand); text-decoration: none; }
.ind img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--surface-2); }
.small-logos { grid-template-columns: repeat(9, 1fr); gap: 10px; }
.small-logos a { height: 58px; padding: 6px; }
.small-logos img { max-height: 42px; }
@media (max-width: 1080px) { .industries { grid-template-columns: repeat(4, 1fr); } .small-logos { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 640px) { .industries { grid-template-columns: 1fr 1fr; } .small-logos { grid-template-columns: repeat(3, 1fr); } .cust-logos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .tab-tiles { grid-template-columns: 1fr 1fr; } }
.pie-wrap { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.pie { width: 280px; max-width: 100%; height: auto; }
.pie-legend { flex: 1; min-width: 240px; display: grid; gap: 8px; }
.pie-row { display: grid; grid-template-columns: 16px 1fr auto 52px; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.pie-row i { width: 14px; height: 14px; border-radius: 50%; display: block; }
.pie-row span { text-align: right; font-weight: 700; }
.tab-tiles { grid-template-columns: repeat(4, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .tab-tiles, .grid.four { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .tab-tiles, .grid.four { grid-template-columns: 1fr 1fr; } }
