/* =====================================================================
 * Каталог онлайн-заработка — стили. Мобильный first, без внешних шрифтов.
 * Бренд: поменяйте --accent* ниже (и в тёмной теме) — остальное подстроится.
 * ===================================================================== */
:root {
  /* бренд (владелец выберет позже) */
  --accent: #1f6feb;
  --accent-hover: #1858c4;
  --accent-contrast: #ffffff;
  --accent-soft: #e8f0fe;
  --accent-text: #1a5fd0;

  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --text: #15181d;
  --text-2: #444c57;
  --text-3: #5d6571;
  --border: #dde2e8;
  --border-strong: #c3cad4;
  --good: #1a7f37;
  --good-soft: #e5f4e9;
  --warn: #b25e00;
  --reality-bg: #fff7e6;
  --reality-border: #f2c265;
  --bad-soft: #fdecec;
  --focus: #1f6feb;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .07);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .18);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --wrap: 1200px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #4c8dff;
    --accent-hover: #72a6ff;
    --accent-contrast: #0a1428;
    --accent-soft: #15233b;
    --accent-text: #86b4ff;
    --bg: #0e1116;
    --surface: #161b22;
    --surface-2: #1c222b;
    --text: #e8edf3;
    --text-2: #b8c1cc;
    --text-3: #939eab;
    --border: #2a323c;
    --border-strong: #3b4552;
    --good: #56c776;
    --good-soft: #13291b;
    --warn: #f0b35a;
    --reality-bg: #2a2111;
    --reality-border: #7a5c1c;
    --bad-soft: #2d1719;
    --focus: #86b4ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  font: 16px/1.5 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
p { margin: 0; }
a { color: var(--accent-text); }
a:hover { color: var(--accent-hover); }
img, svg { flex-shrink: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-contrast); padding: 10px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 8px; color: var(--accent-contrast); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--text-3); }

/* иконки из спрайта */
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.i--sm { width: 16px; height: 16px; }
.i--lg { width: 28px; height: 28px; }
.i--accent { color: var(--accent-text); }
.i--good { color: var(--good); }
.i--warn { color: var(--warn); }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 18px; border-radius: var(--radius-sm);
  border: 1px solid transparent; font-weight: 600; font-size: 15px; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--accent); color: var(--accent-contrast); }
.btn--primary:hover { background: var(--accent-hover); color: var(--accent-contrast); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-text); }
.btn--sm { min-height: 36px; padding: 6px 12px; font-size: 14px; font-weight: 500; }
.btn--lg { min-height: 52px; padding: 14px 26px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--wide { min-width: 240px; }
.btn:disabled { opacity: .6; cursor: default; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 0; background: transparent; border-radius: 50%; cursor: pointer; color: var(--text-2);
}
.icon-btn:hover { background: var(--surface-2); }

.count-pill {
  display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--accent); color: var(--accent-contrast); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center;
}

/* ---------- шапка ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.topbar__in { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none; color: var(--text); font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.brand:hover { color: var(--text); }
.brand__logo { width: 32px; height: 32px; color: var(--accent-contrast); }
.brand__bg { fill: var(--accent); }
.topnav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.topnav__link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px;
  color: var(--text-2); text-decoration: none; font-size: 15px; border-radius: var(--radius-sm);
}
.topnav__link:hover { color: var(--accent-text); background: var(--surface-2); }
.search--compact { flex: 1; max-width: 520px; }

.demo-banner { background: #fff3cd; color: #5c4400; border-bottom: 1px solid #f0d58a; font-size: 14px; padding: 10px 0; }
@media (prefers-color-scheme: dark) { .demo-banner { background: #3a2e0c; color: #f5dc98; border-color: #6b5518; } }

/* ---------- герой + поиск ---------- */
.hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: 24px 0 16px; }
.hero__title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.hero__sub { margin-top: 8px; color: var(--text-2); max-width: 720px; }
.search {
  position: relative; display: flex; gap: 8px; margin-top: 18px;
}
.search__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search__input {
  flex: 1; min-width: 0; height: 52px; padding: 0 14px 0 44px;
  border: 2px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface);
  font-size: 17px;
}
.search--compact .search__input { height: 42px; font-size: 15px; border-width: 1px; }
.search--compact .search__btn { min-height: 42px; }
.search__input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.search__input::placeholder { color: var(--text-3); }
.search__btn { min-height: 52px; padding: 0 22px; }

.chips { margin-top: 14px; }
.chips__list {
  list-style: none; margin: 0 -16px; padding: 2px 16px 6px; display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 12px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
  color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap;
}
.chip .i { width: 18px; height: 18px; color: var(--accent-text); }
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.chip[aria-current="true"] .i { color: inherit; }
.chip__count { color: var(--text-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.chip[aria-current="true"] .chip__count { color: inherit; opacity: .85; }

/* ---------- раскладка ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 20px; padding-bottom: 40px; }
.results { min-width: 0; outline: none; }

/* фильтры: мобильная шторка по умолчанию */
.filters {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  max-height: 88vh; display: flex; flex-direction: column;
  background: var(--surface); border-radius: 18px 18px 0 0; box-shadow: var(--shadow-lg);
  transform: translateY(105%); visibility: hidden; transition: transform .25s ease, visibility .25s;
}
.filters.is-open { transform: none; visibility: visible; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .45); }
.filters__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--border); }
.filters__title { font-size: 18px; }
.filters__form { overflow-y: auto; padding: 16px; display: grid; gap: 18px; }
.filters__foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }

.toggle-card {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px;
  border: 2px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; background: var(--surface);
}
.toggle-card input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-card small { display: block; color: var(--text-3); font-size: 13px; }
.toggle-card__box {
  display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px;
  border: 2px solid var(--border-strong); border-radius: 6px; color: transparent;
}
.toggle-card__box .i { width: 16px; height: 16px; stroke-width: 2.6; }
.toggle-card:has(input:checked) { border-color: var(--good); background: var(--good-soft); }
.toggle-card input:checked + .toggle-card__box { background: var(--good); border-color: var(--good); color: #fff; }
.toggle-card:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

.fgroup { border: 0; margin: 0; padding: 0; display: grid; gap: 2px; }
.fgroup legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.fgroup > div { display: grid; gap: 2px; }
.opt {
  display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 2px 6px; margin: 0 -6px;
  border-radius: 6px; cursor: pointer; font-size: 15px;
}
.opt:hover { background: var(--surface-2); }
.opt input[type="radio"], .opt input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex-shrink: 0; }
.opt__count { margin-left: auto; color: var(--text-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.opt--input { cursor: default; flex-wrap: wrap; }
.opt--input:hover { background: none; }
.opt--input span { color: var(--text-2); font-size: 14px; }
.opt--input input {
  flex: 1; min-width: 100px; height: 38px; padding: 0 10px;
  border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface);
}
.fhint { font-size: 13px; color: var(--text-3); margin-top: 4px; }

/* ---------- заголовок результатов ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-title { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.section-title--lg { font-size: 24px; }
.link-more { font-size: 14px; white-space: nowrap; }

.featured { margin-bottom: 28px; }
.featured__list {
  list-style: none; margin: 0 -16px; padding: 2px 16px 8px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 80%); gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.featured__list > li { scroll-snap-align: start; }

.results__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.results__title { font-size: 22px; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.results__count { color: var(--text-3); font-size: 14px; margin-top: 2px; }
.results__tools { display: flex; gap: 8px; align-items: center; }
.sort select {
  min-height: 44px; padding: 0 34px 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); font-size: 15px; cursor: pointer;
}
.active-filters { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.afilter {
  display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 4px 10px;
  background: var(--accent-soft); color: var(--accent-text); border: 0; border-radius: 999px; font-size: 14px; cursor: pointer;
}
.afilter--reset { background: transparent; text-decoration: underline; }

/* ---------- карточки ---------- */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.vcard { padding: 18px 16px; transition: border-color .15s, box-shadow .15s; }
.vcard:hover { border-color: var(--border-strong); box-shadow: 0 4px 14px rgba(16, 24, 40, .08); }
.vcard__top { display: flex; align-items: flex-start; gap: 8px; }
.vcard__title { font-size: 19px; font-weight: 700; flex: 1; overflow-wrap: anywhere; }
.vcard__title a { color: var(--accent-text); text-decoration: none; }
.vcard__title a:hover { text-decoration: underline; }
.vcard__income { margin-top: 6px; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.vcard__pay { display: block; font-size: 14px; font-weight: 500; color: var(--text-3); }
@media (min-width: 600px) { .vcard__pay { display: inline; } .vcard__pay::before { content: " · "; } }
.vcard__company { margin-top: 4px; color: var(--text-2); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vcard__summary { margin-top: 10px; color: var(--text-2); font-size: 15px; }
.vcard__foot { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.vcard__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.fav-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin: -8px -8px 0 0;
  border: 0; background: transparent; border-radius: 50%; cursor: pointer; color: var(--text-3);
}
.fav-btn:hover { background: var(--surface-2); color: #d49a00; }
.fav-btn .i { width: 24px; height: 24px; }
.fav-btn[aria-pressed="true"] { color: #e0a100; }
.fav-btn[aria-pressed="true"] .i { fill: currentColor; }
.fav-btn--label { display: inline-flex; width: auto; height: auto; margin: 0; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); }
.fav-btn--label[aria-pressed="true"] { color: var(--text); }
.fav-btn--label[aria-pressed="true"] .i { color: #e0a100; }
.fav-btn--label .i { width: 20px; height: 20px; }

.tags { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 3px 10px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.tag--good { background: var(--good-soft); border-color: transparent; color: var(--good); font-weight: 600; }
.tag--muted { background: transparent; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.badge--own { background: var(--accent-soft); color: var(--accent-text); }
.verified { display: inline-flex; align-items: center; gap: 5px; color: var(--good); font-size: 13px; font-weight: 600; }
.verified .i { width: 16px; height: 16px; }
.ad-mark { margin-top: 12px; font-size: 12px; color: var(--text-3); overflow-wrap: anywhere; }
.ad-mark--inline { margin: 0; }

/* мини-карточки «Проверено нами» */
.mcard { display: flex; flex-direction: column; height: 100%; }
.mcard__link { display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 8px; text-decoration: none; color: var(--text); flex: 1; }
.mcard__link:hover .mcard__title { text-decoration: underline; }
.mcard__cat { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); }
.mcard__cat .i { width: 16px; height: 16px; color: var(--accent-text); }
.mcard__title { font-weight: 700; color: var(--accent-text); font-size: 16px; }
.mcard__income { font-weight: 700; font-variant-numeric: tabular-nums; }
.mcard__company { font-size: 14px; color: var(--text-2); }
.mcard__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 16px 14px; }

.empty { padding: 28px 20px; text-align: center; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.empty h3, .empty h1 { font-size: 19px; }
.empty p { color: var(--text-2); margin: 8px 0 16px; }
.empty--page { border-style: solid; padding: 48px 20px; }

.skeleton { min-height: 190px; position: relative; overflow: hidden; }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--surface-2), transparent);
  animation: shimmer 1.2s infinite; transform: translateX(-100%);
}
.skeleton--tall { min-height: 520px; }
.skeleton--side { min-height: 300px; }
@keyframes shimmer { to { transform: translateX(100%); } }

.more { display: flex; justify-content: center; margin-top: 18px; }
.pager ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.pager__link {
  display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px;
  border-radius: var(--radius-sm); text-decoration: none; color: var(--text); border: 1px solid transparent;
}
.pager__link:hover { border-color: var(--border-strong); }
.pager__link[aria-current="page"] { background: var(--text); color: var(--surface); }
.pager__gap { display: inline-grid; place-items: center; min-width: 24px; color: var(--text-3); }

/* ---------- доверие / гайд ---------- */
.trust { background: var(--surface); border-top: 1px solid var(--border); padding: 36px 0; }
.trust__grid { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.trust__item { padding: 18px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.trust__item h3 { font-size: 17px; margin: 10px 0 6px; }
.trust__item p { color: var(--text-2); font-size: 15px; }
.free-box {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 22px; padding: 20px;
  border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--border);
}
.free-box p { margin-top: 8px; color: var(--text-2); }

.guide { padding: 36px 0 44px; }
.guide__lead { margin-top: 8px; color: var(--text-2); }
.guide__cols { display: grid; gap: 14px; margin-top: 18px; }
.guide__col { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.guide__col h3 { font-size: 18px; margin-bottom: 10px; }
.guide__col ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--text-2); }
.guide__col--bad { border-top: 4px solid #d93a3a; }
.guide__col--good { border-top: 4px solid var(--good); }

.footer { border-top: 1px solid var(--border); background: var(--surface); padding: 24px 0 32px; color: var(--text-2); font-size: 14px; }
.footer__in { display: grid; gap: 8px; }
.footer__small { color: var(--text-3); }
body.has-apply-bar .footer { padding-bottom: 96px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90;
  background: var(--text); color: var(--surface); padding: 12px 18px; border-radius: 10px;
  box-shadow: var(--shadow-lg); font-size: 15px; max-width: calc(100% - 32px);
}
body.has-apply-bar .toast { bottom: 90px; }

/* ---------- страница вакансии ---------- */
.vac { padding-top: 16px; padding-bottom: 40px; outline: none; }
.crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 14px; color: var(--text-3); }
.crumbs li + li::before { content: "›"; margin-right: 4px; }
.crumbs a { color: var(--text-2); }
.crumbs [aria-current] { color: var(--text-3); }
.vac__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.vac__main { display: grid; gap: 14px; min-width: 0; }
.vac__head { padding: 22px 18px; }
.vac__cat { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 14px; }
.vac__cat .i { width: 18px; height: 18px; color: var(--accent-text); }
.vac__title { margin-top: 8px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.vac__income { margin-top: 10px; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.vac__pay { color: var(--text-3); font-size: 14px; }
.vac__company { margin-top: 6px; color: var(--text-2); font-size: 17px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vac__summary { margin-top: 14px; color: var(--text-2); }
.vac__cta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.block { padding: 20px 18px; }
.block__title { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.prose { color: var(--text); }
.prose p + p, .prose p + ul, .prose ul + p, .prose p + ol, .prose ol + p { margin-top: 10px; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; gap: 10px !important; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; min-height: 28px; padding-top: 2px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: 14px;
}
.block--reality { background: var(--reality-bg); border: 2px solid var(--reality-border); }
.block--reality .block__title .i { color: var(--warn); }
.reality__note { margin-top: 12px; font-size: 13px; color: var(--text-2); }
.checklist { list-style: none; padding: 0 !important; }
.checklist li { display: flex; gap: 8px; align-items: flex-start; }
.checklist .i { margin-top: 2px; }
.verify-date { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.block--ad { box-shadow: none; background: var(--surface-2); font-size: 14px; }
.block--ad p + p { margin-top: 6px; }

.side { padding: 20px 18px; display: grid; gap: 12px; }
.side__income { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.side__pay { color: var(--text-3); margin-top: -8px; font-size: 14px; }
.side__hint { text-align: center; color: var(--text-3); font-size: 13px; margin-top: -6px; }
.side .verified { justify-content: center; }
.share { border-top: 1px solid var(--border); padding-top: 12px; }
.share__title { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.share__row { display: flex; flex-wrap: wrap; gap: 6px; }
.ad-mark--side { margin-top: 0; }
.similar { margin-top: 32px; }
.similar .section-title { margin-bottom: 12px; }
.list--grid { grid-template-columns: minmax(0, 1fr); }

.apply-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
.apply-bar__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: var(--wrap); margin: 0 auto; }
.apply-bar__income { font-weight: 700; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- адаптив ---------- */
@media (max-width: 959px) {
  .hide-md { display: none !important; }
}
@media (max-width: 599px) {
  .hide-sm { display: none !important; }
  .results__tools { width: 100%; }
  .results__tools > * { flex: 1; }
  .sort select { width: 100%; }
  .topnav__fav span:not(.count-pill) { display: none; }
  .search__btn { padding: 0 16px; }
  .vcard__actions { width: 100%; }
  .vcard__actions .btn { flex: 1; }
}
@media (min-width: 600px) {
  .hero { padding: 36px 0 20px; }
  .hero__title { font-size: 34px; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .guide__cols { grid-template-columns: repeat(2, 1fr); }
  .featured__list { grid-auto-columns: minmax(260px, 45%); }
  .list--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vac__title { font-size: 32px; }
  .vcard { padding: 20px 22px; }
}
@media (min-width: 960px) {
  .only-mobile { display: none !important; }
  .layout { grid-template-columns: 272px minmax(0, 1fr); gap: 28px; padding-top: 24px; }
  .filters {
    position: sticky; top: 76px; z-index: auto; align-self: start;
    max-height: calc(100vh - 92px); transform: none; visibility: visible; transition: none;
    border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  }
  .filters__close, .filters__foot { display: none; }
  .drawer-backdrop { display: none !important; }
  .chips__list { flex-wrap: wrap; overflow: visible; margin: 0; padding: 2px 0 6px; }
  .featured__list { margin: 0; padding: 0; grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .trust__grid { grid-template-columns: repeat(4, 1fr); }
  .vac__grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
  .vac__side { position: sticky; top: 76px; }
  .apply-bar { display: none !important; }
  body.has-apply-bar .footer { padding-bottom: 32px; }
  body.has-apply-bar .toast { bottom: 24px; }
  .vac__head, .block { padding: 26px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}


/* 29.09: доверие фактами, риски, жалоба */
.i--muted { color: var(--text-3); }
.badge--proof { background: var(--good-soft); color: var(--good); }
.prose .facts { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.facts__item { display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; }
.facts__item .i { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.facts__item--no, .facts__item--muted { color: var(--text-3); }
.facts__note { font-size: 13px; margin: 4px 0 0; }
.block--risk { border-color: var(--reality-border); background: var(--reality-bg); }
.block--complain { background: var(--surface-2); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent-text); font: inherit; text-decoration: underline; cursor: pointer; }
.complain { display: grid; gap: 12px; margin-top: 10px; }
.complain fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.complain legend { font-weight: 700; margin-bottom: 4px; }
.complain__opt { display: flex; gap: 8px; align-items: flex-start; }
.complain__text { display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }
.complain textarea { width: 100%; font: inherit; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); }
.complain__done { display: flex; gap: 8px; align-items: center; color: var(--good); font-weight: 600; }


/* ---------- 29.09: ночное небо в шапке (владелец: «облачко вместо квадрата,
   луна реальная, звёзды сияющие белые или жёлтые, небо тёмное») ---------- */
:root { --night-0: #03040b; --night-1: #070a1a; --night-2: #0d1430; --night-text: #f4f6ff; --night-text-2: rgba(226, 232, 255, .78); --night-gold: #e9d9a6; }
.brand__logo { width: 46px; height: 33px; }
.topbar .brand { font-family: Onest, var(--font); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
@media (min-width: 720px) { .topbar .brand { font-size: 22px; } .brand__logo { width: 52px; height: 37px; } }
.topbar {
  background: rgba(3, 4, 11, .92);
  -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.topbar .brand, .topbar .brand:hover { color: var(--night-text); }
.topbar .topnav__link { color: var(--night-text-2); }
.topbar .topnav__link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.hero {
  position: relative; overflow: hidden; border-bottom: 0; isolation: isolate;
  background: radial-gradient(120% 90% at 78% 0%, var(--night-2) 0%, var(--night-1) 48%, var(--night-0) 100%);
}
.hero::after { /* виньетка + плавный переход в страницу */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(90% 80% at 45% 35%, transparent 55%, rgba(0, 0, 0, .45) 100%);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero__title { color: var(--night-text); padding-right: 64px; font-family: 'Playfair Display', Georgia, serif; font-weight: 500; letter-spacing: -.005em; line-height: 1.1; }
.hero__sub { font-family: Onest, var(--font); }
.hero__sub { color: var(--night-text-2); }
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sky__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky__stars { position: absolute; inset: 0; }
.sky__stars--b { /* несколько ярких звёзд мерцают поверх неподвижного неба */
  background-image:
    radial-gradient(2px 2px at 12% 22%, #fffdf2, transparent 60%), radial-gradient(1.5px 1.5px at 27% 64%, #ffe2a0, transparent 60%),
    radial-gradient(2px 2px at 46% 12%, #fffdf2, transparent 60%), radial-gradient(1.5px 1.5px at 58% 78%, #ffe2a0, transparent 60%),
    radial-gradient(2px 2px at 71% 40%, #fffdf2, transparent 60%), radial-gradient(1.5px 1.5px at 88% 70%, #ffe2a0, transparent 60%),
    radial-gradient(1.5px 1.5px at 35% 36%, #fffdf2, transparent 60%), radial-gradient(2px 2px at 94% 18%, #ffe2a0, transparent 60%);
  animation: skyTwinkle 3.8s ease-in-out infinite alternate;
}
@keyframes skyTwinkle { from { opacity: .2; } to { opacity: 1; } }
.sky__moon-wrap { position: absolute; top: -8px; right: max(-6px, calc((100% - var(--wrap)) / 2 - 6px)); width: 84px; height: 84px; }
.sky__moon { width: 100%; height: 100%; display: block; overflow: visible; transform: rotate(-24deg); }
@media (min-width: 720px) {
  .sky__moon-wrap { width: 128px; height: 128px; top: -12px; }
  .hero__title { padding-right: 140px; font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) { .sky__stars--b { animation: none; opacity: .7; } }

/* 29.09: удалённые вакансии с «Работа России» */
.rjobs { padding: 28px 0 8px; }
.rjobs__note { color: var(--text-2); margin: 6px 0 14px; max-width: 760px; font-size: 15px; }
.rjobs__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .rjobs__list { grid-template-columns: 1fr 1fr; } }
.rjob { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rjob__title { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.rjob__salary { font-weight: 700; color: var(--text); }
.rjob__meta { color: var(--text-3); font-size: 13.5px; overflow-wrap: anywhere; }
.rjob__link { margin-top: 6px; align-self: flex-start; font-size: 14px; font-weight: 600; }
.rjobs__more { margin-top: 12px; }

/* 29.09: иллюстрации в стиле Кодекса (assets/art, STYLE.md) */
.art-how { display: none; width: 100%; height: auto; border-radius: var(--radius); margin: 14px 0 20px; }
@media (min-width: 900px) { .art-how { display: block; } }
.art-safety { display: block; width: 100%; max-width: 520px; height: auto; border-radius: var(--radius); margin: 0 auto 18px; }
.empty__art { display: block; width: 200px; max-width: 70%; height: auto; margin: 0 auto 10px; border-radius: 18px; }

/* 29.09: служебные страницы (безопасность, реклама, соглашение, политика) в стиле сайта */
.doc-page main { padding: 24px 16px 56px; }
.doc-page article { max-width: 760px; margin: 0 auto; font-family: Onest, var(--font); font-size: 17px; line-height: 1.6; color: var(--text); }
.doc-page article h1 { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; font-size: 34px; line-height: 1.15; margin: 8px 0 12px; letter-spacing: -.005em; }
.doc-page article h2 { font-size: 21px; margin: 28px 0 8px; }
.doc-page article p, .doc-page article ul { margin: 0 0 12px; }
.doc-page article ul { padding-left: 22px; display: grid; gap: 6px; }
.doc-page article a { color: var(--accent-text); }
@media (min-width: 720px) { .doc-page article h1 { font-size: 44px; } }
