:root { --brand: #118743; --ink: #1d2530; --muted: #6b7380; --line: #dfe3e8; --bg: #f4f6f8; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", Arial, Helvetica, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand); }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 24px; background: #fff; border-bottom: 3px solid var(--brand); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 600; }
.brand img { height: 38px; }
.topbar nav { display: flex; gap: 18px; align-items: center; font-size: 14px; }
.topbar nav a { text-decoration: none; color: var(--ink); }
.who { color: var(--muted); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 24px 16px 48px; }
h1 { font-size: 24px; margin: 8px 0 6px; }
h2 { font-size: 17px; margin: 26px 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: #39424e; }
input, select { font: inherit; padding: 9px 10px; border: 1px solid #c9cfd6; border-radius: 6px; background: #fff; font-weight: 400; }
input:disabled { background: #f0f2f4; color: var(--muted); }
button, .btn { background: var(--brand); color: #fff; border: 0; border-radius: 6px; padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; white-space: nowrap; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.selector { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.6fr auto; gap: 14px; align-items: end; margin-top: 14px; }
.inline { display: flex; gap: 6px; }
.inline input { flex: 1; min-width: 0; }
.table-wrap { overflow-x: auto; padding: 0; }
table.results, table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
.results th, .results td, .list th, .list td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.results th, .list th { background: #f8f9fb; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
tr.best { background: #f2faf5; }
.tag { display: inline-block; background: var(--brand); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 10px; margin-top: 4px; }
.auth { display: flex; justify-content: center; padding-top: 30px; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 30px; width: 100%; max-width: 420px; }
.auth-card.wide { max-width: 640px; }
.auth-logo { height: 54px; display: block; margin-bottom: 8px; }
.auth-card form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.auth-card form.grid2 { display: grid; grid-template-columns: 1fr 1fr; }
.span2 { grid-column: span 2; }
.alert { background: #fdecea; color: #a1281b; padding: 9px 12px; border-radius: 6px; margin: 8px 0; font-size: 14px; }
.ok { background: #e8f6ec; color: #1e6b33; padding: 9px 12px; border-radius: 6px; margin: 8px 0; font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 16px 0; }
.stat b { display: block; font-size: 26px; margin-top: 4px; }
.tabs { display: flex; gap: 8px; margin: 18px 0 10px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; border-radius: 6px; text-decoration: none; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 14px; }
.tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 20px; }
/* ---------- Results as cards on phones ---------- */
@media (max-width: 760px) {
  .topbar { padding: 10px 14px; gap: 10px; }
  .brand span, .who { display: none; }
  .brand img { height: 30px; }
  .topbar nav { gap: 11px; font-size: 13px; }
  .wrap { padding: 18px 14px 40px; }
  .selector { grid-template-columns: 1fr !important; }
  .selector button { grid-column: auto !important; padding: 13px; font-size: 15px; }
  .selector input, .selector select { min-width: 0; width: 100%; }
  .inline select { width: auto; flex: none; }
  .table-wrap { background: transparent; border: 0; overflow: visible; }
  table.results thead { display: none; }
  table.results, table.results tbody, table.results tr, table.results td { display: block; width: 100%; }
  table.results tr { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; padding: 6px 14px 14px; box-shadow: 0 4px 14px rgba(17,25,37,.05); }
  table.results tr.best { border-color: #f3b18f; background: #f4fbf7; }
  table.results td { border: 0; padding: 7px 0; display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
  table.results td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 13px; }
  table.results td.model-cell { display: block; padding: 10px 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
  table.results td.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 12px; }
  table.results td.actions .btn { text-align: center; padding: 12px 10px; font-size: 15px; }
}

/* ---------- Interactive curves ---------- */
.cv-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.cv-head h1 { margin: 2px 0 4px; }
.cv-head p { margin: 0; }
.cv-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.cv-form input { width: 120px; }
.cv-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 18px 0; }
.cv-cards .card { padding: 12px 14px; border-left: 4px solid #16a34a; }
.cv-cards span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.cv-cards b { font-size: 22px; }
.cv-wrap { display: grid; grid-template-columns: 1fr 280px; gap: 16px; align-items: start; }
.cv-chart-card { padding: 14px; }
.cv-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.cv-toggles { display: flex; gap: 14px; flex-wrap: wrap; }
.cv-toggles label { flex-direction: row; align-items: center; gap: 6px; font-weight: 500; }
.cv-zoom { display: flex; gap: 6px; }
.cv-zoom .btn { padding: 6px 12px; }
.cv-chart { width: 100%; touch-action: none; cursor: crosshair; user-select: none; }
.cv-chart.dragging { cursor: grabbing; }
.cv-hint { margin: 6px 0 0; }
.cv-readout { position: sticky; top: 16px; }
.cv-readout h3 { font-size: 14px; margin: 0 0 6px; }
.cv-readout h3 + p { margin: 0 0 10px; }
.cv-readout table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-bottom: 16px; }
.cv-readout td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.cv-readout td:last-child { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.ok-text { color: #16803c; }
.warn-text { color: #b45309; }
.btn.small { padding: 7px 12px; font-size: 13px; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 980px) {
  .cv-wrap { grid-template-columns: 1fr; }
  .cv-readout { position: static; }
  .cv-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Login page ---------- */
.login-page { background: #fff; }
.login-split { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.login-hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 0% 0%, #12402a 0%, #0d2a1d 55%, #081a12 100%); color: #fff; padding: 40px 48px; display: flex; flex-direction: column; }
.hero-logo { display: inline-flex; background: #fff; border-radius: 10px; padding: 10px 14px; }
.hero-logo img { height: 40px; display: block; }
.hero-body { margin-top: auto; margin-bottom: 26px; max-width: 480px; position: relative; z-index: 1; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: #4cbf7c; font-weight: 700; margin: 0 0 14px; }
.login-hero h1 { font-size: 40px; line-height: 1.12; margin: 0 0 16px; font-weight: 700; }
.hero-lead { color: #b8c2cd; font-size: 16px; line-height: 1.6; margin: 0 0 26px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.hero-points li { display: flex; align-items: center; gap: 12px; color: #dfe5eb; font-size: 15px; }
.hero-points span { width: 26px; height: 26px; border-radius: 50%; background: rgba(17,135,67,.18); color: #4cbf7c; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex: none; }
.hero-curve { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 200px; }
/* Motion: glow, impeller, reveal, live chart */
.hero-top, .hero-chart { position: relative; z-index: 1; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.hero-glow.g1 { width: 520px; height: 520px; background: rgba(17,135,67,.30); top: -160px; left: -140px; animation: drift1 14s ease-in-out infinite alternate; }
.hero-glow.g2 { width: 460px; height: 460px; background: rgba(37,99,235,.22); bottom: -180px; right: -120px; animation: drift2 18s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(120px, 90px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-110px, -70px) scale(1.1); } }
.hero-impeller { position: absolute; right: -170px; top: -150px; width: 560px; height: 560px; opacity: .32; pointer-events: none; filter: drop-shadow(0 0 40px rgba(17,135,67,.35)); animation: spin 26s linear infinite, impIn 2s ease-out both; }
@keyframes impIn { from { opacity: 0; } to { opacity: .32; } }
.login-box { position: relative; }
.login-panel { overflow: hidden; }
body.login-page { overflow-x: hidden; }
.card-impeller { position: absolute; width: 170px; right: -26px; top: -84px; pointer-events: none; filter: drop-shadow(0 18px 22px rgba(17,25,37,.28)); animation: floatIn 1.2s .6s cubic-bezier(.2,.7,.2,1) both, bob 5s 1.8s ease-in-out infinite; }
@keyframes floatIn { from { opacity: 0; transform: translateY(30px) rotate(-12deg) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(3deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
.grad { background: linear-gradient(90deg, #38c172, #118743 40%, #a7e8c0 80%, #118743); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 5s linear infinite; }
@keyframes shimmer { to { background-position: -200% center; } }
.reveal { opacity: 0; transform: translateY(18px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .3s; } .d3 { animation-delay: .45s; } .d4 { animation-delay: .65s; }
.d5 { animation-delay: .85s; } .d6 { animation-delay: 1s; } .d7 { animation-delay: 1.15s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-chart { background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.09); border-radius: 14px; padding: 12px 12px 4px; backdrop-filter: blur(6px); }
.hero-chart svg { width: 100%; height: auto; display: block; }
.hc-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #9fb0c2; padding: 0 4px 6px; flex-wrap: wrap; }
.hc-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ecf6e; box-shadow: 0 0 0 0 rgba(62,207,110,.6); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(62,207,110,0); } 100% { box-shadow: 0 0 0 0 rgba(62,207,110,0); } }
.hc-read { margin-left: auto; font-variant-numeric: tabular-nums; color: #fff; background: rgba(17,135,67,.18); border: 1px solid rgba(17,135,67,.45); padding: 3px 9px; border-radius: 20px; font-size: 12px; }
.hc-grid line { stroke: rgba(255,255,255,.07); }
.hc-grid text, .hc-axis { fill: #7d8b9a; font-size: 10px; font-family: inherit; }
.hc-axis { font-style: italic; }
.hc-curve { fill: none; stroke: #1fa85a; stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.2s 1.1s cubic-bezier(.4,0,.2,1) forwards; }
.hc-area { opacity: 0; animation: fade 1.2s 2.4s forwards; }
.hc-sys { fill: none; stroke: rgba(255,255,255,.4); stroke-width: 1.4; stroke-dasharray: 5 5; opacity: 0; animation: fade 1s 2.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
.hc-duty { stroke: #3ecf6e; stroke-width: 1.4; opacity: 0; animation: fade .6s 2.9s forwards; }
.hc-dutydot { fill: #3ecf6e; stroke: #0f1722; stroke-width: 2; opacity: 0; animation: pop .5s 3s cubic-bezier(.3,1.6,.5,1) forwards; transform-box: fill-box; transform-origin: center; }
.hc-pulse { fill: none; stroke: #3ecf6e; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: pulse 2s 3.2s ease-out infinite; }
@keyframes pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }
.hc-tag { opacity: 0; animation: fade .6s 3.2s forwards; }
.hc-tag rect { fill: #16a34a; }
.hc-tag text { fill: #fff; font-size: 10.5px; font-weight: 600; font-family: inherit; }
.hc-marker { fill: #fff; stroke: #1fa85a; stroke-width: 3; opacity: 0; transition: opacity .4s; filter: drop-shadow(0 0 6px rgba(31,168,90,.9)); }
.hc-cross { stroke: rgba(255,255,255,.35); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; transition: opacity .4s; }

/* Login card entrance and button shine */
.login-box { animation: cardIn .9s .2s cubic-bezier(.2,.7,.2,1) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(26px) scale(.98); } to { opacity: 1; transform: none; } }
.btn-block { position: relative; overflow: hidden; transition: transform .15s, box-shadow .2s; }
.btn-block:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(17,135,67,.35); }
.btn-block::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(110deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: shine 3.6s 2.4s ease-in-out infinite; }
@keyframes shine { 0% { left: -60%; } 35%, 100% { left: 130%; } }
.demo-box { animation: cardIn .8s .7s cubic-bezier(.2,.7,.2,1) both; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .login-box, .demo-box { animation: none; opacity: 1; transform: none; }
  .hero-glow, .hero-impeller, .card-impeller, .grad, .hc-dot, .hc-pulse, .btn-block::after { animation: none; }
  .hc-curve { stroke-dashoffset: 0; animation: none; }
  .hc-area, .hc-sys, .hc-duty, .hc-dutydot, .hc-tag { opacity: 1; animation: none; }
}

.login-panel { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 24px 20px; background: #f6f7f9; }
.login-box { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 34px 32px 26px; box-shadow: 0 12px 40px rgba(17,25,37,.08); }
.login-box h2 { margin: 0 0 6px; font-size: 26px; }
.login-logo-mobile { display: none; height: 44px; margin-bottom: 14px; }
.login-form { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.login-form input { padding: 11px 12px; }
.login-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(17,135,67,.15); }
.btn-block { width: 100%; padding: 12px; font-size: 15px; margin-top: 4px; }
.btn-outline { background: #fff; color: var(--brand); border: 1.5px solid var(--brand); padding: 8px 12px; font-size: 13px; }
.demo-box { margin: 18px 0 14px; padding: 12px 14px; border: 1px dashed #f0b293; background: #f3faf6; border-radius: 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.demo-box strong { display: block; font-size: 13px; margin-bottom: 2px; }
.demo-box span { display: block; font-size: 13px; color: #4a525d; margin-top: 3px; }
.demo-box code { white-space: nowrap; background: #fff; border: 1px solid #f0d2c2; border-radius: 4px; padding: 1px 6px; font-size: 12.5px; }
.center { text-align: center; }
.login-foot { color: var(--muted); font-size: 12px; margin-top: 22px; }

@media (max-width: 820px) {
  .login-split { grid-template-columns: 1fr; }
  .login-hero { display: none; }
  .login-logo-mobile { display: block; }
  .login-panel { padding-top: 70px; }
  .card-impeller { width: 120px; right: -8px; top: -58px; }
  .demo-box { flex-direction: column; align-items: flex-start; }
  .selector { grid-template-columns: 1fr 1fr; }
  .selector button { grid-column: span 2; }
  .stats { grid-template-columns: 1fr 1fr; }
  .auth-card form.grid2 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
}

/* ---------- Products ---------- */
.pr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 16px; }
.pr-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .2s, border-color .2s; }
.pr-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(29,37,48,.10); border-color: var(--brand); }
.pr-img { height: 170px; display: flex; align-items: center; justify-content: center; background: #f8f9fb; border-radius: 6px; margin-bottom: 12px; padding: 10px; }
.pr-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pr-kind { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); font-weight: 700; }
.pr-card h3 { margin: 4px 0 2px; font-size: 18px; }
.pr-card p { margin: 0 0 10px; }
.pr-specs { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 12px; }
.pr-specs td { padding: 4px 0; border-bottom: 1px solid var(--line); }
.pr-specs td:last-child { text-align: right; font-weight: 600; }
.pr-more { margin-top: auto; color: var(--brand); font-weight: 600; font-size: 14px; }
.pd-top { display: grid; grid-template-columns: 1fr 360px; gap: 18px; align-items: start; }
.pd-hero { display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: center; }
.pd-hero h1 { margin: 4px 0; }
.pd-img { background: #f8f9fb; border-radius: 6px; height: 220px; display: flex; align-items: center; justify-content: center; padding: 10px; }
.pd-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pd-kv { width: 100%; border-collapse: collapse; font-size: 14px; }
.pd-kv td { padding: 5px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.pd-kv td:last-child { text-align: right; font-weight: 600; padding-left: 12px; }
.pd-kv.dims td:first-child { font-weight: 700; }
.pd-duty { display: flex; flex-direction: column; gap: 10px; }
.pd-duty h3 { margin: 0; }
.pd-duty label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
.pd-duty .inline { display: flex; gap: 6px; }
.pd-duty .inline input { flex: 1; min-width: 0; }
.pd-result { border-radius: 6px; padding: 10px 12px; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.pd-result.ok { background: #ecfdf3; border: 1px solid #a7e3bd; }
.pd-result.no { background: #eef8f2; border: 1px solid #f6c3a5; }
.pd-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.pd-nav { position: sticky; top: 0; z-index: 3; display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; margin: 8px 0; background: var(--bg); }
.pd-nav a { white-space: nowrap; padding: 7px 13px; border-radius: 16px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; }
.pd-nav a:hover { border-color: var(--brand); color: var(--brand); }
.pd-sec { margin-bottom: 18px; scroll-margin-top: 64px; }
.pd-sec h2 { margin: 0 0 14px; font-size: 20px; }
.pd-sec h4 { margin: 16px 0 6px; }
.pd-sec p { line-height: 1.55; }
.pd-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.pd-two.wide-left { grid-template-columns: 1.7fr 1fr; }
.pd-two h4:first-child { margin-top: 0; }
.pd-chart svg { width: 100%; max-width: 640px; height: auto; display: block; margin: 0 auto; }
.pd-chart.motor svg { max-width: 820px; }
.pd-dwg { display: block; position: relative; border: 1px solid var(--line); border-radius: 6px; padding: 10px; background: #fff; }
.pd-dwg img { width: 100%; height: auto; display: block; }
.pd-dwg span { position: absolute; right: 8px; bottom: 8px; font-size: 12px; background: var(--ink); color: #fff; padding: 3px 8px; border-radius: 4px; opacity: .85; }
.pd-cols { columns: 2; column-gap: 24px; }
.pd-cols.three { columns: 3; margin-top: 14px; }
.pd-cols .pd-kv tr { break-inside: avoid; }
.pd-parts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 18px; font-size: 14px; }
.pd-parts div { padding: 5px 0; border-bottom: 1px solid var(--line); }
.pd-parts b { display: inline-block; width: 42px; color: #0f766e; }
.pd-load { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 14px; }
.pd-load th { background: #f8f9fb; text-align: right; padding: 7px; }
.pd-load td { text-align: right; padding: 6px 7px; border-bottom: 1px solid var(--line); }
.pd-load th:first-child, .pd-load td:first-child { text-align: left; }
@media (max-width: 960px) {
  .pd-top { grid-template-columns: 1fr; }
  .pd-two, .pd-two.wide-left { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pd-hero { grid-template-columns: 1fr; }
  .pd-img { height: 170px; }
  .pd-cols, .pd-cols.three { columns: 1; }
  .pd-load { font-size: 12px; }
  .pr-grid { grid-template-columns: 1fr; }
}

/* ---------- SUBEX demo ---------- */
.demo-band { background: #fff3cd; color: #6b4e00; border-bottom: 1px solid #f0d27a; font-size: 12.5px; text-align: center; padding: 6px 12px; line-height: 1.4; }
.demo-note { margin-top: 14px; font-size: 12px; color: #6b4e00; background: #fff8e1; border: 1px solid #f0d27a; border-radius: 6px; padding: 8px 10px; }
.hero-pump { position: absolute; right: 30px; top: 60px; height: 82%; max-height: 640px; opacity: .9; pointer-events: none; filter: drop-shadow(0 24px 40px rgba(0,0,0,.45)); animation: pumpFloat 6s ease-in-out infinite, impIn 1.6s ease-out both; }
@keyframes pumpFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.login-hero .hero-body, .login-hero .hero-chart { position: relative; z-index: 2; max-width: 520px; }
@media (max-width: 1200px) { .hero-pump { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .hero-pump { animation: none; } }
.sw-chart { width: 100%; height: auto; display: block; }
.warn-box { background: #fff8e1; border: 1px solid #f0d27a; border-radius: 8px; padding: 12px 14px; color: #5c4400; font-size: 14px; }
.ok-box { background: #ecfdf3; border: 1px solid #a7e3bd; border-radius: 8px; padding: 12px 14px; font-size: 14px; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: #e7f6ee; color: #0d6b35; }
.badge.grey { background: #eef0f3; color: #4b5563; }
.badge.warn { background: #fff3cd; color: #6b4e00; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.filters label { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; }
.viewer-wrap { position: relative; background: radial-gradient(circle at 50% 35%, #ffffff 0%, #eef3f7 70%); border-radius: 8px; border: 1px solid var(--line); }
model-viewer { width: 100%; height: 520px; --poster-color: transparent; }
.viewer-tabs { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; z-index: 2; }
.viewer-tabs button { background: #fff; color: var(--ink); border: 1px solid var(--line); padding: 6px 12px; font-size: 13px; }
.viewer-tabs button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.viewer-hint { position: absolute; right: 12px; bottom: 10px; font-size: 12px; color: var(--muted); }
.cut-fig { position: relative; }
.cut-fig img { width: 100%; height: auto; display: block; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.calc-grid label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.calc-out { font-size: 15px; }
.calc-out .big { font-size: 34px; font-weight: 800; color: var(--brand); }
.chk-table td, .chk-table th { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 14px; }
.chk-table th { background: #f8f9fb; font-size: 12px; text-transform: uppercase; color: var(--muted); }
.status { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 10px; }
.status.new { background: #e0ecff; color: #1d4ed8; } .status.quoted { background: #fff3cd; color: #6b4e00; } .status.won { background: #e7f6ee; color: #0d6b35; } .status.lost { background: #eef0f3; color: #4b5563; }
@media (max-width: 860px) { .calc-grid { grid-template-columns: 1fr; } model-viewer { height: 400px; } }
.lang-switch { display: inline-flex; gap: 2px; margin-left: 6px; border: 1px solid var(--line); border-radius: 16px; padding: 2px; }
.lang-switch a { padding: 3px 9px; border-radius: 14px; font-size: 12.5px; font-weight: 600; color: var(--muted); text-decoration: none; }
.lang-switch a.on { background: var(--brand); color: #fff; }
.login-lang { position: absolute; top: 12px; right: 16px; z-index: 5; background: #fff; }
[dir="rtl"] body, [dir="rtl"] { font-family: "Segoe UI", Tahoma, Arial, sans-serif; }
[dir="rtl"] .results th, [dir="rtl"] .results td, [dir="rtl"] .list th, [dir="rtl"] .list td, [dir="rtl"] .chk-table td, [dir="rtl"] .chk-table th { text-align: right; }
[dir="rtl"] .pd-kv td:last-child, [dir="rtl"] .pr-specs td:last-child { text-align: left; padding-left: 0; padding-right: 12px; }
[dir="rtl"] .lang-switch { margin-left: 0; margin-right: 6px; }
[dir="rtl"] .hero-pump { right: auto; left: 30px; }
[dir="rtl"] .login-lang { right: auto; left: 16px; }
.num, .ltr { direction: ltr; unicode-bidi: embed; }
.login-panel { position: relative; }
.pd-hero.pd-hero-3d { grid-template-columns: 1.15fr 1fr; align-items: start; }
.cut-fig .cut-svg, .cut-svg { width: 100%; height: auto; display: block; }
.pd-kv.feat td:first-child { font-weight: 700; width: 34%; }
.pd-kv.feat td:last-child { text-align: left; font-weight: 400; }
.pd-kv.code td:first-child { width: 70px; color: var(--brand); }
.pd-kv.code td:last-child { text-align: left; font-weight: 400; }
@media (max-width: 640px) { .pd-hero.pd-hero-3d { grid-template-columns: 1fr; } }
[dir="rtl"] td, [dir="rtl"] .pd-result span, [dir="rtl"] .cv-cards .card { unicode-bidi: plaintext; }
.cut-fig { max-width: 980px; margin: 0 auto 14px; }
.hero-logo img { height: 64px; }
.brand img { height: 46px; }
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; row-gap: 6px; padding: 8px 14px; }
  .topbar nav { width: 100%; display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 14px; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .topbar nav a { white-space: nowrap; }
  .topbar .who { display: none; }
  .brand img { height: 36px; }
  model-viewer { height: 340px; }
}
