/* rabotagram.ru — стиль городских страниц (генерируется из rabotagram-tools/city.css) */
:root {
  --ivory: #FAF7F2;
  --paper: #FFFFFF;
  --teal: #1C6F66;
  --teal-dark: #14524B;
  --teal-wash: #E6F0EE;
  --warm: #E8935A;
  --verified: #3C9D6B;
  --amber-bg: #FBF2DC;
  --amber-ink: #8A6A22;
  --ink: #262421;
  --ink-2: #6B6660;
  --line: #E4DDD2;

  --display: "Unbounded", "Golos Text", system-ui, sans-serif;
  --text: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
}
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s4); }
@media (min-width: 720px) { .wrap { padding: 0 var(--s6); } }

/* ---------- Шапка ---------- */
.top { border-bottom: 1px solid var(--line); background: var(--ivory); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: var(--s4); }
.logo { font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.logo span { color: var(--teal); }
.nav { display: flex; gap: var(--s5); font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--teal); }
@media (max-width: 560px) { .nav a.hide-sm { display: none; } }

/* ---------- Hero ---------- */
.crumbs { font-size: 14px; color: var(--ink-2); padding-top: var(--s5); }
.crumbs a { color: var(--ink-2); }
.hero { padding: var(--s5) 0 var(--s6); }
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(44px, 9vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 var(--s5);
}
.hero h1 .city { display: block; color: var(--teal); }
.lede { font-size: 19px; max-width: 34em; margin: 0; color: var(--ink); }
.lede b { font-weight: 600; }
.updated { margin-top: var(--s3); font-size: 14px; color: var(--ink-2); }
.updated::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--verified); margin-right: var(--s2); vertical-align: 1px; }

/* ---------- Районная линия: главный запоминающийся элемент ---------- */
.line-block { padding: 0 0 var(--s6); }
.line-block h2 { font-size: 15px; font-weight: 600; margin: 0 0 var(--s4); color: var(--ink-2); }
.line-scroll { overflow-x: auto; margin: 0 calc(-1 * var(--s4)); padding: 0 var(--s4) var(--s2); scrollbar-width: thin; }
.cat-line {
  position: relative;
  display: grid;
  list-style: none; margin: 0; padding: 0;
}
.cat-line::before {
  content: ""; position: absolute; left: 52px; right: 52px; top: 17px;
  height: 6px; border-radius: 3px; background: var(--teal);
}
.cat-line li { position: relative; text-align: center; }
.stop {
  appearance: none; border: 0; background: none; cursor: pointer;
  font: inherit; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: var(--s2);
  width: 100%; padding: 0 var(--s1) var(--s2);
  border-radius: 10px;
}
.stop .dot {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ivory); border: 6px solid var(--teal);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--teal-dark);
  transition: background .15s, color .15s, transform .15s;
}
.stop .name { font-size: 15px; font-weight: 600; line-height: 1.2; }
.stop .count { font-size: 13px; color: var(--ink-2); }
.stop:hover .dot { transform: scale(1.08); }
.stop[aria-pressed="true"] .dot { background: var(--teal); color: #fff; }
.stop[aria-pressed="true"] .name { color: var(--teal-dark); }
.stop.all .dot { border-style: solid; }

/* ---------- Основная сетка ---------- */
.main-grid { display: grid; gap: var(--s7); padding-bottom: var(--s8); }
@media (min-width: 960px) { .main-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s7); } }

.list-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.list-head h2 { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; margin: 0; }
.list-head .shown { font-size: 15px; color: var(--ink-2); }

.kinds { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s4); padding: 0; list-style: none; }
.kinds a {
  display: inline-block; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper);
  color: var(--ink); text-decoration: none; font-size: 15px;
}
.kinds a:hover { border-color: var(--teal); color: var(--teal-dark); }
.kinds a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Вакансии — строки списка, не сетка карточек */
.jobs { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.job {
  display: grid; gap: var(--s2) var(--s5);
  grid-template-columns: 1fr;
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 700px) { .job { grid-template-columns: minmax(0, 1fr) auto; } }
.job[hidden], .bank-head[hidden] { display: none; }
.bank-head { margin: 56px 0 12px; }
.bank-head h2 { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; margin: 0 0 8px; }
.bank-head p { margin: 0; font-size: 15px; color: var(--ink-2); max-width: 46em; }
.jobs-bank { border-top-width: 1px; }
.wrap > h2#local-title { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 24px; }
.section h2.big:not(:first-child) { margin-top: 56px; }
.job h3 { font-size: 20px; font-weight: 600; line-height: 1.3; margin: 0; }
.job .org { font-size: 15px; color: var(--ink-2); margin-top: 2px; }
.job .org b { color: var(--ink); font-weight: 600; }
.job .new { color: var(--warm); font-weight: 600; }
.facts { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); margin: var(--s3) 0 0; padding: 0; list-style: none; font-size: 15px; }
.facts li { color: var(--ink); }
.facts .k { color: var(--ink-2); }
.note { margin: var(--s3) 0 0; font-size: 15px; color: var(--ink-2); max-width: 46em; }
.verified { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--verified); font-weight: 600; margin-top: var(--s3); }
.verified svg { flex: none; }

.job-side { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s3); align-items: center; margin-top: var(--s2); }
.job-side .where { flex-basis: 100%; }
@media (min-width: 700px) { .job-side { flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; margin-top: 0; gap: var(--s3); } .job-side .where { flex-basis: auto; } }
@media (min-width: 700px) { .job-side { align-items: flex-end; text-align: right; } }
.pay { font-size: 22px; font-weight: 700; white-space: nowrap; letter-spacing: -0.01em; }
.pay small { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 18px; border-radius: 10px;
  background: var(--teal); color: #fff; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 0; cursor: pointer; font-family: inherit;
}
.btn:hover { background: var(--teal-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--teal-dark); box-shadow: inset 0 0 0 1.5px var(--teal); }
.btn.ghost:hover { background: var(--teal-wash); }
.where { font-size: 12px; color: var(--ink-2); }

.more { margin-top: var(--s5); display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.empty { padding: var(--s6) 0; color: var(--ink-2); }

/* ---------- Боковая колонка ---------- */
aside { display: flex; flex-direction: column; gap: var(--s5); }
@media (min-width: 960px) { aside .sticky { position: sticky; top: var(--s5); display: flex; flex-direction: column; gap: var(--s5); } }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: var(--s5); }
.panel h2 { font-size: 18px; font-weight: 700; margin: 0 0 var(--s3); line-height: 1.3; }
.panel p { margin: 0 0 var(--s3); font-size: 15px; }
.panel p:last-child { margin-bottom: 0; }
.checks { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.checks li { padding-left: 26px; position: relative; margin-bottom: var(--s2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--verified) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.bank { background: var(--teal-wash); border-color: transparent; }

/* ---------- Честно предупреждаем ---------- */
.warn { background: var(--amber-bg); border-radius: 14px; padding: var(--s5); color: var(--ink); }
.warn h2 { color: var(--amber-ink); font-size: 18px; font-weight: 700; margin: 0 0 var(--s3); }
.warn ul { margin: 0; padding-left: 1.1em; font-size: 15px; }
.warn li { margin-bottom: var(--s2); }

/* ---------- Текстовые секции ---------- */
.section { padding: var(--s7) 0; border-top: 1px solid var(--line); }
.section > .wrap > h2, .section h2.big {
  font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 var(--s5);
}
.prose { max-width: 40em; }
.prose p { margin: 0 0 var(--s4); }
.areas { display: grid; gap: var(--s5); margin-top: var(--s6); }
@media (min-width: 760px) { .areas { grid-template-columns: repeat(3, 1fr); } }
.area h3 { font-size: 17px; font-weight: 700; margin: 0 0 var(--s2); }
.area p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* Зарплатная таблица */
.pay-table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: var(--s5); }
.pay-table th, .pay-table td { text-align: left; padding: var(--s3) var(--s3) var(--s3) 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.pay-table th { font-weight: 600; color: var(--ink-2); font-size: 14px; }
.pay-table td.num { white-space: nowrap; font-weight: 600; }
.table-scroll { overflow-x: auto; }
.source { font-size: 13px; color: var(--ink-2); margin-top: var(--s3); }

/* FAQ */
.faq { max-width: 46em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: var(--s4) 40px var(--s4) 0; position: relative;
  font-size: 18px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 var(--s4); max-width: 40em; }

/* Города */
.cities { columns: 4 160px; column-gap: var(--s5); list-style: none; padding: 0; margin: 0; font-size: 15px; }
.cities li { margin-bottom: var(--s2); break-inside: avoid; }

/* Подвал */
footer { background: var(--ink); color: #D8D2C8; padding: var(--s7) 0; font-size: 14px; }
footer a { color: #fff; }
footer .row { display: flex; flex-wrap: wrap; gap: var(--s5); justify-content: space-between; }
footer p { margin: 0 0 var(--s2); max-width: 40em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Главная ---------- */
.city-jump { margin-top: var(--s5); max-width: 560px; }
.city-jump label { display: block; font-size: 15px; font-weight: 600; margin-bottom: var(--s2); }
.city-jump-row, .search-bar { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); align-items: center; }
.city-jump input, .search-bar input[type=search], .search-bar select {
  font: inherit; font-size: 16px; min-height: 48px; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink);
}
.city-jump input { flex: 1 1 240px; }
.search-bar input[type=search] { flex: 1 1 260px; }
.city-jump input:focus, .search-bar input:focus, .search-bar select:focus { outline: none; border-color: var(--teal); }
.city-jump .btn, .search-bar .btn { min-height: 48px; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--teal); }
#search-meta { display: block; margin: var(--s4) 0 var(--s2); }
.search-results:empty { border-top: 0; }
#search-more { margin-top: var(--s5); }
.count-list { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.panel .count-list li { display: flex; justify-content: space-between; gap: var(--s3); padding: 6px 0; border-bottom: 1px solid var(--line); }
.panel .count-list li:last-child { border-bottom: 0; }
.count-list span { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.org-link { color: inherit; text-decoration: none; }
.org-link:hover b { color: var(--teal); text-decoration: underline; }
