/* ===== WoW Forever — прокачка орка-энха. Тёмная тема с золотом ===== */

:root {
    --bg: #0b0e14;
    --bg-alt: #0f131b;
    --surface: #151a24;
    --surface-2: #1b2230;
    --surface-3: #222b3b;
    --border: #2a3444;
    --border-soft: #222a38;

    --text: #e8ecf3;
    --text-soft: #a9b3c4;
    --text-faint: #74809a;

    --gold: #e8c268;
    --gold-soft: #f3d99a;
    --gold-dim: #8a733a;

    --ele: #4aa3ff;
    --ele-dim: #1f4d80;
    --enh: #f5a623;
    --enh-dim: #7a5412;
    --res: #4cd07d;
    --res-dim: #1f6340;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 18px 45px rgba(0, 0, 0, 0.45);

    --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: "Cascadia Code", "JetBrains Mono", Consolas, monospace;
    --container: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 78px;
}

body {
    font-family: var(--font);
    background:
        radial-gradient(900px 500px at 80% -10%, rgba(232, 194, 104, 0.10), transparent 60%),
        radial-gradient(700px 400px at 0% 0%, rgba(74, 163, 255, 0.08), transparent 55%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--gold-soft);
    text-decoration: none;
}

a:hover {
    color: var(--gold);
}

img {
    max-width: 100%;
    display: block;
}

ul, ol {
    list-style: none;
}

code {
    font-family: var(--mono);
    font-size: 0.86em;
    background: rgba(232, 194, 104, 0.10);
    color: var(--gold-soft);
    border: 1px solid rgba(232, 194, 104, 0.18);
    border-radius: 6px;
    padding: 1px 6px;
    white-space: nowrap;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Хедер ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 14, 20, 0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-soft);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(232, 194, 104, 0.28), rgba(232, 194, 104, 0.06));
    border: 1px solid rgba(232, 194, 104, 0.35);
    font-size: 20px;
    box-shadow: inset 0 0 18px rgba(232, 194, 104, 0.18);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand-sub {
    font-size: 12px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.site-nav a {
    color: var(--text-soft);
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
    color: var(--text);
    background: var(--surface-2);
}

/* ===== Hero ===== */
.hero {
    padding: 72px 0 56px;
    border-bottom: 1px solid var(--border-soft);
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 48px;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold);
    border: 1px solid rgba(232, 194, 104, 0.28);
    background: rgba(232, 194, 104, 0.07);
    border-radius: 999px;
    padding: 5px 12px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.accent {
    color: var(--gold);
    text-shadow: 0 0 28px rgba(232, 194, 104, 0.35);
}

.hero-subtitle {
    color: var(--text-soft);
    font-size: 17px;
    max-width: 60ch;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid transparent;
    transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: linear-gradient(160deg, #f0cd7c, #d9ab4a);
    color: #201a0c;
    box-shadow: 0 10px 26px rgba(232, 194, 104, 0.22);
}

.btn-primary:hover {
    background: linear-gradient(160deg, #f7d98f, #e3b654);
    color: #201a0c;
}

.btn-ghost {
    color: var(--text);
    border-color: var(--border);
    background: var(--surface);
}

.btn-ghost:hover {
    border-color: var(--gold-dim);
    background: var(--surface-2);
    color: var(--text);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    color: var(--text-faint);
    font-size: 13px;
}

.hero-meta li {
    position: relative;
    padding-left: 16px;
}

.hero-meta li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: var(--gold-dim);
}

/* Тотемы в hero */
.hero-visual {
    display: grid;
    place-items: center;
}

.totem {
    position: relative;
    width: 280px;
    height: 280px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 45%, rgba(232, 194, 104, 0.16), transparent 62%);
}

.totem-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px dashed rgba(232, 194, 104, 0.22);
    animation: spin 26s linear infinite;
}

.totem-ring::before,
.totem-ring::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 14px rgba(232, 194, 104, 0.8);
}

.totem-ring::before {
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.totem-ring::after {
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.totem-core {
    display: grid;
    place-items: center;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    font-size: 54px;
    background: radial-gradient(circle at 40% 35%, #2b3346, #12161f);
    border: 1px solid rgba(232, 194, 104, 0.35);
    box-shadow:
        inset 0 0 32px rgba(232, 194, 104, 0.18),
        0 0 60px rgba(232, 194, 104, 0.12);
}

.totem-label {
    position: absolute;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border);
}

.totem-label.ele {
    top: 18px;
    right: 10px;
    color: var(--ele);
    border-color: var(--ele-dim);
}

.totem-label.enh {
    bottom: 24px;
    right: -4px;
    color: var(--enh);
    border-color: var(--enh-dim);
}

.totem-label.res {
    bottom: 56px;
    left: -10px;
    color: var(--res);
    border-color: var(--res-dim);
}

/* ===== Секции ===== */
.section {
    padding: 64px 0;
}

.section-alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

.section-head {
    margin-bottom: 28px;
}

.section-head h2 {
    font-size: clamp(24px, 3vw, 32px);
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}

.section-head p {
    color: var(--text-soft);
    max-width: 70ch;
}

/* ===== Чипы вариантов ===== */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.chip {
    appearance: none;
    font: inherit;
    font-size: 14px;
    color: var(--text-soft);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 9px 16px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.chip:hover {
    color: var(--text);
    border-color: var(--gold-dim);
    background: var(--surface-2);
}

.chip:active {
    transform: translateY(1px);
}

.chip.is-active {
    color: #201a0c;
    background: linear-gradient(160deg, #f0cd7c, #d9ab4a);
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 8px 22px rgba(232, 194, 104, 0.20);
}

.chip .chip-badge {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    opacity: 0.75;
}

/* ===== Панель варианта ===== */
.variant-panel {
    background: linear-gradient(160deg, var(--surface), var(--bg-alt));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
}

.vp-top {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 32px;
    margin-bottom: 26px;
}

.vp-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.vp-title h3 {
    font-size: 24px;
    letter-spacing: -0.01em;
}

.badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #201a0c;
    background: linear-gradient(160deg, #f0cd7c, #d9ab4a);
    border-radius: 999px;
    padding: 4px 10px;
}

.vp-desc {
    color: var(--text-soft);
    margin-bottom: 14px;
    max-width: 66ch;
}

.vp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    font-size: 12px;
    color: var(--text-soft);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 10px;
}

/* Полоса распределения очков */
.split {
    display: flex;
    height: 34px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface-2);
    margin-bottom: 10px;
}

.split-seg {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    font-size: 12px;
    font-weight: 700;
    color: #0b0e14;
    white-space: nowrap;
    overflow: hidden;
    transition: width 0.35s ease;
}

.split-seg.ele { background: var(--ele); }
.split-seg.enh { background: var(--enh); }
.split-seg.res { background: var(--res); }

.split-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 12px;
    color: var(--text-faint);
}

.dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: 0;
    background: var(--text-faint);
}

.dot.ele { background: var(--ele); box-shadow: 0 0 8px rgba(74, 163, 255, 0.6); }
.dot.enh { background: var(--enh); box-shadow: 0 0 8px rgba(245, 166, 35, 0.6); }
.dot.res { background: var(--res); box-shadow: 0 0 8px rgba(76, 208, 125, 0.6); }

/* Рейтинги */
.ratings {
    display: grid;
    gap: 10px;
    align-content: start;
}

.rating {
    display: grid;
    grid-template-columns: 96px 1fr;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-soft);
}

.rating-bar {
    display: flex;
    gap: 3px;
}

.rating-bar i {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: var(--surface-3);
}

.rating-bar i.on {
    background: linear-gradient(90deg, var(--gold-dim), var(--gold));
}

/* Заметки */
.vp-notes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--border-soft);
}

.vp-note {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
}

.vp-note::before {
    content: "▸";
    color: var(--gold);
    flex: none;
}

/* ===== Легенда ===== */
.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 18px;
    font-size: 13px;
    color: var(--text-soft);
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.legend-cell {
    display: inline-block;
    width: 22px;
    height: 10px;
    border-radius: 3px;
    margin-right: 6px;
    background: var(--surface-3);
    border: 1px solid var(--border);
}

.legend-cell.start {
    background: var(--gold);
    border-color: var(--gold);
}

/* ===== Ветки талантов (игровое окно) ===== */
.section-trees {
    border-top: 1px solid var(--border-soft);
}

.trees-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.tree-points {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.tree-point {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--text-soft);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 12px;
}

.tree-point b {
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.tree-point.total {
    color: var(--gold-soft);
    background: rgba(232, 194, 104, 0.08);
    border-color: rgba(232, 194, 104, 0.3);
}

.tree-point.total b {
    color: var(--gold);
}

.tree-state {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
}

.tree-state[hidden] {
    display: none;
}

.tree-state button {
    appearance: none;
    font: inherit;
    font-size: 12px;
    color: var(--text-soft);
    background: transparent;
    border: 0;
    border-radius: 999px;
    padding: 6px 12px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.tree-state button:hover {
    color: var(--text);
    background: var(--surface-2);
}

.tree-state button.is-active {
    color: #201a0c;
    background: linear-gradient(160deg, #f0cd7c, #d9ab4a);
    font-weight: 700;
}

.trees {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.tree {
    --tree: var(--gold);
    position: relative;
    background:
        radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--tree) 15%, transparent), transparent 62%),
        linear-gradient(180deg, #121722, #0c1018);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.tree::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.55;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(180deg, #000, transparent 70%);
}

.tree.ele { --tree: var(--ele); }
.tree.enh { --tree: var(--enh); }
.tree.res { --tree: var(--res); }

.tree-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--border-soft);
}

.tree-head img {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    border: 1px solid color-mix(in srgb, var(--tree) 55%, #000);
    box-shadow: 0 0 12px color-mix(in srgb, var(--tree) 28%, transparent);
}

.tree-head h3 {
    font-size: 15px;
    letter-spacing: 0.01em;
}

.tree-count {
    margin-left: auto;
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
    color: var(--tree);
    font-variant-numeric: tabular-nums;
}

.tree-count small {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-faint);
}

.tree-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 52px);
    grid-auto-rows: 52px;
    gap: 14px 18px;
    justify-content: center;
    padding: 20px 12px 22px;
}

.talent-slot {
    position: relative;
    width: 52px;
    height: 52px;
}

/* Стрелка от prerequisite-таланта */
.talent-slot.has-req::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -12px;
    width: 2px;
    height: 9px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, transparent, var(--gold-dim));
}

.talent-slot.has-req::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -4px;
    width: 5px;
    height: 5px;
    transform: translateX(-50%) rotate(45deg);
    border-right: 1.5px solid var(--gold-dim);
    border-bottom: 1.5px solid var(--gold-dim);
}

.talent {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 2px solid #2c3546;
    border-radius: 7px;
    background: #080b11;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.12s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.talent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.9) brightness(0.42) contrast(0.9);
    transition: filter 0.15s ease;
}

.talent .rank {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1px 2px 2px;
    font-size: 10px;
    line-height: 1.15;
    font-weight: 700;
    text-align: center;
    color: #c3ccdb;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.88) 55%);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 2px #000;
}

.talent.is-on {
    border-color: var(--tree);
    box-shadow: 0 0 12px color-mix(in srgb, var(--tree) 42%, transparent);
}

.talent.is-on img {
    filter: none;
}

.talent.is-on .rank {
    color: #f2f5fa;
}

.talent.is-max {
    border-color: var(--gold);
    box-shadow: 0 0 14px rgba(232, 194, 104, 0.45), inset 0 0 8px rgba(232, 194, 104, 0.25);
}

.talent.is-max .rank {
    color: var(--gold-soft);
}

.talent.is-locked {
    cursor: help;
}

.talent.is-locked img {
    filter: grayscale(1) brightness(0.24);
}

.talent:hover,
.talent:focus-visible {
    z-index: 3;
    outline: none;
    transform: translateY(-2px);
    border-color: var(--gold);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), 0 0 12px rgba(232, 194, 104, 0.35);
}

.talent:hover img,
.talent:focus-visible img {
    filter: none;
}

.tree-foot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 16px 14px;
    font-size: 11px;
    color: var(--text-faint);
}

.tree-foot .tree-status {
    color: var(--tree);
}

/* Всплывающая подсказка таланта */
.talent-tooltip {
    position: fixed;
    z-index: 120;
    width: 310px;
    max-width: calc(100vw - 24px);
    max-height: min(62vh, 380px);
    overflow: auto;
    padding: 13px 15px;
    background: linear-gradient(180deg, #171e2b, #0b0f16);
    border: 1px solid var(--gold-dim);
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
    transition: opacity 0.12s ease, transform 0.12s ease;
}

.talent-tooltip.is-visible {
    opacity: 1;
    transform: none;
}

.talent-tooltip h4 {
    font-size: 14px;
    line-height: 1.3;
    color: var(--gold-soft);
    margin-bottom: 2px;
}

.talent-tooltip .tt-rank {
    font-size: 12px;
    color: var(--text-faint);
    margin-bottom: 8px;
}

.talent-tooltip .tt-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-soft);
    white-space: pre-line;
}

.talent-tooltip .tt-meta {
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px solid var(--border-soft);
    display: grid;
    gap: 3px;
    font-size: 12px;
    color: var(--text-faint);
}

.talent-tooltip .tt-meta b {
    color: var(--gold-soft);
    font-weight: 600;
}

.talent-tooltip .tt-meta .is-missing {
    color: #ff9d9d;
}

/* ===== Gantt ===== */
.gantt {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    overflow-x: auto;
}

.gantt-inner {
    min-width: 760px;
}

.g-row,
.g-head {
    display: grid;
    grid-template-columns: 210px 42px 1fr;
    align-items: center;
    gap: 10px;
}

.g-head {
    padding-bottom: 10px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--border-soft);
    color: var(--text-faint);
    font-size: 11px;
    letter-spacing: 0.06em;
}

.g-head-levels {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    text-align: center;
}

.g-head-levels span.is-respec {
    color: var(--gold);
    font-weight: 700;
}

.g-group {
    margin: 14px 0 8px;
    padding: 6px 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    background: rgba(232, 194, 104, 0.07);
    border-left: 3px solid var(--gold);
    border-radius: 4px;
}

.g-row {
    padding: 3px 0;
    border-radius: 6px;
}

.g-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.g-name {
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 0;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.g-name .ranks {
    margin-left: auto;
    padding-left: 8px;
    font-size: 11px;
    color: var(--text-faint);
    font-variant-numeric: tabular-nums;
}

.g-lvl {
    font-size: 12px;
    color: var(--text-faint);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.g-track {
    display: grid;
    grid-template-columns: repeat(51, 1fr);
    gap: 1px;
    height: 16px;
}

.g-cell {
    border-radius: 2px;
    background: #1a2130;
}

.g-cell.on {
    background: var(--c, var(--gold-dim));
    opacity: 0.55;
}

.g-cell.start {
    opacity: 1;
    box-shadow: 0 0 8px var(--c, var(--gold));
}

.g-cell.respec {
    box-shadow: inset 2px 0 0 var(--gold);
}

.g-track.t-ele { --c: var(--ele); }
.g-track.t-enh { --c: var(--enh); }
.g-track.t-res { --c: var(--res); }

.note {
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-faint);
}

.scroll-hint {
    display: none;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--text-faint);
}

/* ===== Таймлайн ===== */
.timeline {
    position: relative;
    display: grid;
    gap: 0;
    padding-left: 8px;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 18px;
    padding: 0 0 26px 0;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 31px;
    top: 42px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--border), transparent);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item:last-child::before {
    display: none;
}

.tl-level {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 15px;
    color: var(--gold);
    background: var(--surface);
    border: 1px solid rgba(232, 194, 104, 0.4);
    box-shadow: 0 0 0 6px var(--bg);
}

.section-alt .tl-level {
    box-shadow: 0 0 0 6px var(--bg-alt);
}

.tl-body h3 {
    font-size: 17px;
    margin-bottom: 3px;
}

.tl-body p {
    color: var(--text-soft);
    font-size: 14px;
}

/* ===== Ротация ===== */
.rotation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.rot-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rot-phase {
    display: inline-flex;
    align-self: flex-start;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--gold);
    background: rgba(232, 194, 104, 0.08);
    border: 1px solid rgba(232, 194, 104, 0.22);
    border-radius: 999px;
    padding: 4px 10px;
}

.rot-card h3 {
    font-size: 16px;
}

.rot-card ol {
    counter-reset: step;
    display: grid;
    gap: 8px;
}

.rot-card ol li {
    counter-increment: step;
    position: relative;
    padding-left: 26px;
    font-size: 14px;
    color: var(--text-soft);
}

.rot-card ol li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 2px;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 700;
    color: #0b0e14;
    background: var(--gold-dim);
    border-radius: 50%;
}

/* ===== Таблицы ===== */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
    font-size: 14px;
}

.table th,
.table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
    white-space: nowrap;
}

.table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-faint);
    background: var(--surface-2);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.table tr.is-best {
    background: rgba(232, 194, 104, 0.06);
}

.table tr.is-best td:first-child {
    box-shadow: inset 3px 0 0 var(--gold);
}

/* ===== Карточки шпаргалки ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
}

.card h3 {
    font-size: 16px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-soft);
}

.list {
    display: grid;
    gap: 7px;
    font-size: 14px;
    color: var(--text-soft);
}

.list li {
    position: relative;
    padding-left: 16px;
}

.list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-dim);
}

.list-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 14px;
    font-size: 13px;
}

.card-note {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-faint);
    border-top: 1px dashed var(--border-soft);
    padding-top: 10px;
}

.card code {
    white-space: normal;
    overflow-wrap: anywhere;
}

/* ===== Источники ===== */
.sources {
    display: grid;
    gap: 8px;
    margin-bottom: 22px;
    font-size: 14px;
}

.sources li {
    position: relative;
    padding-left: 18px;
}

.sources li::before {
    content: "↗";
    position: absolute;
    left: 0;
    color: var(--gold-dim);
}

.disclaimer {
    font-size: 13px;
    color: var(--text-faint);
    max-width: 80ch;
    border-left: 2px solid var(--border);
    padding-left: 14px;
}

/* ===== Футер ===== */
.site-footer {
    border-top: 1px solid var(--border-soft);
    padding: 26px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
    color: var(--text-faint);
}

/* ===== Адаптив ===== */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-visual {
        order: -1;
        justify-items: start;
    }

    .totem {
        width: 200px;
        height: 200px;
    }

    .totem-core {
        width: 96px;
        height: 96px;
        font-size: 38px;
    }

    .vp-top {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .site-nav {
        display: none;
    }
}

@media (max-width: 1000px) {
    .trees {
        grid-template-columns: 1fr;
    }

    .tree-grid {
        grid-template-columns: repeat(4, 56px);
        grid-auto-rows: 56px;
        gap: 16px 20px;
    }

    .talent-slot {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 620px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 44px 0;
    }

    .hero {
        padding: 44px 0 40px;
    }

    .variant-panel {
        padding: 18px;
    }

    .trees-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .tree-grid {
        grid-template-columns: repeat(4, 50px);
        grid-auto-rows: 50px;
        gap: 12px 14px;
        padding: 16px 8px 18px;
    }

    .talent-slot {
        width: 50px;
        height: 50px;
    }

    .tree-head {
        padding: 12px 14px 10px;
    }

    .tree-foot {
        padding: 0 14px 12px;
    }

    .g-row,
    .g-head {
        grid-template-columns: 150px 34px 1fr;
        gap: 8px;
    }

    .gantt-inner {
        min-width: 680px;
    }

    .list-compact {
        grid-template-columns: 1fr;
    }

    .scroll-hint {
        display: block;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .totem-ring {
        animation: none;
    }

    .split-seg {
        transition: none;
    }
}

/* ===== Печать ===== */
@media print {
    body {
        background: #fff;
        color: #111;
    }

    .site-header,
    .hero-actions,
    .chips,
    .site-footer {
        display: none;
    }

    .variant-panel,
    .gantt,
    .card,
    .rot-card,
    .table-wrap {
        box-shadow: none;
        border-color: #ccc;
        background: #fff;
        color: #111;
    }

    .section-alt {
        background: #fff;
    }

    .g-cell {
        background: #eee;
    }

    a {
        color: #111;
    }
}
