/* ============================================================
       RESET & BASE
       ============================================================ */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    /* 21.09.2026: атрибут hidden слабее любого правила с классом — например
       .resume-search { display: flex } показывал скрытый блок. Держим явно. */
    [hidden] { display: none !important; }
    
    :root {
        --bg: #f5f5f5;
        --bg-white: #ffffff;
        --bg-card: #ffffff;
        --bg-hover: #f0f6ff;
        --text-primary: #1a1a1a;
        --text-secondary: #666666;
        --text-muted: #6b7280;
        --accent: #0057ff;
        --accent-hover: #0047d4;
        --accent-light: #e8f0fe;
        --green: #28a745;
        --green-light: #e8f5e9;
        --orange: #ff8c00;
        --red: #dc3545;
        --border: #e0e0e0;
        --border-light: #f0f0f0;
        --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
        --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
        --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
        --radius-sm: 6px;
        --radius-md: 10px;
        --radius-lg: 14px;
        --font: 'Golos Text', -apple-system, BlinkMacSystemFont, sans-serif;
        --transition: 0.2s ease;
        color-scheme: light;
    }

    /* Тёмная тема (День 61): системная по умолчанию + ручной переключатель.
       Палитра переопределяется через те же токены, поэтому весь сайт на var(--…)
       переключается разом. */
    :root[data-theme="dark"] {
        --bg: #0f1420;
        --bg-white: #171d2b;
        --bg-card: #171d2b;
        --bg-hover: #1e2637;
        --text-primary: #e8eaed;
        --text-secondary: #b3bac6;
        --text-muted: #7f8795;
        --accent: #5b9bff;
        --accent-hover: #7db0ff;
        --accent-light: #1b2740;
        --green: #38d16a;
        --green-light: #14301f;
        --orange: #ffa63d;
        --red: #ff6b78;
        --border: #2b3346;
        --border-light: #232a3a;
        --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
        --shadow-md: 0 4px 12px rgba(0,0,0,0.45);
        --shadow-lg: 0 8px 30px rgba(0,0,0,0.55);
        color-scheme: dark;
    }
    @media (prefers-color-scheme: dark) {
        :root:not([data-theme="light"]) {
            --bg: #0f1420;
            --bg-white: #171d2b;
            --bg-card: #171d2b;
            --bg-hover: #1e2637;
            --text-primary: #e8eaed;
            --text-secondary: #b3bac6;
            --text-muted: #7f8795;
            --accent: #5b9bff;
            --accent-hover: #7db0ff;
            --accent-light: #1b2740;
            --green: #38d16a;
            --green-light: #14301f;
            --orange: #ffa63d;
            --red: #ff6b78;
            --border: #2b3346;
            --border-light: #232a3a;
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
            --shadow-md: 0 4px 12px rgba(0,0,0,0.45);
            --shadow-lg: 0 8px 30px rgba(0,0,0,0.55);
            color-scheme: dark;
        }
    }

    body {
        font-family: var(--font);
        background: var(--bg);
        color: var(--text-primary);
        line-height: 1.6;
        min-height: 100vh;
        -webkit-font-smoothing: antialiased;
    }

    a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
    a:hover { color: var(--accent-hover); }

    /* ============================================================
       ПОЛИРОВКА И МИКРОАНИМАЦИИ (День 65)
       ============================================================ */
    /* Плавный скролл по якорям — но не мешаем тем, кто просит меньше движения */
    html { scroll-behavior: smooth; }
    /* Скорость (День 86): нижние блоки не участвуют в первичном лейауте */
    .tags-section, .subscribe-box, .rv-section, .home-tiles {
        content-visibility: auto;
        contain-intrinsic-size: auto 220px;
    }

    /* Типографика и читабельность (День 88) */
    h1, h2, h3 { text-wrap: balance; letter-spacing: -0.01em; }
    p { text-wrap: pretty; }
    .article-body {
        font-size: 16px; line-height: 1.75; color: var(--text-primary);
        max-width: 68ch;               /* комфортная ширина строки для чтения */
    }
    .article-body p { margin: 0 0 14px; }
    .article-body h2 { font-size: 22px; font-weight: 700; margin: 28px 0 10px; line-height: 1.3; }
    .article-body h3 { font-size: 18px; font-weight: 700; margin: 22px 0 8px; line-height: 1.35; }
    .article-body ul, .article-body ol { margin: 0 0 14px 22px; }
    .article-body li { margin-bottom: 6px; }
    .article-body li::marker { color: var(--accent); }
    .article-body blockquote {
        margin: 16px 0; padding: 10px 16px; border-left: 3px solid var(--accent);
        background: var(--bg-hover); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
        color: var(--text-secondary);
    }
    .article-body table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; display: block; overflow-x: auto; }
    .article-body th, .article-body td { border: 1px solid var(--border-light); padding: 8px 12px; text-align: left; }
    .article-body th { background: var(--bg-hover); font-weight: 600; }
    .article-body a { text-decoration: underline; text-underline-offset: 2px; }
    .article-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
    .vacancy-description { font-size: 16px !important; max-width: 70ch; }
    @media (max-width: 600px) {
        .article-body { font-size: 16px; line-height: 1.7; }
        .article-body h2 { font-size: 20px; }
        .article-body h3 { font-size: 17px; }
    }

    /* Помощь/FAQ (День 87) */
    .help-item {
        border: 1px solid var(--border-light); border-radius: var(--radius-md);
        margin-bottom: 10px; background: var(--bg-card); overflow: hidden;
    }
    .help-item summary {
        cursor: pointer; padding: 13px 16px; font-weight: 600; font-size: 15px;
        list-style: none; position: relative; padding-right: 40px; user-select: none;
    }
    .help-item summary::-webkit-details-marker { display: none; }
    .help-item summary::after {
        content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
        font-size: 20px; color: var(--text-muted); transition: transform var(--transition);
    }
    .help-item[open] summary::after { content: '−'; color: var(--accent); }
    .help-item summary:hover { color: var(--accent); }
    .help-item p { padding: 0 16px 14px; margin: 0; color: var(--text-secondary); line-height: 1.6; font-size: 14px; }
    .help-contact {
        margin-top: 20px; padding: 16px; border-radius: var(--radius-md);
        background: var(--accent-light); border: 1px solid var(--border-light);
    }

    /* Мягкий онбординг (День 85) */
    .onboard {
        display: flex; gap: 12px; align-items: flex-start;
        background: var(--accent-light); border: 1px solid var(--border-light);
        border-radius: var(--radius-md); padding: 14px 16px; margin: 14px 0 4px;
        font-size: 14px; line-height: 1.55;
    }
    .onboard .ob-ico { font-size: 22px; line-height: 1.2; }
    .onboard .ob-title { font-weight: 700; margin-bottom: 4px; }
    .onboard .ob-points { color: var(--text-secondary); }
    .onboard .ob-points span { white-space: nowrap; }
    .onboard .ob-close {
        margin-left: auto; flex: 0 0 auto; cursor: pointer;
        border: 1px solid var(--border); background: var(--bg-card); color: var(--text-primary);
        border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600;
    }
    .onboard .ob-close:hover { border-color: var(--accent); color: var(--accent); }
    @media (max-width: 600px) { .onboard { flex-wrap: wrap; } .onboard .ob-close { margin-left: 0; } }
    /* Лёгкие CSS-тултипы для неочевидных элементов (десктоп) */
    [data-tip] { position: relative; }
    [data-tip]:hover::after, [data-tip]:focus-visible::after {
        content: attr(data-tip);
        position: absolute; top: calc(100% + 8px); right: 0; z-index: 300;
        background: var(--text-primary); color: var(--bg-card);
        font-size: 12px; font-weight: 500; line-height: 1.35; white-space: nowrap;
        padding: 6px 10px; border-radius: 8px; box-shadow: var(--shadow-md);
        pointer-events: none;
    }
    @media (hover: none) { [data-tip]:hover::after { display: none; } }

    /* Skip-link (День 82): виден только при клавиатурном фокусе */
    .skip-link {
        position: absolute; left: 12px; top: -48px; z-index: 1000;
        background: var(--accent); color: #fff; font-weight: 600; font-size: 14px;
        padding: 10px 18px; border-radius: 0 0 10px 10px; text-decoration: none;
        transition: top .15s ease;
    }
    .skip-link:focus { top: 0; color: #fff; }
    /* Аккуратные фокус-стили только для клавиатурной навигации */
    a:focus-visible, button:focus-visible, input:focus-visible,
    select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
        border-radius: 4px;
    }
    /* Мягкое появление контента */
    @keyframes tb-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
    .tb-fade { animation: tb-fade-in .32s ease both; }
    /* Кнопка «наверх» */
    .to-top {
        position: fixed; right: 20px; bottom: 84px; z-index: 90;
        width: 44px; height: 44px; border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        background: var(--accent); color: #fff; border: none; cursor: pointer;
        font-size: 20px; line-height: 1; box-shadow: var(--shadow-md);
        opacity: 0; visibility: hidden; transform: translateY(10px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s, background .2s;
    }
    .to-top.show { opacity: 1; visibility: visible; transform: none; }
    .to-top:hover { background: var(--accent-hover); }
    @media (max-width: 600px) { .to-top { right: 14px; bottom: 76px; width: 42px; height: 42px; } }
    @media (prefers-reduced-motion: reduce) {
        html { scroll-behavior: auto; }
        .tb-fade { animation: none; }
        .to-top { transition: opacity .2s ease, visibility .2s; transform: none; }
        .to-top.show { transform: none; }
    }

    /* ============================================================
       HEADER
       ============================================================ */
    .header {
        background: var(--bg-white);
        border-bottom: 1px solid var(--border);
        padding: 0;
        position: sticky;
        top: 0;
        z-index: 100;
    }
    .header-inner {
        max-width: 1200px;
        margin: 0 auto;
        padding: 14px 20px;
        display: flex;
        align-items: center;
        gap: 30px;
    }
    .logo {
        font-size: 22px;
        font-weight: 700;
        color: var(--accent);
        letter-spacing: -0.5px;
        text-decoration: none;
        flex-shrink: 0;
    }
    .logo span { color: var(--text-primary); }
    .header-nav { display: flex; gap: 20px; flex-wrap: wrap; }
    .header-nav a {
        color: var(--text-secondary);
        font-size: 14px;
        font-weight: 500;
        padding: 4px 0;
        transition: color var(--transition);
    }
    .header-nav a:hover { color: var(--accent); }
    /* Быстрый поиск в липкой шапке (на внутренних страницах) */
    .header-search {
        display: flex; align-items: center;
        flex: 1 1 auto; max-width: 380px; margin-left: 8px;
        background: var(--bg); border: 1px solid var(--border);
        border-radius: 999px; overflow: hidden;
        transition: border-color var(--transition);
    }
    .header-search:focus-within { border-color: var(--accent); }
    .header-search input {
        flex: 1; border: 0; outline: 0; background: transparent;
        padding: 9px 14px; font-size: 14px; color: var(--text-primary); font-family: var(--font);
        min-width: 0;
    }
    .header-search button {
        border: 0; background: transparent; cursor: pointer;
        padding: 0 12px; font-size: 16px; color: var(--text-secondary);
    }
    .header-nav { margin-left: auto; }              /* прижимаем навигацию вправо */
    .theme-toggle {
        width: 40px; height: 40px; flex-shrink: 0;
        border: 1px solid var(--border); background: var(--bg-white);
        border-radius: 50%; cursor: pointer; font-size: 17px; line-height: 1;
        display: inline-flex; align-items: center; justify-content: center;
        transition: background var(--transition), border-color var(--transition);
    }
    .theme-toggle:hover { border-color: var(--accent); }
    /* Бургер-меню (по умолчанию скрыт — только для мобильных) */
    .nav-toggle {
        display: none;
        margin-left: 0;
        width: 44px; height: 44px;
        border: 0; background: transparent; cursor: pointer;
        flex-direction: column; justify-content: center; align-items: center; gap: 5px;
        padding: 0;
    }
    .nav-toggle span {
        display: block; width: 24px; height: 2px; border-radius: 2px;
        background: var(--text-primary); transition: transform .2s, opacity .2s;
    }
    .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav-backdrop { display: none; }

    /* ============================================================
       CONTAINER
       ============================================================ */
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    /* ============================================================
       SEARCH FORM
       ============================================================ */
    .search-section {
        background: linear-gradient(135deg, #0057ff 0%, #0040c0 100%);
        padding: 30px 0;
        margin-bottom: 24px;
    }
    /* Быстрые чипы-фильтры (День 89): фильтры в один тап поверх синего героя */
    .quick-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
    .ms-bar { display: none; }   /* свёрнутая строка поиска — только на телефоне (День М1) */
    .q-chip {
        border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.12);
        color: #fff; border-radius: 999px; padding: 7px 14px; min-height: 34px;
        font-size: 13px; line-height: 1; cursor: pointer; transition: background .15s;
    }
    .q-chip:hover { background: rgba(255,255,255,.24); }
    .q-chip.active { background: #fff; color: #0047d0; border-color: #fff; font-weight: 600; }
    .search-form {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }
    .search-main-row {
        display: flex;
        gap: 10px;
        margin-bottom: 12px;
    }
    .search-input-wrap {
        flex: 1;
        position: relative;
    }
    .search-input {
        width: 100%;
        height: 48px;
        padding: 0 16px;
        border: 2px solid transparent;
        border-radius: var(--radius-md);
        font-size: 15px;
        font-family: var(--font);
        background: var(--bg-white);
        color: var(--text-primary);
        transition: border-color var(--transition);
        outline: none;
    }
    .search-input:focus {
        border-color: rgba(255,255,255,0.5);
    }
    .search-input::placeholder { color: var(--text-muted); }
    
    .search-btn {
        height: 48px;
        padding: 0 32px;
        background: #ff6b35;
        color: #fff;
        border: none;
        border-radius: var(--radius-md);
        font-size: 15px;
        font-weight: 600;
        font-family: var(--font);
        cursor: pointer;
        transition: background var(--transition), transform 0.1s;
        white-space: nowrap;
    }
    /* Главная кнопка отклика на странице вакансии — это <a>, и общее правило
       a:hover (0,1,1) перебивало .search-btn (0,1,0): при наведении текст на
       оранжевой кнопке становился синим. Как у .btn-respond — держим белый. */
    .search-btn:hover { background: #e55a25; }
    a.search-btn, a.search-btn:hover, a.search-btn:focus, a.search-btn:active { color: #fff; }
    .search-btn:active { transform: scale(0.98); }

    .search-filters-row {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        align-items: center;
    }
    /* Мобильный bottom-sheet фильтров (День 72) — на десктопе эти элементы скрыты */
    .filters-trigger, .filters-backdrop, .sheet-head, .sheet-foot { display: none; }
    /* Пока открыт лист фильтров — прячем плавающие кнопки, чтобы не перекрывали «Показать» */
    body.filters-open .bug-fab, body.filters-open .to-top { display: none !important; }
    .filter-select, .filter-input {
        height: 38px;
        padding: 0 12px;
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: var(--radius-sm);
        font-size: 13px;
        font-family: var(--font);
        background: rgba(255,255,255,0.15);
        color: #fff;
        cursor: pointer;
        min-width: 140px;
        outline: none;
        transition: background var(--transition);
    }
    .filter-select:hover, .filter-input:hover {
        background: rgba(255,255,255,0.25);
    }
    .filter-select option { color: var(--text-primary); background: var(--bg-white); }
    .filter-input::placeholder { color: rgba(255,255,255,0.6); }
    
    .filter-reset {
        height: 38px;
        padding: 0 14px;
        background: rgba(255,255,255,0.1);
        color: rgba(255,255,255,0.8);
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: var(--radius-sm);
        font-size: 13px;
        font-family: var(--font);
        cursor: pointer;
        transition: all var(--transition);
    }
    .filter-reset:hover { background: rgba(255,255,255,0.2); color: #fff; }
    .filter-toggle {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        height: 38px;
        padding: 0 12px;
        background: rgba(255,255,255,0.1);
        color: rgba(255,255,255,0.9);
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: var(--radius-sm);
        font-size: 13px;
        cursor: pointer;
        user-select: none;
        white-space: nowrap;
    }
    .filter-toggle input { accent-color: var(--accent, #2563eb); width: 16px; height: 16px; cursor: pointer; }
    .filter-toggle:hover { background: rgba(255,255,255,0.18); }

    /* Suggest dropdown */
    .suggest-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        box-shadow: var(--shadow-lg);
        z-index: 200;
        max-height: 300px;
        overflow-y: auto;
        display: none;
    }
    .suggest-dropdown.active { display: block; }
    .suggest-item {
        padding: 10px 16px;
        cursor: pointer;
        font-size: 14px;
        color: var(--text-primary);
        transition: background var(--transition);
    }
    .suggest-item:hover, .suggest-item.selected {
        background: var(--bg-hover);
    }
    .suggest-item small {
        color: var(--text-muted);
        margin-left: 6px;
    }
    /* Умная строка поиска (День 68): иконка типа подсказки + заголовок группы */
    .suggest-item .si-ico { margin-right: 8px; opacity: .7; font-size: 13px; }
    .suggest-head {
        padding: 8px 16px 4px; font-size: 11px; font-weight: 700; letter-spacing: .04em;
        text-transform: uppercase; color: var(--text-muted); cursor: default;
    }
    .suggest-head:hover { background: transparent; }

    /* Панель быстрых фильтров-чипов (День 69) */
    .qf-chips {
        display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px;
    }
    .qf-chip {
        display: inline-flex; align-items: center; gap: 5px;
        padding: 7px 14px; border-radius: 999px; cursor: pointer;
        font-size: 13px; font-weight: 600; white-space: nowrap;
        border: 1px solid var(--border); background: var(--bg-card); color: var(--text-primary);
        transition: border-color var(--transition), background var(--transition), color var(--transition);
    }
    .qf-chip:hover { border-color: var(--accent); }
    .qf-chip.active {
        background: var(--accent); border-color: var(--accent); color: #fff;
    }
    .qf-chip.qf-reset { border-style: dashed; color: var(--text-secondary); font-weight: 500; }
    .qf-chip.qf-reset:hover { border-color: var(--red); color: var(--red); }
    @media (max-width: 600px) {
        .qf-chips { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; scrollbar-width: none; }
        .qf-chips::-webkit-scrollbar { display: none; }
    }

    /* Активные фильтры чипами с «×» (День 71) */
    .active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
    .af-label { font-size: 13px; color: var(--text-muted); margin-right: 2px; }
    .af-chip {
        display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px;
        border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap;
        background: var(--accent-light); color: var(--accent); border: 1px solid transparent;
    }
    .af-chip button {
        border: none; background: transparent; cursor: pointer; color: inherit;
        font-size: 15px; line-height: 1; padding: 0 2px; opacity: .75;
    }
    .af-chip button:hover { opacity: 1; }
    .af-clear {
        border: 1px dashed var(--border); background: transparent; cursor: pointer;
        border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--text-secondary);
    }
    .af-clear:hover { border-color: var(--red); color: var(--red); }
    .af-share {
        margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
        border: 1px solid var(--border); background: var(--bg-card); cursor: pointer;
        border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--text-primary);
        transition: border-color var(--transition), color var(--transition);
    }
    .af-share:hover { border-color: var(--accent); color: var(--accent); }
    @media (max-width: 600px) { .af-share { margin-left: 0; } }

    /* Продолжить прошлый поиск (День 71) */
    .restore-bar {
        display: flex; align-items: center; gap: 10px; margin: 0 0 14px;
        padding: 10px 14px; border-radius: var(--radius-md);
        background: var(--accent-light); border: 1px solid var(--border-light); font-size: 14px;
    }
    .restore-ico { font-size: 16px; }
    .restore-link {
        border: none; background: transparent; cursor: pointer; padding: 0;
        color: var(--accent); font-weight: 700; font-size: 14px; text-decoration: underline;
    }
    .restore-dismiss { margin-left: auto; border: none; background: transparent; cursor: pointer; color: var(--text-muted); font-size: 16px; line-height: 1; }
    .restore-dismiss:hover { color: var(--text-primary); }

    /* Тост «ссылка скопирована» (День 71) */
    .tb-toast {
        position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(10px);
        background: var(--text-primary); color: var(--bg-card); padding: 10px 18px;
        border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg);
        opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; z-index: 300;
    }
    .tb-toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
    @media (prefers-reduced-motion: reduce) { .tb-toast { transition: opacity .2s, visibility .2s; } }

    /* ============================================================
       RESULTS AREA
       ============================================================ */
    .results-wrapper {
        display: flex;
        gap: 24px;
        align-items: flex-start;
    }
    .results-main { flex: 1; min-width: 0; }
    .results-sidebar {
        width: 300px;
        flex-shrink: 0;
        position: sticky;
        top: 80px;
    }

    .results-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
        margin-bottom: 16px;
    }
    .results-count {
        font-size: 15px;
        color: var(--text-secondary);
    }
    .page-h1 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
    .sort-select, .xl-bottom { display: none; }   /* только телефон (День М2) */
    .results-count strong {
        color: var(--text-primary);
        font-weight: 600;
    }
    /* Панель сортировки и тумблеров прямо над выдачей (День 70) */
    .results-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
    .sort-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: var(--bg-card); }
    .sort-opt {
        border: none; background: transparent; cursor: pointer;
        padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--text-secondary);
        white-space: nowrap; transition: background var(--transition), color var(--transition);
    }
    .sort-opt + .sort-opt { border-left: 1px solid var(--border); }
    .sort-opt:hover { color: var(--text-primary); }
    .sort-opt.active { background: var(--accent); color: #fff; }
    .rt-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-secondary); cursor: pointer; white-space: nowrap; }
    .rt-toggle input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }
    @media (max-width: 600px) {
        .results-tools { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
        .results-tools::-webkit-scrollbar { display: none; }
    }

    /* ============================================================
       VACANCY CARD
       ============================================================ */
    .vacancy-card {
        background: var(--bg-card);
        border-radius: var(--radius-md);
        padding: 20px 24px;
        margin-bottom: 10px;
        border: 1px solid var(--border-light);
        transition: box-shadow var(--transition), border-color var(--transition);
        cursor: pointer;
        position: relative;
        /* Быстрый рендер длинных списков: браузер пропускает отрисовку карточек
           вне вьюпорта. contain-intrinsic-size резервирует место (без CLS). */
        content-visibility: auto;
        contain-intrinsic-size: auto 150px;
    }
    .vacancy-card:hover {
        border-color: var(--accent);
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }
    /* Аватар компании в карточке (День 99): логотип или цветные инициалы */
    .v-ava {
        position: absolute; top: 16px; right: 16px; width: 44px; height: 44px;
        border-radius: 10px; object-fit: contain; background: #fff;
        border: 1px solid var(--border-light);
    }
    .v-ava-txt {
        display: flex; align-items: center; justify-content: center;
        color: #fff; font-weight: 700; font-size: 19px; border: none;
    }
    .vacancy-card .vacancy-title { padding-right: 60px; }
    @media (max-width: 600px) { .v-ava { width: 38px; height: 38px; top: 14px; right: 14px; } .vacancy-card .vacancy-title { padding-right: 50px; } }
    @media (prefers-reduced-motion: reduce) { .vacancy-card { transition: none; } .vacancy-card:hover { transform: none; } }
    .vacancy-card { transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition); }
    .vacancy-title {
        font-size: 17px;
        font-weight: 600;
        color: var(--accent);
        margin-bottom: 6px;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }
    .vacancy-title:hover { text-decoration: underline; }
    .vacancy-salary {
        font-size: 18px;
        font-weight: 700;
        color: var(--green);
        margin-bottom: 8px;
        overflow-wrap: anywhere;
    }
    /* Скелетон-загрузка (День 62) — вместо голого спиннера */
    .skeleton-card {
        background: var(--bg-card);
        border: 1px solid var(--border-light);
        border-radius: var(--radius-md);
        padding: 20px 24px;
        margin-bottom: 10px;
    }
    .skeleton-line {
        height: 12px; border-radius: 6px; margin-bottom: 10px;
        background: linear-gradient(90deg, var(--border-light) 25%, var(--bg-hover) 37%, var(--border-light) 63%);
        background-size: 400% 100%;
        animation: skshimmer 1.3s ease-in-out infinite;
    }
    .skeleton-line.t { height: 18px; width: 60%; }
    .skeleton-line.s { width: 35%; height: 20px; background-color: var(--green-light); }
    .skeleton-line.m { width: 80%; }
    .skeleton-line.b { width: 90%; margin-bottom: 0; }
    @keyframes skshimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
    @media (prefers-reduced-motion: reduce) { .skeleton-line { animation: none; } }
    .vacancy-company {
        font-size: 14px;
        color: var(--text-secondary);
        margin-bottom: 4px;
    }
    .vacancy-company a {
        color: var(--text-secondary);
        font-weight: 500;
    }
    .vacancy-company a:hover { color: var(--accent); }
    .vacancy-meta {
        display: flex;
        gap: 16px;
        flex-wrap: wrap;
        font-size: 13px;
        color: var(--text-muted);
        margin-bottom: 10px;
    }
    .vacancy-meta span { display: flex; align-items: center; gap: 4px; }
    .badge-sites {
        color: #1a7f37;
        background: rgba(26,127,55,.09);
        border-radius: 10px;
        padding: 1px 8px;
        font-weight: 600;
    }
    .badge-warn {
        color: #b45309;
        background: rgba(217,119,6,.11);
        border-radius: 10px;
        padding: 1px 8px;
        font-weight: 600;
        cursor: help;
    }
    .vac-cover { margin: 10px 0 4px; }
    .vac-cover > summary {
        cursor: pointer; font-weight: 600; font-size: 15px; padding: 10px 14px;
        border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-card);
        list-style: none;
    }
    .vac-cover > summary::-webkit-details-marker { display: none; }
    .vac-cover[open] > summary { border-radius: var(--radius-md) var(--radius-md) 0 0; border-bottom: none; }

    /* Генератор сопроводительного письма (День 109) */
    .cover-gen { background: var(--bg); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 14px; margin: 12px 0; }
    /* Базовые .filter-input/.filter-select белые по прозрачному (расчёт на синий
       герой поиска) — на светлой карточке возвращаем читаемые цвета */
    .cover-gen .filter-input, .cover-gen .filter-select, .cover-gen textarea {
        background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border);
        cursor: auto; padding: 9px 12px; font-size: 14px;
    }
    .cover-gen .filter-select { cursor: pointer; }
    .cover-gen .filter-input::placeholder, .cover-gen textarea::placeholder { color: var(--text-muted); }
    .cover-gen .filter-input:hover, .cover-gen .filter-select:hover, .cover-gen textarea:focus { background: var(--bg-card); border-color: var(--accent); }
    .cover-gen .filter-reset {
        background: var(--bg-card); color: var(--accent); border: 1px solid var(--accent);
        border-radius: var(--radius-sm); padding: 9px 16px; font-size: 14px; font-weight: 600; cursor: pointer;
    }
    .cover-gen .filter-reset:hover { background: var(--accent-light); }
    .cg-fields { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
    .cg-fields .cg-in, .cg-fields .filter-select { flex: 1 1 210px; min-width: 0; }
    .cg-exp, .cg-out { width: 100%; margin-bottom: 8px; font-family: inherit; line-height: 1.5; resize: vertical; }
    .cg-out { background: var(--bg-card); }
    .cg-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
    .cg-count { font-size: 13px; color: var(--text-muted); }
    .cg-hint { font-size: 12px; color: var(--text-muted); margin: 4px 0 0; }

    /* Конструктор мини-резюме (День 112). Поля — те же .filter-input, что и в
       генераторе письма, поэтому им нужны те же читаемые цвета на карточке. */
    .rs-gen { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
    .rs-form { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
    .rs-side { flex: 1 1 300px; min-width: 0; position: sticky; top: 76px; }
    .rs-lab { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); }
    .rs-row { display: flex; gap: 10px; flex-wrap: wrap; }
    .rs-row .rs-lab { flex: 1 1 150px; min-width: 0; }
    .rs-gen .rs-in {
        display: block; width: 100%; margin-top: 4px; padding: 9px 12px; font-size: 14px; font-family: inherit;
        background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border);
        border-radius: var(--radius-sm); cursor: auto; line-height: 1.5; resize: vertical;
    }
    .rs-gen .rs-in::placeholder { color: var(--text-muted); }
    .rs-gen .rs-in:focus { border-color: var(--accent); outline: none; }
    .rs-preview {
        background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
        padding: 16px 18px; min-height: 180px; font-size: 14px; line-height: 1.55;
    }
    .rs-empty { color: var(--text-muted); }
    .rs-p-name { font-size: 20px; font-weight: 700; color: var(--text-primary); }
    .rs-p-job { font-size: 15px; font-weight: 600; color: var(--accent); margin-top: 2px; }
    .rs-p-meta { color: var(--text-secondary); margin-top: 2px; }
    .rs-p-block { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border-light); }
    .rs-p-block b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted); margin-bottom: 2px; }
    .rs-progress { font-size: 13px; color: var(--text-muted); margin: 8px 0; }
    .rs-progress.rs-ok { color: var(--green); font-weight: 600; }
    .rs-actions { display: flex; gap: 8px; flex-wrap: wrap; }
    .rs-gen .filter-reset {
        background: var(--bg-card); color: var(--accent); border: 1px solid var(--accent);
        border-radius: var(--radius-sm); padding: 9px 16px; font-size: 14px; font-weight: 600; cursor: pointer;
    }
    .rs-gen .filter-reset:hover { background: var(--accent-light); }
    .rs-hint { font-size: 12px; color: var(--text-muted); margin: 8px 0 0; }
    .rs-tips { margin: 0; padding-left: 20px; }
    .rs-tips li { margin-bottom: 8px; line-height: 1.55; }
    .rs-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
    /* Перенос данных файлом (День 117) */
    .dt-stat { font-size: 14px; color: var(--text-primary); margin-bottom: 12px; }
    .dt-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
    .dt-box .filter-reset {
        background: var(--bg-card); color: var(--accent); border: 1px solid var(--accent);
        border-radius: var(--radius-sm); padding: 0 18px; height: 48px; display: inline-flex; align-items: center;
        font-size: 14px; font-weight: 600; cursor: pointer;
    }
    .dt-box .filter-reset:hover { background: var(--accent-light); }
    .dt-note { font-size: 12px; color: var(--text-muted); margin: 12px 0 0; }
    .dt-msg { margin-top: 12px; font-size: 14px; padding: 10px 12px; border-radius: var(--radius-sm); }
    .dt-msg.dt-ok { color: var(--green); background: rgba(26,127,55,.08); }
    .dt-msg.dt-err { color: var(--red); background: rgba(220,38,38,.08); }

    /* «Продолжить поиск» в шапке (День 116) */
    .resume-search {
        display: flex; align-items: center; gap: 6px;
        background: var(--bg-hover); border-top: 1px solid var(--border-light);
        padding: 7px 16px; font-size: 13px;
    }
    .rss-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; text-decoration: none; color: var(--accent); font-weight: 600; }
    .rss-link:hover .rss-text { text-decoration: underline; }
    .rss-ico { flex: 0 0 auto; }
    .rss-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .rss-close {
        flex: 0 0 auto; width: 26px; height: 26px; border: none; background: none;
        color: var(--text-muted); cursor: pointer; font-size: 13px; line-height: 1; border-radius: var(--radius-sm);
    }
    .rss-close:hover { background: var(--bg-card); color: var(--text-primary); }
    .tag-n { color: var(--text-muted); font-weight: 400; font-size: 12px; }

    /* «Мои поиски» (День 115) */
    .ms-list { display: flex; flex-direction: column; }
    .ms-item { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border-light); }
    .ms-item:last-child { border-bottom: none; }
    .ms-link { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 11px 0; text-decoration: none; }
    .ms-link:hover .ms-label { text-decoration: underline; }
    .ms-label { font-weight: 600; font-size: 15px; color: var(--accent); }
    .ms-when { font-size: 13px; color: var(--text-muted); }
    .ms-del {
        flex: 0 0 auto; width: 32px; height: 32px; border: 1px solid var(--border); border-radius: var(--radius-sm);
        background: none; color: var(--text-muted); cursor: pointer; font-size: 14px; line-height: 1;
    }
    .ms-del:hover { border-color: var(--red); color: var(--red); }
    .ms-empty { color: var(--text-secondary); padding: 10px 0; }
    .ms-bottom { margin-top: 14px; }
    .ms-bottom .filter-reset {
        background: var(--bg-card); color: var(--accent); border: 1px solid var(--accent);
        border-radius: var(--radius-sm); padding: 9px 16px; font-size: 14px; font-weight: 600; cursor: pointer;
    }
    .ms-bottom .filter-reset:hover { background: var(--accent-light); }

    .rs-sample {
        background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
        padding: 16px 18px; margin: 14px 0; font-size: 14px; line-height: 1.55;
    }
    .rs-cta { display: inline-block; text-decoration: none; margin-top: 6px; line-height: 48px; }
    .rs-cta-note { font-size: 13px; color: var(--text-muted); margin: 6px 0 0; }
    @media (max-width: 720px) {
        .rs-side { position: static; }
    }

    /* Адрес и квота из фида «Работы России» (15.09.2026) */
    .vac-address { margin: 8px 0 10px; font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
    .vac-address strong { color: var(--text-primary); }
    .badge-quota { color: #6d28d9; background: rgba(109,40,217,.1); border-radius: 10px; padding: 1px 8px; font-weight: 600; cursor: help; }
    :root[data-theme="dark"] .badge-quota { color: #c4b5fd; background: rgba(196,181,253,.14); }
    @media (prefers-color-scheme: dark) {
        :root:not([data-theme="light"]) .badge-quota { color: #c4b5fd; background: rgba(196,181,253,.14); }
    }

    /* Напоминание о сохранённом и откликах (День 110) */
    .resume-bar {
        display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
        margin: 12px 0; padding: 10px 14px; border-radius: var(--radius-md);
        background: var(--accent-light); border: 1px solid var(--border-light);
        font-size: 14px; color: var(--text-primary);
    }
    .resume-bar .rb-ico { font-size: 17px; }
    .resume-bar a { font-weight: 600; }
    .rb-close { margin-left: auto; border: none; background: none; color: var(--text-muted); font-size: 15px; cursor: pointer; line-height: 1; padding: 4px; }

    /* Вкладки и история откликов в избранном (День 108) */
    .fav-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
    .fav-tab {
        border: 1px solid var(--border); background: var(--bg-card); color: var(--text-secondary);
        border-radius: 999px; padding: 8px 16px; min-height: 40px; font-size: 14px; font-weight: 600; cursor: pointer;
    }
    .fav-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
    .applied-card { cursor: default; }
    .ap-meta { font-size: 13px; color: var(--text-muted); margin: 6px 0 10px; }
    .ap-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
    .ap-row .ap-note { flex: 1 1 220px; min-width: 0; }
    .ap-row .ap-st { flex: 0 0 auto; }

    /* Панель «ещё похожие» после отклика (День 107) */
    .apply-more {
        position: fixed; right: 16px; bottom: 16px; z-index: 500; max-width: 330px;
        background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg); padding: 14px 16px;
        opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s;
    }
    .apply-more.show { opacity: 1; transform: translateY(0); }
    .am-title { font-weight: 700; font-size: 14px; margin-bottom: 8px; padding-right: 18px; }
    .am-item { display: block; padding: 7px 0; border-top: 1px solid var(--border-light); text-decoration: none; }
    .am-n { display: block; font-size: 14px; color: var(--accent); }
    .am-c { display: block; font-size: 12px; color: var(--text-muted); }
    .am-close {
        position: absolute; top: 8px; right: 10px; border: none; background: none;
        color: var(--text-muted); font-size: 15px; cursor: pointer; line-height: 1;
    }
    @media (max-width: 600px) {
        .apply-more { left: 12px; right: 12px; bottom: 12px; max-width: none; }
        /* На странице вакансии внизу стоит липкая кнопка отклика — панель
           «ещё похожие» иначе ложится прямо на неё и прячет главный CTA. */
        body.vac-sticky .apply-more { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
        body.apply-more-open .bug-fab { display: none; }
    }
    @media (prefers-reduced-motion: reduce) { .apply-more { transition: none; } }

    /* Прямые контакты работодателя (День 105) */
    .vac-contacts {
        margin: 12px 0 4px; padding: 14px 16px; border-radius: var(--radius-md);
        background: var(--green-light); border: 1px solid rgba(26,127,55,.25);
    }
    .vac-contacts h3 { font-size: 15px; margin: 0 0 8px; }
    .vc-person { font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }
    .vc-links { display: flex; flex-wrap: wrap; gap: 8px; }
    .vc-btn {
        display: inline-flex; align-items: center; gap: 6px; min-height: 38px;
        padding: 6px 14px; border-radius: 999px; background: var(--bg-card);
        border: 1px solid var(--border); color: var(--text-primary);
        text-decoration: none; font-size: 14px; font-weight: 600;
    }
    .vc-btn:hover { border-color: var(--accent); color: var(--accent); }
    .vc-note { font-size: 12px; color: var(--text-muted); margin-top: 9px; }

    /* Плашка недоступного источника (День 103) */
    .src-notice {
        margin: 10px 0; padding: 10px 14px; border-radius: var(--radius-md);
        background: rgba(255,166,61,.12); border: 1px solid rgba(255,166,61,.4);
        color: var(--text-primary); font-size: 14px;
    }
    .src-retry {
        border: 1px solid var(--accent); background: none; color: var(--accent);
        border-radius: 8px; padding: 3px 12px; margin-left: 6px; cursor: pointer; font-size: 13px;
    }
    .src-retry:hover { background: var(--accent-light); }

    /* Подсказка по опечатке/раскладке (День 120) */
    .typo-bar {
        margin: 10px 0; padding: 10px 14px; border-radius: var(--radius-md);
        background: var(--accent-light); border: 1px solid rgba(37,99,235,.28);
        color: var(--text-primary); font-size: 14px;
    }
    .typo-bar a { color: var(--accent); font-weight: 600; }

    /* Бейдж «опубликована сегодня» (День 101) */
    .badge-new { color: #1a7f37; background: rgba(26,127,55,.12); border-radius: 10px; padding: 1px 8px; font-weight: 600; }
    /* День 102: контраст бейджей в тёмной теме (оба варианта включения) */
    :root[data-theme="dark"] .badge-new,
    :root[data-theme="dark"] .badge-market.above { color: #4ade80; background: rgba(74,222,128,.14); }
    :root[data-theme="dark"] .badge-trusted { color: #7dd3fc; background: rgba(125,211,252,.14); }
    :root[data-theme="dark"] .badge-market.market { color: #93c5fd; background: rgba(147,197,253,.14); }
    :root[data-theme="dark"] .badge-market.below { color: #fdba74; background: rgba(253,186,116,.14); }
    @media (prefers-color-scheme: dark) {
        :root:not([data-theme="light"]) .badge-new,
        :root:not([data-theme="light"]) .badge-market.above { color: #4ade80; background: rgba(74,222,128,.14); }
        :root:not([data-theme="light"]) .badge-trusted { color: #7dd3fc; background: rgba(125,211,252,.14); }
        :root:not([data-theme="light"]) .badge-market.market { color: #93c5fd; background: rgba(147,197,253,.14); }
        :root:not([data-theme="light"]) .badge-market.below { color: #fdba74; background: rgba(253,186,116,.14); }
    }
    .badge-market { border-radius: 10px; padding: 1px 8px; font-weight: 600; cursor: help; }
    .badge-market.above  { color: #1a7f37; background: rgba(26,127,55,.1); }
    .badge-market.market { color: #2563eb; background: rgba(37,99,235,.1); }
    .badge-market.below  { color: #9a3412; background: rgba(154,52,18,.1); }
    .badge-trusted {
        color: #0369a1;
        background: rgba(3,105,161,.1);
        border-radius: 10px;
        padding: 1px 8px;
        font-weight: 600;
        cursor: help;
    }
    .badge-ghost {
        color: #6b7280;
        background: rgba(107,114,128,.12);
        border-radius: 10px;
        padding: 1px 8px;
        font-weight: 600;
        cursor: help;
    }
    .badge-agency {
        color: #7c3aed;
        background: rgba(124,58,237,.1);
        border-radius: 10px;
        padding: 1px 8px;
        font-weight: 600;
        cursor: help;
    }
    .vacancy-snippet {
        font-size: 14px;
        color: var(--text-secondary);
        line-height: 1.5;
        margin-top: 8px;
    }
    .vacancy-actions {
        display: flex;
        gap: 8px;
        margin-top: 12px;
        align-items: center;
    }
    .btn-respond {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 18px;
        background: var(--green);
        color: #fff;
        border: none;
        border-radius: var(--radius-sm);
        font-size: 13px;
        font-weight: 600;
        font-family: var(--font);
        cursor: pointer;
        text-decoration: none;
        transition: background var(--transition);
    }
    .btn-respond:hover { background: #22943e; color: #fff; }

    /* Страница вакансии (День 75) */
    .vac-salary-hero { font-size: 26px; font-weight: 800; color: var(--green); margin-bottom: 8px; line-height: 1.2; }
    .vac-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
    .vac-facts .vf {
        display: inline-flex; align-items: center; gap: 6px;
        background: var(--bg-hover); border: 1px solid var(--border-light); border-radius: 999px;
        padding: 6px 12px; font-size: 13px; color: var(--text-secondary);
    }
    .vac-share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 16px 0 2px; }
    .vac-share .vs-label { font-size: 13px; color: var(--text-muted); }
    .vac-share button, .vac-share a {
        display: inline-flex; align-items: center; gap: 6px; cursor: pointer; text-decoration: none;
        border: 1px solid var(--border); background: var(--bg-card); color: var(--text-primary);
        border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 600;
        transition: border-color var(--transition), color var(--transition);
    }
    .vac-share button:hover, .vac-share a:hover { border-color: var(--accent); color: var(--accent); }
    .vac-estimate {
        background: var(--accent-light); border: 1px solid var(--border-light);
        border-radius: var(--radius-md); padding: 14px 16px; margin: 18px 0;
    }
    .vac-estimate h3 { font-size: 15px; margin: 0 0 6px; font-weight: 700; }
    .vac-estimate .ve-num { font-size: 20px; font-weight: 800; color: var(--accent); }
    .vac-estimate .ve-note { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
    /* Полезные мелочи (День 80): печать/PDF, QR, жалоба */
    .vac-tools { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 2px; }
    .vac-tool {
        display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
        border: 1px solid var(--border); background: var(--bg-card); color: var(--text-secondary);
        border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 600;
        transition: border-color var(--transition), color var(--transition);
    }
    .vac-tool:hover { border-color: var(--accent); color: var(--accent); }
    .vac-tool-report:hover { border-color: var(--red); color: var(--red); }
    .vac-qr { margin: 14px 0 2px; text-align: center; }
    .vac-qr-code { display: inline-block; background: #fff; padding: 10px; border: 1px solid var(--border-light); border-radius: var(--radius-md); }
    .vac-qr-code svg { display: block; width: 180px; height: 180px; }
    .vac-qr-note { font-size: 13px; color: var(--text-secondary); margin-top: 8px; }
    .vacancy-description h2 { font-size: 18px; margin: 18px 0 8px; color: var(--text-primary); }
    .vacancy-description h3 { font-size: 16px; margin: 16px 0 6px; color: var(--text-primary); }
    .vacancy-description ul, .vacancy-description ol { margin: 8px 0 10px 20px; }
    .vacancy-description li { margin-bottom: 5px; }
    .vacancy-description p { margin-bottom: 10px; }
    /* Блоки вокруг вакансии (День 77) */
    .vac-block-h { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
    .mini-vac-list { display: flex; flex-direction: column; }
    .mini-vac { padding: 10px 0; border-bottom: 1px solid var(--border-light); }
    .mini-vac:last-child { border-bottom: none; }
    .mini-vac-title { font-weight: 600; font-size: 15px; color: var(--accent); text-decoration: none; }
    .mini-vac-title:hover { text-decoration: underline; }
    .mini-vac-salary { color: var(--green); font-weight: 600; font-size: 14px; margin-top: 2px; }
    .mini-vac-meta { color: var(--text-muted); font-size: 13px; margin-top: 2px; }
    .vac-block-all { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; }
    .vacancy-apply-sticky { display: none; }
    @media (max-width: 768px) {
        .vacancy-apply-sticky {
            display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
            padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
            background: var(--bg-white); border-top: 1px solid var(--border-light); box-shadow: 0 -4px 16px rgba(0,0,0,.08);
        }
        .vacancy-apply-sticky a {
            flex: 1; justify-content: center; min-height: 50px; font-size: 16px; border-radius: var(--radius-md);
        }
        body.vac-sticky .bug-fab { bottom: 78px; }
        body.vac-sticky .to-top { bottom: 132px; }
        .container.vac-has-sticky { padding-bottom: 84px; }
    }

    .btn-like {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        cursor: pointer;
        transition: all var(--transition);
        font-size: 16px;
        color: var(--text-muted);
    }
    .btn-like:hover { border-color: var(--red); color: var(--red); }
    .btn-like.liked { border-color: var(--red); color: var(--red); background: #fff0f0; }

    /* Vacancy detail (expanded) */
    .vacancy-detail {
        display: none;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--border-light);
    }
    .vacancy-detail.active { display: block; }
    .vacancy-detail-content {
        font-size: 14px;
        line-height: 1.7;
        color: var(--text-primary);
    }
    .vacancy-detail-content h2, .vacancy-detail-content h3 {
        margin: 16px 0 8px;
        font-size: 16px;
    }
    .vacancy-detail-content ul, .vacancy-detail-content ol {
        margin: 8px 0;
        padding-left: 20px;
    }
    .vacancy-detail-content li { margin-bottom: 4px; }
    .vacancy-detail-loading {
        text-align: center;
        padding: 20px;
        color: var(--text-muted);
    }

    /* Быстрый просмотр вакансии — модалка (День 76) */
    .qv-overlay {
        display: none; position: fixed; inset: 0; z-index: 500;
        background: rgba(0,0,0,.5); padding: 24px;
        align-items: flex-start; justify-content: center;
    }
    .qv-overlay.active { display: flex; }
    .qv-modal {
        position: relative; background: var(--bg-white); color: var(--text-primary);
        width: 100%; max-width: 720px; max-height: 88vh; margin-top: 3vh;
        border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
        display: flex; flex-direction: column; overflow: hidden;
    }
    .qv-head {
        display: flex; align-items: center; justify-content: space-between;
        padding: 12px 16px; border-bottom: 1px solid var(--border-light); flex: 0 0 auto;
    }
    .qv-counter { font-size: 13px; color: var(--text-muted); }
    .qv-close { border: none; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; color: var(--text-secondary); padding: 4px 8px; }
    .qv-close:hover { color: var(--text-primary); }
    .qv-body { padding: 18px 22px 22px; overflow-y: auto; flex: 1 1 auto; -webkit-overflow-scrolling: touch; }
    .qv-title { font-size: 22px; font-weight: 800; margin-bottom: 6px; line-height: 1.25; }
    .qv-salary { font-size: 20px; font-weight: 700; color: var(--green); margin-bottom: 6px; }
    .qv-company { color: var(--text-secondary); margin-bottom: 10px; }
    .qv-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
    .qv-meta .vf { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-hover); border: 1px solid var(--border-light); border-radius: 999px; padding: 5px 11px; font-size: 13px; color: var(--text-secondary); }
    .qv-desc { font-size: 15px; line-height: 1.7; }
    .qv-desc h2 { font-size: 17px; margin: 16px 0 7px; } .qv-desc h3 { font-size: 15px; margin: 14px 0 6px; }
    .qv-desc ul, .qv-desc ol { margin: 8px 0 10px 20px; } .qv-desc li { margin-bottom: 5px; } .qv-desc p { margin-bottom: 10px; }
    .qv-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 16px 0 4px; position: sticky; bottom: -22px; background: var(--bg-white); padding: 12px 0 2px; }
    .qv-actions .btn-respond { padding: 11px 22px; font-size: 15px; }
    .qv-openpage { font-size: 13px; color: var(--text-secondary); }
    .qv-nav {
        position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
        width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
        background: var(--bg-white); color: var(--text-primary); font-size: 24px; line-height: 1; cursor: pointer;
        display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
    }
    .qv-nav:hover { border-color: var(--accent); color: var(--accent); }
    .qv-nav[disabled] { opacity: .35; cursor: default; }
    .qv-prev { left: -20px; } .qv-next { right: -20px; }
    @media (max-width: 768px) {
        .qv-overlay { padding: 0; align-items: stretch; }
        .qv-modal { max-width: none; max-height: 100vh; height: 100%; margin-top: 0; border-radius: 0; }
        .qv-prev { left: 6px; } .qv-next { right: 6px; }
        .qv-nav { background: rgba(255,255,255,.9); }
        :root[data-theme="dark"] .qv-nav { background: rgba(30,38,55,.9); }
    }

    /* ============================================================
       SIDEBAR
       ============================================================ */
    .sidebar-block {
        background: var(--bg-card);
        border-radius: var(--radius-md);
        padding: 18px;
        margin-bottom: 16px;
        border: 1px solid var(--border-light);
    }
    .sidebar-title {
        font-size: 15px;
        font-weight: 600;
        margin-bottom: 12px;
        color: var(--text-primary);
    }
    .share-btns {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }
    .share-btn {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius-sm);
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        text-decoration: none;
        transition: opacity var(--transition);
    }
    .share-btn:hover { opacity: 0.85; color: #fff; }
    .share-vk { background: #4c75a3; }
    .share-tg { background: #0088cc; }
    .share-tw { background: #1da1f2; }
    .share-ok { background: #ed812b; }
    .share-wa { background: #25d366; }
    .share-email { background: #666; }

    .company-filters {
        list-style: none;
    }
    .company-filters li {
        padding: 6px 0;
        border-bottom: 1px solid var(--border-light);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .company-filters li:last-child { border-bottom: none; }
    .company-filters a {
        font-size: 13px;
        color: var(--text-primary);
    }
    .company-filters .count {
        font-size: 12px;
        color: var(--text-muted);
        background: var(--bg);
        padding: 1px 8px;
        border-radius: 10px;
    }

    /* ============================================================
       TAGS / POPULAR QUERIES
       ============================================================ */
    .tags-section {
        margin: 30px 0;
    }
    .tags-section h2 {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 14px;
    }
    .tags-cloud {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .tag-link {
        display: inline-block;
        padding: 6px 14px;
        background: var(--bg-white);
        border: 1px solid var(--border);
        border-radius: 20px;
        font-size: 13px;
        color: var(--text-secondary);
        transition: all var(--transition);
    }
    .tag-link:hover {
        background: var(--accent-light);
        border-color: var(--accent);
        color: var(--accent);
    }
    .tags-show-more {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 6px 14px;
        background: none;
        border: 1px dashed var(--border);
        border-radius: 20px;
        font-size: 13px;
        color: var(--accent);
        cursor: pointer;
        font-family: var(--font);
        transition: all var(--transition);
    }
    .tags-show-more:hover { border-color: var(--accent); background: var(--accent-light); }

    /* ============================================================
       SCHEMA.ORG (hidden)
       ============================================================ */

    /* ============================================================
       LOADING
       ============================================================ */
    .loading-spinner {
        text-align: center;
        padding: 30px;
    }
    .loading-spinner::after {
        content: '';
        display: inline-block;
        width: 30px;
        height: 30px;
        border: 3px solid var(--border);
        border-top-color: var(--accent);
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    .no-results {
        text-align: center;
        padding: 60px 20px;
        color: var(--text-muted);
    }
    .no-results h3 { font-size: 18px; margin-bottom: 8px; color: var(--text-secondary); }

    /* Красивые пустые состояния и ошибки (День 66) */
    .empty-state { text-align: center; padding: 48px 20px; }
    .empty-state .empty-illus { width: 104px; height: 104px; margin: 0 auto 16px; display: block; color: var(--text-muted); }
    .empty-state h3 { font-size: 20px; margin: 0 0 8px; color: var(--text-primary); font-weight: 700; }
    .empty-state p { color: var(--text-secondary); margin: 0 auto 18px; max-width: 440px; line-height: 1.55; }
    .empty-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
    .empty-btn {
        display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px;
        border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer;
        border: 1px solid var(--border); background: var(--bg-card); color: var(--text-primary);
        text-decoration: none; transition: border-color var(--transition), background var(--transition), color var(--transition);
    }
    .empty-btn:hover { border-color: var(--accent); color: var(--accent); }
    .empty-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
    .empty-btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
    .empty-chips { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 14px; }
    .empty-chips a { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--accent-light); color: var(--accent); text-decoration: none; }
    .empty-chips a:hover { background: var(--accent); color: #fff; }

    /* ============================================================
       FOOTER
       ============================================================ */
    .footer {
        background: var(--bg-white);
        border-top: 1px solid var(--border);
        padding: 30px 0;
        margin-top: 40px;
        content-visibility: auto;
        contain-intrinsic-size: auto 300px;
    }
    .footer-inner {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        display: flex;
        gap: 40px;
        flex-wrap: wrap;
    }
    .footer-col h4 {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 10px;
        color: var(--text-primary);
    }
    .footer-col a {
        display: block;
        font-size: 13px;
        color: var(--text-secondary);
        padding: 3px 0;
    }
    .footer-col a:hover { color: var(--accent); }
    .footer-copy {
        max-width: 1200px;
        margin: 20px auto 0;
        padding: 16px 20px 0;
        border-top: 1px solid var(--border-light);
        font-size: 12px;
        color: var(--text-muted);
    }

    /* ============================================================
       ADDITIONAL PAGES STYLES
       ============================================================ */
    .page-content {
        max-width: 1200px;
        margin: 30px auto;
        padding: 0 20px;
    }
    .page-card {
        background: var(--bg-card);
        border-radius: var(--radius-md);
        padding: 30px;
        border: 1px solid var(--border-light);
        margin-bottom: 20px;
    }
    .page-title {
        font-size: 26px;
        font-weight: 700;
        margin-bottom: 20px;
        color: var(--text-primary);
    }
    
    /* Cities page */
    .cities-region { margin-bottom: 20px; content-visibility: auto; contain-intrinsic-size: auto 260px; }
    .cities-region h3 {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 8px;
        color: var(--accent);
    }
    .cities-list {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 16px;
    }
    .cities-list a {
        font-size: 13px;
        color: var(--text-secondary);
        padding: 2px 0;
    }
    .cities-list a:hover { color: var(--accent); }

    /* Calculator */
    .calc-form { display: flex; flex-direction: column; gap: 14px; max-width: 500px; }
    .calc-label { font-size: 14px; font-weight: 500; color: var(--text-secondary); margin-bottom: 4px; display: block; }
    .calc-input {
        width: 100%;
        height: 44px;
        padding: 0 14px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        font-size: 15px;
        font-family: var(--font);
        outline: none;
        transition: border-color var(--transition);
    }
    .calc-input:focus { border-color: var(--accent); }
    .calc-result {
        margin-top: 16px;
        padding: 20px;
        background: var(--green-light);
        border-radius: var(--radius-sm);
        font-size: 18px;
        font-weight: 600;
        display: none;
    }

    /* Calendar */
    .cal-month {
        margin-bottom: 20px;
    }
    .cal-month h3 {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 8px;
    }
    .cal-grid {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 2px;
        text-align: center;
        font-size: 13px;
    }
    .cal-day-header {
        font-weight: 600;
        color: var(--text-muted);
        padding: 6px 0;
    }
    .cal-day {
        padding: 6px 0;
        border-radius: 4px;
    }
    .cal-day.weekend { color: var(--red); }
    .cal-day.holiday { background: #fff0f0; color: var(--red); font-weight: 600; }
    .cal-day.short-day { background: #fff8e0; }
    .cal-stats { margin-bottom: 20px; display: flex; gap: 20px; flex-wrap: wrap; }
    .cal-stat {
        padding: 12px 20px;
        background: var(--accent-light);
        border-radius: var(--radius-sm);
        font-size: 14px;
    }
    .cal-stat strong { display: block; font-size: 22px; color: var(--accent); }

    /* Articles */
    .article-card {
        display: flex;
        gap: 20px;
        padding: 20px;
        background: var(--bg-card);
        border-radius: var(--radius-md);
        border: 1px solid var(--border-light);
        margin-bottom: 12px;
        transition: box-shadow var(--transition);
        content-visibility: auto;
        contain-intrinsic-size: auto 220px;
    }
    .article-card:hover { box-shadow: var(--shadow-md); }
    .article-card-img {
        width: 200px;
        height: 130px;
        object-fit: cover;
        border-radius: var(--radius-sm);
        flex-shrink: 0;
        background: var(--bg);
    }
    .article-card-body { flex: 1; }
    .article-card-title {
        font-size: 17px;
        font-weight: 600;
        margin-bottom: 6px;
        color: var(--text-primary);
    }
    .article-card-excerpt {
        font-size: 14px;
        color: var(--text-secondary);
        line-height: 1.5;
    }
    .article-card-meta {
        font-size: 12px;
        color: var(--text-muted);
        margin-top: 8px;
    }

    /* Top Companies */
    .alpha-nav {
        display: flex;
        gap: 4px;
        flex-wrap: wrap;
        margin-bottom: 20px;
    }
    .alpha-nav a {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        font-size: 14px;
        font-weight: 600;
        color: var(--text-secondary);
    }
    .alpha-nav a:hover, .alpha-nav a.active {
        background: var(--accent);
        color: #fff;
        border-color: var(--accent);
    }
    .company-list-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-light);
    }
    .company-list-item a { font-size: 14px; font-weight: 500; }
    .company-list-item .vac-count {
        font-size: 12px;
        color: var(--text-muted);
    }

    /* Admin */
    .admin-form { max-width: 800px; }
    .admin-form label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; margin-top: 14px; }
    .admin-form input[type="text"],
    .admin-form input[type="date"],
    .admin-form select,
    .admin-form textarea {
        width: 100%;
        padding: 10px 14px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        font-size: 14px;
        font-family: var(--font);
        outline: none;
    }
    .admin-form textarea { min-height: 300px; resize: vertical; }
    .admin-btn {
        margin-top: 16px;
        padding: 10px 24px;
        background: var(--accent);
        color: #fff;
        border: none;
        border-radius: var(--radius-sm);
        font-size: 14px;
        font-weight: 600;
        font-family: var(--font);
        cursor: pointer;
    }
    .admin-btn:hover { background: var(--accent-hover); }

    /* WYSIWYG toolbar */
    .wysiwyg-toolbar {
        display: flex;
        gap: 4px;
        flex-wrap: wrap;
        padding: 8px;
        background: var(--bg);
        border: 1px solid var(--border);
        border-bottom: none;
        border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    }
    .wysiwyg-toolbar button {
        padding: 4px 10px;
        background: var(--bg-white);
        border: 1px solid var(--border);
        border-radius: 4px;
        cursor: pointer;
        font-size: 13px;
        font-family: var(--font);
    }
    .wysiwyg-toolbar button:hover { background: var(--accent-light); }
    .wysiwyg-editor {
        border: 1px solid var(--border);
        border-radius: 0 0 var(--radius-sm) var(--radius-sm);
        min-height: 300px;
        padding: 14px;
        font-size: 14px;
        line-height: 1.6;
        outline: none;
    }
    .wysiwyg-editor img { max-width: 100%; height: auto; }

    /* ============================================================
       CAPTCHA MODAL
       ============================================================ */
    .captcha-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.6);
        z-index: 9999;
        align-items: center;
        justify-content: center;
    }
    .captcha-overlay.active { display: flex; }
    .captcha-modal {
        background: var(--bg-white);
        border-radius: var(--radius-lg);
        padding: 30px;
        max-width: 420px;
        width: 90%;
        box-shadow: var(--shadow-lg);
        text-align: center;
    }
    .captcha-modal h3 {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 6px;
    }
    .captcha-modal p {
        font-size: 14px;
        color: var(--text-secondary);
        margin-bottom: 16px;
    }
    .captcha-modal img {
        max-width: 100%;
        border-radius: var(--radius-sm);
        border: 1px solid var(--border);
        margin-bottom: 14px;
    }
    .captcha-modal input {
        width: 100%;
        height: 44px;
        padding: 0 14px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        font-size: 16px;
        font-family: var(--font);
        text-align: center;
        letter-spacing: 2px;
        outline: none;
        margin-bottom: 12px;
    }
    .captcha-modal input:focus { border-color: var(--accent); }
    .captcha-modal-btns {
        display: flex;
        gap: 8px;
    }
    .captcha-modal-btns button {
        flex: 1;
        height: 42px;
        border: none;
        border-radius: var(--radius-sm);
        font-size: 14px;
        font-weight: 600;
        font-family: var(--font);
        cursor: pointer;
        transition: background var(--transition);
    }
    .captcha-submit {
        background: var(--accent);
        color: #fff;
    }
    .captcha-submit:hover { background: var(--accent-hover); }
    .captcha-cancel {
        background: var(--bg);
        color: var(--text-secondary);
        border: 1px solid var(--border) !important;
    }
    .captcha-cancel:hover { background: var(--border-light); }
    .captcha-error {
        color: var(--red);
        font-size: 13px;
        margin-top: 8px;
        display: none;
    }

    /* ============================================================
       RESPONSIVE
       ============================================================ */
    @media (max-width: 768px) {
        /* Хедер: логотип слева, бургер справа, меню — выезжающая панель */
        .header-inner { gap: 10px; padding: 10px 16px; }
        .header-search { display: none; }           /* на мобиле шапку не перегружаем */
        .theme-toggle { margin-left: auto; }        /* прижимаем тему+бургер вправо */
        .nav-toggle { display: flex; }
        /* Меню — выпадающая панель под шапкой (без горизонтального оверфлоу) */
        .header-nav {
            position: absolute;
            top: 100%; left: 0; right: 0;
            background: var(--bg-white);
            display: grid;
            grid-template-columns: 1fr 1fr;   /* компактно: 2 колонки вместо длинного списка */
            gap: 0;
            border-top: 1px solid var(--border-light);
            box-shadow: 0 8px 24px rgba(0,0,0,.12);
            max-height: 0;
            overflow: hidden;
            transition: max-height .25s ease;
            z-index: 120;
        }
        .header-nav.open { max-height: 70vh; overflow-y: auto; }
        .header-nav a {
            font-size: 15px;
            padding: 12px 16px;
            border-bottom: 1px solid var(--border-light);
            width: 100%;
        }
        .header-nav a:nth-child(odd) { border-right: 1px solid var(--border-light); }
        .nav-backdrop.show {
            display: block;
            position: fixed; inset: 0;
            background: rgba(0,0,0,.35);
            z-index: 110;
        }
        /* Поиск — в столбик, крупные тач-цели */
        .search-section { padding: 18px 0; margin-bottom: 16px; }

        /* День М1: на страницах выдачи форма свёрнута в строку «повар · Москва».
           Раньше она занимала 356 px и первая вакансия была ниже первого экрана. */
        .search-section--compact { padding: 10px 0; margin-bottom: 10px; }
        .search-section--compact .ms-bar { display: flex; gap: 8px; }
        .search-section--compact.is-open .ms-bar { display: none; }
        .search-section--compact:not(.is-open) .search-main-row,
        .search-section--compact:not(.is-open) .filters-trigger { display: none; }
        .ms-edit {
            flex: 1; min-width: 0; min-height: 48px; display: flex; align-items: center; gap: 8px;
            padding: 0 14px; border: 0; border-radius: var(--radius-md); background: #fff; color: #1a1a2e;
            font-size: 16px; text-align: left; cursor: pointer;
        }
        .ms-q { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .ms-pen { flex: none; font-size: 13px; color: #0047d0; font-weight: 600; }
        .ms-filters {
            position: relative; flex: none; width: 48px; height: 48px; border: 0; border-radius: var(--radius-md);
            background: rgba(255,255,255,.16); color: #fff; font-size: 20px; cursor: pointer;
        }
        .ms-filters .ft-badge { position: absolute; top: -6px; right: -6px; box-shadow: 0 0 0 2px #0047d0; }
        /* День М2: над выдачей — только крошки, H1, строка «счётчик + сортировка»
           и активные фильтры одной строкой. Остальное — под выдачу или прочь. */
        .trust-strip:not(.trust-strip-full) { display: none; }   /* маркетинг, на главной остаётся */
        .xl-top { display: none; }
        .xl-bottom { display: block; margin: 18px 0 4px; }
        .page-h1 { font-size: 19px; line-height: 1.25; margin-bottom: 8px; }
        .results-header { flex-wrap: nowrap; margin-bottom: 10px; }
        .results-header .results-tools { display: none; }
        .results-count { min-width: 0; font-size: 14px; }
        .sort-select {
            display: block; flex: none; min-height: 40px; padding: 0 30px 0 12px; font-size: 14px; font-weight: 600;
            border: 1px solid var(--border); border-radius: 999px; background-color: var(--bg-card); color: var(--text-primary);
        }
        .active-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 10px; }
        .active-filters::-webkit-scrollbar { display: none; }
        .active-filters .af-label, .active-filters .af-share { display: none; }
        .af-chip, .af-clear { flex: none; }

        /* чипы — одной строкой с прокруткой вместо двух рядов */
        .search-section--compact .quick-chips {
            flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
            margin: 10px -16px 0; padding: 0 16px;   /* = отступ .search-form на мобиле, иначе горизонтальный скролл */
        }
        .search-section--compact .quick-chips::-webkit-scrollbar { display: none; }
        .search-section--compact .q-chip { flex: none; min-height: 40px; }
        .search-main-row { flex-direction: column; }
        .search-input { height: 50px; font-size: 16px; }        /* 16px = без авто-зума iOS */
        .search-btn { height: 50px; width: 100%; padding: 0 24px; }

        /* Фильтры как bottom-sheet (День 72) */
        .filters-trigger {
            display: inline-flex; align-items: center; justify-content: center; gap: 8px;
            width: 100%; min-height: 48px; margin-top: 10px; border-radius: var(--radius-md);
            border: 1px solid var(--border); background: var(--bg-card); color: var(--text-primary);
            font-size: 16px; font-weight: 600; cursor: pointer;
        }
        .ft-badge {
            background: var(--accent); color: #fff; border-radius: 999px; min-width: 22px; height: 22px;
            padding: 0 7px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
        }
        .filters-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 400; }
        .search-filters-row {
            display: flex; flex-direction: column; align-items: stretch; gap: 10px;
            position: fixed; left: 0; right: 0; bottom: 0; z-index: 410;
            background: var(--bg-white); border-radius: 18px 18px 0 0;
            max-height: 85vh; overflow-y: auto;
            padding: 0 16px 84px;  /* место снизу под фиксированную кнопку «Показать» */
            transform: translateY(100%); transition: transform .28s ease;
            box-shadow: 0 -8px 30px rgba(0,0,0,.18);
        }
        .search-filters-row.sheet-open { transform: translateY(0); }
        .sheet-head {
            display: flex; align-items: center; justify-content: space-between;
            position: sticky; top: 0; z-index: 1; background: var(--bg-white);
            padding: 15px 0 11px; margin: 0 0 4px; font-size: 18px; font-weight: 700;
            border-bottom: 1px solid var(--border-light);
        }
        .sheet-close { border: none; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; color: var(--text-secondary); padding: 4px 6px; }
        /* Кнопка подтверждения — всегда видна внизу листа (containing block = трансформируемый лист) */
        .sheet-foot {
            display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 2;
            background: var(--bg-white); padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
            border-top: 1px solid var(--border-light); box-shadow: 0 -4px 16px rgba(0,0,0,.08);
        }
        .sheet-apply {
            width: 100%; min-height: 52px; border: none; border-radius: var(--radius-md);
            background: var(--accent); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer;
        }
        .sheet-apply:active { background: var(--accent-hover); }
        .filter-select, .filter-input {
            width: 100%; min-width: 0; height: 48px; font-size: 16px;
        }
        /* В белом листе контролы должны быть тёмными на светлом (а не бело-на-синем) */
        .search-filters-row .filter-select,
        .search-filters-row .filter-input {
            background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border);
        }
        .search-filters-row .filter-select:hover,
        .search-filters-row .filter-input:hover { background: var(--bg-card); }
        .search-filters-row .filter-input::placeholder { color: var(--text-muted); }
        .search-filters-row .filter-toggle {
            background: transparent; color: var(--text-primary);
            border: 1px solid var(--border); min-height: 48px; width: 100%; font-size: 15px;
        }
        .search-filters-row .filter-reset {
            background: transparent; color: var(--text-secondary); border: 1px dashed var(--border);
        }
        .filter-toggle { min-height: 46px; font-size: 15px; }
        .filter-reset { height: 46px; width: 100%; font-size: 15px; }
        /* Раскладка контента */
        .results-wrapper { flex-direction: column; min-width: 0; }
        /* min-width:0 — чтобы горизонтальные скроллеры (чипы/панель) не растягивали
           колонку и не давали горизонтальную прокрутку страницы (День 74 QA) */
        .results-main { min-width: 0; max-width: 100%; }
        .results-header { min-width: 0; }
        .results-tools, .qf-chips, .active-filters { max-width: 100%; }
        .results-sidebar { width: 100%; position: static; }
        .footer-inner { flex-direction: column; gap: 20px; }
        .article-card { flex-direction: column; }
        .article-card-img { width: 100%; height: 180px; }
        /* Читаемость и тач */
        .container, .search-form { padding-left: 16px; padding-right: 16px; }
        .page-card { padding: 18px 16px; }
        .page-title { font-size: 21px; }
        .vacancy-card { padding: 16px; }
        .vacancy-title { font-size: 16px; }
        .btn-respond, .btn-like { min-height: 44px; }
        .btn-respond { display: inline-flex; align-items: center; }
        /* Таблицы не ломают вёрстку */
        .page-card table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    }
    @media (max-width: 480px) {
        .logo { font-size: 20px; }
        .search-section { padding: 14px 0; }
        .page-title { font-size: 20px; }
        .vacancy-meta { gap: 8px 12px; font-size: 12px; }
    }
    /* Печать / сохранение в PDF (День 80): чистая страница без хрома сайта */
    @media print {
        .header, .footer, .nav-backdrop, .to-top, .bug-fab, .bug-overlay,
        .vacancy-apply-sticky, .vac-share, .vac-tools, .vac-qr, .qv-overlay,
        .breadcrumbs, .subscribe-box, .results-sidebar, .search-section,
        .header-search, .vac-block-all { display: none !important; }
        body { background: #fff !important; color: #000 !important; }
        .container { max-width: 100% !important; }
        .page-card { box-shadow: none !important; border: none !important; padding: 0 !important; }
        a { color: #000 !important; text-decoration: none !important; }
        .vac-salary-hero, .vacancy-salary, .mini-vac-salary { color: #000 !important; }
        .vac-estimate { background: #fff !important; border: 1px solid #ccc !important; }

        /* День 113: печать мини-резюме. На время печати JS кладёт копию превью
           в #rsPrintDoc и вешает body.rs-printing — так в PDF уходит только
           резюме и ровно одна страница (скрытые через visibility блоки
           сохраняли бы высоту и давали вторую пустую страницу). */
        body.rs-printing > *:not(#rsPrintDoc) { display: none !important; }
        #rsPrintDoc {
            display: block !important; font-size: 12pt; line-height: 1.5; color: #000;
        }
        #rsPrintDoc .rs-p-name { font-size: 22pt; font-weight: 700; }
        #rsPrintDoc .rs-p-job { font-size: 14pt; font-weight: 600; color: #000; margin-top: 2pt; }
        #rsPrintDoc .rs-p-meta { color: #333; margin-top: 2pt; }
        #rsPrintDoc .rs-p-block { border-top: 1px solid #bbb; padding-top: 7pt; margin-top: 9pt; }
        #rsPrintDoc .rs-p-block b { display: block; color: #555; font-size: 9pt; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 2pt; }
    }
    #rsPrintDoc { display: none; }
    @page { margin: 18mm 16mm; }
