/* hub — Figma 341:3 „Reklama — hub platform” (prefiks .hb-) */
.hb-per{display:flex;gap:8px;flex-wrap:wrap}
.hb-per button{height:44px;padding:0 18px;border-radius:999px;background:#fff;border:1px solid var(--line);font-weight:500;font-size:13.5px;white-space:nowrap;transition:.15s}
.hb-per button:hover{border-color:#CDD2DD} .hb-per button.on{background:var(--ink);border-color:var(--ink);color:#fff;font-weight:600}

.hb-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.hb-kpi{background:#fff;border-radius:24px;padding:22px 24px;min-width:0;display:flex;flex-direction:column;gap:10px}
.hb-kpi small{font-size:11.5px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.hb-kpi > div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.hb-kpi b{font-size:27px;font-weight:700;letter-spacing:-.01em;line-height:1.2;white-space:nowrap}

.hb-pcs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.hb-pc{display:flex;flex-direction:column;border-radius:var(--r);padding:22px 22px 20px;min-width:0;transition:transform .15s,box-shadow .15s;box-shadow:0 1px 2px rgba(16,19,34,.04)}
.hb-pc:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(16,19,34,.08)}
.hb-google{background:linear-gradient(180deg,#E2ECFD 0%,#EDF3FE 100%)}
.hb-meta{background:linear-gradient(180deg,#EAE6FD 0%,#F1EFFE 100%)}
.hb-chatgpt{background:linear-gradient(180deg,#DFF2E6 0%,#EAF6EE 100%)}
.hb-pch{display:flex;align-items:center;gap:14px;margin-bottom:22px}
.hb-pch .plogo{border:0} .hb-google .plogo,.hb-meta .plogo{box-shadow:0 0 0 1px rgba(16,19,34,.04)}
.hb-pch b{display:block;font-size:19px;font-weight:600;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis} .hb-pch small{display:block;font-size:12.5px;color:var(--muted)}
.hb-go{width:42px;height:42px;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;flex:none;transition:.15s}
.hb-pc:hover .hb-go{background:var(--accent)}
.hb-lab{font-size:12.5px;color:var(--muted)}
.hb-big{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:6px 0 4px}
.hb-big b{font-size:34px;font-weight:700;letter-spacing:-.02em;line-height:1.2;white-space:nowrap}
.hb-big .chip{background:#fff}
.hb-spark{margin:14px 0 16px} .hb-spark .lchart path:first-of-type{fill-opacity:.2} .hb-spark .lchart{-webkit-mask-image:linear-gradient(#000 45%,rgba(0,0,0,.15));mask-image:linear-gradient(#000 45%,rgba(0,0,0,.15))}
.hb-mini{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.hb-mini span{background:#fff;border-radius:16px;padding:10px 12px;min-width:0}
.hb-mini small{display:block;font-size:11px;color:var(--muted)} .hb-mini b{display:block;font-size:16px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.hb-row{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:16px;align-items:stretch}
.hb-ch{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.hb-ch h3{margin:0;font-size:18px;font-weight:600} .hb-ch p{margin:2px 0 0;font-size:12.5px;color:var(--muted)}
.hb-legs{display:flex;gap:8px;flex-wrap:wrap}
.hb-leg{display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 13px;border-radius:999px;border:1px solid var(--line);background:#fff;font-weight:500;font-size:13px;transition:.15s}
.hb-leg i{width:8px;height:8px;border-radius:50%} .hb-leg:hover{border-color:#CDD2DD}
.hb-leg.off{color:var(--faint);background:var(--soft);border-color:var(--soft)} .hb-leg.off i{background:var(--faint)!important}
.hb-plot{position:relative}
.hb-ov{position:absolute;left:0;right:0;top:0;cursor:crosshair}
.hb-guide{position:absolute;top:0;bottom:0;width:0;border-left:1.5px dashed #B9BFCC;transform:translateX(-.75px);pointer-events:none}
.hb-dot{position:absolute;width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:50%;background:#fff;border:2.5px solid var(--c);pointer-events:none}
.hb-tip{position:absolute;top:6px;background:#fff;border-radius:14px;padding:10px 14px;box-shadow:0 10px 30px rgba(16,19,34,.14);display:flex;flex-direction:column;gap:3px;pointer-events:none;white-space:nowrap;font-size:12.5px;font-weight:500;color:var(--ink)}
.hb-tip small{font-size:11.5px;color:var(--muted);margin-bottom:2px} .hb-tip span{display:flex;align-items:center;gap:7px} .hb-tip i{width:7px;height:7px;border-radius:50%}
.hb-empty{display:grid;place-items:center;color:var(--muted);font-size:13px;background:var(--soft);border-radius:18px}
.hb-sharec{display:flex;flex-direction:column}
.hb-donut{display:grid;place-items:center;padding:4px 0 22px;flex:1}
.hb-donut .donut svg circle{stroke-width:17}
.hb-donut .donut b{font-size:24px}
.hb-share{display:flex;flex-direction:column;gap:4px}
.hb-share a{display:grid;grid-template-columns:10px minmax(0,1fr) auto 44px;align-items:center;gap:10px;padding:6px 8px;margin:0 -8px;border-radius:12px;font-size:13.5px}
.hb-share a:hover{background:var(--soft)}
.hb-share i{width:9px;height:9px;border-radius:50%} .hb-share span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis} .hb-share b{font-weight:600;white-space:nowrap} .hb-share em{font-style:normal;color:var(--muted);text-align:right}

.hb-ah{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.hb-ah h3{margin:0;font-size:18px;font-weight:600;display:flex;align-items:center;gap:10px}
.hb-all{color:var(--accent);font-weight:600;font-size:13px;white-space:nowrap} .hb-all:hover{text-decoration:underline}
.hb-att{display:flex;flex-direction:column}
.hb-ai{display:flex;align-items:center;gap:14px;padding:14px 0;border-top:1px solid var(--line2)}
.hb-ai:first-child{border-top:0}
.hb-ai .plogo{border:1px solid var(--line)} .hb-ai .plogo.chatgpt{border:0}
.hb-ai b{display:block;font-weight:600;font-size:14px} .hb-ai small{display:block;font-size:12.5px;color:var(--muted)}
.hb-aa{display:flex;align-items:center;gap:12px;flex:none}
.hb-aa .btn{min-width:110px}

@media (max-width:1280px){ .hb-row{grid-template-columns:minmax(0,1fr) 320px} .hb-big b{font-size:28px} .hb-pch b{font-size:17px} }
@media (max-width:1100px){ .hb-pcs{grid-template-columns:repeat(2,minmax(0,1fr))} .hb-pcs .hb-chatgpt{grid-column:1/-1} .hb-row{grid-template-columns:minmax(0,1fr)} .hb-kpis{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:760px){
  .hb-per{gap:6px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 -12px;padding:0 12px} .hb-per::-webkit-scrollbar{display:none}
  .hb-per button{height:38px;padding:0 14px;font-size:13px;flex:none}
  .hb-kpis{gap:10px} .hb-kpi{padding:16px;border-radius:20px;gap:8px} .hb-kpi small{font-size:10.5px} .hb-kpi b{font-size:20px} .hb-kpi > div{gap:6px}
  .hb-pcs{grid-template-columns:minmax(0,1fr);gap:12px} .hb-pc{padding:18px}
  .hb-pch{margin-bottom:14px} .hb-pch .plogo{width:40px!important;height:40px!important} .hb-go{width:38px;height:38px}
  .hb-big b{font-size:28px} .hb-spark{margin:10px 0 12px}
  .hb-row{gap:14px}
  .hb-ch{margin-bottom:12px}
  .hb-tip{font-size:11.5px;padding:8px 10px}
  .hb-donut .donut{width:170px!important;height:170px!important}
  .hb-ai{flex-wrap:wrap;gap:10px 12px} .hb-ai .plogo{width:34px!important;height:34px!important}
  .hb-ai .grow{flex:1 1 calc(100% - 50px)}
  .hb-aa{width:100%;padding-left:46px;justify-content:space-between} .hb-aa .btn{height:36px;font-size:13px}
  .hb-ah{flex-wrap:wrap}
}
