/* =====================================================================
   Вики: список героев (/wiki/heroes) и страница героя (/wiki/hero/<short>)
   в оформлении страницы-патча (2026-11-21). База — css/pages/news_patch.css
   (dp-*), здесь только раскладка и то, чего в новостях нет. Подключается
   после news_patch.css (templates/wiki.tpl.php), правки — под .wh для веса.
   Цвета — переменные --dp-* и оранжевый акцент rgb(243, 129, 60).
   Статистика (_wstats.php) — отдельный файл css/pages/wiki/wstats.css.
   ===================================================================== */

.dp-page.wh {
    --wh-accent: rgb(243, 129, 60);
    --wh-sunk: rgba(0, 0, 0, 0.32);
    max-width: none;
    margin: 0;
    padding-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ---------- Плашка-заголовок страницы ---------- */
.wh .wh-plaque.dp-section__title {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: var(--wk-tpy) var(--wk-px);
    font-size: clamp(24px, 3vw, 32px);
    letter-spacing: 3px;
    line-height: 1.15;
    text-align: left;
    overflow-wrap: anywhere;
}
.wh .wh-plaque img,
.wh .wh-group__title img { flex: none; width: 30px; height: 30px; filter: drop-shadow(0 0 6px rgba(0, 0, 0, .8)); }
.wh .wh-plaque__n {
    margin-left: 2px;
    padding: 2px 10px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.35);
    color: var(--dp-text-soft);
    font-family: var(--dp-sans);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: none;
    vertical-align: middle;
}
.wh .dp-section__title .wh-plaque__n { margin-left: 12px; }
.wh .wh-plaque .wh-plaque__n, .wh .wh-group__title .wh-plaque__n { margin-left: 0; }

/* ======================= СПИСОК ГЕРОЕВ ======================= */

.wh .wh-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding: var(--wk-py) var(--wk-px);
    background: var(--dp-panel-bg);
    box-shadow: var(--dp-panel-shadow);
}
.wh .wh-bar__search.wiki-filter {
    flex: 1 1 300px;
    max-width: 380px;
    height: 42px;
    margin: 0;
    border-radius: 3px;
    background: var(--wh-sunk);
    border: 1px solid var(--dp-panel-edge);
    box-shadow: none;
}
.wh .wh-bar__search.wiki-filter:focus-within { border-color: rgba(243, 129, 60, .6); }
.wh .wh-bar__search .wiki-filter__input { font-family: var(--dp-sans); font-size: 16px; font-weight: 600; color: var(--dp-strong); }
.wh .wh-bar__attrs { display: flex; flex-wrap: wrap; gap: 6px; }
.wh .wh-attr {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--dp-panel-edge);
    border-radius: 3px;
    background: var(--wh-sunk);
    color: var(--dp-text-soft);
    font-family: var(--dp-sans);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.wh .wh-attr img { width: 20px; height: 20px; }
.wh .wh-attr:hover { color: var(--dp-strong); border-color: rgba(255, 255, 255, .2); }
.wh .wh-attr.is-on {
    color: var(--dp-strong);
    border-color: var(--wh-accent);
    background: linear-gradient(180deg, rgba(243, 129, 60, .22), rgba(131, 51, 18, .25));
}
.wh .wh-attr:focus-visible { outline: 2px solid var(--wh-accent); outline-offset: 2px; }
.wh .wh-bar__note { flex-basis: 100%; margin: 0; color: var(--dp-text); font-size: 14px; font-weight: 600; }

.wh .wh-roster { display: flex; flex-direction: column; gap: var(--wk-section); }
.wh .wiki-rgroup { margin-top: 0; }
.wh .wiki-rgroup.is-attr-hidden { display: none; }
.wh .wh-group { scroll-margin-top: 80px; }
.wh .wh-group__title { display: flex; align-items: center; gap: 12px; }

.wh .wh-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
    gap: var(--wk-card);
    padding: var(--wk-py) var(--wk-px);
    background: var(--dp-panel-bg);
    box-shadow: var(--dp-panel-shadow);
}

.wh .wh-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid var(--dp-panel-edge);
    border-radius: 3px;
    overflow: hidden;
    color: var(--dp-text);
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.wh .wh-card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.wh .wh-card__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.wh .wh-card__media::after {
    content: '';
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(to top, rgba(8, 10, 13, .95), rgba(8, 10, 13, 0));
    pointer-events: none;
}
.wh .wh-card__flag {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 2px;
    background: rgba(0, 0, 0, .7);
    color: var(--dp-text-soft);
}
.wh .wh-card__name {
    position: relative;
    z-index: 1;
    margin: -30px 0 0;
    padding: 0 12px 8px;
    color: var(--dp-name);
    font-family: var(--dp-serif);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1.5px;
    line-height: 1.2;
    text-transform: uppercase;
    text-shadow: 0 0 6px #000, 0 1px 2px #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .15s ease;
}
.wh .wh-card__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--dp-panel-edge);
    border-bottom: 1px solid var(--dp-panel-edge);
}
.wh .wh-card__stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 8px 12px; }
.wh .wh-card__stat + .wh-card__stat { border-left: 1px solid var(--dp-panel-edge); }
.wh .wh-card__stat small { color: var(--dp-text); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wh .wh-card__stat b { color: var(--dp-strong); font-family: var(--dp-serif); font-size: 20px; font-weight: 400; line-height: 1.1; font-variant-numeric: tabular-nums; }
.wh .wh-card__abs { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 12px 12px; }
.wh .wh-card__abs img { width: 26px; height: 26px; border-radius: 2px; box-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
.wh .wh-card:hover, .wh .wh-card:focus-visible {
    border-color: rgba(243, 129, 60, .6);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .5);
    outline: none;
}
.wh .wh-card:hover .wh-card__img { transform: scale(1.05); }
.wh .wh-card:hover .wh-card__name, .wh .wh-card:focus-visible .wh-card__name { color: var(--wh-accent); }
.wh .wh-empty { margin: 0; padding: 18px var(--dp-indent); background: var(--dp-panel-bg); color: var(--dp-text-soft); font-size: 17px; font-weight: 600; }

@media (max-width: 767px) {
    .wh .wh-plaque.dp-section__title { letter-spacing: 2px; }
    .wh .wh-bar__search.wiki-filter { flex-basis: 100%; max-width: none; }
    .wh .wh-bar__attrs { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); width: 100%; }
    .wh .wh-attr { justify-content: center; gap: 6px; padding: 0 6px; min-width: 0; font-size: 12px; letter-spacing: .04em; }
    .wh .wh-attr img { width: 22px; height: 22px; }
    .wh .wh-attr[data-attr-pick]:not([data-attr-pick=""]) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .wh .wh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--wk-tile); }
    .wh .wh-card__name { font-size: 13px; letter-spacing: 1px; padding: 0 8px 6px; margin-top: -24px; }
    .wh .wh-card__stat { padding: 6px 8px; }
    .wh .wh-card__stat small { font-size: 10px; letter-spacing: .06em; }
    .wh .wh-card__stat b { font-size: 17px; }
    .wh .wh-card__abs { gap: 3px; padding: 8px; }
    .wh .wh-card__abs img { width: 22px; height: 22px; }
}

/* ======================= СТРАНИЦА ГЕРОЯ ======================= */

.wh .wh-hh { display: flex; flex-direction: column; }
.wh .wh-hh__panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "info art" "stats art" "kit kit";
    background: var(--dp-panel-bg);
    box-shadow: var(--dp-panel-shadow);
    overflow: hidden;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
/* Ролики Valve квадратные, и герой занимает почти весь кадр: обрезать его нельзя ни с одной стороны. */
.wh .wh-hh__art { grid-area: art; position: relative; min-height: 300px; }
.wh .wh-hh__art video, .wh .wh-hh__art img {
    position: absolute;
    inset: 8px;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    object-fit: contain;
    object-position: 50% 100%;
    border-radius: 0;
}
.wh .wh-hh__info {
    grid-area: info;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px var(--dp-indent) 24px;
    min-width: 0;
}
.wh .wh-hh__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; color: var(--dp-text-soft); }
.wh .wh-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--wh-accent); }
.wh .wh-warn { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-style: normal; background: rgba(237, 59, 28, 0.12); }
.wh .wh-warn svg { flex: none; margin-top: 3px; color: var(--dp-red); }

.wh .wh-attrs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 460px;
    background: var(--wh-sunk);
    border: 1px solid var(--dp-panel-edge);
    border-radius: 3px;
}
.wh .wh-attrs__cell { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px 14px; }
.wh .wh-attrs__cell + .wh-attrs__cell { border-left: 1px solid var(--dp-panel-edge); }
.wh .wh-attrs__cell img { flex: none; width: 26px; height: 26px; }
.wh .wh-attrs__v { display: flex; align-items: baseline; gap: 6px; color: var(--dp-strong); font-family: var(--dp-serif); font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.wh .wh-attrs__v small { color: var(--dp-text); font-family: var(--dp-sans); font-size: 14px; font-weight: 700; }
.wh .wh-attrs__cell.is-primary { background: linear-gradient(180deg, rgba(243, 129, 60, .18), rgba(131, 51, 18, .12)); box-shadow: inset 0 -2px 0 var(--wh-accent); }

.wh .wh-bars { display: grid; gap: 4px; max-width: 460px; }
.wh .wh-bars__bar {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 2px;
    color: var(--dp-strong);
    font-size: 16px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .7);
    font-variant-numeric: tabular-nums;
}
.wh .wh-bars__bar small { color: rgba(255, 255, 255, .9); font-size: 13px; font-weight: 600; opacity: 1; }
.wh .wh-bars__bar--hp { background: linear-gradient(90deg, rgb(41, 120, 72), var(--dp-green)); }
.wh .wh-bars__bar--mp { background: linear-gradient(90deg, rgb(42, 88, 160), rgba(110, 168, 255, .85)); }

.wh .wh-stats {
    grid-area: stats;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
    border-top: 1px solid var(--dp-panel-edge);
    background: rgba(0, 0, 0, 0.3);
}
.wh .wh-stats__grp { min-width: 0; padding: 16px 8px 18px var(--dp-indent); }
.wh .wh-stats__grp + .wh-stats__grp { border-left: 1px solid var(--dp-panel-edge); }
.wh .wh-stats__cap { margin: 0 0 10px; color: var(--dp-strong); font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; }
.wh .wh-stats__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wh .wh-stat { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--dp-text); font-size: 15px; font-weight: 600; }
.wh .wh-stat__ico { flex: none; width: 20px; height: 20px; opacity: .9; }
.wh .wh-stat b { color: var(--dp-strong); font-size: 17px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wh .wh-stat span { min-width: 0; font-size: 14px; line-height: 1.2; }

/* ---------- Набор героя в главном блоке: иконки, панель способности, таланты ---------- */
.wh .wh-sec { scroll-margin-top: 80px; }
.wh .wh-kit { grid-area: kit; position: relative; z-index: 1; min-width: 0; border-top: 1px solid var(--dp-panel-edge); background: rgba(0, 0, 0, .3); scroll-margin-top: 110px; }
.wh .wh-kit__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 18px var(--dp-indent) 0; }
.wh .wh-kit__tabs { display: flex; flex-wrap: wrap; gap: 14px 12px; min-width: 0; }
.wh .wh-kit__tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    width: 96px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: var(--dp-text);
    font-family: var(--dp-sans);
    cursor: pointer;
    transition: color .15s ease;
}
.wh .wh-kit__ico { position: relative; display: block; width: 72px; height: 72px; border-radius: 4px; overflow: hidden; background: #0b0f14; box-shadow: 0 3px 10px rgba(0, 0, 0, .6); transition: transform .15s ease; }
.wh .wh-kit__ico img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; filter: brightness(.72); transition: filter .15s ease; }
.wh .wh-kit__ico::after { content: ''; position: absolute; inset: 0; border: 1px solid rgba(255, 255, 255, .14); border-radius: inherit; pointer-events: none; transition: border-color .15s ease; }
.wh .wh-kit__cap { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; max-width: 100%; font-size: 13px; font-weight: 600; line-height: 1.2; text-align: center; overflow-wrap: break-word; }
.wh .wh-kit__tab--tal .wh-kit__ico { border-radius: 50%; background: none; box-shadow: none; }
.wh .wh-kit__tab--tal .wh-kit__ico::after { display: none; }
.wh .wh-kit__tab--tal .wh-kit__ico img { object-fit: contain; }
.wh .wh-kit__tab--innate .wh-kit__ico { border-radius: 50%; background: radial-gradient(circle at 50% 35%, #33414d, #10161c); }
.wh .wh-kit__tab--innate .wh-kit__ico::after { border: 2px solid rgba(217, 180, 94, .55); }
.wh .wh-kit__tab--innate .wh-kit__cap { color: rgb(217, 190, 125); }
.wh .wh-kit__tab:hover { color: var(--dp-strong); }
.wh .wh-kit__tab:hover .wh-kit__ico img, .wh .wh-kit__tab.is-on .wh-kit__ico img { filter: none; }
.wh .wh-kit__tab:hover .wh-kit__ico { transform: translateY(-2px); }
.wh .wh-kit__tab.is-on, .wh .wh-kit__tab.is-on .wh-kit__cap { color: var(--dp-strong); }
.wh .wh-kit__tab.is-on .wh-kit__ico::after { border: 2px solid var(--wh-accent); }
.wh .wh-kit__tab:focus-visible { outline: none; }
.wh .wh-kit__tab:focus-visible .wh-kit__ico { outline: 2px solid #fff; outline-offset: 3px; }
.wh .wh-kit__off { margin: 0; color: var(--dp-text); font-size: 15px; font-weight: 600; line-height: 1.35; }
.wh .wh-kit__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); align-items: start; gap: 0 28px; padding: 18px var(--dp-indent) 24px; }
.wh .wh-kit__body--solo { grid-template-columns: minmax(0, 1fr); }
.wh .wh-kit__panels { min-width: 0; }

.wh .wh-ab { min-width: 0; scroll-margin-top: 230px; }
.wh .wh-ab[hidden] { display: none; }
.wh .wh-ab__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 20px; }
.wh .wh-ab__id { min-width: 0; }
.wh .wh-ab__kind { margin: 0 0 2px; color: rgb(217, 190, 125); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.wh .wh-ab__name { margin: 0; padding: 0; color: var(--dp-strong); font-family: var(--dp-serif); font-size: 22px; font-weight: 600; letter-spacing: 1.5px; line-height: 1.25; text-transform: uppercase; overflow-wrap: anywhere; }
.wh .wh-ab__name::after { content: none; }
.wh .wh-ab__name a { color: inherit; text-decoration: none; transition: color .15s ease; }
.wh .wh-ab__name a:hover { color: var(--wh-accent); }
.wh .wh-ab__open { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; color: var(--wh-accent); font-size: 14px; font-weight: 700; text-decoration: none; transition: color .15s ease; }
.wh .wh-ab__open:hover { color: var(--dp-strong); }
.wh .wh-ab__open:focus-visible, .wh .wh-ab__name a:focus-visible { outline: 2px solid var(--wh-accent); outline-offset: 3px; }
.wh .wh-ab__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 4px 0 0; }
.wh .wh-ab__tags .wiki-meta { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; color: var(--dp-text); font-size: 14px; font-weight: 600; }
.wh .wh-ab__tags .wiki-meta__ult { color: var(--wh-accent); }
.wh .wh-ab__tags .wiki-cls { font-size: 13px; }
.wh .wh-ab__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); align-items: start; gap: 14px 28px; margin-top: 14px; }
.wh .wh-ab__cols--solo { grid-template-columns: minmax(0, 1fr); }
.wh .wh-ab__text, .wh .wh-ab__nums { min-width: 0; }
.wh .wh-ab__desc { margin: 0; max-width: 72ch; }
.wh .wh-ab__desc p { margin: 0 0 8px; color: var(--dp-text-soft); font-size: 16px; font-weight: 600; line-height: 1.4; }
.wh .wh-ab__desc p:last-child { margin-bottom: 0; }
.wh .wh-ab__desc .wiki-desc__h { color: var(--dp-strong); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.wh .wh-ab__desc .wiki-desc__kv { color: var(--dp-text); font-size: 15px; }
.wh .wh-ab__desc .wiki-desc__kv span { color: var(--dp-text); font-weight: 700; }
.wh .wh-ab .wiki-costs { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 8px; padding: 0; background: none; border: 0; }
.wh .wh-ab .wiki-cost { display: inline-flex; align-items: center; gap: 8px; color: var(--dp-text-soft); font-size: 16px; font-weight: 600; }
.wh .wh-ab .wiki-cost img { width: 18px; height: 18px; border-radius: 2px; }
.wh .wh-ab .wiki-lvv { display: inline; font-variant-numeric: tabular-nums; }
.wh .wh-ab .wiki-lvv i { font-style: normal; color: var(--dp-strong); font-weight: 700; }
.wh .wh-ab .wiki-lvv s { margin: 0 4px; text-decoration: none; color: var(--dp-text); opacity: .6; }
.wh .wh-ab .wiki-cost--mana .wiki-lvv i { color: rgb(140, 185, 240); }
.wh .wh-vals { list-style: none; margin: 0; padding: 0; }
.wh .wh-val { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 14px; padding: 5px 0; color: var(--dp-text); font-size: 15px; font-weight: 600; line-height: 1.3; }
.wh .wh-val + .wh-val { border-top: 1px solid rgba(255, 255, 255, .06); }
.wh .wh-val__k { min-width: 0; flex: 1 1 auto; max-width: 100%; overflow-wrap: anywhere; }
.wh .wh-val__v { margin-left: auto; text-align: right; }
.wh .wh-v { color: var(--dp-strong); }
.wh .wh-req, .wh .wh-up { display: inline-block; padding: 0 6px; border-radius: 2px; background: rgba(110, 168, 255, .14); color: rgb(140, 185, 240); font-size: 13px; font-style: normal; font-weight: 700; }
.wh .wh-up { margin-left: auto; }
.wh .wh-lvl { flex: 1 0 100%; color: var(--dp-text-soft); font-size: 13px; font-weight: 600; text-align: right; }
.wh .wh-ab .wh-up .wiki-lvv i { color: rgb(180, 210, 250); }
.wh .wh-upg { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0 0; padding: 10px 12px; border-radius: 3px; background: rgba(110, 168, 255, .08); }
.wh .wh-upg img { flex: none; width: 33px; height: 24px; }
.wh .wh-upg p { margin: 0; color: var(--dp-text-soft); font-size: 15px; font-weight: 600; line-height: 1.35; }
.wh .wh-upg b { margin-right: 4px; color: rgb(140, 185, 240); font-weight: 700; }
.wh .wh-note { margin: 12px 0 0; padding: 10px 14px; border-radius: 3px; background: rgba(243, 129, 60, .09); color: var(--dp-text-soft); font-size: 15px; font-weight: 600; line-height: 1.4; }
.wh .wh-note p { margin: 0 0 6px; }
.wh .wh-note p:last-child { margin-bottom: 0; }
.wh .wh-note .wh-note__h { color: var(--wh-accent); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.wh .wh-ab__more { margin-top: 14px; }
.wh .wh-more { margin: 0; }
.wh .wh-more + .wh-more { margin-top: 6px; }
.wh .wh-more__n { margin-left: auto; padding: 0 7px; border-radius: 2px; background: rgba(255, 255, 255, .07); color: var(--dp-text); font-size: 12px; }
.wh .wh-more .wiki-diff, .wh .wh-more .wiki-hist { font-size: 15px; }

/* ---------- Древо талантов ---------- */
.wh .wh-tal { min-width: 0; scroll-margin-top: 110px; }
.wh .wh-tal__cap { margin: 0 0 12px; }
.wh .wh-tree { max-width: 720px; min-width: 0; border-radius: 3px; background: var(--wh-sunk); }
.wh .wh-tree__row { display: grid; grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 52px; padding: 6px 12px; }
.wh .wh-tree__row + .wh-tree__row { border-top: 1px solid var(--dp-panel-edge); }
.wh .wh-tree__opt { color: var(--dp-text-soft); font-size: 14px; font-weight: 600; line-height: 1.25; text-align: right; overflow-wrap: anywhere; }
.wh .wh-tree__opt--b { text-align: left; }
.wh .wh-tree__lvl { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, rgba(243, 129, 60, .25), rgba(131, 51, 18, .2) 70%); box-shadow: inset 0 0 0 1px rgba(243, 129, 60, .4); color: var(--wh-accent); font-family: var(--dp-serif); font-size: 16px; font-variant-numeric: tabular-nums; }

/* ---------- История изменений героя ---------- */
.wh .wh-hist .dp-sub__body { padding-top: 6px; }
.wh .wh-hist .wiki-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.wh .wh-hist .wiki-hist__item { padding: 14px 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.wh .wh-hist .wiki-hist__item + .wiki-hist__item { border-top: 1px solid rgba(0, 0, 0, .6); }
.wh .wh-hist .wiki-hist__date { color: var(--wh-accent); font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.wh .wh-hist .wiki-hist__date:hover { color: var(--dp-strong); }
.wh .wh-hist .wiki-hist__lines { margin: 8px 0 0; }
.wh .wh-hist .wiki-hist__lines > li { color: var(--dp-text-soft); font-size: 16px; font-weight: 600; line-height: 1.35; }

@media (max-width: 1180px) {
    .wh .wh-hh__panel { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); grid-template-rows: auto; grid-template-areas: "info art" "stats stats" "kit kit"; }
    .wh .wh-hh__art { min-height: 400px; }
    .wh .wh-kit__body { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 767px) {
    .wh .wh-hh__panel { grid-template-columns: minmax(0, 1fr); grid-template-areas: "art" "info" "kit" "stats"; }
    .wh .wh-hh__art { min-height: 0; aspect-ratio: 1; max-height: 340px; justify-self: center; width: 100%; margin-bottom: 12px; }
    .wh .wh-hh__info { padding: 0 var(--dp-indent) 16px; gap: 12px; }
    .wh .wh-attrs__cell { padding: 10px 8px; gap: 6px; justify-content: center; }
    .wh .wh-attrs__cell img { width: 20px; height: 20px; }
    .wh .wh-attrs__v { font-size: 21px; gap: 4px; }
    .wh .wh-attrs__v small { font-size: 12px; }
    .wh .wh-stats { grid-template-columns: minmax(0, 1fr); }
    .wh .wh-stats__grp { padding: 12px var(--dp-indent); }
    .wh .wh-stats__grp + .wh-stats__grp { border-left: 0; border-top: 1px solid var(--dp-panel-edge); }
    .wh .wh-stats__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
    .wh .wh-stat { align-items: flex-start; flex-wrap: wrap; gap: 2px 8px; font-size: 13px; }
    .wh .wh-stat span { flex-basis: 100%; white-space: normal; }
    .wh .wh-kit, .wh .wh-tal { scroll-margin-top: 140px; }
    .wh .wh-kit__bar { padding: 14px var(--dp-indent) 0; }
    .wh .wh-kit__tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px 8px; width: 100%; }
    .wh .wh-kit__tab { width: 100%; }
    .wh .wh-kit__ico { width: 100%; max-width: 64px; height: auto; aspect-ratio: 1; }
    /* Подпись под иконкой шириной 55px рвётся по слогам: имя выбранной способности стоит сразу под рядом. */
    .wh .wh-kit__cap { display: none; }
    .wh .wh-kit__body { padding: 16px var(--dp-indent) 20px; }
    .wh .wh-ab__head { flex-direction: column; gap: 4px; }
    .wh .wh-ab__open { min-height: 44px; }
    .wh .wh-ab__name { font-size: 19px; letter-spacing: 1px; }
    .wh .wh-ab__cols { grid-template-columns: minmax(0, 1fr); margin-top: 8px; }
    .wh .wh-tree__row { grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr); gap: 8px; padding: 6px 8px; }
    .wh .wh-tree__lvl { width: 32px; height: 32px; font-size: 14px; }
    .wh .wh-hist .wiki-hist__lines > li { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .wh .wh-card, .wh .wh-card__img, .wh .wh-attr, .wh .wh-kit__ico, .wh .wh-kit__ico img { transition: none; }
    .wh .wh-kit__tab:hover .wh-kit__ico { transform: none; }
}

/* Строки фактчека: пояснение под шапкой, отключённая врождённая */
.wh .wh-hh__lead { margin: 0; max-width: 60ch; color: var(--dp-text-soft); font-size: 16px; font-weight: 600; line-height: 1.4; }
@media (max-width: 767px) { .wh .wh-hh__lead { font-size: 15px; } }
