/* ============================================================
   PODBOR KADROV — page-specific styles.
   Built on the shared tokens from styles.css and the shared
   layout helpers from vedenie-ucheta.css (.vu-hero, .vu-section,
   .vu-head, .usef-grid, .takeon-grid, .vu-stats-band, etc.).
   ============================================================ */

/* ---- grade color scale (shared by grade cards + price table) ---- */
.pk-grade-chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 52px; height: 36px; padding: 0 10px;
  border-radius: 10px;
  font-size: 17px; font-weight: 700; letter-spacing: 0.02em;
  color: #fff; background: var(--navy-700);
  box-shadow: inset 0 0 0 1px rgba(16, 83, 150, 0.10);
}
.pk-grade-chip--sm { min-width: 40px; height: 28px; font-size: 13px; border-radius: 8px; }
/* tonal navy ramp — light = junior, dark = senior (reads as a rising scale) */
[data-grade="g1"] .pk-grade-chip { background: #E6F1FB; color: #0C447C; }
[data-grade="g2"] .pk-grade-chip { background: #C7DEF4; color: #0C447C; }
[data-grade="g3"] .pk-grade-chip { background: #9CC4E9; color: #06294D; }
[data-grade="g4"] .pk-grade-chip { background: #5E97CE; color: #fff; }
[data-grade="g5"] .pk-grade-chip { background: #2E6FB0; color: #fff; }
[data-grade="g6"] .pk-grade-chip { background: #105396; color: #fff; }
[data-grade="g7"] .pk-grade-chip { background: #06294D; color: #fff; }

/* ============================================================
   TAKEON — карточки «Направления подбора»
   (стили были потеряны при выносе из inline-блока — восстановлены)
   ============================================================ */
.takeon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.takeon-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.takeon-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px -18px rgba(4, 44, 83, 0.35);
}
.takeon-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--navy-700);
  margin-bottom: 12px;
}
.takeon-card h3 {
  font-size: 21px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 20px;
}
.takeon-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.takeon-card li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.takeon-card li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--navy-500);
}
@media (max-width: 880px) {
  .takeon-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   HERO — specialist photo on the right
   ============================================================ */
.vu-hero-right { display: flex; align-items: center; justify-content: flex-end; }
.vu-hero-right .pk-hero-photo { max-width: 420px; }
@media (max-width: 1000px) {
  .vu-hero-right { justify-content: center; margin-top: 8px; }
}
.pk-hero-photo {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(4, 44, 83, 0.45);
  background: var(--bg-soft);
}
.pk-hero-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.pk-hero-photo-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 2px;
  padding: 40px 24px 20px;
  background: linear-gradient(to top, rgba(6, 16, 31, 0.82), rgba(6, 16, 31, 0));
  color: #fff;
}
.pk-hero-photo-name { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.pk-hero-photo-role { font-size: 13px; color: rgba(255, 255, 255, 0.72); }

/* ============================================================
   EXPERT — social proof block (photo + credentials)
   ============================================================ */
.pk-expert-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 56px;
  align-items: start;
}
.pk-expert-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 0; }
.pk-expert-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  overflow: hidden;
  background: var(--bg-card);
}
.pk-expert-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}
.pk-expert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  padding: 22px 24px 24px;
}
.pk-expert-name { font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.pk-expert-role {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--navy-700); margin-top: 4px;
}
.pk-expert-quote {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 18px; line-height: 1.45; font-style: italic;
  color: var(--ink-soft); margin: 16px 0 0;
}
.pk-expert-main .eyebrow { color: var(--navy-700); margin-bottom: 16px; }
.pk-expert-main h2 { margin: 0 0 28px; }
.pk-cred-block + .pk-cred-block { margin-top: 28px; }
.pk-cred-block h3 {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute); margin: 0 0 14px;
}
.pk-cred-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pk-cred-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; line-height: 1.5; color: var(--ink-soft);
}
.pk-cred-list li svg {
  flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px;
  color: var(--navy-700);
}
.pk-cred-list--accent li svg { color: #4CAF50; }

/* ============================================================
   PROCESS — how recruitment happens (vertical timeline)
   ============================================================ */
/* dark band — sets this section apart from the neutral sections around it */
.pk-flow-section { background: var(--bg-dark); }
.pk-flow-section .eyebrow { color: var(--navy-300); }
.pk-flow-section h2 { color: var(--ink-on-dark); }
.pk-flow-section .lede { color: var(--ink-on-dark-soft); }
.pk-flow { list-style: none; margin: 0; padding: 0; max-width: 860px; }
.pk-flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 24px;
  padding-bottom: 36px;
}
.pk-flow-step:last-child { padding-bottom: 0; }
/* connecting line between markers */
.pk-flow-step::before {
  content: "";
  position: absolute;
  left: 27px; top: 56px; bottom: 0;
  width: 2px; background: var(--border-dark);
}
.pk-flow-step:last-child::before { display: none; }
.pk-flow-marker {
  position: relative; z-index: 1;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark-strong);
}
.pk-flow-num {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 22px; font-style: italic; color: var(--navy-300);
}
.pk-flow-body { padding-top: 4px; }
.pk-flow-body h3 {
  font-size: 19px; font-weight: 600; color: var(--ink-on-dark);
  letter-spacing: -0.01em; margin: 0 0 8px;
}
.pk-flow-body p { font-size: 15px; line-height: 1.6; color: var(--ink-on-dark-soft); margin: 0; }
.pk-flow-list {
  list-style: none; margin: 12px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.pk-flow-list li {
  position: relative; padding-left: 16px;
  font-size: 15px; line-height: 1.55; color: var(--ink-on-dark-soft);
}
.pk-flow-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--navy-300);
}
.pk-flow-list strong { color: var(--ink-on-dark); font-weight: 600; }

/* ============================================================
   GRADES + PRICING — accordion (grade levels + cost in one block)
   Content adapted from draft; restyled on the site's own tokens.
   Accordion logic reuses the .is-open + max-height pattern (site.js).
   ============================================================ */
.akx-rec__list {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(4, 44, 83, 0.04), 0 8px 24px rgba(4, 44, 83, 0.04);
}
.akx-rec__item { border-top: 1px solid var(--border); transition: background 0.2s ease; }
.akx-rec__item:first-child { border-top: none; }
.akx-rec__item.is-open { background: var(--bg-soft); box-shadow: inset 3px 0 0 var(--navy-500); }
.akx-rec__row {
  width: 100%;
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px;
  background: transparent; border: none; cursor: pointer;
  text-align: left; font: inherit; color: inherit;
  transition: background 0.18s ease;
}
@media (hover: hover) {
  .akx-rec__row:hover { background: var(--bg-soft); }
}
.akx-rec__row:focus-visible { outline: 2px solid var(--navy-500); outline-offset: -2px; }
.akx-rec__rowmain {
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column; gap: 4px; padding-right: 8px;
}
.akx-rec__level { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.akx-rec__role { font-size: 14px; color: var(--ink-mute); line-height: 1.4; }
.akx-rec__role b { color: var(--navy-700); font-weight: 600; }
.akx-rec__price {
  flex: 0 0 auto; font-size: 16px; font-weight: 700; color: var(--ink);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.akx-rec__chev {
  flex: 0 0 auto; width: 20px; height: 20px; color: var(--ink-mute);
  transition: transform 0.22s ease;
}
.akx-rec__item.is-open .akx-rec__chev { transform: rotate(180deg); }
/* collapsible body — same mechanism as FAQ (.faq-a) */
.akx-rec__body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.akx-rec__bodyinner { padding: 0 24px 0 80px; }
.akx-rec__item.is-open .akx-rec__bodyinner { padding-top: 10px; padding-bottom: 22px; }
.akx-rec__desc { font-size: 14px; line-height: 1.55; color: var(--ink-mute); margin: 0 0 14px; }
.akx-rec__examples { display: flex; flex-wrap: wrap; gap: 8px; }
.akx-rec__examples::before {
  content: "Примеры должностей";
  flex-basis: 100%;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: 4px;
}
.akx-rec__chip {
  font-size: 13px; font-weight: 500; color: var(--navy-800);
  background: var(--navy-100); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 20px; line-height: 1;
}

/* ---- payment terms ---- */
.akx-rec__terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.akx-rec__term {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 22px; display: flex; flex-direction: column; gap: 8px;
}
.akx-rec__termnum {
  font-family: var(--font-serif); font-size: 28px; font-style: italic;
  color: var(--navy-700); line-height: 1;
}
.akx-rec__termtext { font-size: 13.5px; line-height: 1.45; color: var(--ink-mute); }

/* ---- CTA banner ---- */
.akx-rec__cta {
  position: relative; overflow: hidden;
  margin-top: 32px;
  background: var(--bg-dark);
  border-radius: var(--r-xl);
  padding: 40px 32px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 20px;
}
.akx-rec__cta::before {
  content: ""; position: absolute; top: -120px; right: -120px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, var(--navy-700) 0%, transparent 65%);
  opacity: 0.35; pointer-events: none;
}
.akx-rec__ctatext {
  position: relative;
  font-size: 17px; line-height: 1.5; color: var(--ink-on-dark-soft);
  margin: 0; max-width: 520px;
}
.akx-rec__cta .btn { position: relative; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .pk-expert-grid { grid-template-columns: 1fr; gap: 36px; }
  .pk-expert-aside { position: static; flex-direction: row; align-items: stretch; gap: 0; max-width: 520px; }
  .pk-expert-photo { flex: 0 0 200px; aspect-ratio: auto; border-radius: var(--r-lg) 0 0 var(--r-lg); }
  .pk-expert-card { border-top: 1px solid var(--border); border-left: none; border-radius: 0 var(--r-lg) var(--r-lg) 0; display: flex; flex-direction: column; justify-content: center; }
}
@media (max-width: 600px) {
  .pk-expert-aside { flex-direction: column; max-width: 360px; }
  .pk-expert-photo { flex: none; aspect-ratio: 4 / 5; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .pk-expert-card { border-left: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--r-lg) var(--r-lg); }
  .pk-flow-step { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
  .pk-flow-marker { width: 44px; height: 44px; }
  .pk-flow-num { font-size: 18px; }
  .pk-flow-step::before { left: 21px; top: 44px; }
}
@media (max-width: 640px) {
  .akx-rec__row { position: relative; flex-wrap: wrap; gap: 10px 12px; padding: 16px; padding-right: 40px; }
  .akx-rec__row .pk-grade-chip { order: 0; }
  .akx-rec__price { order: 1; margin-left: auto; }
  .akx-rec__rowmain { order: 2; flex: 1 1 100%; padding-right: 0; }
  .akx-rec__chev { position: absolute; right: 16px; top: 18px; }
  .akx-rec__bodyinner { padding-left: 16px; padding-right: 16px; }
  .akx-rec__terms { grid-template-columns: 1fr; gap: 12px; }
  .akx-rec__cta { padding: 32px 22px; }
}
