/* cyrillic */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/font_00.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/font_01.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/font_02.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/font_03.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/font_04.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/font_05.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/font_06.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/font_07.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/font_08.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/font_09.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/font_10.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/font_11.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/font_12.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/font_13.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Specification.ru Design System v3.0
 * Основа: Bootstrap 5.3.3 (локально в /assets/bootstrap.min.css) + тема HeadHunter (Magritte benchmark)
 * - Фирменный красный круг логотипа (#D6001C) + акцентный синий действия (#0070FF / hover #005CE0)
 * - Чистый белый холст (#FFFFFF), карточки с легким серым контуром (#E3E7EE), активные чипсы-фильтры (#18191B)
 * - Локальные шрифты Golos Text + IBM Plex Mono (tabular-nums)
 */

:root,
[data-bs-theme="light"] {
  --font-sans: "Golos Text", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --bs-font-sans-serif: var(--font-sans);
  --bs-body-font-family: var(--font-sans);
  --bs-body-font-size: 16.5px;
  --bs-body-line-height: 1.58;
  --bs-primary: #005ce0;
  --bs-primary-rgb: 0, 92, 224;
  --bs-link-color: #005ce0;
  --bs-link-hover-color: #0044aa;

  --brand-red: #d6001c;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f3f5f8;
  --surface-hover: #e9edf3;
  --border: #e1e5ec;
  --border-strong: #c8cfd9;

  --text: #18191b;
  --text-secondary: #434a56;
  --text-muted: #575f6d;

  --accent: #005ce0;
  --accent-hover: #0044aa;
  --accent-soft: #eaf3ff;
  --accent-text: #ffffff;
  --ink-pill: #18191b;
  --ink-pill-text: #ffffff;

  --ok-bg: #e8f7ee;
  --ok-border: #bce5cc;
  --ok-text: #157347;
  --warn-bg: #fff5e5;
  --warn-border: #f2d29b;
  --warn-text: #8c4d00;
  --danger-bg: #fdecec;
  --danger-border: #f4bcbc;
  --danger-text: #b42318;

  --shadow-sm: 0 1px 2px rgba(24, 25, 27, 0.04);
  --shadow-card: 0 2px 12px rgba(24, 25, 27, 0.05);
  --shadow-md: 0 10px 28px rgba(24, 25, 27, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --container: 1200px;
}

[data-theme="dark"],
[data-bs-theme="dark"] {
  --bg: #121418;
  --surface: #1a1d24;
  --surface-alt: #232732;
  --surface-hover: #2b303d;
  --border: #2e3442;
  --border-strong: #434b5e;

  --text: #f1f3f7;
  --text-secondary: #bac1ce;
  --text-muted: #8b94a5;

  --accent: #3d92ff;
  --accent-hover: #64a8ff;
  --accent-soft: #1a2d47;
  --accent-text: #0c121a;
  --ink-pill: #f1f3f7;
  --ink-pill-text: #121418;

  --ok-bg: #142d21;
  --ok-border: #22543d;
  --ok-text: #75e0a7;
  --warn-bg: #322411;
  --warn-border: #5f441f;
  --warn-text: #f7c778;
  --danger-bg: #371a1c;
  --danger-border: #692e33;
  --danger-text: #f79d9d;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.32);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.5);
}


/* HeadHunter (Magritte) UI Theme Layer поверх Bootstrap 5.3.3 */
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.58;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
img, svg { max-width: 100%; height: auto; }
.ui-ico, .verified-ico { flex-shrink: 0; vertical-align: -0.15em; }
.partner-mark { flex-shrink: 0; display: block; border-radius: 10px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Гербы городов */
.coat-img {
  display: inline-block;
  object-fit: contain;
  flex-shrink: 0;
  vertical-align: middle;
}
.coat-xs { width: 18px; height: 18px; }
.coat-sm { width: 22px; height: 22px; }
.coat-md { width: 34px; height: 34px; }
.coat-lg { width: 48px; height: 48px; }

.sp-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* Header в стиле HeadHunter Magritte */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
}
.header-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-link { display: inline-flex; align-items: center; color: var(--text); flex-shrink: 0; }
.brand-link:hover { text-decoration: none; }

/* Сегментный переключатель «Ищу работу» / «Ищу сотрудника» как на hh.ru */
.hh-role-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  gap: 2px;
  flex-shrink: 0;
}
.hh-role-switch a {
  padding: 5px 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: background-color 0.14s, color 0.14s;
}
.hh-role-switch a:hover { color: var(--text); text-decoration: none; }
.hh-role-switch a.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(24, 25, 27, 0.1);
}

.nav-main { display: flex; align-items: center; gap: 12px; }
.nav-main a {
  color: var(--text-secondary);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  padding: 6px 2px;
}
.nav-main a:hover, .nav-main a.active { color: var(--accent); text-decoration: none; }

.header-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.icon-btn:hover { background: var(--surface-alt); border-color: var(--border-strong); }
.icon-btn.icon-only { width: 38px; padding: 0; }
.mobile-menu-btn { display: none; }

/* Кастомные выпадающие списки (.hh-select) */
.hh-select { position: relative; width: 100%; }
.hh-select.hh-select-header { width: auto; }
.hh-select-trigger {
  width: 100%;
  min-height: 44px;
  padding: 7px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.14s, box-shadow 0.14s, background-color 0.14s;
}
.hh-select-header .hh-select-trigger {
  min-height: 38px;
  padding: 5px 11px;
  border-radius: 10px;
  border-color: var(--border);
  background: var(--surface-alt);
  font-size: 14px;
  max-width: 195px;
}
.hh-select-trigger:hover { border-color: var(--accent); background: var(--surface); }
.hh-select.open .hh-select-trigger {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 112, 255, 0.16);
}
.hh-select-val {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hh-chev { color: var(--text-muted); transition: transform 0.16s ease; flex-shrink: 0; }
.hh-select.open .hh-chev { transform: rotate(180deg); color: var(--accent); }

.hh-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: 310px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 6px;
  z-index: 120;
  display: none;
}
.hh-select-header .hh-select-menu { right: 0; left: auto; min-width: 264px; }
.hh-select.open .hh-select-menu { display: block; }
.hh-select-search {
  width: 100%;
  height: 36px;
  padding: 0 11px;
  margin-bottom: 6px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.hh-select-search:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.hh-select-options {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 280px;
  overflow-y: auto;
  display: grid;
  gap: 2px;
}
.hh-select-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 14.5px;
  color: var(--text);
  cursor: pointer;
}
.hh-select-opt:hover { background: var(--surface-alt); }
.hh-select-opt.selected { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.hh-select-opt-left { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.hh-select-check { font-size: 14px; font-weight: 700; color: var(--accent); opacity: 0; }
.hh-select-opt.selected .hh-select-check { opacity: 1; }

/* Breadcrumbs + Utility strip */
.top-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0 10px;
}
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--text-muted); margin: 0; }
.breadcrumbs a { color: var(--text-secondary); }
.print-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  font-size: 13.5px;
  font-family: inherit;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
}
.print-btn:hover { background: var(--surface-alt); color: var(--text); }

/* Recent history strip */
.recent-bar {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  margin: 0 0 16px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--text-secondary);
}
.recent-bar.visible { display: flex; }
.recent-label { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; }
.recent-links { display: flex; flex-wrap: wrap; gap: 6px; }
.recent-links a {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
}
.recent-links a:hover { border-color: var(--accent); text-decoration: none; }
.recent-clear {
  margin-left: auto; border: none; background: transparent; color: var(--text-muted);
  font-size: 13px; font-family: inherit; cursor: pointer; text-decoration: underline;
}

/* Main Layout */
.page-shell { padding: 4px 0 64px; }
.layout-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.layout-grid > * { min-width: 0; }
.layout-grid.with-sidebar { grid-template-columns: minmax(0, 1fr) 310px; }
.sidebar { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }

/* Editorial Hero в стиле HH.ru */
.hero-band { padding: 4px 0 24px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.h1-row { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.h1-coat-wrap {
  width: 56px; height: 56px; border-radius: 14px; background: var(--surface-alt);
  border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center;
  padding: 6px; flex-shrink: 0;
}
h1 {
  font-size: 38px; line-height: 1.15; font-weight: 700; margin: 0 0 12px;
  color: var(--text); letter-spacing: -0.025em;
}
.h1-row h1 { margin: 0; }
h2 {
  font-size: 25px; line-height: 1.25; font-weight: 700; margin: 32px 0 14px;
  color: var(--text); letter-spacing: -0.015em;
}
.h2-with-icon { display: flex; align-items: center; gap: 9px; }
.h2-with-icon .ui-ico { color: var(--accent); }
h3 { font-size: 19px; line-height: 1.32; font-weight: 600; margin: 0 0 8px; color: var(--text); }
.lead { font-size: 17.5px; line-height: 1.56; color: var(--text-secondary); margin: 0 0 18px; max-width: 70ch; }

/* 4-column Quick-Facts Strip */
.passport-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface-alt); border: 1px solid var(--border); border-radius: 14px;
  margin: 0 0 18px; overflow: hidden;
}
.passport-cell { padding: 13px 15px; border-right: 1px solid var(--border); }
.passport-cell:last-child { border-right: none; }
.passport-label {
  display: flex; align-items: center; gap: 6px; font-size: 12.5px;
  color: var(--text-muted); margin-bottom: 4px;
}
.passport-label .ui-ico { color: var(--accent); }
.passport-value { font-size: 14.5px; font-weight: 600; color: var(--text); line-height: 1.35; }

/* HH Search/Filter Bar */
.quiz-bar {
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}
.quiz-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
}
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 5px; }
.field input[type="number"], .field input[type="text"], .field input[type="search"] {
  width: 100%; height: 44px; padding: 0 13px; border-radius: 12px;
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); font-size: 15px; font-family: inherit;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 112, 255, 0.16); }

/* HH Primary & Secondary Buttons */
.btn-primary-hh {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 44px; padding: 0 20px; border-radius: 12px; border: none;
  background: var(--accent); color: var(--accent-text);
  font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer; white-space: nowrap;
  transition: background-color 0.14s;
}
.btn-primary-hh:hover { background: var(--accent-hover); color: var(--accent-text); text-decoration: none; }
.btn-soft-hh {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 18px; border-radius: 12px; border: none;
  background: var(--accent-soft); color: var(--accent);
  font-size: 14.5px; font-weight: 600; font-family: inherit; cursor: pointer; white-space: nowrap;
}
.btn-soft-hh:hover { background: var(--surface-hover); color: var(--accent-hover); text-decoration: none; }
.btn-secondary-hh {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); font-size: 14.5px; font-weight: 600; font-family: inherit; cursor: pointer;
}
.btn-secondary-hh:hover { background: var(--surface-alt); text-decoration: none; }

/* HH Filter Pills Row (#18191B активные пилюли как на hh.ru) */
.hh-pill-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 8px; }
.hh-filter-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-alt);
  color: var(--text); font-size: 14px; font-weight: 500; font-family: inherit; cursor: pointer;
  transition: background-color 0.14s, color 0.14s, border-color 0.14s;
}
.hh-filter-pill:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.hh-filter-pill.active {
  background: var(--ink-pill); color: var(--ink-pill-text); border-color: var(--ink-pill);
}

/* Page Section Jump Pills */
.toc-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.toc-pill {
  display: inline-flex; align-items: center; padding: 6px 13px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-secondary);
  font-size: 13.5px; font-weight: 500;
}
.toc-pill:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.quiz-status { margin-top: 10px; font-size: 15.5px; font-weight: 500; color: var(--text-secondary); }

/* HH-Style Vacancy / Offer Cards */
.offers-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 14px 0 28px; }
.offer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.16s, border-color 0.16s;
}
.offer-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.offer-card.hidden-by-filter { display: none; }
.offer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.offer-top-left { min-width: 0; flex: 1; }
.offer-title-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 6px; }
.offer-card h3 { font-size: 20px; font-weight: 700; margin: 0; color: var(--text); }
.offer-payout-line {
  font-size: 16px; font-weight: 600; color: var(--text);
  margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.hh-tag {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 8px;
  font-size: 13px; font-weight: 500; background: var(--surface-alt); color: var(--text-secondary);
}
.hh-tag-green { background: var(--ok-bg); color: var(--ok-text); font-weight: 600; }
.hh-tag-amber { background: var(--warn-bg); color: var(--warn-text); font-weight: 600; }
.offer-summary { font-size: 15px; color: var(--text-secondary); margin: 0 0 12px; max-width: 68ch; }
.specs-inline {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  padding: 10px 0 14px; border-top: 1px solid var(--border);
  font-size: 14px; color: var(--text-secondary);
}
.specs-inline strong { color: var(--text); font-weight: 600; }
.offer-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.erid-note { margin-left: auto; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); }

/* 3-Step Start Strip */
.start-steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  margin: 16px 0 28px;
}
.start-step-card {
  background: var(--surface-alt); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 18px;
}
.start-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 999px;
  background: var(--accent); color: var(--accent-text);
  font-size: 14px; font-weight: 700; margin-bottom: 8px;
}
.start-step-card h3 { font-size: 16.5px; margin: 0 0 5px; }
.start-step-card p { font-size: 14.5px; color: var(--text-secondary); margin: 0; }

/* Tables */
.table-wrap {
  overflow-x: auto; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 12px 16px; margin: 14px 0 28px;
}
table.sp-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; }
table.sp-table th, table.sp-table td { text-align: left; padding: 12px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.sp-table th { font-weight: 600; color: var(--text-secondary); font-size: 13.5px; border-bottom: 2px solid var(--border); }
table.sp-table tbody tr:hover { background: var(--surface-alt); }
table.sp-table tr:last-child td { border-bottom: none; }
.td-partner { display: flex; align-items: center; gap: 10px; }

/* Directory Grid for /goroda/ с гербами городов */
.cities-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 16px 0 28px; }
.city-dir-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px; box-shadow: var(--shadow-sm);
}
.city-dir-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.city-dir-head h3 { margin: 0; font-size: 18.5px; }
.city-dir-note { font-size: 14px; color: var(--text-secondary); margin: 0 0 12px; }
.city-dir-links { display: flex; flex-wrap: wrap; gap: 8px; }
.city-dir-links a {
  padding: 6px 12px; border-radius: 9px; background: var(--surface-alt);
  border: 1px solid var(--border); font-size: 13.5px; font-weight: 500; color: var(--accent);
}
.city-dir-links a:hover { background: var(--accent-soft); border-color: var(--accent); text-decoration: none; }

/* Interactive Tools */
.tool-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px 26px; margin: 18px 0 28px; box-shadow: var(--shadow-card);
}
.calc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.calc-result {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface-alt); border-radius: 12px; border: 1px solid var(--border); overflow: hidden;
}
.metric-box { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-right: 1px solid var(--border); }
.metric-box:last-child { border-right: none; }
.metric-label { font-size: 13px; color: var(--text-muted); }
.metric-val { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 20px; font-weight: 700; color: var(--text); }
.metric-val.accent { color: var(--accent); }

/* Vahta Checklist */
.check-list-interactive { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 9px; }
.check-list-interactive li label {
  display: flex; align-items: flex-start; gap: 11px; padding: 11px 14px;
  border-radius: 10px; background: var(--surface-alt); border: 1px solid var(--border);
  cursor: pointer; font-size: 15.5px;
}
.check-list-interactive input[type="checkbox"] { width: 19px; height: 19px; margin-top: 2px; flex-shrink: 0; accent-color: var(--accent); }
.risk-verdict { padding: 13px 16px; border-radius: 10px; font-weight: 600; font-size: 15.5px; }

/* Editorial Content Sections */
.editorial-block { padding: 22px 0; border-bottom: 1px solid var(--border); }
.editorial-block h2 { margin: 0 0 10px; }
.editorial-block p { margin: 0; color: var(--text-secondary); max-width: 72ch; }

.section-surface {
  background: var(--surface-alt); border: 1px solid var(--border); border-radius: 16px;
  padding: 22px 24px; margin: 24px 0;
}
.section-surface h2 { margin-top: 0; }
.step-list { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 9px; }
.step-list li { color: var(--text-secondary); }

/* Pros & Cons (полная рамка, без side-tab) */
.pros-cons-wrap { margin: 26px 0; }
.pros-cons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
.pc-box { padding: 18px 20px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.pc-box h3 { display: flex; align-items: center; gap: 8px; font-size: 17.5px; margin: 0 0 11px; }
.pc-box ul { margin: 0; padding-left: 20px; display: grid; gap: 7px; font-size: 15.5px; color: var(--text-secondary); }
.pc-pros { border-color: var(--ok-border); background: var(--ok-bg); }
.pc-pros h3 { color: var(--ok-text); }
.pc-cons { border-color: var(--warn-border); background: var(--warn-bg); }
.pc-cons h3 { color: var(--warn-text); }

/* FAQ */
.faq-section { margin: 26px 0; }
.faq-list { display: grid; gap: 10px; margin: 14px 0 0; }
details.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 15px 18px; }
details.faq-item summary {
  cursor: pointer; font-weight: 600; font-size: 16.5px; color: var(--text);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
details.faq-item summary::after { content: "+"; font-size: 20px; color: var(--accent); font-weight: 400; }
details.faq-item[open] summary::after { content: "-"; }
details.faq-item p { margin: 12px 0 0; color: var(--text-secondary); font-size: 16px; }

/* Sidebar Widgets */
.widget { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.widget h3 { display: flex; align-items: center; gap: 8px; font-size: 16.5px; margin: 0 0 12px; }
.widget h3 .ui-ico { color: var(--accent); }
.widget-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14.5px; }
.widget-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--text-secondary); }
.widget-links a:hover { color: var(--accent); }
.facet-list { display: grid; gap: 9px; margin: 0 0 12px; }
.facet-item { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--text); cursor: pointer; }
.facet-item input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }
.facet-status { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 10px; font-variant-numeric: tabular-nums; }

/* Related & Editorial Meta */
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 24px; }
.related-tile {
  display: block; padding: 15px 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; color: var(--text); font-weight: 600; font-size: 15px;
}
.related-tile:hover { border-color: var(--accent); background: var(--surface-alt); text-decoration: none; }
.related-tile span { display: block; font-size: 13px; color: var(--text-muted); font-weight: 400; margin-top: 4px; }
.editorial-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  margin: 22px 0 6px; padding: 12px 0; border-top: 1px solid var(--border);
  font-size: 14px; color: var(--text-muted);
}

.partner-logo-img { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; flex-shrink: 0; border: 1px solid var(--border); background: #FFFFFF; padding: 2px; }
.partner-logo-img.partner-logo-sm { width: 26px; height: 26px; border-radius: 6px; padding: 1px; }

/* Wave 4B: Expert deep-dives, Next Steps, Doc Builder, E-E-A-T byline */
.expert-section { margin: 28px 0; padding-top: 8px; border-top: 1px solid var(--border); }
.expert-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.ec-col { padding: 18px 20px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.ec-before { background: var(--surface-alt); }
.ec-after { background: var(--surface); border-color: var(--accent); }
.ec-col h3 { margin: 0 0 8px; font-size: 17px; }
.ec-col p { margin: 0; font-size: 15px; color: var(--text-secondary); line-height: 1.55; }
.expert-recipe { margin-top: 16px; padding: 18px 20px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-alt); }
.expert-recipe-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.expert-recipe-head h3 { margin: 0; font-size: 17px; }
.expert-code {
  margin: 0; padding: 14px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border);
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13.5px; line-height: 1.55;
  white-space: pre-wrap; word-break: break-word; overflow-x: auto; max-width: 100%; color: var(--text);
}
.tool-desc { margin: 0 0 12px; color: var(--text-muted); font-size: 16px; line-height: 1.5; }
.tool-note { margin: 12px 0 0; color: var(--text-muted); font-size: 15px; line-height: 1.45; }
.widget-links a { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.expert-copy-status { margin: 8px 0 0; font-size: 14px; font-weight: 600; color: var(--ok-text); min-height: 20px; }
.doc-preview-area {
  width: 100%; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--surface-alt); color: var(--text); font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13.5px; line-height: 1.5; resize: vertical;
}
.next-steps-wrap { margin: 28px 0; }
.next-steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.next-step-card {
  display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.next-step-card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }
.next-step-idx { font-size: 12.5px; font-weight: 700; color: var(--accent); }
.next-step-sub { font-size: 13.5px; color: var(--text-muted); line-height: 1.4; }
.expert-byline {
  margin-top: 24px; padding: 16px 18px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface-alt); font-size: 14px; color: var(--text-secondary);
}
.expert-byline strong { display: block; margin-bottom: 4px; color: var(--text); }
.expert-byline p { margin: 0; line-height: 1.5; }
.field select {
  width: 100%; height: 44px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: 15px;
}

/* Wave 5: Range sliders, scenario presets, cross-vertical block & transparent taxi notice */
.field-slider { display: flex; flex-direction: column; gap: 6px; }
.hh-range {
  width: 100%; height: 6px; margin-top: 2px; cursor: pointer;
  accent-color: var(--accent); background: transparent;
}
.calc-presets {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px;
}
.calc-preset-btn {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-secondary); font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: background-color 0.14s, color 0.14s, border-color 0.14s;
}
.calc-preset-btn:hover { border-color: var(--text); color: var(--text); }
.calc-preset-btn.active { background: #18191B; color: #FFFFFF; border-color: #18191B; }
[data-bs-theme="dark"] .calc-preset-btn.active { background: #FFFFFF; color: #18191B; border-color: #FFFFFF; }
.cross-vert-wrap { margin: 28px 0 22px; }
.cross-vert-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.cross-vert-card {
  display: flex; flex-direction: column; gap: 4px; padding: 15px 16px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface-alt); color: var(--text); text-decoration: none;
}
.cross-vert-card:hover { border-color: var(--accent); background: var(--surface); text-decoration: none; }
.cross-vert-card strong { font-size: 15.5px; color: var(--text); }
.cross-vert-card span { font-size: 13.5px; color: var(--text-muted); line-height: 1.45; }
.taxi-notice {
  margin: 0 0 18px; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface-alt);
  font-size: 14.5px; color: var(--text-secondary); line-height: 1.5;
}
.taxi-notice strong { color: var(--text); }

/* Wave 6: Regional labor-law 2026 passport, contract switcher & macro-region neighbors */
.reg-law-card, .contract-switch-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px 22px; margin: 22px 0; box-shadow: var(--shadow-sm);
}
.reg-law-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px;
}
.reg-law-cell {
  padding: 13px 15px; border-radius: 12px; background: var(--surface-alt); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
}
.reg-law-cell span { font-size: 13px; color: var(--text-muted); }
.reg-law-cell strong { font-size: 15px; color: var(--text); line-height: 1.38; }
.cs-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cs-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-tab {
  min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--surface-alt); color: var(--text); font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer;
}
.cs-tab.active { background: var(--ink-pill); color: var(--ink-pill-text); border-color: var(--ink-pill); }
.cs-panel p { margin: 0; font-size: 15.5px; color: var(--text-secondary); line-height: 1.56; }
.cs-panel strong { color: var(--text); }
.neighbor-cities-wrap { margin: 24px 0 18px; }
.neighbor-cities-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.neighbor-city-pill {
  min-height: 44px; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--border); color: var(--text); font-size: 14.5px; font-weight: 500;
}
.neighbor-city-pill:hover { border-color: var(--accent); background: var(--surface-alt); text-decoration: none; }

/* Footer */
.site-footer { background: var(--surface-alt); border-top: 1px solid var(--border); padding: 38px 0 30px; margin-top: 42px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-bottom: 24px; }
.footer-col h3 { font-size: 15.5px; margin: 0 0 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14.5px; }
.footer-col a { color: var(--text-secondary); }
.footer-disclaimer { padding-top: 18px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--text-muted); line-height: 1.55; }

/* Overlay dialogs (hidden by default so mobile crawlers do not treat as interstitials) */
.sp-dialog-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.55);
  display: none; align-items: flex-start; justify-content: center; padding: 72px 16px 24px; z-index: 150;
}
.sp-dialog-overlay.open { display: flex; }
.sp-dialog-box {
  width: 100%; max-width: 640px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px; box-shadow: var(--shadow-md); max-height: 82vh; overflow-y: auto;
}
.search-results { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.search-results a { display: block; padding: 10px 12px; border-radius: 10px; background: var(--surface-alt); color: var(--text); }
.search-results a:hover { background: var(--accent-soft); text-decoration: none; }

/* Responsive */
@media (max-width: 1120px) {
  .layout-grid.with-sidebar { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
  .nav-main, .hh-role-switch { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .quiz-grid, .calc-grid, .calc-result, .passport-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .passport-cell:nth-child(2n), .metric-box:nth-child(2n) { border-right: none; }
  .passport-cell:nth-child(-n+2), .metric-box:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .footer-grid, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 32px; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; }
  .sp-container { padding: 0 14px; }
  .section-surface, .tool-card, .offer-card { padding: 18px 16px; }
  .pros-cons, .quiz-grid, .calc-grid, .calc-result, .related-grid, .footer-grid, .passport-strip, .cities-directory, .start-steps, .expert-compare, .next-steps-grid, .cross-vert-grid, .reg-law-grid { grid-template-columns: 1fr; }
  .passport-cell, .metric-box { border-right: none; border-bottom: 1px solid var(--border); }
  .passport-cell:last-child, .metric-box:last-child { border-bottom: none; }
  .hh-select-header { display: none; }
  .brand-link svg { width: 144px; height: auto; }
  .icon-btn { padding: 0 11px; font-size: 14px; min-height: 44px; }
  .icon-btn.icon-only { width: 44px; height: 44px; padding: 0; }
  .toc-pill, .hh-filter-pill, .calc-preset-btn, .city-dir-links a, .recent-links a { min-height: 44px; display: inline-flex; align-items: center; }
  .tool-note { font-size: 16px; }
  .header-controls { gap: 6px; }
  .erid-note { margin-left: 0; }
}
.mobile-drawer {
  display: none; background: var(--surface); border-bottom: 1px solid var(--border); padding: 14px 20px 18px;
}
.mobile-drawer.open { display: grid; gap: 10px; }
.mobile-drawer a { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; color: var(--text); padding: 4px 0; }

@media print {
  .site-header, .sidebar, .site-footer, .modal-backdrop-sp, .recent-bar, .print-btn, .quiz-bar, .hh-pill-bar, .toc-pills { display: none !important; }
  body { background: #fff; color: #111; font-size: 12pt; }
  .section-surface, .tool-card, .offer-card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}
