/* ============================================================
   V1T — Industry solution page (scale 0–100% interactive)
   ============================================================ */

/* ---------- Problems / benefits intro ---------- */
.prob-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
@media (max-width: 900px){ .prob-grid { grid-template-columns: 1fr; } }
.prob {
  display: flex; gap: 14px; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--gray-200);
}
.prob .pi { flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(224,85,106,.1); color: #d8485e; }
.prob.good .pi { background: rgba(43,140,196,.12); color: var(--brand-deep); }
.prob .pi svg { width: 20px; height: 20px; }
.prob h4 { font-size: 1rem; margin-bottom: 4px; }
.prob p { font-size: .9rem; color: var(--muted); }

/* ============================================================
   SCALE INTERACTIVE
   ============================================================ */
.scale-section { background: var(--navy); color: #e7eef5; position: relative; overflow: clip; }
.scale-section::before { content:""; position:absolute; inset:0; background: radial-gradient(60% 50% at 75% 20%, rgba(56,168,232,.16), transparent 60%); pointer-events:none; }
.scale-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: start; position: relative; z-index: 1; }
@media (max-width: 960px){ .scale-wrap { grid-template-columns: 1fr; } }

.scale-sticky { position: static; }
.scale-right { display: flex; flex-direction: column; }
/* controls row: pills (over diagram) · variant + buy (over content) */
.scale-controls { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: stretch; margin-bottom: 14px; }
.scale-controls .scale-pills { margin-bottom: 0; }
.scale-cta { display: flex; align-items: stretch; justify-content: space-between; gap: 10px; }
.scale-cta .scale-buy { padding: 12px 26px; font-size: 1.02rem; white-space: nowrap; }
@media (max-width: 960px){ .scale-controls { grid-template-columns: 1fr; gap: 12px; } }
@media (max-width: 560px){ .scale-cta { flex-direction: column; align-items: stretch; } .scale-cta .scale-buy { width: 100%; } }
/* level pills / progress */
.scale-pills { display: flex; gap: 8px; margin-bottom: 18px; }
/* controls under the diagram: variant left, button right */
/* legacy under-diagram row no longer used */
.scale-under { display: none; }
.scale-pill {
  flex: 1; padding: 12px 8px; border-radius: 12px; text-align: center; cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: all var(--t-fast);
}
.scale-pill .pv { font-weight: 800; font-size: 1.05rem; color: #fff; }
.scale-pill .pl { font-size: .72rem; color: #93a6b8; margin-top: 2px; }
.scale-pill.active { background: var(--grad-brand); border-color: transparent; box-shadow: var(--shadow-blue); }
.scale-pill.active .pl { color: rgba(255,255,255,.9); }

.scale-track { height: 6px; border-radius: 999px; background: rgba(255,255,255,.1); margin-bottom: 22px; overflow: hidden; }
.scale-track .fill { height: 100%; width: 0; background: var(--grad-brand); border-radius: 999px; transition: width .6s var(--ease); }

/* stage */
.scale-stage {
  position: relative; border-radius: var(--radius-lg); padding: 18px; min-height: 360px;
  background: linear-gradient(180deg, rgba(13,34,54,.9), rgba(8,20,34,.9)); border: 1px solid rgba(56,168,232,.18);
  box-shadow: var(--shadow-lg);
}
.scale-stage .grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(56,168,232,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(56,168,232,.07) 1px, transparent 1px); background-size: 28px 28px; border-radius: var(--radius-lg); pointer-events: none; }
.truck-svg { width: 100%; height: auto; display: block; position: relative; z-index: 1; }
.stage-img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; display: block; }

/* schematic elements */
.truck-body { fill: none; stroke: rgba(180,210,235,.55); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.truck-fill { fill: rgba(120,170,210,.06); }
.truck-wheel { fill: #0a1828; stroke: rgba(180,210,235,.5); stroke-width: 3; }
.truck-wheel-in { fill: rgba(120,170,210,.15); }
.truck-glass { fill: rgba(56,168,232,.12); stroke: rgba(120,200,255,.4); stroke-width: 2; }

.hub { opacity: 0; transition: opacity .5s var(--ease); }
.hub.on { opacity: 1; }
.hub rect { fill: rgba(43,140,196,.2); stroke: var(--brand-bright); stroke-width: 2; }
.hub text { fill: #cfe6f7; font-size: 13px; font-weight: 700; }

/* connection lines */
.wire { stroke: var(--brand-bright); stroke-width: 2; fill: none; stroke-dasharray: 6 6; opacity: 0; transition: opacity .5s var(--ease); }
.wire.on { opacity: .9; animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }

/* camera nodes */
.cam { opacity: 0; transition: opacity .45s var(--ease); cursor: pointer; pointer-events: none; }
.cam.on { opacity: 1; pointer-events: auto; }
.cam .ring, .cam .core { transform: scale(.3); transform-box: fill-box; transform-origin: center; transition: transform .45s var(--ease); }
.cam.on .ring, .cam.on .core { transform: scale(1); }
.cam .ring { fill: rgba(56,168,232,.16); stroke: var(--brand-bright); stroke-width: 2; }
.cam .core { fill: var(--brand-bright); }
.cam .pulse { fill: var(--brand-bright); opacity: 0; transform-box: fill-box; transform-origin: center; }
.cam.on .pulse { animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0%{ transform: scale(1); opacity:.5; } 100%{ transform: scale(3); opacity:0; } }
.cam.ai .ring { stroke: #36e0a0; fill: rgba(54,224,160,.16); }
.cam.ai .core { fill: #36e0a0; }
.cam.ai .pulse { fill: #36e0a0; }
.cam-label { fill: #bcd4e8; font-size: 12px; font-weight: 600; opacity: 0; transition: opacity .4s; }
.cam.on .cam-label { opacity: 1; }

/* tooltip on hover (100%) */
.cam-tip { pointer-events: none; opacity: 0; transition: opacity .25s; }
.cam:hover .cam-tip { opacity: 1; }
.cam-tip rect { fill: #06101c; stroke: #36e0a0; stroke-width: 1.5; }
.cam-tip text { fill: #eafff6; font-size: 12.5px; font-weight: 700; }

/* empty state badge */
.stage-badge { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700; background: rgba(10,24,40,.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.14); color: #cfe0ef; white-space: nowrap; }
.stage-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: #5a6b7d; }
/* per-level status dot colour */
.scale-stage[data-lvl="0"] .stage-badge .dot { background: #e0556a; box-shadow: 0 0 0 4px rgba(224,85,106,.2); }
.scale-stage[data-lvl="1"] .stage-badge .dot { background: #f2c037; box-shadow: 0 0 0 4px rgba(242,192,55,.2); }
.scale-stage[data-lvl="2"] .stage-badge .dot { background: #1f9d57; box-shadow: 0 0 0 4px rgba(31,157,87,.22); }
.scale-stage[data-lvl="3"] .stage-badge .dot { background: #36e0a0; box-shadow: 0 0 0 4px rgba(54,224,160,.2); }

/* variant toggle (100%) */
.variant-toggle { display: inline-flex; align-items: stretch; visibility: hidden; gap: 5px; padding: 5px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; }
.scale-section.show-variant .variant-toggle { visibility: visible; }
.scale-section.car-only .variant-toggle,
.scale-section.rec-only .variant-toggle { visibility: hidden !important; }
/* легковые: только уровни 0% и 100% */
.scale-section.levels-2 .scale-pill:nth-child(2),
.scale-section.levels-2 .scale-pill:nth-child(3) { display: none; }
.variant-toggle button { display: flex; align-items: center; padding: 0 15px; border-radius: 8px; font-weight: 700; font-size: .85rem; color: #aebccb; white-space: nowrap; transition: all var(--t-fast); }
.variant-toggle button.active { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-blue); }

/* ---------- Scrolling steps ---------- */
/* steps swap in place (no scrolling) — show only the active one */
.scale-steps { display: grid; }
.scale-step { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s linear .4s; pointer-events: none; }
.scale-step.active { opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  transition: opacity .4s var(--ease), transform .4s var(--ease); }
@media (max-width: 960px){ .scale-steps { margin-top: 18px; } }
.scale-step .lvl-tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-weight: 800; font-size: .8rem; background: rgba(56,168,232,.16); color: var(--brand-bright); margin-bottom: 14px; }
.scale-step h3 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: 12px; }
.scale-step .st-sub { color: #9fb0c1; margin-bottom: 20px; }
.st-block { margin-top: 18px; }
.st-block .st-h { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #7e93a6; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.st-list { display: grid; gap: 8px; }
.st-list li { display: flex; gap: 10px; font-size: .94rem; color: #c3d2df; }
.st-list li svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; }
.st-list.problems li svg { color: #e87b8c; }
.st-list.solution li svg { color: #36e0a0; }
.st-list.equip li svg { color: var(--brand-bright); }
.st-equip-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.st-equip-chips .ec { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); font-size: .85rem; font-weight: 600; color: #d7e3ee; }
.st-equip-chips .ec img { width: 22px; height: 22px; }

/* ---------- Additional equipment ---------- */
.addon-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
@media (max-width: 900px){ .addon-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px){ .addon-grid { grid-template-columns: 1fr; } }
.addon {
  position: relative; border-radius: var(--radius); border: 1px solid var(--gray-200); background: #fff; overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t); cursor: pointer;
}
.addon:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(43,140,196,.35); }
.addon__face { padding: 22px; }
.addon__face .ico { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(56,168,232,.16), rgba(43,140,196,.1)); margin-bottom: 14px; }
/* rotating product image (replaces icon on some cards) */
.addon-rot { position: relative; width: 100%; height: clamp(120px,12vw,160px); margin-bottom: 12px; background: #fff; border-radius: var(--radius); overflow: hidden; }
.addon-rot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.addon-rot img.rot-anim { transition: opacity .55s ease; }
.addon-desc { font-size: .86rem; color: var(--muted); margin-top: 6px; }
.addon__face .ico img { width: 28px; height: 28px; }
.addon__face .ico svg { width: 26px; height: 26px; color: var(--brand-deep); }
.addon__face h4 { margin-bottom: 6px; }
.addon__face .tag { font-size: .78rem; color: var(--brand-deep); font-weight: 700; }
.addon__hint { font-size: .82rem; color: var(--muted-2); margin-top: 10px; display: flex; align-items: center; gap: 6px; }
.addon__hint svg { width: 14px; height: 14px; }
.addon__detail {
  max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); background: var(--gray-50); border-top: 1px solid transparent;
}
.addon:hover .addon__detail { max-height: 420px; border-top-color: var(--gray-200); }
.addon__detail .inner { padding: 14px 18px; }
.addon__detail .col + .col { margin-top: 10px; }
.addon__detail .ch { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; background: none; padding: 0; }
/* neutralize the generic .prob card styles for the detail label */
.addon__detail .ch.prob { display: block; gap: 0; padding: 0; border: none; background: none; border-radius: 0; color: #d8485e; }
.addon__detail .ch.sol { color: #1faa72; }
.addon__detail ul li { display: flex; gap: 8px; font-size: .86rem; color: var(--ink-2); padding: 3px 0; }
.addon__detail ul li svg { flex-shrink: 0; width: 15px; height: 15px; margin-top: 3px; }
.addon__detail .prob-list li svg { color: #e0556a; } .addon__detail .sol-list li svg { color: #36c08a; }

/* ---------- Kit example ---------- */
.kit { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 860px){ .kit { grid-template-columns: 1fr; } }
.kit__img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.kit__list { display: grid; gap: 10px; }
.kit__list .ki { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--gray-50); border: 1px solid var(--gray-200); font-weight: 600; font-size: .92rem; }
.kit__list .ki .n { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--grad-brand); color: #fff; font-size: .8rem; font-weight: 800; flex-shrink: 0; }
