/* /lab/hr/ — ИИ-рекрутер. Base styles come from /lab/styles.css; this file adds only the page's own blocks. */

/* Hero: channel strip */
.hero--hr h1 { max-width: 900px; }

.chan { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 820px; margin: 12px 0 0; padding: 0; list-style: none; }
.chan li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--pill); background: rgba(255, 255, 255, .05); font-size: 13px; font-weight: 500; color: #E4E6EC; white-space: nowrap; }
.chan i { width: 7px; height: 7px; border-radius: 50%; flex: none; }

.chbadge { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: var(--pill); color: #fff; background: color-mix(in srgb, var(--c) 28%, transparent); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); white-space: nowrap; }

/* Sections that must fit one screen (1280×720 and up) */
.section--fit { padding-block: clamp(64px, 7vw, 88px); }
.section--fit .section-head { margin-bottom: 32px; }

/* Problems (from avitizer.ru/hr) */
.prb { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.prb__item { background: var(--white); border-radius: var(--radius-lg); padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; transition: box-shadow .25s, transform .25s; }
.prb__item:hover { box-shadow: 0 12px 32px rgba(27, 28, 33, .08); transform: translateY(-2px); }
.prb__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.prb__no { font: 700 22px/1 var(--font); letter-spacing: -0.02em; color: #E8574A; }
.prb__tag { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.prb__item h3 { font-size: 16px; font-weight: 600; line-height: 1.35; min-height: 4.05em; }
.prb__item p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.prb__item p b { color: #D9443A; font-weight: 700; }
.prb__viz { height: 112px; background: var(--light); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.prb__legend { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--ink-3); }
.prb__legend span { display: inline-flex; align-items: center; gap: 5px; }
.prb__legend .n { color: #D9443A; font-weight: 600; }
.prb__viz--hours .prb__legend span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: #D3D5DC; }
.prb__viz--hours .prb__legend .n::before { background: #E8574A; }
.prb__bars { flex: 1; display: flex; align-items: flex-end; gap: 4px; }
.prb__bars i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: #D3D5DC; }
.prb__bars i.n { background: linear-gradient(180deg, #F28B6C, #E8574A); }
.prb__viz--curve svg { flex: 1; width: 100%; height: 100%; min-height: 0; overflow: visible; }
.prb__viz--tpl { justify-content: center; }
.prb__bubble { font-size: 12px; line-height: 1.45; color: var(--ink-2); background: var(--white); border: 1px solid var(--line); border-radius: 12px 12px 12px 4px; padding: 9px 11px; box-shadow: 4px 4px 0 -1px #ECECF1, 8px 8px 0 -2px #E3E3E8; margin-right: 8px; }
.prb__viz--rec { justify-content: center; gap: 12px; }
.prb__viz--rec { gap: 10px; }
.prb__rec { display: grid; grid-template-columns: repeat(4, 14px) 1fr; align-items: center; gap: 4px 4px; font-size: 11px; color: var(--ink-3); }
.prb__rec span { grid-column: 1 / -1; }
.prb__rec i { width: 14px; height: 14px; border-radius: 50%; background: #F6C9C2; position: relative; }
.prb__rec i::after { content: "×"; position: absolute; inset: 0; display: grid; place-items: center; font: 700 10px/1 var(--font); color: #D9443A; }
.prb__rec i.ok { background: #CDEFE3; }
.prb__rec i.ok::after { content: "✓"; color: var(--ok); }
.prb__rec b { justify-self: end; font-size: 11px; font-weight: 600; color: #D9443A; white-space: nowrap; }
.prb__rec b.ok { color: var(--ok); }
.prb-total { margin-top: 16px; display: flex; align-items: center; gap: 20px; background: var(--dark); color: var(--on-dark); border-radius: var(--radius-lg); padding: 20px 28px; position: relative; overflow: hidden; isolation: isolate; }
.prb-total::before { content: ""; position: absolute; z-index: -1; width: 380px; height: 200px; right: -80px; top: -100px; border-radius: 50%; background: #E8574A; filter: blur(80px); opacity: .35; }
.prb-total__tag { flex: none; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: #E8574A; border-radius: var(--pill); padding: 7px 14px; }
.prb-total p { font-size: clamp(17px, 1.6vw, 20px); font-weight: 600; line-height: 1.35; }

/* Values (dark) */
.val { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.val__item { border: 1px solid var(--dark-line); border-radius: var(--radius-lg); padding: 24px; background: rgba(255, 255, 255, .03); display: flex; flex-direction: column; gap: 10px; }
.val__tag { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-3); }
.val__item b { font: 700 clamp(36px, 3.4vw, 48px)/1 var(--font); letter-spacing: -0.04em; white-space: nowrap; margin: 4px 0 6px; background: linear-gradient(100deg, #B79CFF, #7FB0FF 55%, #7FE0C2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.val__item h3 { font-size: 16px; font-weight: 600; line-height: 1.35; }
.val__item p { font-size: 14px; color: var(--on-dark-3); line-height: 1.5; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--dark-line); }

/* How it works: steps + live dialog */
.hwc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 56px; align-items: center; }
.hwc__side .h2 { margin-top: 12px; }
.hwc__side .sub { font-size: 16px; margin: 12px 0 18px; }
.hwc__steps { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.hwc__steps button { position: relative; overflow: hidden; width: 100%; display: grid; grid-template-columns: 38px 1fr; text-align: left; font: inherit; color: inherit; background: transparent; border: 1px solid transparent; border-radius: 10px; padding: 9px 14px; cursor: pointer; transition: background-color .2s, border-color .2s; }
.hwc__steps button:hover { background: #FAFAFC; }
.hwc__steps span { grid-row: span 2; align-self: center; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; background: var(--light); color: var(--ink-2); transition: background-color .2s, color .2s; }
.hwc__steps b { font-size: 15px; font-weight: 600; }
.hwc__steps small { font-size: 13px; color: var(--ink-3); }
.hwc__steps i { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: linear-gradient(90deg, #7B4CF5, #3E7BEA 55%, #3FB59E); }
.hwc__steps [aria-selected="true"] { background: var(--light); border-color: var(--line); }
.hwc__steps [aria-selected="true"] span { background: var(--ink); color: #fff; }
.hwc.is-auto .hwc__steps [aria-selected="true"] i { animation: hwc-prog var(--hwc-dur, 4.5s) linear forwards; }
@keyframes hwc-prog { to { width: 100%; } }
.hwc__chat { height: 500px; display: flex; flex-direction: column; background: #EEF0F5; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; box-shadow: 0 30px 60px rgba(27, 28, 33, .08); }
.hwc__chat-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--white); border-bottom: 1px solid var(--line); }
.hwc__chat-head .chbadge { color: #C42437; }
.hwc__chat-head div { flex: 1; min-width: 0; }
.hwc__chat-head b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hwc__chat-head small { font-size: 12px; color: var(--ink-3); }
.hwc__chat-head .online { color: var(--ok); font-size: 12px; }
.hwc__msgs { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 16px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent, #000 48px); mask-image: linear-gradient(180deg, transparent, #000 48px); }
.hwc__msgs > [hidden] { display: none; }
.hwc__m { max-width: 82%; font-size: 14px; line-height: 1.45; padding: 9px 12px; border-radius: 14px; }
.hwc__m time { display: block; margin-top: 3px; font-size: 11px; color: var(--ink-3); }
.hwc__m--c { align-self: flex-start; background: var(--white); border-bottom-left-radius: 4px; }
.hwc__m--a { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.hwc__m--a time { color: #9FE3CB; }
.hwc__note { align-self: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.hwc__note span { font-size: 12px; font-weight: 600; color: var(--ok); background: #DDF4EC; border-radius: var(--pill); padding: 4px 10px; }
.hwc__card { align-self: stretch; background: var(--white); border-radius: 12px; border: 1px solid var(--line); border-left: 3px solid var(--ok); padding: 12px 14px; }
.hwc__card-tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--ok); margin-bottom: 8px; }
.hwc__card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: 13px; }
.hwc__card dt { color: var(--ink-3); }
.hwc__card dd { margin: 0; font-weight: 500; }
.hwc__msgs .is-new { animation: hwc-in .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes hwc-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .hwc__msgs .is-new { animation: none; } }

/* Funnel calculator: same responses, without and with AI */
.fun { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px 64px; align-items: center; }
.fun__text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.fun__text .h2 { margin-top: -4px; }
.fun__viz { background: var(--light); border-radius: var(--radius-lg); padding: 24px clamp(18px, 3vw, 28px); }
.fun__res { display: flex; align-items: center; gap: 16px; margin-top: 6px; padding: 16px 20px; border-radius: 12px; background: var(--dark); color: var(--on-dark); position: relative; overflow: hidden; isolation: isolate; }
.fun__res::before { content: ""; position: absolute; z-index: -1; width: 280px; height: 160px; left: -80px; top: -90px; border-radius: 50%; background: var(--purple); filter: blur(60px); opacity: .55; }
.fun__res b { flex: none; font: 700 clamp(34px, 3.4vw, 44px)/1 var(--font); letter-spacing: -0.03em; background: linear-gradient(100deg, #B79CFF, #7FB0FF 55%, #7FE0C2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fun__res p { font-size: 16px; font-weight: 600; line-height: 1.35; }
.fun__res small { display: block; font-size: 13px; font-weight: 400; color: var(--on-dark-3); margin-top: 2px; }
.fun__note { font-size: 12px; color: var(--ink-3); margin-top: 12px; }
.fnd__in { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 16px; align-items: end; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.fnd__in label > span:first-child { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.fnd__in output { font-size: 22px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.fnd__range input { width: 100%; accent-color: #4F63E8; height: 24px; }
.fnd__field { display: flex; align-items: center; gap: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font-size: 15px; color: var(--ink-3); }
.fnd__field input { width: 100%; min-width: 0; border: 0; background: none; font: 600 16px var(--font); color: var(--ink); padding: 9px 0; }
.fnd__field input:focus { outline: none; }
.fnd__field:focus-within { border-color: var(--accent); }
.fnd__t { width: 100%; border-collapse: collapse; font-size: 15px; margin: 6px 0 4px; }
.fnd__t th, .fnd__t td { padding: 11px 6px; text-align: right; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fnd__t thead th { font-size: 12px; font-weight: 600; color: var(--ink-3); padding-top: 6px; }
.fnd__t tbody th { text-align: left; font-weight: 500; white-space: normal; padding-left: 0; }
.fnd__t td:last-child { font-weight: 700; color: #3E57D8; }
.fnd__total th, .fnd__total td { border-bottom: 0; font-size: 18px; font-weight: 700 !important; }
.fnd__res small { line-height: 1.45; }
.fnd__res small span { color: var(--on-dark); font-weight: 600; white-space: nowrap; }

/* Steps sit on the light section here (on /lab/ they are on white) */
#approach .step { background: var(--white); }

/* Result cards under the live case */
.hrc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.hrc__item { background: var(--white); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .25s, transform .25s; }
.hrc__item:hover { box-shadow: 0 12px 32px rgba(27, 28, 33, .08); transform: translateY(-2px); }
.hrc__logo { height: 32px; width: auto; max-width: 140px; object-fit: contain; object-position: left; filter: grayscale(1); mix-blend-mode: multiply; opacity: .75; margin-bottom: 6px; }
.hrc__nda { align-self: flex-start; height: 32px; display: grid; place-items: center; padding: 0 12px; border: 1px dashed var(--line); border-radius: 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 6px; }
.hrc__seg { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.hrc__item b { font: 700 clamp(26px, 2.4vw, 32px)/1.05 var(--font); letter-spacing: -0.03em; white-space: nowrap; background: linear-gradient(100deg, #7B4CF5, #3E7BEA 55%, #3FB59E); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hrc__item h3 { font-size: 16px; font-weight: 600; line-height: 1.35; }
.hrc__item p { font-size: 14px; color: var(--ink-2); line-height: 1.55; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }

/* Form: channel chips */
.pchips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 4px 0 0; min-width: 0; }
.pchips legend { font-size: 14px; font-weight: 600; color: var(--ink); padding: 0; margin-bottom: 8px; }
.pchips label { position: relative; cursor: pointer; }
.pchips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pchips span { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: var(--pill); background: var(--light); border: 1px solid transparent; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background-color .2s, border-color .2s, color .2s; user-select: none; }
.pchips label:hover span { border-color: var(--line); }
.pchips input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.pchips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }


@media (max-width: 1000px) {
  .fun { grid-template-columns: 1fr; }
  .hrc { grid-template-columns: 1fr 1fr; }
  .prb, .val { grid-template-columns: 1fr 1fr; }
  .prb__item h3 { min-height: 0; }
}
@media (max-width: 1000px) {
  .hwc { grid-template-columns: 1fr; gap: 28px; }
  .hwc__chat { height: 460px; }
}
@media (max-width: 768px) {
  .hrc, .prb, .val { grid-template-columns: 1fr; }
  .prb-total { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; }
}
@media (max-width: 600px) {
  .hero--hr .hero__eyebrow::before, .hero--hr .hero__eyebrow::after { display: none; }
  .hwc__chat-head { align-items: flex-start; }
  .hwc__chat-head b { white-space: normal; }
  .hwc__chat-head .online { display: none; }
  .pform__btn { font-size: 15px; }
  .chan { gap: 6px; }
  .chan li { padding: 6px 11px; font-size: 12px; }
  .chan li:nth-child(n+7) { display: none; }
  .hwc__m { max-width: 92%; }
  .fnd__in { grid-template-columns: 1fr; }
  .fun__res { padding: 14px 16px; }
  .fun__res p { font-size: 15px; }
}

/* Logos proof: the caption is a phrase here, so it wraps */
.logos__proof b { font-size: 22px; }
.logos__cap--wrap { grid-column: 1 / -1; margin-top: 6px; font-size: 14px; font-weight: 400; white-space: normal; line-height: 1.45; }
