/* ——— главная ——— */
.home { max-width: 1400px; width: 100%; margin: 0 auto; }
.home-hi { display: flex; align-items: baseline; gap: 14px; padding: 12px 8px 18px; flex-wrap: wrap; }
.home-hi h1 { font-size: 24px; letter-spacing: -.02em; }

.home-work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.work {
  display: flex; align-items: center; gap: 18px; padding: 18px 22px 18px 14px; text-align: left; width: 100%; min-width: 0;
  transition: box-shadow .15s; position: relative;
}
.work:hover { box-shadow: var(--sh-card); }
.work .w-img { width: 112px; height: 112px; object-fit: contain; flex: none; }
.work .w-b { flex: 1; min-width: 0; }
.work .w-t { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.work .w-n { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.work .w-n .big-num { font-size: 36px; }
.work .w-n span:last-child { font-size: 15px; color: var(--ink); }
.work .w-s { display: flex; gap: 16px; margin-top: 8px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.work .w-s span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--na); flex: none; }
.dot.na { background: #BCC7D8; } .dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); }
.dot.ok { background: var(--ok); } .dot.brand { background: var(--accent); }
.work .w-u { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hair); font-size: 13px; color: var(--ink-2); }
.work .w-u svg { width: 16px; height: 16px; color: var(--icon-2); flex: none; }
.work .w-u span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work .w-go { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none; align-self: flex-start; }
.work .w-go svg { width: 18px; height: 18px; }
.work:hover .w-go { background: var(--fill-2); }

.home-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.hp { padding: 20px 22px 12px; min-width: 0; }
.hp-h { display: flex; align-items: center; gap: 12px; min-height: 32px; }
.hp-h h3 { flex: 1; font-size: 16px; }
.hp-h a, .hp-sub a { font-size: 13px; font-weight: 500; }
.hp-k { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.hp-k > div { display: flex; flex-direction: column; gap: 4px; }
.hp-chart { margin-top: 14px; }
.hp-chart .chart { height: 132px; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.hp-sub { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 2px; }
.hp-sub h4 { font-size: 14px; }
.hp-list { display: flex; flex-direction: column; }
.hl, .hq { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 2px; border-top: 1px solid var(--hair); }
.hl:first-child, .hq:first-child { border-top: 0; }
.hl:hover, .hq:hover { background: var(--fill-2); border-radius: 8px; }
.hl-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hl-t b { font-weight: 500; font-size: 14px; }
.hl-t span { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl .st { flex: none; }
.hl .st .st-t { white-space: nowrap; }
.hl-w { width: 150px; flex: none; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.hl-d { width: 92px; flex: none; text-align: right; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hq-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hq-t b { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hq-t span { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hq-r { width: 22px; flex: none; display: grid; place-items: center; }
.hq-r svg { width: 16px; height: 16px; }
.hq-r.up { color: var(--ok); } .hq-r.down { color: var(--bad); }

/* ——— новости ——— */
.news { margin-top: 12px; padding: 20px 22px 22px; }
.news-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.news-card { display: flex; flex-direction: column; text-align: left; gap: 8px; min-width: 0; }
.news-card .n-img { display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #EDF2F9; }
.news-card .n-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.news-card:hover .n-img img { transform: scale(1.03); }
.news-card .n-meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; min-width: 0; }
.n-fav { width: 16px; height: 16px; border-radius: 4px; flex: none; object-fit: contain; }
.n-fav-l { display: inline-grid; place-items: center; background: var(--fill); color: var(--ink-2); font-size: 10px; font-weight: 600; }
.news-card .n-src { color: var(--ink-2); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.news-card .n-d { flex: none; }
.news-card .n-d::before { content: "·"; margin-right: 6px; }
.news-card .n-t { font-size: 14px; font-weight: 500; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card:hover .n-t { color: var(--accent-2); }
.news-more { display: flex; justify-content: center; margin-top: 16px; }
.news-modal { width: min(640px, 100%); position: relative; }
.news-modal .modal-head { position: absolute; right: 0; top: 0; padding: 14px; z-index: 2; }
.news-modal .modal-head h2 { display: none; }
.news-modal .modal-body { padding: 0 0 8px; }
.nm-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #EDF2F9; }
.nm-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); font-weight: 500; margin: 18px 24px 0; }
.nm-meta .faint { font-weight: 400; }
.nm-feu b { display: inline-flex; align-items: center; gap: 8px; }
.nm-t { font-size: 20px; line-height: 1.35; margin: 6px 24px 0; }
.nm-s { margin: 10px 24px 0; font-size: 15px; line-height: 1.6; color: var(--ink); }
.nm-feu { margin: 16px 24px 0; padding: 14px 16px; border-radius: 12px; background: var(--fill-2); }
.nm-feu b { font-weight: 600; font-size: 14px; }
.nm-feu p { margin: 4px 0 0; font-size: 14px; line-height: 1.55; }

/* ——— графики ——— */
.chart { display: block; overflow: visible; }
.chart .ax { font-size: 11px; fill: var(--ink-3); font-family: var(--font); }
.chart .hit { cursor: default; }
.chart .xhair .xl, .chart .xhair .xd { opacity: 0; transition: opacity .1s; }
.chart .xhair:hover .xl, .chart .xhair:hover .xd { opacity: 1; }
.spark { display: block; }
.hbars { display: flex; flex-direction: column; gap: 10px; }
.hb { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: end; }
.hb-l { font-size: 13px; min-width: 0; display: flex; gap: 8px; align-items: baseline; }
.hb-l em { font-style: normal; font-size: 12px; color: var(--ink-3); flex: none; }
.hb-t { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--fill-2); overflow: hidden; order: 3; }
.hb-t i { display: block; height: 100%; border-radius: 3px; }
.hb-v { font-size: 13px; color: var(--ink); }
.ring-t, .dn-c { font-family: var(--font); font-weight: 600; font-size: 15px; fill: var(--ink); }
.dn-s { font-family: var(--font); font-size: 10px; fill: var(--ink-3); }

@media (max-width: 1440px) {
  .hl-w { width: auto; }
  .hl-w > span:not(.ava) { display: none; }
}
@media (max-width: 1280px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .home-work, .home-two { grid-template-columns: 1fr; }
}

.hq-lock { display: inline-grid; place-items: center; color: var(--icon-2); }
.hq-lock svg { width: 12px; height: 12px; }
