/* workrussia.ru — блоки страницы города (engine/modules/wr/city_plus.php) */

.wr-cp-label {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--blue-600, #007bb0);
}
.wr-cp-note { font-size: 14px; margin: 4px 0 16px; }
.wr-cp-block { padding: 24px 28px; }
.wr-cp-block h2 { margin: 0 0 6px; }
.wr-cp-h3 { font-size: 17px; margin: 28px 0 12px; }

/* быстрый подбор */
.wr-cp-picks { padding: 16px 20px; }
.wr-cp-picks__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.wr-cp-picks .wr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wr-cp-pick { font-size: 14px; padding: 8px 14px; }
.wr-cp-pick b { margin-left: 4px; color: var(--blue-600, #007bb0); font-variant-numeric: tabular-nums; }
.wr-cp-fresh { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #127a3d; }
.wr-cp-fresh i { width: 8px; height: 8px; border-radius: 50%; background: #1fae5b; box-shadow: 0 0 0 4px rgba(31, 174, 91, .16); }
.wr-cp-fresh--muted { color: var(--muted, #6a7393); font-weight: 500; }
@media (prefers-reduced-motion: no-preference) {
  .wr-cp-fresh i { animation: wrcp-pulse 2.4s ease-in-out infinite; }
  @keyframes wrcp-pulse { 50% { box-shadow: 0 0 0 7px rgba(31, 174, 91, .06); } }
}

/* призыв в середине списка */
.wr-cp-mid {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px;
  border: 1px dashed rgba(0,123,176, .35); text-decoration: none; color: inherit;
}
.wr-cp-mid > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.wr-cp-mid .btn { flex: none; }

/* зарплаты по профессиям */
.wr-cp-table { display: grid; border-top: 1px solid var(--line, #e6eaf2); }
.wr-cp-tr {
  display: grid; grid-template-columns: minmax(0, 1fr) 90px 120px 150px; gap: 12px; align-items: center;
  padding: 11px 0; border-bottom: 1px solid var(--line, #e6eaf2); font-size: 15px;
}
.wr-cp-tr--head { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #6a7393); padding: 8px 0; }
.wr-cp-tr > :not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.wr-cp-block a.wr-cp-prof { font-weight: 600; color: var(--ink, #0a1438); text-decoration: none; overflow-wrap: anywhere; }
.wr-cp-block a.wr-cp-prof:hover { color: var(--blue-600, #007bb0); text-decoration: underline; }
.wr-cp-med { font-weight: 700; }

/* распределение зарплат */
.wr-cp-bars { display: grid; gap: 8px; }
.wr-cp-bars a, .wr-cp-bar__row {
  display: grid; grid-template-columns: 110px minmax(0, 1fr) 110px; gap: 12px; align-items: center;
  color: inherit; text-decoration: none; border-radius: 10px; padding: 4px 6px; margin: 0 -6px;
}
.wr-cp-block .wr-cp-bars a, .wr-cp-block .wr-cp-bars a * { text-decoration: none; }
.wr-cp-bars a:hover { background: var(--blue-50, #e6f6fd); }
.wr-cp-bars a:hover .wr-cp-bar__label { color: var(--blue-600, #007bb0); }
.wr-cp-bar__label { font-size: 14px; font-weight: 600; }
.wr-cp-bar { height: 10px; border-radius: 999px; background: var(--line, #e6eaf2); overflow: hidden; }
.wr-cp-bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue-500, #007bb0), var(--blue-600, #007bb0)); }
.wr-cp-bar__n { font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }

/* работодатели */
.wr-cp-emps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; margin-top: 12px; }
.wr-cp-emps li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line, #e6eaf2); font-size: 15px; }
.wr-cp-emps__i { color: var(--muted, #6a7393); font-variant-numeric: tabular-nums; }
.wr-cp-emps__name { font-weight: 600; overflow-wrap: anywhere; }

/* заявка */
.wr-cp-lead {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; padding: 28px;
  border: 1px solid rgba(0,123,176, .18);
  background: radial-gradient(120% 140% at 0% 0%, rgba(0,123,176, .09), transparent 55%), var(--surface, #fff);
}
.wr-cp-lead h2 { margin: 6px 0 10px; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
.wr-cp-lead__text p { margin: 0 0 16px; }
.wr-cp-sub { display: inline-flex; }
.wr-cp-lead__form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.wr-cp-field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2, #2a335a); }
.wr-cp-field em { font-style: normal; font-weight: 400; }
.wr-cp-field--wide, .wr-cp-consent, .wr-cp-lead__form .btn, .wr-cp-lead__msg { grid-column: 1 / -1; }
.wr-cp-field input {
  width: 100%; box-sizing: border-box; height: 46px; padding: 0 14px; font: inherit; font-size: 15px; font-weight: 500;
  border: 1px solid var(--line, #e6eaf2); border-radius: 12px; background: #fff; color: var(--ink, #0a1438);
  transition: border-color .15s, box-shadow .15s;
}
.wr-cp-field input:focus { outline: none; border-color: var(--blue-500, #007bb0); box-shadow: 0 0 0 4px rgba(0,123,176, .14); }
.wr-cp-field input[aria-invalid="true"] { border-color: #d33a3a; box-shadow: 0 0 0 4px rgba(211, 58, 58, .12); }
.wr-cp-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted, #6a7393); line-height: 1.4; }
.wr-cp-consent input { margin-top: 2px; width: 16px; height: 16px; flex: none; accent-color: var(--blue-600, #007bb0); }
.wr-cp-consent a { color: inherit; text-decoration: underline; }
.wr-cp-lead__form .btn[disabled] { opacity: .65; cursor: progress; }
.wr-cp-lead__msg { min-height: 1.4em; margin: 0; font-size: 14px; font-weight: 600; }
.wr-cp-lead__msg.is-ok { color: #127a3d; }
.wr-cp-lead__msg.is-err { color: #c62f2f; }
.wr-cp-lead.is-done .wr-cp-field, .wr-cp-lead.is-done .wr-cp-consent, .wr-cp-lead.is-done .btn-lg { display: none; }
.wr-cp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 900px) {
  .wr-cp-lead { grid-template-columns: 1fr; gap: 18px; padding: 22px 18px; }
  .wr-cp-emps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wr-cp-block { padding: 20px 16px; }
  .wr-cp-lead__form { grid-template-columns: 1fr; }
  .wr-cp-tr { grid-template-columns: auto auto minmax(0, 1fr); gap: 2px 14px; }
  .wr-cp-tr--head { display: none; }
  .wr-cp-tr > .wr-cp-prof { grid-column: 1 / -1; }
  .wr-cp-tr > :not(:first-child) { text-align: left; font-size: 13px; }
  .wr-cp-tr > :not(:first-child)::before { content: attr(data-label) ": "; color: var(--muted, #6a7393); font-weight: 400; }
  .wr-cp-bars a, .wr-cp-bar__row { grid-template-columns: 92px minmax(0, 1fr) 76px; gap: 8px; }
  .wr-cp-mid { flex-direction: column; align-items: flex-start; }
}
