:root {
    --bg: #0b1020;
    --bg-soft: #121a33;
    --card: rgba(255, 255, 255, 0.06);
    --card-border: rgba(255, 255, 255, 0.10);
    --text: #eef2ff;
    --muted: #9aa6c7;
    --accent: #6d5efc;
    --accent-2: #23c6a4;
    --danger: #ff6b6b;
    --up: #23c6a4;
    --down: #ff8087;
    --radius: 18px;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(1200px 600px at 15% -10%, rgba(109, 94, 252, 0.35), transparent 60%),
        radial-gradient(1000px 500px at 100% 0%, rgba(35, 198, 164, 0.25), transparent 55%),
        var(--bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container { width: min(1080px, 92%); margin: 0 auto; }
.hidden { display: none !important; }

/* Иконки (lucide-стиль): наследуют цвет текста, тонкая обводка */
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; flex: none; }
.ico-lg { width: 26px; height: 26px; }
.ico-xl { width: 40px; height: 40px; stroke-width: 1.6; }
.ico-accent { stroke: var(--accent); }

/* Header */
.site-header { padding: 22px 0; position: relative; z-index: 60; overflow: visible; }
/* шапке нужен весь возможный простор: кнопок много, контент ниже остаётся на 1080px */
.site-header .container { width: min(1240px, 96%); overflow: visible; }
/* бренд чуть смещён влево — больше воздуха до кнопок навигации */
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; overflow: visible; }
.header-inner .brand { margin-left: -8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; position: relative; white-space: nowrap; }
/* Живой бренд: текст переливается, как заголовок героя; логотип мягко «дышит» */
.brand > span {
    background: linear-gradient(100deg, var(--text) 0%, var(--text) 38%, var(--accent-2) 50%, var(--text) 62%, var(--text) 100%);
    background-size: 240% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    animation: brand-shimmer 7s linear infinite;
}
.brand b { -webkit-text-fill-color: var(--accent-2); color: var(--accent-2); }
@keyframes brand-shimmer { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
/* радарный «пинг» вокруг логотипа */
.brand::before {
    content: ""; position: absolute; left: 0; top: 50%; width: 40px; height: 40px;
    margin-top: -20px; border-radius: 12px; pointer-events: none;
    border: 2px solid var(--accent-2); opacity: 0;
    animation: brand-ping 5s ease-out infinite;
}
@keyframes brand-ping {
    0%, 72% { opacity: 0; transform: scale(1); }
    76% { opacity: .55; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.55); }
}
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.08); }
@media (prefers-reduced-motion: reduce) {
    .brand > span, .brand::before, .nav-accent, .nav-accent::after { animation: none; }
    /* Все декоративные анимации версии 0.46: пользователю с reduced-motion — статика */
    .hero-title, .query-card, .card, .card--hero, .dash-stat, .btn-primary::after { animation: none !important; }
}
.brand-mark { font-size: 24px; color: var(--accent-2); filter: drop-shadow(0 0 12px rgba(35, 198, 164, 0.6)); }
.brand b { color: var(--accent-2); }
.badge-ver {
    font-size: 12px; font-weight: 700; letter-spacing: .04em;
    color: var(--muted); border: 1px solid var(--card-border);
    padding: 4px 10px; border-radius: 999px; font-variant-numeric: tabular-nums;
}

/* Hero */
.hero { padding: 40px 0 20px; }
.hero-inner { text-align: center; }
/* Бегущий градиент заголовка — ниже, в блоке ht-shimmer */
.hero-title {
    font-size: clamp(32px, 6vw, 56px); line-height: 1.05; font-weight: 800; margin: 8px 0 14px;
    background: linear-gradient(90deg, #fff, #c9c2ff 60%, #9fe9d8);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(15px, 2.2vw, 18px); color: var(--muted); max-width: 640px; margin: 0 auto 28px; }

/* Герой: форма слева, «Топ-5 недели» справа */
.hero-grid {
    display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 22px; align-items: start; text-align: left;
}
.hero-main, .hero-side { min-width: 0; }

/* Query card */
.query-card {
    display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end;
    background: var(--card); border: 1px solid var(--card-border); padding: 22px;
    border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(14px); text-align: left;
    animation: card-in .6s cubic-bezier(.22,.61,.36,1) backwards, query-card-glow 6s ease-in-out 1s infinite;
}
/* Дыхание рамки главной формы: показывает, что это точка входа, но не мигает навязчиво */
@keyframes query-card-glow {
    50% { border-color: rgba(109, 94, 252, 0.45); box-shadow: 0 18px 44px rgba(109, 94, 252, 0.20); }
}
/* Кнопки в своей строке — не «прыгают» при разной высоте полей */
.form-actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.form-actions .btn-primary { min-width: 240px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-size: 13px; color: var(--muted); font-weight: 600; }
.field.dimmed { opacity: .55; }
.field-wide { grid-column: 1 / -1; }

.source-note { font-size: 12px; color: var(--muted); margin: 2px 0 0; line-height: 1.45; }

/* Чекбокс «удалёнка» */
.field-check { justify-content: flex-end; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: var(--text); font-size: 14px; font-weight: 600; }
.check input { appearance: none; width: 42px; height: 24px; border-radius: 999px; background: rgba(255,255,255,0.12); border: 1px solid var(--card-border); position: relative; cursor: pointer; transition: background .2s; flex: none; }
.check input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.check input:checked { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.check input:checked::after { transform: translateX(18px); }

select, .combo-input, .text-input {
    appearance: none; width: 100%; min-width: 0; background: rgba(255, 255, 255, 0.05); color: var(--text);
    border: 1px solid var(--card-border); border-radius: 12px; padding: 12px 14px; font-size: 15px;
    font-family: inherit; transition: border-color .15s, box-shadow .15s;
    text-overflow: ellipsis;   /* длинное название профессии не «расталкивает» форму */
}

/* Подсказки навыков под полем «Ключевые слова» */
.kw-chips { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.kw-chips-lbl { font-size: 12px; color: var(--muted); font-weight: 600; }
.kw-chips-list { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.kw-chip {
    font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--text);
    background: rgba(109, 94, 252, 0.12); border: 1px solid rgba(109, 94, 252, 0.32);
    padding: 5px 11px; border-radius: 999px; transition: background .15s, transform .1s;
}
.kw-chip:hover { background: rgba(109, 94, 252, 0.26); }
.kw-chip:active { transform: scale(.95); }
.kw-chip.on { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; }
select {
    cursor: pointer; padding-right: 34px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239aa6c7' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
    background-repeat: no-repeat; background-position: right 12px center;
}
select:focus, .combo-input:focus, .text-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(109, 94, 252, 0.25); }
select option { color: #0b1020; }
select option:disabled { color: #8a93ad; }

/* Combobox (поиск по тексту) */
.combo { position: relative; }
.combo-list {
    position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0;
    max-height: 300px; overflow-y: auto; background: #0f1730;
    border: 1px solid var(--card-border); border-radius: 12px; box-shadow: var(--shadow);
    display: none;
}
.combo-list.open { display: block; }
.combo-group {
    padding: 8px 14px 4px; font-size: 12px; font-weight: 700; letter-spacing: .03em;
    text-transform: uppercase; color: #b9a8ff;               /* читаемый цвет групп (#7) */
    background: rgba(109, 94, 252, 0.10); position: sticky; top: 0;
}
.combo-item { padding: 9px 14px; font-size: 14px; cursor: pointer; color: var(--text); }
.combo-item:hover, .combo-item.active { background: rgba(109, 94, 252, 0.22); }
.combo-empty { padding: 12px 14px; color: var(--muted); font-size: 14px; }

.btn-primary {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--accent), #8b7bff); color: #fff; border: none;
    border-radius: 12px; padding: 13px 22px; font-size: 15px; font-weight: 700; cursor: pointer;
    white-space: nowrap; transition: transform .12s, box-shadow .15s, opacity .15s;
    box-shadow: 0 10px 24px rgba(109, 94, 252, 0.4);
}
/* Блик пробегает по кнопке при наведении — подсказка, что здесь основное действие */
.btn-primary::after {
    content: ""; position: absolute; inset: 0; transform: translateX(-110%);
    background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.42), transparent 80%);
    pointer-events: none;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(109, 94, 252, 0.52); }
.btn-primary:hover::after { animation: btn-shine .85s ease-out; }
@keyframes btn-shine { to { transform: translateX(110%); } }
.btn-primary:active { transform: translateY(0) scale(.985); }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-primary:disabled::after { animation: none; }
.hero-hint { color: var(--muted); font-size: 13px; margin-top: 14px; }

/* Insight (ИИ-аналитика недели) */
.insight-card {
    background: linear-gradient(135deg, rgba(109,94,252,0.14), rgba(35,198,164,0.10));
    border: 1px solid var(--card-border); border-radius: var(--radius); padding: 20px 22px;
    margin-top: 10px; box-shadow: var(--shadow);
}
.insight-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.insight-head h3 { margin: 0; font-size: 17px; }
.insight-icon { font-size: 20px; }
.insight-ai { font-size: 11px; font-weight: 700; color: var(--accent-2); border: 1px solid rgba(35,198,164,.4); padding: 2px 8px; border-radius: 999px; }
#insight-text { margin: 0; white-space: pre-line; line-height: 1.6; }
.insight-date { color: var(--muted); font-size: 12px; margin-top: 8px; display: inline-block; }

/* Results */
.results-wrap { padding: 20px 0 60px; }
.loader { text-align: center; color: var(--muted); padding: 40px 0; }
.spinner { width: 42px; height: 42px; margin: 0 auto 14px; border: 3px solid rgba(255,255,255,0.15); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-box { background: rgba(255,107,107,0.12); border: 1px solid rgba(255,107,107,0.4); color: #ffd5d5; padding: 16px 18px; border-radius: 14px; text-align: center; }

.results { animation: fadeUp .4s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.result-head { display: flex; align-items: center; gap: 12px; margin: 10px 0 18px; }
.result-head h2 { font-size: 22px; margin: 0; }
.cached-tag { font-size: 12px; color: var(--muted); border: 1px solid var(--card-border); padding: 3px 10px; border-radius: 999px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); margin-bottom: 18px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.card {
    background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
    padding: 22px; box-shadow: var(--shadow); backdrop-filter: blur(14px);
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
    animation: card-in .55s cubic-bezier(.22,.61,.36,1) backwards;
}
@keyframes card-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.card:nth-child(2) { animation-delay: .06s; }
.card:nth-child(3) { animation-delay: .12s; }
.card:hover { border-color: rgba(109, 94, 252, 0.34); }
/* Карточки-показатели заметно откликаются: это первое, куда смотрит пользователь */
.grid-stats .card:hover, .move-card:hover, .aside-card:hover { transform: translateY(-3px); }
.card-title { margin: 0 0 16px; font-size: 16px; font-weight: 700; }

.gauge-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }

/* --val регистрируем как число: иначе conic-gradient не анимируется, а прыгает.
   inherits: true обязательно — маркер на конце дуги читает то же значение. */
@property --val { syntax: "<number>"; inherits: true; initial-value: 0; }

.gauge {
    /* --ring — толщина дуги, --dot — диаметр маркера. Через них считаются и «бублик»,
       и позиция маркера, поэтому он остаётся по центру дуги при любом размере шкалы */
    --ring: 17px; --dot: 10px;
    --val: 0; position: relative; width: 150px; height: 150px; border-radius: 50%;
    display: grid; place-items: center; cursor: help; outline: none;
    background: conic-gradient(var(--accent), var(--accent-2) calc(var(--val)*1%), rgba(127,127,127,0.14) 0);
    transition: --val 1.1s cubic-bezier(.22,.61,.36,1), filter .3s;
}
.gauge-anim { animation: gauge-fill 1.1s cubic-bezier(.22,.61,.36,1); }
@keyframes gauge-fill { from { --val: 0; } }
.gauge:hover, .gauge:focus-visible { filter: brightness(1.08); }

/* Пульсирующее кольцо расходится от шкалы при наведении */
.gauge::after {
    content: ""; position: absolute; inset: -6px; border-radius: 50%;
    border: 2px solid var(--accent-2); opacity: 0; pointer-events: none;
}
.gauge:hover::after, .gauge:focus-visible::after { animation: gauge-pulse 1.6s ease-out infinite; }
@keyframes gauge-pulse {
    0% { opacity: .5; transform: scale(.96); }
    70% { opacity: 0; transform: scale(1.12); }
    100% { opacity: 0; transform: scale(1.12); }
}

/* Маркер на конце дуги: едет вместе с заливкой, потому что читает то же --val */
.gauge-marker { position: absolute; inset: 0; pointer-events: none; rotate: calc(var(--val) * 3.6deg); }
.gauge-marker::before {
    content: ""; position: absolute; left: 50%; width: var(--dot); height: var(--dot);
    top: calc((var(--ring) - var(--dot)) / 2);   /* центр маркера = середина дуги */
    margin-left: calc(var(--dot) / -2); border-radius: 50%; background: #fff;
    box-shadow: 0 0 0 3px var(--accent-2), 0 0 14px rgba(35,198,164,.8);
}
.gauge:hover .gauge-marker::before { animation: gauge-dot 1.4s ease-in-out infinite; }
@keyframes gauge-dot { 50% { box-shadow: 0 0 0 5px var(--accent-2), 0 0 22px rgba(35,198,164,.95); } }

.gauge-inner {
    position: relative; z-index: 1; border-radius: 50%;
    width: calc(100% - var(--ring) * 2); height: calc(100% - var(--ring) * 2);
    background: var(--bg-soft); display: grid; place-items: center; align-content: center;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.gauge:hover .gauge-inner, .gauge:focus-visible .gauge-inner { transform: scale(.94); }
.gauge-value { font-variant-numeric: tabular-nums; }
.gauge-value { font-size: 40px; font-weight: 800; line-height: 1; }
.gauge-max { font-size: 13px; color: var(--muted); }
.gauge-label { margin-top: 14px; font-weight: 700; font-size: 17px; }
.gauge-caption { color: var(--muted); font-size: 12px; margin-top: 2px; }

.stat-card { text-align: left; cursor: help; }
.stat-icon { font-size: 22px; transition: transform .3s cubic-bezier(.34,1.56,.64,1), color .25s; }
.stat-card:hover .stat-icon { transform: translateY(-2px) scale(1.12); color: var(--accent-2); }
.stat-card:hover .stat-value { color: var(--accent-2); }
.stat-value { font-size: 34px; font-weight: 800; margin: 8px 0 2px; font-variant-numeric: tabular-nums; transition: color .25s; }
.stat-name { color: var(--muted); font-size: 14px; }
.stat-extra { margin-top: 10px; font-size: 14px; font-weight: 600; }
.trend-up { color: var(--up); } .trend-down { color: var(--down); } .trend-flat { color: var(--muted); }

.bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bars li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; }
.bar-name { font-size: 14px; } .bar-count { font-size: 13px; color: var(--muted); font-weight: 600; }
.bar-track { grid-column: 1 / -1; height: 8px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .6s ease; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: rgba(109,94,252,0.16); border: 1px solid rgba(109,94,252,0.35); color: #d9d3ff; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.muted-note { color: var(--muted); font-size: 14px; }

.chart-card { margin-bottom: 18px; }
#trend-chart { width: 100%; display: block; }

.disclaimer { color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 6px; }

.site-footer { border-top: 1px solid var(--card-border); padding: 26px 0; margin-top: 20px; }
.site-footer p { margin: 4px 0; font-size: 14px; } .muted { color: var(--muted); }
/* ссылки в простых футерах внутренних страниц — тем же цветом, что и текст рядом */
.site-footer .muted a { color: var(--muted); text-decoration: none; }
.site-footer .muted a:hover { color: var(--text); text-decoration: underline; }

/* Assistant */
.assistant { position: fixed; left: 22px; bottom: 22px; right: auto; z-index: 60; }
.assistant-fab {
    position: relative; width: 66px; height: 66px; border-radius: 50%; border: none; cursor: grab;
    background: conic-gradient(from 180deg, var(--accent), var(--accent-2), #8b7bff, var(--accent));
    box-shadow: 0 14px 34px rgba(109,94,252,0.55); display: grid; place-items: center;
    transition: transform .15s; touch-action: none; overflow: visible;
}
.assistant-fab:hover { transform: scale(1.06); }
.assistant-fab:active { cursor: grabbing; }
.assistant-orb {
    position: absolute; inset: 3px; border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #2a3566, #0f1730 78%);
    box-shadow: inset 0 0 14px rgba(109,94,252,0.6);
}
.assistant-person { position: relative; z-index: 2; width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: bob 3s ease-in-out infinite; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); pointer-events: none; }
.assistant-emoji { position: relative; z-index: 2; font-size: 30px; line-height: 1; animation: bob 3s ease-in-out infinite; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); pointer-events: none; }
.assistant-avatar .ico { stroke: var(--accent); }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.assistant-pulse { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(35,198,164,0.5); animation: pulse 2.2s infinite; z-index: 1; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(35,198,164,0.5); } 70% { box-shadow: 0 0 0 18px rgba(35,198,164,0); } 100% { box-shadow: 0 0 0 0 rgba(35,198,164,0); } }

/* Облачко-реакция над человечком */
.assistant-say {
    position: absolute; bottom: 80px; left: 0; max-width: 220px; width: max-content;
    background: #14203d; color: #eef2ff; border: 1px solid var(--card-border);
    padding: 9px 13px; border-radius: 14px; font-size: 13px; font-weight: 600; line-height: 1.35;
    box-shadow: var(--shadow); animation: bubble-pop .3s ease; z-index: 61;
}
.assistant-say::after {
    content: ""; position: absolute; bottom: -6px; left: 26px; width: 12px; height: 12px;
    background: #14203d; border-right: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border);
    transform: rotate(45deg);
}

.assistant-panel {
    position: absolute; left: 0; bottom: 78px; width: min(360px, 90vw); height: 520px; max-height: 76vh;
    background: #0f1730; border: 1px solid var(--card-border); border-radius: 18px; box-shadow: var(--shadow);
    display: flex; flex-direction: column; overflow: hidden; animation: fadeUp .25s ease;
}
.assistant:not(.left-side) .assistant-panel { left: auto; right: 0; }
.assistant:not(.left-side) .assistant-say { left: auto; right: 0; }
.assistant:not(.left-side) .assistant-say::after { left: auto; right: 26px; }

/* Вкладки помощника */
.assistant-tabs { display: flex; gap: 6px; padding: 10px 12px 0; }
.as-tab {
    flex: 1; background: rgba(255,255,255,0.05); border: 1px solid var(--card-border); color: var(--muted);
    padding: 8px 6px; border-radius: 10px 10px 0 0; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
    transition: background .15s, color .15s;
}
.as-tab.active { background: rgba(109,94,252,0.20); color: var(--text); border-bottom-color: transparent; }
.assistant-view { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.assistant-view.hidden { display: none; }

/* (advisor UI убран — карьерный разбор на /career) */
.assistant-top { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--card-border); }
.assistant-avatar { font-size: 26px; }
.assistant-name { font-weight: 700; font-size: 15px; }
.assistant-status { color: var(--muted); font-size: 12px; }
.assistant-close { margin-left: auto; background: none; border: none; color: var(--muted); font-size: 16px; cursor: pointer; }
.assistant-body { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.assistant-msg { padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5; max-width: 90%; white-space: pre-line; }
.assistant-msg.bot { background: rgba(255,255,255,0.06); border: 1px solid var(--card-border); align-self: flex-start; border-bottom-left-radius: 4px; }
.assistant-msg.me { background: linear-gradient(135deg, var(--accent), #8b7bff); align-self: flex-end; border-bottom-right-radius: 4px; }
.assistant-msg .tag { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); }
/* Ссылки в сообщениях ассистента должны читаться на любом фоне */
.assistant-msg a {
    color: var(--accent-2); font-weight: 700;
    text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1.5px;
}
.assistant-msg a:hover { color: var(--accent); }
.assistant-msg.me a { color: #fff; }
.assistant-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--card-border); }
.assistant-input input { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid var(--card-border); border-radius: 10px; padding: 10px 12px; color: var(--text); font-family: inherit; }
.assistant-input input:focus { outline: none; border-color: var(--accent); }
.assistant-input button { width: 42px; border: none; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-size: 16px; cursor: pointer; }
.assistant-input button:disabled { opacity: .5; cursor: progress; }

/* Топ востребованных сфер */
.top-block {
    background: linear-gradient(135deg, rgba(255,138,76,0.10), rgba(109,94,252,0.10));
    border: 1px solid var(--card-border); border-radius: var(--radius); padding: 20px 22px;
    margin-top: 14px; box-shadow: var(--shadow);
}
.top-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.top-title { margin: 0; font-size: 18px; }
.fire { filter: drop-shadow(0 0 8px rgba(255,138,76,.7)); }
.top-sub { color: var(--muted); font-size: 13px; }
.top-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.top-card {
    text-align: left; cursor: pointer; font-family: inherit; color: var(--text);
    background: rgba(255,255,255,0.05); border: 1px solid var(--card-border); border-radius: 14px;
    padding: 14px; display: flex; flex-direction: column; gap: 6px; transition: transform .12s, border-color .15s, background .15s;
}
.top-card:hover { transform: translateY(-3px); border-color: var(--accent); background: rgba(109,94,252,0.12); }
.top-rank {
    width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
}
.top-name { font-weight: 700; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; word-break: break-word; }
.top-stat { color: var(--muted); font-size: 12px; }

/* Список вакансий со ссылками */
.vac-card { margin-bottom: 18px; }
.stat-clickable { cursor: pointer; }
.stat-clickable:hover { border-color: rgba(109,94,252,.45); }
@keyframes qvFlash {
    0% { box-shadow: 0 0 0 3px rgba(109,94,252,.55); }
    100% { box-shadow: 0 0 0 3px rgba(109,94,252,0); }
}
.qv-flash { animation: qvFlash 1.4s ease-out 1; }
.qv-more {
    display: block; width: 100%; margin-top: 10px; padding: 10px 14px;
    font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
    color: var(--accent); background: rgba(109,94,252,.1);
    border: 1px dashed rgba(109,94,252,.4); border-radius: 12px;
    transition: background .15s, border-color .15s;
}
.qv-more:hover { background: rgba(109,94,252,.2); border-color: rgba(109,94,252,.6); }
.stat-extra--soft { opacity: .75; font-size: 11.5px; margin-top: 2px; }

/* ===== Экскурсия при первом визите: подсветка блока + облачко помощника ===== */
.tour-layer { position: fixed; inset: 0; z-index: 130; }
.tour-layer.tour-out { opacity: 0; transition: opacity .35s; pointer-events: none; }
.tour-spot {
    position: fixed; border-radius: 18px; pointer-events: none;
    box-shadow: 0 0 0 200vmax rgba(4, 7, 16, 0.6);
    border: 2px solid var(--accent-2);
    transition: left .5s cubic-bezier(.22,.8,.26,1), top .5s cubic-bezier(.22,.8,.26,1),
                width .5s cubic-bezier(.22,.8,.26,1), height .5s cubic-bezier(.22,.8,.26,1);
}
.tour-bubble {
    position: fixed; padding: 15px 17px 13px; border-radius: 18px;
    background: var(--bg-soft); border: 1px solid rgba(109,94,252,.45);
    box-shadow: 0 18px 55px rgba(0,0,0,.5);
    transition: left .5s cubic-bezier(.22,.8,.26,1), top .5s cubic-bezier(.22,.8,.26,1);
}
/* хвостик облачка — смотрит на подсвеченный блок */
.tour-bubble::before {
    content: ""; position: absolute; top: -7px; left: var(--tail, 50%); margin-left: -7px;
    width: 14px; height: 14px; background: var(--bg-soft); transform: rotate(45deg);
    border-left: 1px solid rgba(109,94,252,.45); border-top: 1px solid rgba(109,94,252,.45);
}
.tour-bubble--above::before { top: auto; bottom: -7px; transform: rotate(225deg); }
.tour-bubble.tour-pop { animation: tour-pop .45s cubic-bezier(.34,1.45,.64,1); }
@keyframes tour-pop { from { transform: scale(.9); opacity: .3; } }
.tour-head { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.tour-head b { font-size: 15px; }
.tour-avatar {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; font-size: 19px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(109,94,252,.35), rgba(35,198,164,.3));
    border: 1px solid rgba(109,94,252,.4);
}
.tour-text { margin: 0 0 11px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.tour-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tour-dots { display: inline-flex; gap: 5px; }
.tour-dots i {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(127,127,127,.35); transition: background .2s, transform .2s;
}
.tour-dots i.on { background: var(--accent-2); transform: scale(1.25); }
.tour-btns { display: inline-flex; gap: 8px; }
.tour-skip {
    padding: 8px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer;
    color: var(--muted); background: transparent; border: none; border-radius: 10px;
}
.tour-skip:hover { color: var(--text); }
.tour-next {
    padding: 8px 16px; font-size: 13px; font-weight: 800; cursor: pointer;
    color: #fff; border: none; border-radius: 11px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    transition: transform .15s, box-shadow .15s;
}
.tour-next:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(109,94,252,.4); }

/* --- ИИ-поиск свободным запросом --- */
.smart-bar {
    display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
    padding: 9px 10px 9px 14px; border-radius: 16px;
    background: linear-gradient(120deg, rgba(109,94,252,.14), rgba(35,198,164,.10));
    border: 1px solid rgba(109,94,252,.35);
    transition: border-color .2s, box-shadow .2s;
}
.smart-bar:focus-within { border-color: rgba(109,94,252,.7); box-shadow: 0 0 0 3px rgba(109,94,252,.15); }
.smart-spark { font-size: 16px; filter: drop-shadow(0 0 6px rgba(109,94,252,.8)); animation: smartPulse 2.6s ease-in-out infinite; }
@keyframes smartPulse { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.18); opacity: 1; } }
.smart-input-wrap { position: relative; flex: 1; min-width: 0; display: flex; }
.smart-bar input {
    flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text);
    font-family: inherit; font-size: 13.5px; outline: none;
}
/* «Еле бегущий» плейсхолдер: подсказки медленно плывут, пока поле пустое */
.smart-ph {
    position: absolute; inset: 0; display: flex; align-items: center;
    overflow: hidden; pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
}
.smart-ph.off { display: none; }
.smart-ph-track {
    white-space: nowrap; font-size: 13.5px; color: var(--muted); opacity: .8;
    animation: smartTicker 48s linear infinite;
    will-change: transform;
}
@keyframes smartTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .smart-ph-track { animation: none; } }
.smart-btn {
    flex: 0 0 auto; font-family: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer;
    color: #fff; border: 0; border-radius: 11px; padding: 8px 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    transition: transform .15s, box-shadow .15s;
}
.smart-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(109,94,252,.35); }
.smart-btn:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.smart-note { margin: -4px 0 10px 4px; font-size: 12.5px; color: var(--accent-2); }
.smart-note--err { color: #ffb35c; }
@media (max-width: 560px) {
    .smart-bar { flex-wrap: wrap; }
    .smart-bar input { flex-basis: 100%; order: 2; }
    .smart-btn { order: 3; margin-left: auto; }
}

/* --- «Мои вакансии»: трекер откликов --- */
body.no-scroll { overflow: hidden; }
.tracker-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 34px; height: 34px; cursor: pointer; border-radius: 11px;
    color: var(--muted); background: rgba(127,127,127,0.10); border: 1px solid rgba(127,127,127,0.18);
    transition: color .15s, border-color .15s, transform .15s;
}
.tracker-btn:hover { color: var(--accent); border-color: rgba(109,94,252,.5); transform: translateY(-1px); }
.tracker-btn .ico { width: 18px; height: 18px; }
.tracker-count {
    position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 10.5px; font-weight: 800; color: #fff; border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.tracker-overlay {
    position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-start; justify-content: center;
    padding: 6vh 16px 16px; background: rgba(8, 10, 24, 0.6); backdrop-filter: blur(6px);
}
.tracker-panel {
    width: min(640px, 100%); max-height: 84vh; display: flex; flex-direction: column;
    background: var(--bg-soft, #151a33); border: 1px solid var(--card-border); border-radius: 18px;
    padding: 20px 22px; box-shadow: 0 24px 60px rgba(0,0,0,0.45);
    animation: fadeUp .3s ease;
}
.tracker-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tracker-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 18px; }
.tracker-close {
    border: 0; background: transparent; color: var(--muted); font-size: 17px; cursor: pointer;
    width: 32px; height: 32px; border-radius: 10px;
}
.tracker-close:hover { color: var(--text); background: rgba(127,127,127,0.14); }
.tracker-sub { margin: 8px 0 14px; font-size: 12.5px; color: var(--muted); }
.tracker-demo-ico { color: var(--accent); }
.tracker-list { overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 4px; }
.tracker-empty { padding: 26px 8px; text-align: center; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.tracker-item {
    padding: 12px 14px; border: 1px solid rgba(127,127,127,0.16); border-radius: 14px;
    background: rgba(127,127,127,0.05);
}
.tracker-row1 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tracker-del { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; border-radius: 8px; padding: 2px 6px; }
.tracker-del:hover { color: #ff7b7b; background: rgba(255,123,123,0.12); }
.tracker-meta { margin-top: 3px; font-size: 12px; color: var(--muted); }
.tracker-row2 { display: flex; gap: 8px; margin-top: 9px; }
.tracker-status,
select.tracker-status {
    flex: 0 0 auto; width: auto; font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
    padding: 6px 26px 6px 10px; border-radius: 9px; color: var(--text);
    background-color: rgba(127,127,127,0.09); border: 1px solid rgba(127,127,127,0.22);
    background-position: right 8px center;
}
.tracker-status.st-applied { color: #6da6ff; border-color: rgba(109,166,255,.45); }
.tracker-status.st-interview { color: #ffc46b; border-color: rgba(255,196,107,.45); }
.tracker-status.st-offer { color: #35d59f; border-color: rgba(53,213,159,.5); }
.tracker-status.st-rejected { color: #ff8585; border-color: rgba(255,133,133,.4); }
.tracker-note {
    flex: 1; min-width: 0; font-family: inherit; font-size: 12.5px; color: var(--text);
    padding: 6px 10px; border-radius: 9px;
    background: rgba(127,127,127,0.07); border: 1px solid rgba(127,127,127,0.18);
}
.tracker-note:focus { outline: none; border-color: rgba(109,94,252,.55); }

/* закладка в карточке вакансии */
.vac-item { grid-template-columns: 1fr auto auto; }
.vac-save {
    grid-column: 3; grid-row: 1 / 3; align-self: center;
    width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 9px; background: transparent; color: var(--muted);
    cursor: pointer; opacity: .45; transition: opacity .15s, color .15s, transform .15s;
}
.vac-item:hover .vac-save { opacity: 1; }
.vac-save svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.vac-save:hover { color: var(--accent); }
.vac-save.saved { opacity: 1; color: var(--accent); }
.vac-save.saved svg { fill: currentColor; }
@keyframes savePop { 0% { transform: scale(1); } 45% { transform: scale(1.45); } 100% { transform: scale(1); } }
.vac-save.pop { animation: savePop .4s ease; }
.reg-vacs .vac-item { position: relative; padding-right: 26px; }
.reg-vacs .vac-save { position: absolute; top: 6px; right: -2px; grid-column: auto; grid-row: auto; }
:root:is([data-theme="light"], [data-theme="cream"]) .tracker-overlay { background: rgba(30, 34, 60, 0.35); }

/* --- Зарплата по опыту --- */
.grades-card { margin-bottom: 18px; }
.grade-row {
    display: grid; grid-template-columns: 92px 1fr 110px 70px; gap: 12px; align-items: center;
    padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
    opacity: 0; animation: fadeUp .45s ease forwards; animation-delay: calc(var(--i, 0) * 90ms);
}
.grade-row:last-child { border-bottom: none; }
.grade-label { font-size: 13px; color: var(--muted); }
.grade-track { position: relative; height: 10px; border-radius: 6px; background: rgba(255,255,255,0.07); overflow: hidden; }
.grade-range {
    position: absolute; top: 0; bottom: 0; border-radius: 6px;
    background: rgba(35, 198, 164, 0.28); pointer-events: none;
}
.grade-fill {
    position: relative; z-index: 1;
    display: block; height: 100%; width: 0; border-radius: 6px;
    background: linear-gradient(90deg, var(--accent), #23c6a4);
    transition: width .8s cubic-bezier(.22,.61,.36,1);
}
.grade-fill.grow { width: var(--w, 0%); }
.grade-val { font-size: 12.5px; font-weight: 800; text-align: right; display: flex; flex-direction: column; gap: 2px; }
.grade-band { font-size: 10.5px; font-weight: 600; color: var(--muted); }
.grade-cnt { font-size: 11.5px; color: var(--muted); text-align: right; }
@media (max-width: 560px) {
    .grade-row { grid-template-columns: 80px 1fr 96px; }
    .grade-cnt { display: none; }
}
.vac-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.vac-item {
    display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; align-items: baseline;
    padding: 12px 10px; margin: 0 -10px; border-radius: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    transition: background .18s, transform .18s;
}
.vac-item:hover { background: rgba(127, 127, 127, 0.10); transform: translateX(3px); }
.vac-item:last-child { border-bottom: none; }
.vac-link { color: #cdd6ff; text-decoration: none; font-weight: 600; font-size: 15px; }
.vac-link:hover { color: #fff; text-decoration: underline; }
.vac-meta { grid-column: 1; color: var(--muted); font-size: 13px; }
.vac-salary { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--accent-2); font-weight: 700; font-size: 14px; white-space: nowrap; }

/* Легенда графика */
.chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chart-head-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-left: auto; }
.chart-period {
    display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px;
    background: rgba(127, 127, 127, 0.12); border: 1px solid var(--card-border);
}
.chart-period-btn {
    font-family: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer;
    color: var(--muted); background: transparent; border: 0; border-radius: 999px;
    padding: 7px 12px; min-height: 30px; transition: color .15s, background .15s, transform .15s;
}
.chart-period-btn:hover { color: var(--text); }
.chart-period-btn.active {
    color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 4px 14px rgba(109, 94, 252, 0.35);
}
.chart-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; justify-content: flex-end; }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg::before { content: ""; width: 16px; height: 3px; border-radius: 2px; }
.lg-found::before { background: #8b7bff; }
.lg-salary::before { background: repeating-linear-gradient(90deg, #23c6a4 0 5px, transparent 5px 9px); }
.lg-remote::before { background: repeating-linear-gradient(90deg, #e8a838 0 3px, transparent 3px 7px); }
.lg-band::before {
    background: rgba(35, 198, 164, 0.35);
    border: 1px solid rgba(35, 198, 164, 0.7);
    box-sizing: border-box;
}

/* Футер-ссылки */
.footer-links { margin-top: 8px !important; }
.footer-links a { color: var(--accent-2); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-links .dot { color: var(--muted); margin: 0 8px; }

/* Страница оферты */
.legal-wrap { padding: 24px 0 60px; max-width: 820px; }
.legal-wrap h1 { font-size: clamp(24px, 4vw, 34px); margin: 10px 0 4px; }
.legal-wrap h2 { font-size: 18px; margin: 26px 0 8px; color: #cdd6ff; }
.legal-wrap p { line-height: 1.7; color: #d7ddf2; }
.legal-upd { color: var(--muted); font-size: 13px; }
/* ссылки в тексте оферты/политики — тем же цветом, что и абзацы (в любой теме) */
.legal-wrap a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.legal-wrap a:hover { color: var(--accent-2); }
/* кнопка «назад» над заголовком внутренних страниц */
.legal-wrap .nav-back, .sub-wrap .nav-back { margin-bottom: 14px; }
.legal-note { margin-top: 26px; padding: 14px 16px; border-radius: 12px; background: rgba(109,94,252,0.10); border: 1px solid var(--card-border); }
.back-link { display: inline-block; margin-bottom: 6px; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--text); }

/* Логотип и действия в шапке */
.brand-logo {
    width: 40px; height: 40px; border-radius: 10px; display: block;
    filter: drop-shadow(0 4px 10px rgba(109,94,252,0.45));
    animation: logo-breathe 6s ease-in-out infinite;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes logo-breathe {
    0%, 100% { filter: drop-shadow(0 4px 10px rgba(109,94,252,0.45)); }
    50% { filter: drop-shadow(0 4px 16px rgba(35,198,164,0.65)); }
}
@media (prefers-reduced-motion: reduce) { .brand-logo { animation: none; } }
.header-actions { display: flex; align-items: center; gap: 9px; position: relative; }
.nav-burger {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 10px; border-radius: 12px; cursor: pointer;
    background: var(--card); border: 1px solid var(--card-border); color: var(--text); flex: none;
}
.nav-burger span {
    display: block; height: 2px; width: 100%; border-radius: 2px; background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.btn-support {
    display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
    background: linear-gradient(135deg, #ff5d8f, #ff8a4c); color: #fff; font-weight: 700; font-size: 14px;
    padding: 9px 13px; border-radius: 999px; box-shadow: 0 8px 20px rgba(255,93,143,0.4); transition: transform .12s;
}
/* На средних экранах шапке не хватает места на все кнопки — прячем второстепенную ссылку */
@media (max-width: 1220px) {
    .top-nav a[href="#about"] { display: none; }
    .btn-support .btn-support-text { display: none; }
}
.btn-support:hover { transform: translateY(-1px); }
.btn-support .heart { animation: heart 1.4s ease-in-out infinite; }
@keyframes heart { 0%,100% { transform: scale(1); } 50% { transform: scale(1.25); } }
.theme-toggle {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--card-border);
    background: rgba(255,255,255,0.05); cursor: pointer; font-size: 18px; line-height: 1; transition: background .15s, transform .12s;
}
.theme-toggle:hover { transform: rotate(-15deg); background: rgba(255,255,255,0.10); }

/* Бот в Telegram — незаметная иконка в подвале */
.tg-plane {
    display: inline-grid; place-items: center; vertical-align: middle;
    width: 28px; height: 28px; border-radius: 9px; margin-left: 2px;
    border: 1px solid var(--card-border); background: var(--card);
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.tg-plane svg {
    width: 15px; height: 15px; fill: none; stroke: var(--muted);
    stroke-width: 1.7; stroke-linejoin: round; transition: stroke .16s ease;
}
.tg-plane:hover { transform: translate(2px, -2px); border-color: var(--accent); background: rgba(109,94,252,0.12); }
.tg-plane:hover svg { stroke: var(--accent-2); }

/* Секция поддержки */
.support-card {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(255,93,143,0.12), rgba(255,138,76,0.10));
    border: 1px solid var(--card-border); border-radius: var(--radius); padding: 22px 24px; margin: 28px 0 8px; box-shadow: var(--shadow);
}
.support-text { flex: 1; min-width: 260px; }
.support-text h3 { margin: 0 0 6px; font-size: 19px; }
.support-text p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 14px; }
.support-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.support-amt {
    text-decoration: none; font-weight: 700; font-size: 15px; color: #fff;
    background: linear-gradient(135deg, #ff5d8f, #ff8a4c); padding: 11px 18px; border-radius: 12px;
    box-shadow: 0 8px 18px rgba(255,93,143,0.35); transition: transform .12s;
}
.support-amt:hover { transform: translateY(-2px); }
.support-amt.other { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid var(--card-border); box-shadow: none; }

/* Счётчик посетителей */
.visitors { color: var(--muted); font-size: 13px; margin-top: 8px !important; }
.visitors b { color: var(--text); }
.vis-ico { margin-right: 4px; }

/* ===== Результат: главная колонка + боковая (регионы, свежие вакансии) ===== */
.results-cols { display: grid; grid-template-columns: minmax(0, 1fr) 356px; gap: 18px; align-items: start; }
.results-main { min-width: 0; display: grid; gap: 18px; align-content: start; }
.results-aside { min-width: 0; display: grid; gap: 18px; align-content: start; }
/* внутри колонки расстояния задаёт gap — снимаем «личные» отступы карточек */
.results-main > .grid, .results-main > .chart-card, .results-main > .opp-card { margin: 0; }
/* Без этого широкая карточка (таблица сравнения) распирается по своему min-content
   и наезжает на боковую колонку. min-width: 0 отдаёт прокрутку внутрь .table-wrap */
.results-main > *, .results-aside > * { min-width: 0; }
.aside-card { padding: 16px 18px; }
.aside-card .card-title { font-size: 14px; margin-bottom: 2px; }
.aside-note { font-size: 12px; color: var(--muted); margin: 0 0 12px; line-height: 1.45; }
.aside-card .vac-title { font-size: 13px; }

/* Компактные карточки «По вашему запросу» */
.grid-stats { grid-template-columns: 190px minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.grid-stats .card { padding: 16px 18px; }
/* Маркер + ореол должны умещаться в толщину дуги: 7px точка + 2×2px ореол = 11px кольцо */
.grid-stats .gauge { width: 96px; height: 96px; --ring: 11px; --dot: 7px; }
.grid-stats .gauge .gauge-marker::before { box-shadow: 0 0 0 2px var(--accent-2), 0 0 10px rgba(35,198,164,.8); }
.grid-stats .gauge:hover .gauge-marker::before { animation: gauge-dot-sm 1.4s ease-in-out infinite; }
@keyframes gauge-dot-sm { 50% { box-shadow: 0 0 0 3px var(--accent-2), 0 0 16px rgba(35,198,164,.95); } }
.grid-stats .gauge-value { font-size: 26px; }
.grid-stats .gauge-max { font-size: 11px; }
.grid-stats .gauge-label { margin-top: 10px; font-size: 14px; }
.grid-stats .stat-value { font-size: 26px; margin: 6px 0 2px; }
.grid-stats .stat-name { font-size: 13px; }
.grid-stats .stat-extra { font-size: 13px; margin-top: 6px; }
.grid-stats .stat-icon .ico { width: 20px; height: 20px; }

/* ============ Тултипы ============ */
.tip {
    position: fixed; top: 0; left: 0; z-index: 9000; max-width: 280px;
    padding: 9px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.45;
    color: var(--text); background: var(--bg-soft); border: 1px solid var(--card-border);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
    opacity: 0; pointer-events: none;
    transition: opacity .16s ease, translate .16s ease;
    translate: 0 4px;
}
.tip.visible { opacity: 1; translate: 0 0; }
.tip.tip-below { translate: 0 -4px; }
.tip.tip-below.visible { translate: 0 0; }

/* Пунктир под тем, у чего есть пояснение — чтобы подсказку заметили */
[data-tip].tip-hint {
    text-decoration: underline dotted rgba(127, 127, 127, .55);
    text-underline-offset: 3px; cursor: help;
}
[data-tip].tip-hint:hover { text-decoration-color: var(--accent-2); }

/* ============ «Где больше всего вакансий»: гербы, доли, раскрытие ============ */
.regions-card { overflow: hidden; }
.reg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }

.reg-row {
    border-radius: 14px; border: 1px solid transparent;
    transition: border-color .25s, background .25s;
    opacity: 0; animation: reg-in .5s cubic-bezier(.22, .61, .36, 1) forwards;
    animation-delay: calc(var(--i) * 70ms);
}
@keyframes reg-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.reg-row.open { background: rgba(109, 94, 252, 0.07); border-color: rgba(109, 94, 252, 0.28); }

.reg-head {
    width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 0 11px;
    align-items: start; padding: 11px 12px; background: none; border: 0; border-radius: 14px;
    cursor: pointer; color: var(--text); font-family: inherit; text-align: left;
    transition: background .18s;
}
.reg-head:hover { background: rgba(127, 127, 127, 0.09); }
.reg-row.open .reg-head:hover { background: transparent; }

/* Герб: монограмма снизу, поверх неё — картинка, когда загрузится */
.reg-emblem {
    position: relative; width: 34px; height: 38px; flex: none;
    display: grid; place-items: center; align-self: center;
    animation: reg-emblem-in .55s cubic-bezier(.34, 1.56, .64, 1) backwards;
    animation-delay: calc(var(--i) * 70ms + 120ms);
}
@keyframes reg-emblem-in { from { opacity: 0; transform: scale(.55) rotate(-8deg); } to { opacity: 1; transform: none; } }
.reg-mono {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-size: 12px; font-weight: 800; letter-spacing: .02em;
    color: hsl(var(--hue) 55% 72%);
    background: linear-gradient(160deg, hsl(var(--hue) 60% 26% / .55), hsl(var(--hue) 60% 16% / .35));
    border: 1px solid hsl(var(--hue) 60% 60% / .35);
    /* силуэт геральдического щита */
    clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%);
    transition: opacity .3s;
}
.reg-emblem img {
    position: relative; z-index: 2; max-width: 34px; max-height: 38px; opacity: 0;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35));
    transition: opacity .45s ease, transform .25s;
}
.reg-emblem img.ok { opacity: 1; }
.reg-emblem.has-emblem .reg-mono { opacity: 0; }
.reg-head:hover .reg-emblem img { transform: scale(1.12) translateY(-1px); }

.reg-rank {
    position: absolute; z-index: 3; left: 0; top: 0; transform: translate(-5px, -6px);
    min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
    display: grid; place-items: center; font-size: 10.5px; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 2px 8px rgba(109, 94, 252, .45); pointer-events: none;
}

.reg-main { min-width: 0; display: grid; gap: 7px; }
.reg-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.reg-name {
    font-weight: 700; font-size: 14px; min-width: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s;
}
.reg-head:hover .reg-name { color: var(--accent-2); }
.reg-count { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; flex: none; }

/* Шкала — это доля региона, поэтому рядом всегда стоит процент */
.reg-bar { display: block; height: 7px; border-radius: 999px; background: rgba(127, 127, 127, 0.16); overflow: hidden; }
.reg-fill {
    display: block; height: 100%; width: 0; border-radius: 999px; position: relative; overflow: hidden;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 1.1s cubic-bezier(.22, .61, .36, 1);
}
.reg-fill.grow { width: var(--w); }
.reg-fill::after {
    content: ""; position: absolute; inset: 0; transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
}
.reg-head:hover .reg-fill::after { animation: reg-shimmer 1.4s ease-in-out infinite; }
@keyframes reg-shimmer { to { transform: translateX(100%); } }

.reg-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.reg-share { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.reg-open {
    display: inline-flex; align-items: center; gap: 4px; flex: none;
    font-size: 11px; font-weight: 700; letter-spacing: .01em; color: var(--accent-2);
    background: rgba(35, 198, 164, 0.12); border: 1px solid rgba(35, 198, 164, 0.32);
    padding: 3px 8px 3px 10px; border-radius: 999px; transition: background .18s, transform .12s;
}
.reg-head:hover .reg-open { background: rgba(35, 198, 164, 0.26); transform: translateY(-1px); }
.reg-chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.6;
    stroke-linecap: round; stroke-linejoin: round; transition: transform .3s cubic-bezier(.22,.61,.36,1); }
.reg-row.open .reg-chev { transform: rotate(180deg); }
.reg-row.open .reg-open { background: rgba(35, 198, 164, 0.26); }

/* Раскрытие */
.reg-panel { max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(.22, .61, .36, 1); }
.reg-panel-inner { padding: 0 0 14px; margin: 0 12px; border-top: 1px dashed rgba(127, 127, 127, 0.2); }
.reg-row.open .reg-panel-inner > * { animation: reg-fade-up .45s ease backwards; }
.reg-row.open .reg-panel-inner > *:nth-child(1) { animation-delay: .06s; }
.reg-row.open .reg-panel-inner > *:nth-child(2) { animation-delay: .12s; }
.reg-row.open .reg-panel-inner > *:nth-child(3) { animation-delay: .18s; }
.reg-row.open .reg-panel-inner > *:nth-child(4) { animation-delay: .24s; }
@keyframes reg-fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ИИ-вывод */
.reg-ai {
    margin: 12px 0 0; padding: 10px 12px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(109, 94, 252, .16), rgba(35, 198, 164, .12));
    border: 1px solid rgba(109, 94, 252, .26);
}
.reg-ai-badge { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-2); }
.reg-ai-text { margin: 5px 0 0; font-size: 12.5px; line-height: 1.5; }
/* пока ждём ИИ — «дышащий» скелет вместо пустоты */
.reg-ai.loading .reg-ai-text { min-height: 34px; border-radius: 8px; background: rgba(127,127,127,.18); animation: reg-pulse 1.2s ease-in-out infinite; }
@keyframes reg-pulse { 0%, 100% { opacity: .45; } 50% { opacity: .9; } }

.reg-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 12px 0; }
.reg-stats > div {
    text-align: center; padding: 8px 4px; border-radius: 10px;
    background: rgba(127, 127, 127, 0.08); border: 1px solid rgba(127, 127, 127, 0.12);
}
.reg-stats b { display: block; font-size: 15px; font-weight: 800; }
.reg-stats span { font-size: 10.5px; color: var(--muted); line-height: 1.25; display: block; margin-top: 2px; }

/* В узкой колонке зарплата рядом с названием ломает строку — ставим её отдельной строкой */
.reg-vacs { margin: 0; padding: 0; list-style: none; }
.reg-vacs .vac-item { grid-template-columns: minmax(0, 1fr); padding: 9px 0; }
.reg-vacs .vac-link { font-size: 13px; }
.reg-vacs .vac-meta { font-size: 11.5px; }
.reg-vacs .vac-salary { grid-column: 1; grid-row: auto; font-size: 12.5px; white-space: normal; }
.reg-vacs .vac-item { animation: reg-fade-up .4s ease backwards; }
.reg-vacs .vac-item:nth-child(1) { animation-delay: .22s; }
.reg-vacs .vac-item:nth-child(2) { animation-delay: .28s; }
.reg-vacs .vac-item:nth-child(3) { animation-delay: .34s; }
.reg-vacs .vac-item:nth-child(n+4) { animation-delay: .4s; }

.reg-analyze {
    width: 100%; margin-top: 12px; font-family: inherit; font-size: 12.5px; font-weight: 700;
    cursor: pointer; color: #fff; border: 0; border-radius: 11px; padding: 10px 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    transition: transform .12s, filter .15s;
}
.reg-analyze:hover { transform: translateY(-1px); filter: brightness(1.07); }
.reg-analyze:active { transform: scale(.98); }

@media (prefers-reduced-motion: reduce) {
    .reg-row, .reg-emblem, .reg-panel-inner > *, .reg-vacs .vac-item,
    .opp-bar, .skillval-row, .ct-row, .cmp-leader, .cmp-vline { animation: none; opacity: 1; }
    .reg-fill, .opp-fill, .ct-bar-fill, .gauge, .opp-score { transition: none; }
    .gauge-anim { animation: none; }
    .gauge:hover::after, .gauge:hover .gauge-marker::before,
    .opp-bar:hover .opp-fill::after, .reg-head:hover .reg-fill::after { animation: none; }
    .card:hover, .grid-stats .card:hover, .move-card:hover, .aside-card:hover,
    .opp-bar:hover, .skillval-row:hover, .vac-item:hover, .cmp-leader:hover { transform: none; }
}
.region-badge {
    margin-left: 8px; font-size: 13px; font-weight: 700; color: var(--accent-2);
    background: rgba(35,198,164,0.14); border: 1px solid rgba(35,198,164,0.35); padding: 2px 10px; border-radius: 999px;
}

/* ================= Светлая тема ================= */
:root[data-theme="light"] {
    --bg: #eef1fb; --bg-soft: #ffffff;
    --card: rgba(20, 26, 51, 0.035); --card-border: rgba(20, 26, 51, 0.12);
    --text: #16203a; --muted: #5b6480;
    --shadow: 0 18px 44px rgba(20, 26, 51, 0.12);
}
:root[data-theme="light"] body {
    background:
        radial-gradient(1200px 600px at 15% -10%, rgba(109, 94, 252, 0.16), transparent 60%),
        radial-gradient(1000px 500px at 100% 0%, rgba(35, 198, 164, 0.14), transparent 55%),
        var(--bg);
}
:root[data-theme="light"] .hero-title {
    background: linear-gradient(90deg, #2a2350, #5b4bd6 55%, #12897a);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[data-theme="light"] select,
:root[data-theme="light"] .combo-input,
:root[data-theme="light"] .text-input { background: #fff; }
:root[data-theme="light"] .combo-list,
:root[data-theme="light"] .assistant-panel { background: #fff; }
:root[data-theme="light"] .assistant-msg.bot { background: rgba(20,26,51,0.05); }
:root[data-theme="light"] .vac-link { color: #4b3fce; }
:root[data-theme="light"] .chip { color: #4231b8; }
:root[data-theme="light"] .legal-wrap p { color: #2c3550; }
:root[data-theme="light"] .legal-wrap h2 { color: #3a3f66; }
:root[data-theme="light"] .bar-track,
:root[data-theme="light"] .check input { background: rgba(20,26,51,0.10); }
:root[data-theme="light"] .gauge { background: conic-gradient(var(--accent) calc(var(--val)*1%), rgba(20,26,51,0.10) 0); }
:root[data-theme="light"] .theme-toggle,
:root[data-theme="light"] .support-amt.other { background: rgba(20,26,51,0.04); }
:root[data-theme="light"] .reg-bar { background: rgba(20, 26, 51, 0.10); }
:root[data-theme="light"] .vac-item { border-color: rgba(20,26,51,0.08); }
:root[data-theme="light"] .assistant-orb { background: radial-gradient(circle at 32% 28%, #eef1fb, #cfd6f0 78%); box-shadow: inset 0 0 14px rgba(109,94,252,0.35); }

/* ===== Кнопка «Поддержать»: обёртка, окантовка, тултип ===== */
.support-wrap { position: relative; display: inline-flex; }
.btn-support {
    border: 1px solid rgba(255,255,255,0.28);
    line-height: 1; cursor: pointer;
}
.btn-support:active { transform: scale(0.96); }
.support-tip {
    position: absolute; top: calc(100% + 10px); right: 0; z-index: 40;
    width: max-content; max-width: 240px; padding: 9px 13px; border-radius: 12px;
    background: #14203d; color: #eef2ff; font-size: 12.5px; font-weight: 600; line-height: 1.35;
    border: 1px solid var(--card-border); box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .18s, transform .18s;
}
.support-tip::before {
    content: ""; position: absolute; top: -6px; right: 26px; width: 12px; height: 12px;
    background: #14203d; border-left: 1px solid var(--card-border); border-top: 1px solid var(--card-border);
    transform: rotate(45deg);
}
.support-wrap:hover .support-tip { opacity: 1; transform: translateY(0); }

/* ===== FX: салют + сердце на весь экран ===== */
#fx-layer { position: fixed; inset: 0; z-index: 9999; pointer-events: none; overflow: hidden; }
.confetti { position: absolute; width: 9px; height: 14px; border-radius: 2px; opacity: 0; will-change: transform, opacity; }
@keyframes confetti-fly {
    0% { opacity: 1; transform: translate(0,0) rotate(0deg); }
    100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); }
}
.heart-burst {
    position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.2);
    font-size: 30vmin; z-index: 9998; pointer-events: none; opacity: 0;
    filter: drop-shadow(0 12px 40px rgba(255,64,120,0.55));
    animation: heart-burst 1.5s ease forwards;
}
@keyframes heart-burst {
    0% { opacity: 0; transform: translate(-50%,-50%) scale(0.2); }
    22% { opacity: 1; transform: translate(-50%,-50%) scale(1.06); }
    45% { transform: translate(-50%,-50%) scale(0.94); }
    62% { transform: translate(-50%,-50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%,-58%) scale(1.15); }
}

/* ===== Дашборд рынка ===== */
.dash {
    background: linear-gradient(135deg, rgba(109,94,252,0.12), rgba(35,198,164,0.08));
    border: 1px solid var(--card-border); border-radius: var(--radius); padding: 20px 22px;
    margin-top: 12px; box-shadow: var(--shadow);
}
.dash-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.dash-title { margin: 0; font-size: 18px; }
.dash-ico { filter: drop-shadow(0 0 8px rgba(109,94,252,.6)); }
.dash-sub { color: var(--muted); font-size: 13px; }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.dash-stat {
    background: rgba(255,255,255,0.05); border: 1px solid var(--card-border); border-radius: 14px;
    padding: 16px 18px; transition: transform .12s, border-color .15s;
    animation: card-in .5s cubic-bezier(.22,.61,.36,1) backwards;
}
.dash-stat:nth-child(2) { animation-delay: .08s; }
.dash-stat:nth-child(3) { animation-delay: .16s; }
.dash-stat:hover { transform: translateY(-2px); border-color: var(--accent); }
.dash-stat-ico { font-size: 22px; transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.dash-stat:hover .dash-stat-ico { transform: translateY(-2px) scale(1.12); }
.dash-stat-val { font-size: 30px; font-weight: 800; margin: 8px 0 2px; line-height: 1.05; }
.dash-stat-val--sm { font-size: 18px; font-weight: 700; }
.dash-stat-name { color: var(--muted); font-size: 13px; }
.dash-hint { opacity: .8; }
.dash-chart-card { background: var(--card); border: 1px solid var(--card-border); border-radius: 14px; padding: 18px; }
.dash-empty { color: var(--muted); font-size: 14px; text-align: center; padding: 22px 0 6px; }

/* ===== Динамика рынка (вкладка дашборда) ===== */
#month-chart { width: 100%; display: block; }
.month-empty { text-align: center; padding: 26px 0 12px; color: var(--muted); }
.month-emoji { font-size: 40px; display: block; margin-bottom: 10px; animation: bob 3s ease-in-out infinite; }
.month-empty p { margin: 0 auto; max-width: 460px; line-height: 1.5; font-size: 14px; }

/* ===== Человечек-помощник (лоадер) ===== */
.helper-scene { position: relative; width: 220px; height: 150px; margin: 0 auto 6px; }
.helper-bubble {
    position: absolute; left: 50%; top: 0; transform: translateX(-50%);
    background: #14203d; color: #eef2ff; border: 1px solid var(--card-border);
    padding: 9px 14px; border-radius: 14px; font-size: 13px; font-weight: 600; white-space: nowrap;
    box-shadow: var(--shadow); animation: bubble-pop .4s ease;
}
.helper-bubble::after {
    content: ""; position: absolute; bottom: -6px; left: 32px; width: 12px; height: 12px;
    background: #14203d; border-right: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border);
    transform: rotate(45deg);
}
@keyframes bubble-pop { from { opacity: 0; transform: translateX(-50%) translateY(6px) scale(.9); } to { opacity: 1; } }
.helper-guy { position: absolute; left: 0; bottom: 20px; width: 100%; height: 90px; }
.helper-person { position: absolute; bottom: 0; left: 40px; font-size: 54px; animation: helper-walk 2.6s ease-in-out infinite; }
@keyframes helper-walk {
    0% { left: 30px; transform: rotate(-2deg); }
    25% { transform: translateY(-4px) rotate(1deg); }
    50% { left: 120px; transform: rotate(2deg); }
    75% { transform: translateY(-4px) rotate(-1deg); }
    100% { left: 30px; transform: rotate(-2deg); }
}
.helper-folder { position: absolute; bottom: 4px; font-size: 26px; animation: folder-toss 1.6s ease-in-out infinite; }
.helper-folder-1 { right: 24px; animation-delay: 0s; }
.helper-folder-2 { right: 54px; animation-delay: .4s; }
.helper-folder-3 { right: 84px; animation-delay: .8s; }
@keyframes folder-toss { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-10px) rotate(8deg); } }
.helper-floor {
    position: absolute; left: 10%; right: 10%; bottom: 16px; height: 6px; border-radius: 999px;
    background: radial-gradient(closest-side, rgba(109,94,252,0.35), transparent);
}
.helper-caption { text-align: center; color: var(--muted); }

/* ================= Кремовая тема ================= */
:root[data-theme="cream"] {
    --bg: #f6efe2; --bg-soft: #fffaf1;
    --card: rgba(90, 60, 20, 0.05); --card-border: rgba(120, 85, 40, 0.18);
    --text: #3a2e1c; --muted: #8a7658;
    --accent: #b5622a; --accent-2: #2f8f78;
    --shadow: 0 18px 44px rgba(120, 85, 40, 0.16);
}
:root[data-theme="cream"] body {
    background:
        radial-gradient(1200px 600px at 15% -10%, rgba(181, 98, 42, 0.16), transparent 60%),
        radial-gradient(1000px 500px at 100% 0%, rgba(47, 143, 120, 0.14), transparent 55%),
        var(--bg);
}
:root[data-theme="cream"] .hero-title {
    background: linear-gradient(90deg, #5a3a1c, #b5622a 55%, #2f8f78);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[data-theme="cream"] select,
:root[data-theme="cream"] .combo-input,
:root[data-theme="cream"] .text-input { background: #fffaf1; }
:root[data-theme="cream"] select option { color: #3a2e1c; }
:root[data-theme="cream"] .combo-list,
:root[data-theme="cream"] .assistant-panel { background: #fffaf1; }
:root[data-theme="cream"] .assistant-msg.bot { background: rgba(90,60,20,0.06); }
:root[data-theme="cream"] .vac-link { color: #a1521f; }
:root[data-theme="cream"] .chip { color: #8a4517; background: rgba(181,98,42,0.14); border-color: rgba(181,98,42,0.3); }
:root[data-theme="cream"] .combo-group { color: #a1521f; background: rgba(181,98,42,0.10); }
:root[data-theme="cream"] .bar-track,
:root[data-theme="cream"] .check input { background: rgba(120,85,40,0.14); }
:root[data-theme="cream"] .gauge { background: conic-gradient(var(--accent) calc(var(--val)*1%), rgba(120,85,40,0.14) 0); }
:root[data-theme="cream"] .theme-toggle,
:root[data-theme="cream"] .support-amt.other { background: rgba(120,85,40,0.06); }
:root[data-theme="cream"] .helper-bubble,
:root[data-theme="cream"] .support-tip { background: #4a3a24; }
:root[data-theme="cream"] .helper-bubble::after,
:root[data-theme="cream"] .support-tip::before { background: #4a3a24; }
:root[data-theme="cream"] .assistant-orb { background: radial-gradient(circle at 32% 28%, #fffaf1, #ecdcc2 78%); box-shadow: inset 0 0 14px rgba(181,98,42,0.3); }

/* Верхняя навигация */
.top-nav { display: flex; gap: 10px; align-items: center; }
.top-nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; transition: color .15s; white-space: nowrap; }
.top-nav a:hover { color: var(--text); }

/* Дашборд рынка: вкладки спрос / ЗП / неделя / динамика */
.dash-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.dash-tab {
    font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; color: var(--muted);
    background: transparent; border: 1px solid var(--card-border); padding: 7px 12px; border-radius: 999px;
    transition: color .15s, background .15s, border-color .15s; white-space: nowrap;
}
.dash-tab:hover { color: var(--text); }
.dash-tab.active {
    color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent;
}
.dash-panel { animation: fadeUp .3s ease; }
.chart-legend--top { margin-bottom: 10px; flex-wrap: wrap; }

/* Кликабельные полосы «Топ сфер» */
.dash-bars { display: grid; gap: 8px; }
.db-row {
    display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 12px;
    width: 100%; background: none; border: 0; text-align: left; cursor: pointer; color: var(--text);
    font-family: inherit; padding: 9px 10px; border-radius: 12px; transition: background .15s, transform .12s;
}
.db-row:hover { background: rgba(127, 127, 127, 0.12); transform: translateX(2px); }
.db-row:active { transform: scale(.995); }
.db-rank { font-weight: 800; font-size: 14px; color: var(--accent-2); text-align: center; }
.db-mid { min-width: 0; }
.db-name {
    display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px;
    line-height: 1.3; overflow-wrap: anywhere; word-break: break-word;
}
.db-track { height: 10px; border-radius: 999px; background: rgba(127, 127, 127, 0.16); overflow: hidden; }
.db-fill {
    display: block; height: 100%; width: 0; border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 1s cubic-bezier(.22, .61, .36, 1);
}
.db-fill--money {
    background: linear-gradient(90deg, #1aa887, #23c6a4);
}

/* Рост/падение за неделю: полоса от центра */
.mv-track {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0; height: 10px;
    border-radius: 999px; background: rgba(127, 127, 127, 0.16); overflow: hidden;
    position: relative;
}
.mv-track::before {
    content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
    background: rgba(127, 127, 127, 0.45); transform: translateX(-50%); z-index: 1;
}
.mv-half { display: flex; align-items: stretch; min-width: 0; }
.mv-half--neg { justify-content: flex-end; }
.mv-half--pos { justify-content: flex-start; }
.mv-fill {
    display: block; height: 100%; width: 0; border-radius: 999px;
    transition: width 1s cubic-bezier(.22, .61, .36, 1);
}
.mv-fill--up { background: linear-gradient(90deg, #1aa887, #23c6a4); }
.mv-fill--down { background: linear-gradient(270deg, #d45b5b, #e07a7a); }
.db-val .mv-pct-up { color: #1aa887; }
.db-val .mv-pct-down { color: #d45b5b; }
.db-val { text-align: right; font-variant-numeric: tabular-nums; }
.db-val b { display: block; font-size: 14px; }
.db-val span { display: block; font-size: 11.5px; color: var(--muted); }
/* аккуратные единицы измерения рядом с цифрами */
.db-val i { font-style: normal; font-weight: 500; font-size: 10px; color: var(--muted); margin-left: 4px; letter-spacing: .02em; }
.db-val b i { font-weight: 500; }
.db-legend {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 0 10px 6px; font-size: 10.5px; color: var(--muted);
    text-transform: uppercase; letter-spacing: .06em;
}
.dash-foot { margin-top: 12px; font-size: 12.5px; }
.dash-more-row {
    display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center;
    margin-top: 14px; padding-top: 0;
}
.dash-more-btn {
    font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
    color: var(--accent-2); background: rgba(35, 198, 164, 0.12);
    border: 1px solid rgba(35, 198, 164, 0.35); padding: 8px 14px; border-radius: 999px;
    transition: background .15s;
}
.dash-more-btn:hover { background: rgba(35, 198, 164, 0.22); }
.dash-more-btn:disabled { opacity: .6; cursor: wait; }
.dash-more-link { font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; }
.dash-more-link:hover { color: var(--text); }

/* Инфо-блок внизу — свёрнут по умолчанию, меньше шума на первом экране */
.info-details { margin-top: 8px; }
.info-details-summary {
    cursor: pointer; font-weight: 800; font-size: 15px; color: var(--text);
    padding: 12px 4px; list-style: none;
}
.info-details-summary::-webkit-details-marker { display: none; }
.info-details[open] .info-details-summary { margin-bottom: 12px; }
.info-details .info-grid { margin-top: 0; }

/* Инфо-секция: О проекте / Методика / Источники */
.info-section { margin-top: 20px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.info-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 20px; }
.info-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 16px; }
.info-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }

/* Быстрые подсказки в чате помощника */
.assistant-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; }
.aq-chip {
    background: rgba(109,94,252,0.14); border: 1px solid rgba(109,94,252,0.3); color: var(--text);
    font-family: inherit; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px; cursor: pointer;
    transition: background .15s;
}
.aq-chip:hover { background: rgba(109,94,252,0.26); }
.footer-ver { color: var(--muted); }

/* Иерархия карточек */
.card--soft { background: rgba(255,255,255,0.028); border-color: rgba(255,255,255,0.06); box-shadow: none; }
:root[data-theme="light"] .card--soft { background: rgba(15,20,40,0.03); }
:root[data-theme="cream"] .card--soft { background: rgba(120,80,30,0.04); }
.card--hero {
    border-color: rgba(109,94,252,0.4);
    box-shadow: 0 22px 55px rgba(109,94,252,0.22);
    /* card-in перечисляем заново: shorthand ниже .card перебил бы появление карточки */
    animation: card-in .55s cubic-bezier(.22,.61,.36,1) backwards,
               hero-card-glow 5s ease-in-out .6s infinite;
}
@keyframes hero-card-glow {
    50% { box-shadow: 0 26px 62px rgba(35,198,164,0.18), 0 22px 55px rgba(109,94,252,0.28); }
}
@media (prefers-reduced-motion: reduce) {
    .card, .card--hero { animation: none !important; }
}

/* Разделяющий заголовок «Общая аналитика» */
.section-lead { margin: 26px auto 6px; }
.lead-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); }
.lead-title { font-size: clamp(22px, 3vw, 28px); font-weight: 800; margin: 4px 0 6px; }
.lead-sub { color: var(--muted); font-size: 14px; margin: 0; max-width: 720px; }
/* «Карьерный план» — главный CTA шапки: градиентная пилюля с бегущим бликом */
.nav-accent {
    position: relative; overflow: hidden;
    padding: 8px 13px; border-radius: 999px;
    color: #fff !important; font-weight: 800;
    background: linear-gradient(120deg, var(--accent), #8f7bff 55%, var(--accent-2));
    background-size: 220% 220%;
    box-shadow: 0 4px 16px rgba(109, 94, 252, 0.38);
    animation: navplan-grad 7s ease infinite;
    transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
}
.nav-accent:hover {
    color: #fff !important;
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 8px 24px rgba(109, 94, 252, 0.55);
}
.nav-accent::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -80%; width: 55%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent);
    transform: skewX(-18deg);
    animation: navplan-shine 4.5s ease-in-out infinite;
}
@keyframes navplan-grad { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes navplan-shine { 0%, 55% { left: -80%; } 85%, 100% { left: 130%; } }

/* обёртка двух пилюль: не меняет раскладку, но её можно подсветить в экскурсии */
.nav-pills { display: inline-flex; gap: 7px; align-items: center; }

/* «Профессии» и «Рынок недели» — пилюли в стиле «Карьерного плана», но спокойнее:
   контурные, без анимации — иерархия шапки сохраняется (рассылка ярче всех) */
.nav-pill {
    padding: 6px 11px; border-radius: 999px; font-weight: 700;
    color: var(--text) !important;
    border: 1.5px solid rgba(109, 94, 252, .45);
    background: rgba(109, 94, 252, .10);
    transition: transform .2s cubic-bezier(.34,1.56,.64,1), background .2s, border-color .2s, box-shadow .2s;
}
.nav-pill:hover {
    transform: translateY(-1px) scale(1.03);
    background: rgba(109, 94, 252, .2); border-color: rgba(109, 94, 252, .7);
    box-shadow: 0 6px 18px rgba(109, 94, 252, .3);
}
:root[data-theme="light"] .nav-pill { background: rgba(109, 94, 252, .09); color: #3b2fb8 !important; }
:root[data-theme="cream"] .nav-pill { border-color: rgba(181, 98, 42, .45); background: rgba(181, 98, 42, .09); color: #8a4517 !important; }

/* Кнопка «назад» на внутренних страницах — заметная пилюля со стрелкой */
.nav-back {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 14px 7px 11px; border-radius: 999px; font-weight: 700;
    color: var(--text) !important;
    border: 1.5px solid rgba(35, 198, 164, .45);
    background: rgba(35, 198, 164, .08);
    transition: transform .2s cubic-bezier(.34,1.56,.64,1), background .2s, border-color .2s, box-shadow .2s;
}
.nav-back:hover {
    transform: translateY(-1px);
    background: rgba(35, 198, 164, .16); border-color: rgba(35, 198, 164, .75);
    box-shadow: 0 6px 18px rgba(35, 198, 164, .25);
}
.nav-back-arr { font-style: normal; color: var(--accent-2); transition: transform .2s; }
.nav-back:hover .nav-back-arr { transform: translateX(-3px); }

/* Кнопка «Рассылка вакансий» в шапке — монетизация, должна манить */
.nav-mail {
    position: relative;
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 12px; border-radius: 999px;
    font-weight: 800; color: var(--accent-2) !important;
    border: 1.5px solid rgba(35, 198, 164, .55);
    background: rgba(35, 198, 164, .08);
    box-shadow: 0 0 0 0 rgba(35, 198, 164, .35);
    animation: navmail-glow 3.2s ease-in-out infinite;
    transition: transform .2s cubic-bezier(.34,1.56,.64,1), background .2s, box-shadow .2s;
}
.nav-mail:hover {
    transform: translateY(-1px) scale(1.03);
    background: linear-gradient(120deg, var(--accent-2), #37d9b7);
    color: #06281f !important;
    box-shadow: 0 8px 24px rgba(35, 198, 164, .5);
    animation: none;
}
.nav-mail-ico {
    font-style: normal; font-size: 15px; line-height: 1;
    animation: navmail-wiggle 3.2s ease-in-out infinite;
}
.nav-mail:hover .nav-mail-ico { animation: none; }
.nav-mail-dot {
    position: absolute; top: -3px; right: -2px;
    width: 9px; height: 9px; border-radius: 50%;
    background: #ffb020; border: 2px solid var(--bg);
    animation: navmail-ping 2s ease-out infinite;
}
@keyframes navmail-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(35, 198, 164, 0); }
    50% { box-shadow: 0 4px 20px rgba(35, 198, 164, .35); }
}
@keyframes navmail-wiggle {
    0%, 78%, 100% { transform: rotate(0); }
    84% { transform: rotate(-12deg); }
    90% { transform: rotate(10deg); }
    96% { transform: rotate(-5deg); }
}
@keyframes navmail-ping {
    0% { box-shadow: 0 0 0 0 rgba(255, 176, 32, .6); }
    70%, 100% { box-shadow: 0 0 0 7px rgba(255, 176, 32, 0); }
}
:root[data-theme="light"] .nav-mail { background: rgba(35, 198, 164, .12); color: #0d8f72 !important; }
:root[data-theme="light"] .nav-mail:hover { color: #06281f !important; }
@media (prefers-reduced-motion: reduce) {
    .nav-mail, .nav-mail-ico, .nav-mail-dot { animation: none; }
}

/* Шапка результата */
.result-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.result-head-main { display: flex; flex-direction: column; }
.result-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.result-head-main h2 { margin: 2px 0 0; }
.result-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.btn-compare, .btn-export {
    font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
    color: var(--text); background: rgba(109,94,252,0.14); border: 1px solid rgba(109,94,252,0.34);
    padding: 7px 14px; border-radius: 999px; transition: background .15s, transform .1s;
}
.btn-export { background: rgba(35,198,164,0.14); border-color: rgba(35,198,164,0.4); }
.btn-compare:hover { background: rgba(109,94,252,0.28); }
.btn-export:hover { background: rgba(35,198,164,0.26); }
.btn-compare:active, .btn-export:active { transform: scale(.96); }

/* ИИ-вывод под Opportunity */
.opp-summary { margin: 4px 0 16px; padding: 14px 16px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(109,94,252,0.16), rgba(35,198,164,0.12));
    border: 1px solid rgba(109,94,252,0.3); }
.opp-summary-ai { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .05em;
    text-transform: uppercase; color: var(--accent-2); margin-bottom: 6px; }
.opp-summary p { margin: 0; font-size: 15px; line-height: 1.55; }

/* Раскрываемая методика */
.opp-method { margin-top: 14px; border-top: 1px solid var(--card-border); padding-top: 10px; }
.opp-method summary { cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--muted); list-style: none; }
.opp-method summary::-webkit-details-marker { display: none; }
.opp-method summary::before { content: "▸ "; color: var(--accent); }
.opp-method[open] summary::before { content: "▾ "; }
.opp-method-body { font-size: 13px; color: var(--muted); line-height: 1.6; margin-top: 8px; }
.opp-method-body ul { margin: 6px 0; padding-left: 18px; }

.collector-status { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

/* Пустая шкала (нет истории) */
.opp-bar--empty .opp-track { background: rgba(127,127,127,.12); }
.opp-bar--empty .opp-bar-note { font-style: italic; }

/* Карточки «Куда двигаться»: смежные направления и лидеры рынка — разные вещи,
   поэтому разведены в два блока с разделителем */
.move-block + .move-block { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--card-border); }
.move-sub { margin: 2px 0 12px; font-size: 12.5px; color: var(--muted); line-height: 1.5; max-width: 640px; }
/* 185px — минимум, при котором «Проанализировать →» и суммы не рвутся на строки;
   в узкой колонке результатов это 3 карточки в ряд, на широких экранах — все четыре */
.move-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 12px; align-items: stretch; }
.move-card {
    background: rgba(255,255,255,0.04); border: 1px solid var(--card-border); border-radius: 14px;
    padding: 14px; display: flex; flex-direction: column; gap: 10px; cursor: help;
    animation: opp-row-in .45s ease backwards; animation-delay: calc(var(--i) * 70ms);
    transition: transform .2s, border-color .2s, box-shadow .2s, background .2s;
}
.move-card:hover { border-color: rgba(35,198,164,.42); box-shadow: 0 12px 26px rgba(0,0,0,.2); }
.move-card:hover .move-name { color: var(--accent-2); }
.move-name { transition: color .18s; }
.move-card--up { border-color: rgba(35,198,164,0.4); background: rgba(35,198,164,0.08); }
.move-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.move-name { font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.move-badge { font-size: 10.5px; font-weight: 800; color: var(--accent-2); background: rgba(35,198,164,0.15); border-radius: 999px; padding: 3px 8px; white-space: nowrap; cursor: help; }
/* зарплата ниже вашей — нейтрально-жёлтым, чтобы не читалось как плюс */
.move-badge--down { color: #f0b429; background: rgba(240, 180, 41, .15); }
.move-stats { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; color: var(--muted); }
.move-money { font-weight: 800; color: var(--text); }
/* margin-top:auto — кнопки «Проанализировать» стоят на одной линии при разной высоте карточек */
.move-go { margin-top: auto; font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; color: var(--accent); background: transparent; border: 1px solid rgba(109,94,252,0.4); border-radius: 10px; padding: 7px 10px; transition: background .15s; }
.move-go:hover { background: rgba(109,94,252,0.16); }

.skills-ai-note { font-size: 11.5px; font-weight: 700; color: var(--accent-2); }

/* Страница «Карьерный план» */
/* ---------------- ИИ-облачко в графиках динамики ----------------
   По умолчанию — в потоке сверху виджета (график не перекрывает).
   Форма облака: тело + «бугорки» и хвостик из кругов; единая окантовка
   рисуется drop-shadow по общему силуэту, поэтому швов между кругами нет. */
.chart-wrap { position: relative; }
.chart-ai {
    position: relative; width: fit-content; max-width: min(72%, 320px);
    margin: 12px 8px 12px auto; padding: 6px 11px 7px 30px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--bg-soft) 88%, var(--accent-2));
    filter: drop-shadow(0 0 .9px var(--accent-2)) drop-shadow(0 0 .9px var(--accent-2))
            drop-shadow(0 8px 16px rgba(0, 0, 0, 0.22));
    pointer-events: none;                      /* не мешает ховер-тултипам графика */
    touch-action: none;
}
.chart-ai.dragging { z-index: 6; }
.chart-ai.dragging, .chart-ai.dragging::before, .chart-ai.dragging::after { transition: none; }
/* бугорки сверху */
.chart-ai::before, .chart-ai::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.chart-ai::before { width: 20px; height: 20px; top: -8px; left: 24px; }
.chart-ai::after { width: 13px; height: 13px; top: -5px; left: 47px; }
/* хвостик «мысли» снизу */
.chart-ai-tail { position: absolute; left: 14px; bottom: -6px; width: 9px; height: 9px; border-radius: 50%; background: inherit; }
.chart-ai-tail::after { content: ""; position: absolute; left: -8px; bottom: -5px; width: 5px; height: 5px; border-radius: 50%; background: inherit; }
/* ручка: только за неё облачко можно таскать (сама плашка события не перехватывает) */
.chart-ai-drag {
    position: absolute; left: 6px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 26px; padding: 0; border: none; border-radius: 7px;
    display: grid; place-items: center;
    background: rgba(127, 127, 127, 0.16); color: var(--muted);
    cursor: grab; pointer-events: auto;
}
.chart-ai-drag svg { width: 11px; height: 14px; fill: currentColor; }
.chart-ai-drag:hover { background: rgba(127, 127, 127, 0.28); color: var(--text); }
.chart-ai.dragging .chart-ai-drag { cursor: grabbing; }
.chart-ai-badge {
    display: inline-block; margin-bottom: 1px;
    font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    color: var(--accent-2);
}
.chart-ai p { margin: 0; font-size: 11.5px; line-height: 1.4; color: var(--text); }
@media (max-width: 700px) {
    .chart-ai { max-width: none; margin: 12px 0; }
}

/* ---------------- Подсказка «Возможно, вы имели в виду…» в комбобоксе ---------------- */
.combo-suggest {
    display: block; width: 100%; text-align: left; cursor: pointer;
    padding: 10px 14px; border: none; border-top: 1px solid var(--card-border);
    background: linear-gradient(135deg, rgba(109, 94, 252, 0.12), rgba(35, 198, 164, 0.1));
    font: inherit; font-size: 13.5px; color: var(--text);
    animation: suggest-in .3s cubic-bezier(.22,.61,.36,1);
}
.combo-suggest:hover { background: linear-gradient(135deg, rgba(109, 94, 252, 0.22), rgba(35, 198, 164, 0.18)); }
.combo-wait { color: var(--accent-2); animation: combo-wait-pulse 1.4s ease-in-out infinite; }
@keyframes combo-wait-pulse { 50% { opacity: .45; } }
.combo-suggest .cs-lbl { color: var(--muted); font-size: 12px; }
.combo-suggest b { color: var(--accent-2); }
.combo-suggest .cs-kw { color: var(--muted); font-size: 11.5px; }
@keyframes suggest-in { from { opacity: 0; transform: translateY(-4px); } }

.career-form { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; align-items: start; text-align: left; }
.career-form .field-wide { grid-column: 1 / -1; }
.career-form textarea.text-input { resize: vertical; min-height: 96px; font-family: inherit; line-height: 1.5; }
.career-form .req { color: var(--accent); }
.career-review .review-h {
    display: flex; align-items: center; gap: 8px;
    font-size: 16px; font-weight: 800; margin: 18px 0 8px; color: var(--accent-2);
}
.career-review .review-h:first-child { margin-top: 0; }
.career-review .review-h .ico {
    width: 19px; height: 19px; flex: 0 0 auto;
    fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
/* Первый раздел «Коротко» — главный вывод, выделяем плашкой */
.career-review > .review-h:first-child + .review-p {
    margin: 4px 0 16px; padding: 13px 16px; border-radius: 14px;
    font-size: 15px; line-height: 1.6;
    background: linear-gradient(135deg, rgba(109, 94, 252, 0.16), rgba(35, 198, 164, 0.1));
    border: 1px solid rgba(109, 94, 252, 0.3);
}
.career-review .review-list { margin: 0 0 6px; padding-left: 20px; }
.career-review .review-list li { margin: 5px 0; line-height: 1.55; }
.career-review .review-p { margin: 8px 0; line-height: 1.6; }
/* Карточки разбора не должны слипаться друг с другом */
.results > .card + .card, .results > .card + .disclaimer { margin-top: 18px; }
.career-skills { margin-top: 18px; }
.cf-label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cf-example {
    background: none; border: none; padding: 2px 0; cursor: pointer;
    font: inherit; font-size: 12.5px; font-weight: 600; color: var(--accent-2);
    border-bottom: 1px dashed color-mix(in srgb, var(--accent-2) 55%, transparent);
    transition: color .2s ease, border-color .2s ease;
}
.cf-example:hover { color: var(--accent); border-bottom-color: var(--accent); }
.cf-opt { font-weight: 500; font-size: 12px; color: var(--muted); }
.cf-ai-note {
    margin: -6px 0 4px; font-size: 12.5px; color: var(--muted);
    display: flex; align-items: center; gap: 7px;
}
.cf-ai-note::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto;
    background: var(--accent-2); box-shadow: 0 0 8px color-mix(in srgb, var(--accent-2) 70%, transparent);
}
@media (max-width: 720px) { .career-form { grid-template-columns: 1fr; } }

/* Печать отчёта (Сохранить в PDF) */
.print-report-header { display: none; font-size: 18px; font-weight: 800; margin-bottom: 16px; color: #111; }
.print-chart-img { display: none; max-width: 100%; height: auto; margin: 8px 0 14px; }
@media print {
    body.printing-report { background: #fff !important; color: #111 !important; }
    body.printing-report .site-header, body.printing-report .hero, body.printing-report .section-lead,
    body.printing-report #general-analytics, body.printing-report .dash, body.printing-report .insight-card,
    body.printing-report .top-block, body.printing-report #loader,
    body.printing-report .assistant, body.printing-report .support-card, body.printing-report .info-section,
    body.printing-report .site-footer, body.printing-report .result-actions, body.printing-report #fx-layer,
    body.printing-report .compare-card, body.printing-report .career-form, body.printing-report .cf-ai-note,
    body.printing-report .sect-divider, body.printing-report .ticker,
    body.printing-report .chart-period, body.printing-report .chart-ai { display: none !important; }
    body.printing-report .print-report-header { display: block !important; }
    body.printing-report .print-chart-img { display: block !important; }
    body.printing-report canvas#trend-chart, body.printing-report canvas#month-chart { display: none !important; }
    body.printing-report .results, body.printing-report .results-cols,
    body.printing-report .results-main, body.printing-report .results-aside { display: block !important; }
    body.printing-report .results-main > * { margin-bottom: 14px; }
    body.printing-report .card { background: #fff !important; border: 1px solid #ddd !important; box-shadow: none !important; color: #111 !important; break-inside: avoid; page-break-inside: avoid; }
    body.printing-report .card-title, body.printing-report h2, body.printing-report h3,
    body.printing-report .opp-summary p, body.printing-report .stat-value { color: #111 !important; }
    body.printing-report .opp-summary { background: #f4f4ff !important; }
    body.printing-report .skillcloud { min-height: auto !important; height: auto !important; }
    body.printing-report .cloud-word { position: static !important; display: inline-block !important; margin: 4px !important; animation: none !important; transform: none !important; }
    body.printing-report .hidden { display: none !important; }
    body.printing-report #results.hidden { display: block !important; }
}

/* Opportunity Score */
.opp-card { margin-top: 6px; margin-bottom: 20px; }
.opp-head { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
/* Кольцо score: не украшение, а шкала — залито ровно на величину оценки */
.opp-score {
    --ring: 12px; --dot: 8px;   /* 8px точка + 2×2px ореол = 12px, ровно в толщину дуги */
    --val: 0; position: relative; flex: 0 0 auto; width: 100px; height: 100px; border-radius: 50%;
    display: grid; place-items: center; cursor: help; outline: none;
    background: conic-gradient(var(--accent), var(--accent-2) calc(var(--val)*1%), rgba(127,127,127,.16) 0);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 35%, transparent);
    transition: --val 1.1s cubic-bezier(.22,.61,.36,1), box-shadow .3s;
}
.opp-score.gauge-anim { animation: gauge-fill 1.1s cubic-bezier(.22,.61,.36,1); }
.opp-score:hover, .opp-score:focus-visible { box-shadow: 0 14px 34px rgba(35,198,164,.45); }
.opp-score::after {
    content: ""; position: absolute; inset: -5px; border-radius: 50%;
    border: 2px solid var(--accent-2); opacity: 0; pointer-events: none;
}
.opp-score:hover::after, .opp-score:focus-visible::after { animation: gauge-pulse 1.6s ease-out infinite; }
.opp-ring-marker { position: absolute; inset: 0; pointer-events: none; rotate: calc(var(--val) * 3.6deg); }
.opp-ring-marker::before {
    content: ""; position: absolute; left: 50%; width: var(--dot); height: var(--dot);
    top: calc((var(--ring) - var(--dot)) / 2); margin-left: calc(var(--dot) / -2);
    border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--accent-2), 0 0 12px rgba(35,198,164,.8);
}
.opp-score:hover .opp-ring-marker::before { animation: gauge-dot 1.4s ease-in-out infinite; }
.opp-score-inner {
    position: relative; z-index: 1; border-radius: 50%;
    width: calc(100% - var(--ring) * 2); height: calc(100% - var(--ring) * 2);
    background: var(--bg-soft); color: var(--text); font-weight: 800;
    /* столбиком и по центру — как в шкале спроса; раньше baseline + padding уводил число вбок */
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.opp-score:hover .opp-score-inner, .opp-score:focus-visible .opp-score-inner { transform: scale(.93); }
.opp-num { font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.opp-den { font-size: 12px; color: var(--muted); }
.opp-headtext .card-title { margin: 0 0 2px; }
.opp-label { font-size: 15px; font-weight: 700; color: var(--accent, #23c6a4); }
.opp-bars { display: grid; gap: 4px; }
.opp-bar {
    display: grid; grid-template-columns: 120px minmax(0, 1fr) 34px; grid-template-rows: auto auto;
    column-gap: 12px; align-items: center; cursor: help;
    padding: 7px 10px; border-radius: 12px; border: 1px solid transparent;
    transition: background .2s, border-color .2s, transform .2s;
    animation: opp-row-in .45s cubic-bezier(.22,.61,.36,1) backwards;
    animation-delay: calc(var(--i) * 60ms);
}
@keyframes opp-row-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.opp-bar:hover {
    background: rgba(109, 94, 252, 0.10); border-color: rgba(109, 94, 252, 0.3);
    transform: translateX(3px);
}
.opp-bar-name { font-size: 13px; font-weight: 700; transition: color .2s; }
.opp-bar:hover .opp-bar-name { color: var(--accent-2); }
.opp-track { height: 10px; border-radius: 999px; background: rgba(127,127,127,.18); overflow: hidden; }
.opp-fill {
    display: block; height: 100%; width: 0; border-radius: 999px; position: relative; overflow: hidden;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 1s cubic-bezier(.22,.61,.36,1), filter .2s;
}
.opp-fill.grow { width: var(--w); }
.opp-fill::after {
    content: ""; position: absolute; inset: 0; transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
}
.opp-bar:hover .opp-fill::after { animation: reg-shimmer 1.3s ease-in-out infinite; }
.opp-bar:hover .opp-fill { filter: brightness(1.15); }
/* Цифра сигнала: видно вклад каждого показателя, а не только длину полосы */
.opp-bar-val {
    font-size: 13px; font-weight: 800; text-align: right; color: var(--muted);
    font-variant-numeric: tabular-nums; transition: color .2s, transform .2s;
}
.opp-bar:hover .opp-bar-val { color: var(--text); transform: scale(1.12); }
.opp-bar-note { grid-column: 2 / -1; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.opp-map { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--card-border); }
.opp-map-title {
    display: flex; align-items: center; gap: 8px; margin-bottom: 2px;
    font-size: 14px; font-weight: 800; color: var(--text);
}
.opp-map-title .ico { width: 17px; height: 17px; flex: 0 0 auto; }
.chip-btn {
    display: inline-flex; flex-direction: column; gap: 1px; cursor: pointer; font-family: inherit;
    text-align: left; border: 1px solid rgba(109,94,252,.3); background: rgba(109,94,252,.12);
    color: var(--text); padding: 8px 12px; border-radius: 12px; transition: background .15s, transform .1s;
}
.chip-btn:hover { background: rgba(109,94,252,.24); }
.chip-btn:active { transform: scale(.97); }
.chip-btn.chip-up { border-color: rgba(35,198,164,.45); background: rgba(35,198,164,.14); }
.chip-sub { font-size: 11px; color: var(--muted); font-weight: 600; }

/* Навыки, поднимающие зарплату */
.skillval-list { display: grid; gap: 8px; }
.skillval-row {
    display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px;
    padding: 8px 12px; border-radius: 10px; background: rgba(127,127,127,.06);
    border: 1px solid transparent; cursor: help;
    transition: background .2s, border-color .2s, transform .2s;
    animation: opp-row-in .45s cubic-bezier(.22,.61,.36,1) backwards;
    animation-delay: calc(var(--i) * 55ms);
}
.skillval-row:hover { background: rgba(127,127,127,.13); transform: translateX(3px); }
.sv-up:hover { border-color: rgba(35, 198, 164, .45); }
.sv-down:hover { border-color: rgba(255, 122, 122, .45); }
.skillval-row:hover .sv-pct { transform: scale(1.1); }
.sv-name { font-weight: 700; font-size: 14px; }
.sv-pct { font-weight: 800; font-size: 15px; display: inline-block; transition: transform .2s; }
.sv-up .sv-pct { color: #23c6a4; }
.sv-down .sv-pct { color: #ff7a7a; }
.sv-med { font-size: 12px; color: var(--muted); }

/* Сравнение профессий */
.compare-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; margin-bottom: 14px; }
.compare-head .card-title { margin: 0; }
.compare-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.compare-clear { font-family: inherit; font-size: 12px; cursor: pointer; color: var(--muted);
    background: transparent; border: 1px solid var(--card-border); padding: 5px 12px; border-radius: 999px; }
.compare-clear:hover { color: var(--text); }
.compare-pick { position: relative; }
.compare-add {
    font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer; color: var(--text);
    background: rgba(35, 198, 164, 0.14); border: 1px solid rgba(35, 198, 164, 0.4);
    padding: 6px 13px; border-radius: 999px; transition: background .15s;
}
.compare-add:hover { background: rgba(35, 198, 164, 0.26); }
.compare-add:disabled { opacity: .45; cursor: not-allowed; background: rgba(127,127,127,.12); border-color: var(--card-border); }
.cmp-count {
    margin-left: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; vertical-align: middle;
    color: var(--accent-2); background: rgba(35, 198, 164, 0.14); border-radius: 999px; padding: 3px 9px;
}
.cmp-count.full { color: #f0b429; background: rgba(240, 180, 41, 0.16); }
.cmp-count:empty { display: none; }
.compare-pick-list {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 300px; max-height: 320px;
    overflow-y: auto; display: none; background: var(--bg-soft);
    border: 1px solid var(--card-border); border-radius: 12px; box-shadow: var(--shadow);
}
.compare-pick-list.open { display: block; }
.cp-item {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%;
    padding: 9px 13px; background: none; border: 0; color: var(--text); font-family: inherit;
    font-size: 13px; text-align: left; cursor: pointer;
}
.cp-item:hover { background: rgba(109, 94, 252, 0.16); }
.cp-item span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.cp-empty { padding: 12px 13px; color: var(--muted); font-size: 13px; }
.ct-region { color: var(--muted); }
.table-wrap { overflow-x: auto; margin-top: 10px; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.compare-table th, .compare-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--card-border); white-space: nowrap; }
.compare-table th { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.compare-table .ct-name { font-weight: 700; white-space: normal; }
/* Навыки и регион не должны распирать таблицу — обрезаем, полный текст в подсказке */
.compare-table .ct-sk { color: var(--muted); max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.compare-table .ct-region { max-width: 118px; overflow: hidden; text-overflow: ellipsis; }
/* Кнопка удаления не должна уезжать за край при прокрутке таблицы */
.compare-table .ct-actions {
    position: sticky; right: 0; width: 34px; padding-left: 4px; padding-right: 6px;
    /* --card полупрозрачный: подкладываем фон страницы, иначе сквозь кнопку видно строку */
    background: linear-gradient(var(--card), var(--card)), var(--bg);
}
.compare-table .ct-actions::before {
    content: ""; position: absolute; left: -14px; top: 0; bottom: 0; width: 14px; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .16));
}
.compare-table tr:last-child td { border-bottom: none; }

.compare-headtext { min-width: 0; }
.compare-sub { margin: 4px 0 0; font-size: 13px; color: var(--muted); max-width: 520px; }

/* Строки таблицы: появление каскадом и подсветка при наведении */
.ct-row { transition: background .18s; animation: opp-row-in .45s cubic-bezier(.22,.61,.36,1) backwards; animation-delay: calc(var(--i) * 70ms); }
.ct-row:hover { background: rgba(109, 94, 252, 0.09); }
.ct-row:hover .ct-name { color: var(--accent-2); }
.ct-name { transition: color .18s; }

/* Мини-шкала в ячейке: разницу видно, не сравнивая цифры глазами */
.ct-num { min-width: 108px; }
.ct-val { display: block; font-weight: 700; font-variant-numeric: tabular-nums; }
.ct-bar { display: block; height: 5px; margin-top: 5px; border-radius: 999px; background: rgba(127,127,127,.16); overflow: hidden; }
.ct-bar-fill { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .9s cubic-bezier(.22,.61,.36,1); }
.ct-bar-fill.grow { width: var(--w); }
.ct-fill-found { background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #fff)); }
.ct-fill-money { background: linear-gradient(90deg, #23c6a4, #57e0c0); }
.ct-best .ct-val, .ct-best { color: var(--accent-2); }
.ct-crown { cursor: help; font-size: 12px; }
.ct-row:hover .ct-crown { animation: ct-crown-pop .6s ease; }
@keyframes ct-crown-pop { 50% { transform: scale(1.35) rotate(-8deg); } }

.ct-actions { width: 34px; }
.ct-del {
    width: 24px; height: 24px; border-radius: 50%; cursor: pointer; font-size: 16px; line-height: 1;
    color: var(--muted); background: transparent; border: 1px solid transparent; font-family: inherit;
    /* чуть заметна всегда: иначе про удаление строки никто не догадается */
    opacity: .4; transition: opacity .18s, background .18s, color .18s, transform .12s;
}
.ct-row:hover .ct-del, .ct-del:focus-visible { opacity: 1; }
.ct-del:hover { background: rgba(255, 122, 122, .16); border-color: rgba(255, 122, 122, .4); color: #ff9b9b; }
.ct-del:active { transform: scale(.9); }

/* Итоги-лидеры над таблицей */
.cmp-leaders { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 0 0 14px; }
.cmp-leader {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; cursor: help;
    background: rgba(127, 127, 127, .07); border: 1px solid rgba(127, 127, 127, .14);
    transition: border-color .2s, background .2s, transform .2s;
    animation: opp-row-in .5s cubic-bezier(.22,.61,.36,1) backwards;
}
.cmp-leader:nth-child(2) { animation-delay: .08s; }
.cmp-leader:nth-child(3) { animation-delay: .16s; }
.cmp-leader:hover { background: rgba(35, 198, 164, .1); border-color: rgba(35, 198, 164, .35); transform: translateY(-2px); }
.cmp-leader-ico { font-size: 20px; flex: none; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.cmp-leader:hover .cmp-leader-ico { transform: scale(1.2) rotate(-6deg); }
.cmp-leader-txt { min-width: 0; display: grid; }
.cmp-leader-txt b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-leader-txt span { font-size: 11.5px; color: var(--muted); }

/* ИИ-вердикт по сравнению */
.cmp-ai-wrap { margin-top: 14px; }
.cmp-ai-btn {
    font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; color: #fff;
    border: 0; border-radius: 12px; padding: 11px 18px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 8px 22px rgba(109, 94, 252, .3);
    transition: transform .14s, filter .2s, box-shadow .2s;
}
.cmp-ai-btn:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 12px 28px rgba(109, 94, 252, .42); }
.cmp-ai-btn:active { transform: scale(.98); }
.cmp-ai-btn:disabled { cursor: progress; filter: saturate(.6); transform: none; }
.cmp-ai-spark { display: inline-block; }
.cmp-ai-btn:hover .cmp-ai-spark { animation: spark 1s ease-in-out infinite; }
.cmp-ai-btn.loading .cmp-ai-spark { animation: spark .7s linear infinite; }
@keyframes spark { 50% { transform: scale(1.3) rotate(18deg); } }

.cmp-verdict {
    margin-top: 12px; padding: 14px 16px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(109, 94, 252, .14), rgba(35, 198, 164, .1));
    border: 1px solid rgba(109, 94, 252, .28);
}
.cmp-verdict-head { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 8px; }
.cmp-vline {
    display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start;
    padding: 6px 0; font-size: 13.5px; line-height: 1.5;
    animation: opp-row-in .45s ease backwards; animation-delay: calc(var(--i) * 90ms);
}
.cmp-vico { font-size: 15px; line-height: 1.4; }
.cmp-verdict-skeleton { height: 76px; border-radius: 10px; background: rgba(127,127,127,.18); animation: reg-pulse 1.2s ease-in-out infinite; }
.cmp-verdict-off { margin: 0; font-size: 13px; color: var(--muted); }

/* ===== Все источники сразу ===== */
.source-row { display: flex; gap: 8px; align-items: stretch; }
.source-row select { flex: 1 1 auto; min-width: 0; }
.src-select-hidden { display: none !important; }

/* ---------------- «Ромашка» источников ---------------- */
.field-source { position: relative; }
/* кнопка «Проанализировать все источники» — слева от главной кнопки формы;
   бирюзовая, чтобы отличаться от фиолетовой «Проанализировать <источник>» */
.btn-allsrc-main {
    font-size: 15px; padding: 13px 22px; border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-2), #189e84);
    box-shadow: 0 8px 20px rgba(35, 198, 164, .3);
}
.btn-allsrc-main:hover { box-shadow: 0 12px 26px rgba(35, 198, 164, .42); }
.btn-allsrc-main .ico { width: 18px; height: 18px; }
.source-flower { position: relative; width: 100%; max-width: 430px; height: 300px; margin: 14px auto 6px; }
/* пунктирная орбита связывает лепестки в единую композицию */
.source-flower::before {
    content: ""; position: absolute; left: 50%; top: 50%;
    width: 312px; height: 216px; transform: translate(-50%, -50%);
    border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, transparent);
    border-radius: 50%; pointer-events: none;
    animation: orbitFade 1.2s ease .5s backwards;
}
@keyframes orbitFade { from { opacity: 0; } }
.flower-center {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 112px; height: 112px; border-radius: 50%; z-index: 2;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    background: var(--bg-soft); border: 1px solid var(--card-border);
    box-shadow: 0 10px 34px rgba(0, 0, 0, .22);
    animation: flowerCenterIn .6s cubic-bezier(.34, 1.56, .64, 1) backwards;
}
@keyframes flowerCenterIn { from { transform: translate(-50%, -50%) scale(0); opacity: 0; } }
.fc-logo {
    width: 36px; height: 36px; border-radius: 50%; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800; letter-spacing: .3px;
    transition: background .3s;
}
.fc-name { font-size: 12px; font-weight: 800; color: var(--text); max-width: 96px; text-align: center; line-height: 1.15; }
.fc-sub { font-size: 9px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.petal {
    position: absolute; left: 50%; top: 50%; width: 102px; height: 56px;
    border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    padding: 4px 10px; font-family: inherit; color: #fff; z-index: 1; overflow: hidden;
    background: linear-gradient(135deg, var(--pg1, #777), var(--pg2, #555));
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y)));
    animation: petalBloom .55s cubic-bezier(.34, 1.56, .64, 1) backwards;
    animation-delay: var(--d);
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
/* мягкий блик в верхней части лепестка — объём */
.petal::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(ellipse 90% 55% at 50% -10%, rgba(255, 255, 255, .32), transparent 60%);
}
.petal-off::before { display: none; }
@keyframes petalBloom {
    from { transform: translate(-50%, -50%) scale(.1); opacity: 0; }
    to { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1); opacity: 1; }
}
.petal:hover:not(:disabled) {
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.13);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .32); z-index: 3; filter: brightness(1.06);
}
.petal.selected {
    z-index: 2;
    box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--pg1, var(--accent)), 0 10px 26px rgba(0, 0, 0, .28);
    animation: petalBloom .55s cubic-bezier(.34, 1.56, .64, 1) backwards, petalBreath 2.6s ease-in-out .6s infinite;
}
@keyframes petalBreath {
    50% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.05); }
}
.petal-logo { font-size: 12px; font-weight: 800; line-height: 1; opacity: .95; }
.petal-name { font-size: 10.5px; font-weight: 700; text-align: center; line-height: 1.12; }
.petal-off {
    background: var(--bg-soft); border-color: var(--card-border); color: var(--muted);
    cursor: not-allowed; filter: saturate(.15); box-shadow: none;
}
.petal-off .petal-name { font-size: 9.5px; }
.petal-note { font-size: 8px; line-height: 1; opacity: .8; }
@media (max-width: 640px) {
    .source-flower { transform: scale(.76); margin: -22px auto -26px; }
    .btn-allsrc-main { width: 100%; justify-content: center; }
}
/* ---------------- Тизер новости недели под дашбордом ---------------- */
.news-teaser {
    display: flex; align-items: center; gap: 12px; margin-top: 12px;
    padding: 12px 18px; border-radius: 14px; text-decoration: none;
    color: var(--text); font-size: 14px; line-height: 1.45;
    background: var(--card); border: 1px solid var(--card-border);
    transition: transform .15s, border-color .2s, box-shadow .2s;
    animation: opp-row-in .5s ease;
}
.news-teaser:hover {
    transform: translateY(-2px); border-color: rgba(109, 94, 252, .5);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
}
.news-teaser-ico {
    flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent);
}
.news-teaser-text { flex: 1 1 auto; min-width: 0; }
.news-teaser-more { flex: 0 0 auto; font-size: 12.5px; font-weight: 800; color: var(--accent); white-space: nowrap; }

.btn-allsrc {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
    font-family: inherit; font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap;
    border: 0; border-radius: 12px; padding: 0 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 8px 20px rgba(109, 94, 252, .28);
    transition: transform .14s, filter .2s, box-shadow .2s;
}
.btn-allsrc .ico { width: 16px; height: 16px; }
.btn-allsrc:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 12px 26px rgba(109, 94, 252, .4); }
.btn-allsrc:active { transform: scale(.98); }
.btn-allsrc:disabled { cursor: progress; filter: saturate(.6); transform: none; }
.btn-allsrc.loading .ico { animation: allsrc-scan 1s linear infinite; }
@keyframes allsrc-scan { 50% { transform: translateX(3px); opacity: .55; } }

#allsrc { animation: opp-row-in .5s ease; }
.allsrc-card { padding: 22px 24px; }
.allsrc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.allsrc-title { display: flex; align-items: center; gap: 9px; margin: 4px 0 4px; font-size: 21px; }
.allsrc-title .ico { width: 20px; height: 20px; }
.allsrc-sub { margin: 0; font-size: 13.5px; color: var(--muted); }
.allsrc-sub b { color: var(--text); }
.allsrc-close {
    flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; cursor: pointer; font-size: 13px;
    color: var(--muted); background: rgba(127,127,127,.1); border: 1px solid var(--card-border);
    transition: color .18s, background .18s, transform .18s;
}
.allsrc-close:hover { color: var(--text); background: rgba(127,127,127,.2); transform: rotate(90deg); }

.allsrc-kpis { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 4px; }
.allsrc-kpi {
    display: flex; flex-direction: column; gap: 2px; padding: 9px 15px; border-radius: 12px;
    background: rgba(127,127,127,.08); border: 1px solid var(--card-border);
    animation: opp-row-in .45s ease backwards;
}
.allsrc-kpi b { font-size: 17px; font-variant-numeric: tabular-nums; }
.allsrc-kpi span { font-size: 11.5px; color: var(--muted); }

.allsrc-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 16px;
}
.src-card {
    display: flex; flex-direction: column; gap: 9px; padding: 16px 17px; border-radius: 16px;
    background: rgba(127,127,127,.06); border: 1px solid var(--card-border);
    animation: opp-row-in .5s ease backwards; animation-delay: calc(var(--i) * 90ms);
    transition: transform .2s, border-color .2s, box-shadow .2s, background .2s;
}
.src-card:hover {
    transform: translateY(-4px); border-color: rgba(35, 198, 164, .45);
    background: rgba(35, 198, 164, .07); box-shadow: 0 14px 32px rgba(0,0,0,.22);
}
.src-card--top { border-color: rgba(35, 198, 164, .42); background: rgba(35, 198, 164, .09); }
.src-card--off, .src-card--empty { opacity: .62; }
.src-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.src-name { font-size: 14.5px; font-weight: 800; }
.src-badge {
    font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; cursor: help;
    color: var(--accent-2); background: rgba(35, 198, 164, .16); border: 1px solid rgba(35, 198, 164, .34);
}
.src-badge--warn { color: #f0b429; background: rgba(240, 180, 41, .14); border-color: rgba(240, 180, 41, .34); }
.src-found { display: flex; align-items: baseline; gap: 6px; }
.src-found b { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.src-found span { font-size: 12px; color: var(--muted); }
.src-bar { height: 6px; border-radius: 999px; background: rgba(127,127,127,.16); overflow: hidden; }
.src-bar i {
    display: block; height: 100%; width: 0; border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width .9s cubic-bezier(.2,.8,.2,1);
}
.src-bar i.grow { width: var(--w); }
.src-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    font-size: 12.5px; padding: 3px 0; border-radius: 7px; transition: background .16s, padding .16s;
}
.src-row[data-tip] { cursor: help; }
.src-row:hover { background: rgba(127,127,127,.1); padding-left: 7px; padding-right: 7px; }
.src-row-k { color: var(--muted); }
.src-row-v { font-weight: 700; font-variant-numeric: tabular-nums; }
.src-skills { display: flex; flex-wrap: wrap; gap: 5px; }
.src-skill {
    font-size: 11px; padding: 2px 8px; border-radius: 999px; color: var(--muted);
    background: rgba(127,127,127,.12); border: 1px solid var(--card-border);
}
.src-open {
    margin-top: auto; font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
    color: var(--accent-2); background: transparent; border: 1px dashed rgba(35, 198, 164, .45);
    border-radius: 11px; padding: 8px 10px; transition: background .18s, border-color .18s, transform .14s;
}
.src-open:hover { background: rgba(35, 198, 164, .14); border-style: solid; transform: translateY(-1px); }
.src-err { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.src-err-all { grid-column: 1 / -1; }
.src-skeleton { min-height: 168px; background: rgba(127,127,127,.14); animation: reg-pulse 1.2s ease-in-out infinite; }

.allsrc-ai {
    margin-top: 16px; padding: 14px 16px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(109, 94, 252, .14), rgba(35, 198, 164, .1));
    border: 1px solid rgba(109, 94, 252, .28);
    animation: opp-row-in .5s ease;
}
.allsrc-ai .cmp-verdict-head { display: flex; align-items: center; gap: 6px; }
.allsrc-ai .cmp-verdict-head .ico { width: 14px; height: 14px; }
.allsrc-ai p { margin: 0; font-size: 13.5px; line-height: 1.6; }

/* Responsive */
@media (max-width: 1080px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-side { display: none; }
    .results-cols { grid-template-columns: 1fr; }
    .results-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-stats { grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 860px) {
    .opp-bar { grid-template-columns: 100px 1fr; }
    .opp-head { gap: 12px; }
    .opp-score { width: 76px; height: 76px; }
    .opp-num { font-size: 28px; }
    .query-card .btn-primary { grid-column: 1 / -1; }
    .form-actions .btn-primary { width: 100%; }
    .field-check { justify-content: flex-start; }
    .grid, .grid-2, .grid-stats, .results-aside { grid-template-columns: 1fr; }
    .top-grid { grid-template-columns: repeat(2, 1fr); }
    .dash-stats { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .top-nav { gap: 12px; font-size: 13px; }
    .allsrc-card { padding: 18px 16px; }
    .btn-support .btn-support-text { display: none; }
    /* по центру кнопки подсказка вылезала за экран телефона — прижимаем к правому краю */
    .support-tip { max-width: calc(100vw - 30px); }
    /* на планшетах/широких телефонах вкладки дашборда — удобнее тапать */
    .dash-tab { padding: 9px 13px; min-height: 38px; }
}
@media (max-width: 520px) {
    .query-card { grid-template-columns: 1fr; }
    .top-grid { grid-template-columns: 1fr; }
    .nav-burger { display: inline-flex; z-index: 70; }
    /* Фиксированная панель на весь экран — не обрезается контейнером шапки */
    .top-nav {
        display: none;
        position: fixed;
        top: 64px;
        left: 12px;
        right: 12px;
        width: auto;
        min-width: 0;
        max-height: calc(100dvh - 80px);
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px;
        border-radius: 16px;
        background: var(--bg-soft);
        border: 1px solid var(--card-border);
        box-shadow: var(--shadow);
        z-index: 200;
    }
    .header-actions.nav-open .top-nav { display: flex; }
    .top-nav a, .top-nav .nav-pill, .top-nav .nav-mail, .top-nav .nav-accent {
        display: block; padding: 12px 14px; border-radius: 10px; text-decoration: none; color: var(--text);
        white-space: normal; line-height: 1.35;
    }
    .top-nav .nav-pills { display: flex; flex-direction: column; gap: 2px; width: 100%; }
    .top-nav a:hover, .top-nav .nav-pill:hover { background: rgba(127,127,127,0.12); }

    /* Дашборд: вкладки скроллятся горизонтально, не ломают сетку */
    .dash-tabs {
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0 -4px 14px;
        padding: 2px 4px 10px;
    }
    .dash-tabs::-webkit-scrollbar { display: none; }
    .dash-tab {
        flex: 0 0 auto;
        font-size: 12.5px;
        padding: 10px 14px;
        min-height: 40px;
    }
    .dash-chart-card { padding: 14px 12px; }
    .db-legend {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        padding: 0 4px 8px;
        letter-spacing: .04em;
        text-transform: none;
        font-size: 11.5px;
        line-height: 1.35;
    }
    .dash-stat-val { font-size: 24px; }
    .dash-stat-val--sm { font-size: 16px; }
    .chart-legend--top { gap: 10px 14px; font-size: 11.5px; }
    .chart-head-tools { align-items: stretch; width: 100%; }
    .chart-period { justify-content: center; width: 100%; }
    /* палец, а не курсор: тап-зона не меньше 40px */
    .chart-period-btn { flex: 1 1 0; min-height: 40px; font-size: 12.5px; }
    .chart-legend { justify-content: flex-start; }
    .month-empty p { font-size: 13.5px; line-height: 1.45; }

    /* Топ сфер: полное название + цифры под ним, без «Продав…» */
    .db-row {
        grid-template-columns: 26px minmax(0, 1fr);
        grid-template-areas:
            "rank mid"
            ". val";
        align-items: start;
        gap: 6px 12px;
        padding: 11px 10px;
    }
    .db-rank { grid-area: rank; padding-top: 2px; }
    .db-mid { grid-area: mid; }
    .db-name { font-size: 14.5px; margin-bottom: 7px; }
    .db-val {
        grid-area: val;
        text-align: left;
        display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline;
    }
    .db-val b, .db-val span { display: inline; }

    /* Топ недели в герое — та же схема */
    .wt-row {
        grid-template-columns: 22px minmax(0, 1fr);
        grid-template-areas:
            "rank mid"
            ". val";
        align-items: start;
        gap: 4px 10px;
    }
    .wt-rank { grid-area: rank; }
    .wt-mid { grid-area: mid; }
    .wt-val {
        grid-area: val;
        text-align: left;
        white-space: normal;
    }
    .weektop { padding: 14px 14px; }
    .brand { font-size: 16px; }
    .brand-logo { width: 34px; height: 34px; }
    .container { width: min(1080px, 94%); }
}

/* ==================== Заставка с мотивационной фразой ==================== */
.intro {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(1200px 700px at 50% 30%, #10162e, #05070f 70%);
    opacity: 1; transition: opacity .9s ease;
}
.intro.intro-hide { opacity: 0; pointer-events: none; }
.intro-inner { text-align: center; padding: 24px; max-width: 760px; }
.intro-mark {
    display: inline-block; font-size: 15px; font-weight: 700; letter-spacing: .18em;
    text-transform: uppercase; color: #7d88b0; margin-bottom: 26px;
    opacity: 0; animation: intro-mark-in .8s ease .1s forwards;
}
.intro-mark b { color: var(--accent-2); }
.intro-quote {
    font-size: clamp(24px, 4.6vw, 46px); line-height: 1.2; font-weight: 800; margin: 0;
    background: linear-gradient(90deg, #fff, #c9c2ff 55%, #7fe3cd);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    opacity: 0; transform: translateY(18px); filter: blur(6px);
    animation: intro-quote-in 1.1s cubic-bezier(.22,.61,.36,1) .35s forwards;
}
.intro-skip {
    display: inline-block; margin-top: 34px; font-size: 12.5px; color: #5c688c;
    letter-spacing: .04em; opacity: 0; animation: intro-mark-in .8s ease 1.4s forwards;
}
@keyframes intro-mark-in { to { opacity: 1; } }
@keyframes intro-quote-in { to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@media (prefers-reduced-motion: reduce) {
    .intro-mark, .intro-quote, .intro-skip { animation-duration: .01s; }
}

/* ==================== Топ-5 вакансий недели (герой) ==================== */
.weektop {
    margin: 0; max-width: none; text-align: left;
    background: linear-gradient(135deg, rgba(109,94,252,.14), rgba(35,198,164,.10));
    border: 1px solid var(--card-border); border-radius: var(--radius);
    padding: 18px 20px; box-shadow: var(--shadow); backdrop-filter: blur(6px);
}
.weektop-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.weektop-eyebrow { font-size: 15px; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; }
.weektop-sub { font-size: 12px; color: var(--muted); }
.weektop-bars { display: grid; gap: 9px; }
.wt-row {
    display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px;
    background: none; border: 0; width: 100%; text-align: left; cursor: pointer;
    color: var(--text); font-family: inherit; padding: 4px 2px; border-radius: 10px;
    transition: background .15s;
}
.wt-row:hover { background: rgba(255,255,255,.05); }
.wt-rank { font-weight: 800; font-size: 15px; color: var(--accent-2); text-align: center; }
.wt-mid { min-width: 0; }
/* Длинные названия переносятся максимум на три строки, сетка строк не съезжает */
.wt-name {
    font-weight: 700; font-size: 14px; margin-bottom: 5px; line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden; overflow-wrap: break-word;
}
.wt-track { height: 9px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.wt-fill { display: block; height: 100%; width: 0; border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 1.1s cubic-bezier(.22,.61,.36,1); }
.wt-val { text-align: right; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wt-val b { color: var(--text); font-size: 13.5px; }
.weektop-ai { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--card-border); }
.weektop-ai-badge { font-size: 11.5px; font-weight: 800; color: var(--accent-2); }
.weektop-ai p { margin: 5px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--text); }

/* ==================== Облако навыков (летающие теги + ИИ-тултип) ==================== */
.skillcloud { position: relative; min-height: 150px; width: 100%; overflow: hidden; border-radius: 14px; }
/* Дрейф идёт через --cw-x/--cw-y (их пишет JS), масштаб при наведении — через --cw-s.
   Никакого transition на transform: он бы интерполировал каждый кадр и смазывал движение. */
.cloud-word {
    position: absolute; top: 0; left: 0;
    transform: translate3d(var(--cw-x, 0px), var(--cw-y, 0px), 0) scale(var(--cw-s, 1));
    will-change: transform;
    white-space: nowrap; cursor: default; font-weight: 700;
    padding: 6px 13px; border-radius: 999px; border: 1px solid rgba(109,94,252,.35);
    background: rgba(109,94,252,.16); color: #d9d3ff;
    transition: box-shadow .2s, background .2s, border-color .2s;
    user-select: none; touch-action: none;
}
.cloud-word:hover {
    --cw-s: 1.1; z-index: 5;
    box-shadow: 0 8px 22px rgba(109,94,252,.35); background: rgba(109,94,252,.3);
}
@media (prefers-reduced-motion: reduce) { .cloud-word { animation: none; } }
.cloud-tip {
    position: fixed; z-index: 60; max-width: 240px; pointer-events: none;
    background: #0d1428; color: var(--text); border: 1px solid var(--card-border);
    border-radius: 12px; padding: 9px 12px; font-size: 12.5px; font-weight: 500; line-height: 1.4;
    box-shadow: 0 14px 34px rgba(0,0,0,.5); opacity: 0; transform: translateY(4px);
    transition: opacity .15s, transform .15s;
}
.cloud-tip.show { opacity: 1; transform: translateY(0); }
.cloud-tip .ct-name { display: block; font-weight: 800; color: var(--accent-2); margin-bottom: 3px; font-size: 12px; }

/* План прокачки навыков (ИИ) под облаком */
.skills-plan { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--card-border); }
.skills-plan .sp-head { font-size: 13px; font-weight: 800; color: var(--accent-2); margin-bottom: 10px; }
.skills-plan .sp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.skills-plan .sp-list li {
    position: relative; padding: 9px 12px 9px 34px; border-radius: 12px;
    background: rgba(109,94,252,.08); border: 1px solid rgba(109,94,252,.18);
    font-size: 13.5px; line-height: 1.45; color: var(--text);
}
.skills-plan .sp-list li::before {
    content: counter(sp); counter-increment: sp; position: absolute; left: 9px; top: 8px;
    width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
    font-size: 11px; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.skills-plan .sp-list { counter-reset: sp; }

/* Тема: светлая/кремовая — заставка светлее */
:root[data-theme="light"] .intro { background: radial-gradient(1200px 700px at 50% 30%, #eef1fb, #dfe4f4 75%); }
:root[data-theme="light"] .intro-quote { background: linear-gradient(90deg, #2a2160, #4231b8 55%, #128c72); -webkit-background-clip: text; background-clip: text; }
:root[data-theme="light"] .intro-mark { color: #6b74a0; }
:root[data-theme="cream"] .intro { background: radial-gradient(1200px 700px at 50% 30%, #f3e9db, #e9dcc7 75%); }
:root[data-theme="cream"] .intro-quote { background: linear-gradient(90deg, #4a2f16, #8a4517 55%, #128c72); -webkit-background-clip: text; background-clip: text; }
:root[data-theme="light"] .cloud-tip, :root[data-theme="cream"] .cloud-tip { background: #fff; }

@media (max-width: 520px) {
    .weektop { padding: 15px 14px; }
    .cloud-word { font-size: 13px; padding: 5px 10px; }
}

/* ============ Светлая и кремовая: без теней, выше контраст текста ============ */
:root[data-theme="light"] { --muted: #4c5573; --card-border: rgba(20, 26, 51, 0.16); --shadow: none; }
:root[data-theme="cream"] { --muted: #6d5836; --card-border: rgba(120, 85, 40, 0.24); --shadow: none; }

/* Тени на светлом фоне дают «грязь» — убираем их полностью */
:root:is([data-theme="light"], [data-theme="cream"]) :is(
    .card, .card--hero, .card--soft, .query-card, .weektop, .insight-card, .info-card, .dash,
    .btn-primary, .opp-score, .move-card, .chip-btn, .top-card, .support-card, .assistant-panel,
    .assistant-orb, .combo-list, .compare-pick-list, .cloud-word, .cloud-word:hover, .helper-bubble
) { box-shadow: none; }
:root:is([data-theme="light"], [data-theme="cream"]) * { text-shadow: none; }

/* Заголовок героя: сплошной цвет вместо градиента — читается заметно лучше */
:root[data-theme="light"] .hero-title { background: none; -webkit-text-fill-color: #1a2340; color: #1a2340; }
:root[data-theme="cream"] .hero-title { background: none; -webkit-text-fill-color: #3a2a12; color: #3a2a12; }

/* Полупрозрачный «белый» на светлом фоне не виден — переводим на нейтральный серый */
:root:is([data-theme="light"], [data-theme="cream"]) :is(.wt-track, .db-track, .opp-track) { background: rgba(20, 26, 51, 0.12); }
:root:is([data-theme="light"], [data-theme="cream"]) :is(.wt-row:hover, .db-row:hover, .reg-head:hover) { background: rgba(20, 26, 51, 0.06); }
:root:is([data-theme="light"], [data-theme="cream"]) .move-card { background: rgba(20, 26, 51, 0.04); }
:root:is([data-theme="light"], [data-theme="cream"]) .skillval-row { background: rgba(20, 26, 51, 0.05); }

/* Облако навыков: тёмный текст на светлой плашке */
:root[data-theme="light"] .cloud-word {
    color: #35279b; background: rgba(109, 94, 252, 0.12); border-color: rgba(109, 94, 252, 0.34);
}
:root[data-theme="light"] .cloud-word:hover { background: rgba(109, 94, 252, 0.22); }
:root[data-theme="cream"] .cloud-word {
    color: #8a4517; background: rgba(181, 98, 42, 0.13); border-color: rgba(181, 98, 42, 0.34);
}
:root[data-theme="cream"] .cloud-word:hover { background: rgba(181, 98, 42, 0.24); }
:root[data-theme="cream"] :is(.kw-chip, .compare-add, .cp-item:hover) { border-color: rgba(181, 98, 42, 0.34); }
:root[data-theme="cream"] .kw-chip { background: rgba(181, 98, 42, 0.12); }

/* Подсветка строк и тултипы на светлых темах: без теней и с более плотным фоном */
:root:is([data-theme="light"], [data-theme="cream"]) .tip { box-shadow: 0 10px 26px rgba(20, 26, 51, .16); }
:root:is([data-theme="light"], [data-theme="cream"]) :is(.opp-bar:hover, .ct-row:hover) { background: rgba(109, 94, 252, 0.10); }
:root:is([data-theme="light"], [data-theme="cream"]) :is(.skillval-row, .cmp-leader) { background: rgba(20, 26, 51, 0.05); }
:root:is([data-theme="light"], [data-theme="cream"]) :is(.skillval-row:hover, .vac-item:hover) { background: rgba(20, 26, 51, 0.09); }
:root:is([data-theme="light"], [data-theme="cream"]) :is(.opp-fill, .ct-bar-fill)::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
}
:root:is([data-theme="light"], [data-theme="cream"]) :is(.cmp-ai-btn, .card) { box-shadow: none; }

/* Щит-заглушка герба: на светлом фоне нужен светлый щит с тёмными буквами */
:root:is([data-theme="light"], [data-theme="cream"]) .reg-mono {
    color: hsl(var(--hue) 45% 32%);
    background: linear-gradient(160deg, hsl(var(--hue) 55% 88%), hsl(var(--hue) 45% 78%));
    border-color: hsl(var(--hue) 40% 55% / .45);
}
:root:is([data-theme="light"], [data-theme="cream"]) .reg-fill::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent);
}

/* ==================== v0.20: атмосфера и движение (по мотивам clearstreet / demilie / theirisk) ==================== */

/* --- Живой фон первого экрана: дрейфующие пятна + сетка точек + параллакс от курсора --- */
.hero { position: relative; }
.hero-inner { position: relative; z-index: 1; }
.hero-fx {
    position: absolute; inset: -120px 0 -40px; overflow: hidden; pointer-events: none; z-index: 0;
}
/* параллакс — на внутренней обёртке: сдвиг обрезается контейнером и не расширяет страницу */
.fx-par {
    position: absolute; inset: 0;
    transform: translate3d(calc(var(--par-x, 0) * 16px), calc(var(--par-y, 0) * 12px), 0);
    transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.fx-blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; will-change: transform; }
.fx-b1 { width: 520px; height: 520px; left: -140px; top: -80px; background: radial-gradient(circle, rgba(109,94,252,.55), transparent 65%); animation: fx-drift1 22s ease-in-out infinite alternate; }
.fx-b2 { width: 460px; height: 460px; right: -120px; top: -40px; background: radial-gradient(circle, rgba(35,198,164,.42), transparent 65%); animation: fx-drift2 27s ease-in-out infinite alternate; }
.fx-b3 { width: 380px; height: 380px; left: 38%; bottom: -160px; background: radial-gradient(circle, rgba(255,93,143,.26), transparent 65%); animation: fx-drift3 31s ease-in-out infinite alternate; }
@keyframes fx-drift1 { to { transform: translate(72px, 46px) scale(1.12); } }
@keyframes fx-drift2 { to { transform: translate(-64px, 38px) scale(1.08); } }
@keyframes fx-drift3 { to { transform: translate(48px, -42px) scale(1.15); } }
.fx-grid {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(238,242,255,.75) 1px, transparent 1.5px);
    background-size: 30px 30px; opacity: .045;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 95%);
    mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 95%);
}
:root:is([data-theme="light"], [data-theme="cream"]) .fx-blob { opacity: .34; }
:root:is([data-theme="light"], [data-theme="cream"]) .fx-grid {
    background-image: radial-gradient(rgba(22,32,58,.8) 1px, transparent 1.5px); opacity: .09;
}

/* --- Плавное появление секций при прокрутке (классы вешает JS: без него ничего не скрыто) --- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .8s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--rd, 0s); }
.reveal-in { opacity: 1; transform: none; }

/* --- Лента живых данных под первым экраном --- */
.ticker {
    overflow: hidden; margin: 6px 0 2px; padding: 11px 0;
    border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ticker-track { display: inline-flex; white-space: nowrap; animation: tick-move var(--tick-dur, 70s) linear infinite; will-change: transform; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
@keyframes tick-move { to { transform: translateX(-50%); } }
.tick-group { display: inline-flex; }
.tick-item {
    display: inline-flex; align-items: baseline; gap: 8px; margin-right: 46px; position: relative;
    background: none; border: none; padding: 0; cursor: pointer; font: inherit; font-size: 13.5px; color: var(--muted);
    transition: color .15s ease;
}
.tick-item b { color: var(--text); font-weight: 600; transition: color .15s ease; }
.tick-item:hover, .tick-item:hover b { color: var(--accent-2); }
.tick-item::after { content: ""; position: absolute; right: -26px; top: 50%; width: 5px; height: 5px; border-radius: 50%; transform: translateY(-50%) rotate(45deg); background: var(--accent); opacity: .55; }

/* --- Подсветка карточек, следующая за курсором --- */
.card, .info-card, .query-card, .dash { position: relative; }
:is(.card, .info-card, .query-card, .dash)::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
    transition: opacity .3s ease;
    background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(109,94,252,.09), transparent 65%);
}
:is(.card, .info-card, .query-card, .dash):hover::before { opacity: 1; }
:root:is([data-theme="light"], [data-theme="cream"]) :is(.card, .info-card, .query-card, .dash)::before {
    background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(109,94,252,.06), transparent 65%);
}

/* --- Блик на главной кнопке --- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -80%; width: 45%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,.32), transparent);
    transform: skewX(-18deg); pointer-events: none;
}
.btn-primary:hover::after { animation: btn-shine .7s ease; }
@keyframes btn-shine { to { left: 135%; } }

@media (max-width: 860px) {
    .fx-b3 { display: none; }
    .fx-blob { filter: blur(60px); opacity: .35; }
    .tick-item { font-size: 12.5px; margin-right: 38px; }
}
@media (prefers-reduced-motion: reduce) {
    .fx-blob { animation: none; }
    .hero-fx, .fx-par { transform: none; transition: none; }
    .ticker-track { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn-primary:hover::after { animation: none; }
}

/* ==================== v0.21: звёздная заставка, живой заголовок, мелкий лоск ==================== */

/* Страница не должна прокручиваться вбок из-за декоративных сдвигов */
html, body { overflow-x: clip; }

/* --- Звёздное небо в заставке --- */
.intro-stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-inner { position: relative; z-index: 1; }
.intro-sound {
    position: absolute; right: 22px; bottom: 22px; z-index: 2;
    width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .16); color: #aab4d6;
    transition: color .2s ease, border-color .2s ease, transform .2s ease;
    animation: intro-mark-in .8s ease 1.2s both;
}
.intro-sound:hover { color: #fff; border-color: rgba(255, 255, 255, .4); transform: scale(1.08); }
.intro-sound svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* смена фразы: уход вверх и появление новой */
@keyframes intro-quote-out { to { opacity: 0; transform: translateY(-16px); filter: blur(8px); } }
.intro-quote.q-out { animation: intro-quote-out .45s ease forwards; }
.intro-quote.q-anim { animation: intro-quote-in 1s cubic-bezier(.22, .61, .36, 1) both; }

/* --- Заглавная надпись: раскрытие после заставки + мерцающий градиент --- */
.hero-title {
    background: linear-gradient(90deg, #fff, #c9c2ff 35%, #9fe9d8 55%, #fff 78%, #c9c2ff 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text;
    animation: ht-shimmer 8s ease-in-out infinite;
}
body.intro-done .hero-title { animation: ht-open 1.15s cubic-bezier(.16, 1, .3, 1) .1s both, ht-shimmer 8s ease-in-out 1.3s infinite; }
body.intro-done .hero-sub { animation: ht-rise .9s cubic-bezier(.16, 1, .3, 1) .5s both; }
body.intro-done .hero-grid { animation: ht-rise .9s cubic-bezier(.16, 1, .3, 1) .7s both; }
@keyframes ht-open {
    from { opacity: 0; letter-spacing: .14em; transform: translateY(16px); filter: blur(12px); }
    to { opacity: 1; letter-spacing: .0em; transform: none; filter: none; }
}
@keyframes ht-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ht-shimmer { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }

/* --- Пульсирующая точка у подписей разделов --- */
.lead-eyebrow { display: inline-flex; align-items: center; gap: 7px; }
.lead-eyebrow::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2);
    box-shadow: 0 0 0 0 rgba(35, 198, 164, .5); animation: eyebrow-pulse 2.4s ease-out infinite;
}
@keyframes eyebrow-pulse { 70% { box-shadow: 0 0 0 9px rgba(35, 198, 164, 0); } 100% { box-shadow: 0 0 0 0 rgba(35, 198, 164, 0); } }

@media (prefers-reduced-motion: reduce) {
    .hero-title, body.intro-done .hero-title { animation: none; }
    body.intro-done .hero-sub, body.intro-done .hero-grid { animation: none; }
    .lead-eyebrow::before { animation: none; }
    .intro-quote.q-out, .intro-quote.q-anim { animation: none; }
}

/* ==================== v0.22: полёт к поискам, звук по умолчанию, волна букв ==================== */

/* финальная надпись «Вперёд к поискам!»: приближается к зрителю на фоне варпа */
.intro-quote.q-final { animation: intro-final-in 2s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes intro-final-in {
    0% { opacity: 0; transform: scale(.55); filter: blur(10px); }
    30% { opacity: 1; filter: blur(0); }
    100% { opacity: 1; transform: scale(1.22); filter: blur(0); }
}

/* кнопка звука: динамик по умолчанию, крестик — когда выключен */
.intro-sound .snd-x { display: none; }
.intro-sound.muted .snd-x { display: block; }
.intro-sound.muted .snd-w { display: none; }
.intro-sound.muted { color: #5c6689; }

/* буквы заголовка: каждая несёт свой срез общего градиента и умеет приподниматься */
.hero-title.ht-split { background: none; }
.ht-l {
    display: inline-block;
    background-image: linear-gradient(90deg, #fff, #c9c2ff 35%, #9fe9d8 55%, #fff 78%, #c9c2ff 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    transition: transform .32s cubic-bezier(.16, 1, .3, 1);
    will-change: transform;
}
:root:is([data-theme="light"], [data-theme="cream"]) .ht-l { background: none; }

/* ==================== v0.23: скелетоны, разделители, футер, CTA, ассистент ==================== */

/* --- Скелетоны на время анализа: контуры будущих карточек с бегущим бликом --- */
.skeleton-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
    max-width: 880px; margin: 22px auto 4px;
}
.sk-card {
    position: relative; overflow: hidden; height: 110px;
    background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
}
.sk-wide { grid-column: 1 / -1; height: 170px; }
.sk-card::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, transparent 32%, rgba(255, 255, 255, .07) 50%, transparent 68%);
    transform: translateX(-100%); animation: sk-shine 1.5s ease-in-out infinite;
}
:root:is([data-theme="light"], [data-theme="cream"]) .sk-card::after {
    background: linear-gradient(100deg, transparent 32%, rgba(110, 120, 175, .14) 50%, transparent 68%);
}
@keyframes sk-shine { to { transform: translateX(100%); } }
@media (max-width: 700px) {
    .skeleton-grid { grid-template-columns: 1fr; }
    .sk-card { height: 84px; }
}

/* --- Разделители между крупными зонами: тонкая градиентная линия с искрой --- */
.sect-divider {
    position: relative; height: 1px; max-width: 1040px; margin: 38px auto;
    background: linear-gradient(90deg, transparent, rgba(109, 94, 252, .4) 30%, rgba(35, 198, 164, .4) 70%, transparent);
}
.sect-divider::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px;
    transform: translate(-50%, -50%) rotate(45deg); border-radius: 2px;
    background: var(--accent); box-shadow: 0 0 10px rgba(109, 94, 252, .8);
}

/* --- Футер: бренд, навигация, проект --- */
.footer-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px;
    padding-bottom: 20px; text-align: left;
}
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-logo { border-radius: 12px; flex: none; }
.footer-brand b { font-size: 16px; }
.footer-rf { color: var(--accent-2); }
.footer-brand p { margin: 4px 0 0; font-size: 13px; }
.footer-nav, .footer-meta { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-nav-title {
    font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 2px;
}
.footer-nav a, .footer-meta a { color: var(--text); text-decoration: none; font-size: 14px; opacity: .85; transition: opacity .15s, color .15s; }
.footer-nav a:hover, .footer-meta a:hover { opacity: 1; color: var(--accent-2); }
.footer-support {
    background: none; border: none; padding: 0; cursor: pointer; font: inherit; font-size: 14px;
    color: var(--text); opacity: .85; display: inline-flex; gap: 6px; align-items: center; transition: opacity .15s;
}
.footer-support:hover { opacity: 1; }
.footer-support .heart { color: #ff5d8f; }
.footer-ver-row { display: flex; align-items: center; gap: 10px; margin: 2px 0 0; }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
    border-top: 1px solid var(--card-border); padding-top: 16px;
}
.footer-bottom p { margin: 0; font-size: 13px; }
/* ссылки в нижней строке футера — тем же приглушённым цветом, что и текст рядом */
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--text); }
.footer-heart { color: var(--muted); font-size: 13px; }
.footer-heart .heart { color: #ff5d8f; animation: heart-beat 2.2s ease-in-out infinite; display: inline-block; }
@keyframes heart-beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.25); } 24% { transform: scale(1); } 36% { transform: scale(1.18); } 48% { transform: scale(1); } }
@media (max-width: 760px) {
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* --- Кнопка PDF-отчёта: градиентная рамка и мягкая пульсация свечения --- */
.btn-export {
    position: relative; border: 1px solid transparent !important;
    background:
        linear-gradient(var(--card), var(--card)) padding-box,
        linear-gradient(120deg, var(--accent), var(--accent-2)) border-box !important;
    animation: export-glow 2.8s ease-in-out infinite;
}
.btn-export:hover { animation-play-state: paused; box-shadow: 0 6px 22px rgba(35, 198, 164, .35); }
@keyframes export-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(35, 198, 164, 0); }
    50% { box-shadow: 0 4px 18px rgba(35, 198, 164, .28); }
}

/* --- Ассистент на мобильном: сворачивается при прокрутке --- */
.assistant-fab { transition: transform .28s ease, opacity .28s ease; }
.assistant.is-mini .assistant-say { display: none !important; }
.assistant.is-mini .assistant-fab { transform: scale(.62); opacity: .75; transform-origin: bottom left; }

@media (prefers-reduced-motion: reduce) {
    .sk-card::after { animation: none; }
    .footer-heart .heart { animation: none; }
    .btn-export { animation: none; }
}

/* --- Страница подписки на рассылку (/subscribe) --- */
.sub-wrap { padding: 28px 20px 64px; max-width: 1040px; }
.sub-hero { text-align: center; margin: 18px 0 30px; }
.sub-hero h1 {
    font-size: clamp(28px, 4.4vw, 44px);
    margin: 0 0 12px;
    background: linear-gradient(120deg, var(--text) 30%, var(--accent) 70%, var(--accent-2));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.sub-lead { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: 17px; }
.sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 860px) { .sub-grid { grid-template-columns: 1fr; } }
.sub-card {
    background: var(--card); border: 1px solid var(--card-border);
    border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow);
}
.sub-card h2 { margin: 0 0 16px; font-size: 20px; }
.sub-list { margin: 0; padding: 0 0 0 2px; list-style: none; }
.sub-list li {
    padding: 9px 0 9px 30px; position: relative; color: var(--muted); line-height: 1.5;
}
.sub-list li b { color: var(--text); }
.sub-list li::before {
    content: "✓"; position: absolute; left: 0; top: 8px;
    width: 21px; height: 21px; border-radius: 50%; text-align: center; line-height: 21px;
    font-size: 12px; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.sub-price { display: flex; align-items: baseline; gap: 10px; margin: 20px 0 8px; }
.sub-price-num {
    font-size: 42px; font-weight: 800;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.sub-price-per { color: var(--muted); font-size: 16px; }
.sub-note { color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.sub-note a { color: var(--accent-2); }
.sub-label { display: block; font-size: 13.5px; font-weight: 600; margin: 14px 0 6px; }
.sub-input {
    width: 100%; padding: 11px 14px; border-radius: 12px;
    border: 1px solid var(--card-border); background: rgba(255,255,255,0.04);
    color: var(--text); font: inherit; font-size: 15px; outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.sub-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(109,94,252,.18); }
:root[data-theme="light"] .sub-input { background: #fff; }
.sub-check {
    display: flex; gap: 9px; align-items: flex-start; margin: 12px 0 0;
    font-size: 13.5px; color: var(--muted); cursor: pointer; line-height: 1.45;
}
.sub-check input { margin-top: 2px; accent-color: var(--accent); cursor: pointer; }
.sub-check a { color: var(--accent-2); }
.sub-btn {
    width: 100%; margin-top: 20px; padding: 14px 18px; border: none; cursor: pointer;
    border-radius: 14px; font: inherit; font-size: 16px; font-weight: 800; color: #fff;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 26px rgba(109,94,252,.35);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.sub-btn:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.06); }
.sub-btn:disabled { opacity: .65; cursor: default; }
.sub-err { color: var(--danger); font-size: 14px; margin: 12px 0 0; }
.sub-pay-note { color: var(--muted); font-size: 12.5px; margin: 12px 0 0; text-align: center; }
