/* ============================================================
   agentbit.ru — раздел «ИИ в вашей профессии»: поиск, плитки, карточка профессии, блок под блюром.
   Токены и шрифты берутся из site.css. Mobile-first: базовые правила для 360 px, шире — через min-width.
   ============================================================ */

.band-sand { --sec-bg: var(--bg2); background: var(--bg2); border-block: 1.5px dashed var(--line); }
.sec-head-s { margin-bottom: 18px; }
.sec-t-s { font-size: clamp(1.15rem, 4.8vw, 1.6rem); line-height: 1.2; }

/* ---------- поиск ---------- */
.ph { position: relative; overflow: hidden; padding: 16px 0 32px; background: var(--bg); }
.ph::before { content: ''; position: absolute; z-index: 0; width: 340px; height: 520px; right: -200px; top: -170px; transform: rotate(24deg); border-radius: 999px; background: var(--mint3); }
.ph::after { content: ''; position: absolute; z-index: 0; width: 200px; height: 320px; left: -140px; bottom: -150px; transform: rotate(24deg); border-radius: 999px; background: var(--bg2); }
.ph-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.ph-t { margin-top: 14px; font: 700 clamp(2rem, 9.6vw, 4.2rem)/1.05 var(--f-head); letter-spacing: -.02em; overflow-wrap: normal; hyphens: manual; }
.ph-lead { margin-top: 12px; max-width: 34rem; font-size: 1.04rem; line-height: 1.55; color: var(--ink2); }
.ph-art { display: none; }
.ph-art .bit { max-width: 280px; margin-left: auto; }
@media (min-width: 760px) {
  .ph { padding: 56px 0 64px; }
  .ph-in { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); align-items: center; gap: 40px; }
  .ph-art { display: block; }
}

.psearch { position: relative; margin-top: 22px; max-width: 38rem; }
.ps-l { display: block; margin-bottom: 8px; font: 700 .78rem/1.2 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--acc); }
.ps-box {
  display: flex; align-items: center; gap: 4px; min-height: 62px; padding: 6px 6px 6px 16px;
  border: 2.5px solid var(--ink); border-radius: 999px; background: var(--paper); box-shadow: 0 5px 0 var(--ink);
}
.ps-box:focus-within { outline: 3px solid var(--mint); outline-offset: 3px; }
.ps-ic { display: none; width: 22px; height: 22px; flex: none; margin-right: 4px; color: var(--acc); }
.ps-box input {
  flex: 1; min-width: 0; height: 48px; padding: 0 4px; border: 0; background: transparent; outline: none;
  font: 500 1.1rem var(--f-ui); color: var(--ink); border-radius: 0;
}
.ps-box input::placeholder { color: var(--ink2); opacity: .8; }
.ps-clear { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--ink2); }
.ps-clear:hover { background: var(--bg2); color: var(--ink); }
.ps-go { flex: none; min-height: 48px; padding: 0 20px; border-width: 2px; box-shadow: none; }
.ps-go:hover, .ps-go:active { box-shadow: none; }
@media (min-width: 480px) { .ps-ic { display: block; } .ps-box { padding-left: 20px; } }

.ps-sug {
  position: absolute; left: 0; right: 0; z-index: 40; margin-top: 12px; padding: 6px; max-height: min(60vh, 420px); overflow-y: auto;
  border: 2px solid var(--ink); border-radius: 22px; background: var(--paper); box-shadow: 4px 4px 0 var(--ink);
}
.ps-sug li { display: flex; flex-direction: column; justify-content: center; gap: 1px; min-height: 48px; padding: 7px 14px; border-radius: 14px; cursor: pointer; font: 700 1rem/1.25 var(--f-ui); }
.ps-sug li small { font: 400 .78rem/1.3 var(--f-ui); color: var(--ink2); }
.ps-sug li[aria-selected="true"], .ps-sug li:hover { background: var(--mint3); }
.ps-hint { margin-top: 14px; font: 400 .82rem/1.5 var(--f-ui); color: var(--ink2); }
.ps-hint.warn { color: var(--coral); }

/* ---------- сцена ---------- */
.ph-stage { padding: 34px 0 44px; }
@media (min-width: 820px) { .ph-stage { padding: 56px 0 64px; } }

/* ---------- шкала «уровень сигнала» ---------- */
.sig { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; flex: none; }
.sig i { display: block; width: 6px; border-radius: 2px; background: currentColor; opacity: .2; }
.sig i:nth-child(1) { height: 6px; } .sig i:nth-child(2) { height: 10px; } .sig i:nth-child(3) { height: 14px; }
.sig i:nth-child(4) { height: 18px; } .sig i:nth-child(5) { height: 22px; }
.sig i.on { opacity: 1; }
.sig-xl { gap: 7px; height: 64px; }
.sig-xl i { width: 16px; border-radius: 5px; opacity: 1; background: transparent; border: 2px dashed var(--line); }
.sig-xl i.on { background: var(--mint); border: 2.5px solid var(--ink); }
.sig-xl i:nth-child(1) { height: 18px; } .sig-xl i:nth-child(2) { height: 28px; } .sig-xl i:nth-child(3) { height: 40px; }
.sig-xl i:nth-child(4) { height: 52px; } .sig-xl i:nth-child(5) { height: 64px; }

/* ---------- плитки ---------- */
.ptiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; gap: 14px 12px; }
.ptile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 112px;
  padding: 13px 14px 12px; border: 2px solid var(--ink); border-radius: 22px 22px 22px 6px; color: var(--ink);
  text-decoration: none; box-shadow: 4px 4px 0 var(--ink);
  transition: transform .16s cubic-bezier(.2, .7, .3, 1), box-shadow .16s ease;
}
.ptile:hover { color: inherit; transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.ptile:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); transition-duration: .06s; }
.pt-0 { background: var(--mint2); }
.pt-1 { background: var(--sun2); border-radius: 6px 22px 22px 22px; }
.pt-2 { background: var(--paper); border-radius: 22px 6px 22px 22px; }
.pt-3 { background: var(--coral2); border-radius: 22px 22px 6px 22px; }
.pt-4 { background: var(--night); color: var(--night-ink); }
.pt-4:hover { color: var(--night-ink); }
.pt-grp { display: none; font: 700 .66rem/1.25 var(--f-ui); letter-spacing: .09em; text-transform: uppercase; opacity: .72; }
.pt-name { font: 800 1.1rem/1.15 var(--f-ui); overflow-wrap: break-word; hyphens: manual; }
.pt-wide { grid-column: span 2; min-height: 120px; }
.pt-wide .pt-grp { display: block; }
.pt-wide .pt-name { font: 700 1.28rem/1.12 var(--f-head); letter-spacing: -.01em; }
.pt-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.pt-n { font: 600 .74rem/1 var(--f-mono); opacity: .8; }
@media (min-width: 600px) {
  .ptiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 14px; }
  .pt-grp { display: block; }
  .ptile { min-height: 128px; padding: 15px 16px 14px; }
  .pt-name { font-size: 1.18rem; }
}
@media (min-width: 960px) { .ptiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* на главной: восемь плиток, две колонки на телефоне (первая и последняя во всю ширину), четыре в ряд на широком */
.ptiles-home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 960px) { .ptiles-home { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ptiles-home .pt-wide { grid-column: auto; } .ptiles-home .pt-wide .pt-name { font: 800 1.18rem/1.15 var(--f-ui); letter-spacing: 0; } }
@media (min-width: 600px) and (max-width: 959px) { .ptiles-home .pt-grp { display: none; } .ptiles-home .pt-wide .pt-grp { display: block; } }

/* ---------- блок на главной ---------- */
.prof-home .psearch { margin-top: 0; }
.ph-or { margin: 26px 0 14px; font: 600 .95rem/1.3 var(--f-ui); color: var(--ink2); }
.ph-more { margin-top: 22px; }
.ph-more .btn { min-height: var(--tap); }

/* ---------- результаты поиска ---------- */
.presults { display: grid; border-top: 2px solid var(--ink); }
.presults a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 14px; min-height: 60px; padding: 10px 2px; border-bottom: 1.5px dashed var(--line); color: var(--ink); text-decoration: none; }
.presults a:hover { background: var(--paper); }
.pr-n { font: 800 1.08rem/1.2 var(--f-ui); }
.pr-g { grid-column: 1; font: 400 .8rem/1.3 var(--f-ui); color: var(--ink2); }
.presults .sig { grid-row: 1 / span 2; grid-column: 2; color: var(--acc); }

/* ---------- карточка профессии ---------- */
.back { margin-bottom: 18px; }
.back a { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); font: 700 .95rem var(--f-ui); }
.pcard { display: grid; gap: 28px; max-width: 46rem; }
.pc-head .eyebrow { margin-bottom: 8px; }
.pc-t { font: 700 clamp(1.8rem, 8vw, 3.1rem)/1.08 var(--f-head); letter-spacing: -.02em; overflow-wrap: break-word; hyphens: manual; }
.pc-t span { color: var(--acc); }
.pc-hook { margin-top: 16px; padding-left: 16px; border-left: 4px solid var(--mint); font: 400 1.18rem/1.55 var(--f-body); }
.pc-t:focus, .none-t:focus, #vResultsT:focus { outline: none; }
.pc-h { margin-bottom: 14px; font: 700 1.25rem/1.25 var(--f-ui); }

.pc-need { padding: 20px 18px 18px; border: 2px solid var(--ink); border-radius: 26px 26px 26px 8px; background: var(--mint3); box-shadow: 5px 5px 0 var(--mint); }
.pc-need .pc-h { margin-bottom: 16px; }
.need-row { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 8px 20px; }
.need-big { font: 700 3.6rem/.9 var(--f-head); color: var(--ink); }
.need-big small { margin-left: 6px; font: 600 1rem var(--f-ui); color: var(--ink2); }
.need-word { flex: 1 1 100%; font: 800 1.15rem/1.2 var(--f-ui); color: var(--acc2); }
.need-note { margin-top: 12px; font-size: 1.02rem; line-height: 1.55; }
.need-hint { margin-top: 10px; font: 400 .78rem/1.5 var(--f-ui); color: var(--ink2); }
@media (min-width: 480px) { .need-word { flex: 1 1 auto; align-self: center; } }

.why-list { counter-reset: w; display: grid; gap: 14px; }
.why-list li { counter-increment: w; position: relative; min-height: 38px; padding: 4px 0 4px 54px; font-size: 1.04rem; line-height: 1.6; }
.why-list li::before {
  content: counter(w); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 36px; height: 44px;
  border: 2.5px solid var(--ink); border-radius: 18px; background: var(--mint); color: var(--on-mint); font: 700 1rem/1 var(--f-head);
}
.pc-limits { padding: 18px 18px 18px 20px; border: 2px solid var(--ink); border-left-width: 8px; border-radius: 6px 22px 22px 6px; background: var(--sun2); }
.pc-limits .pc-h { margin-bottom: 8px; }
.pc-limits p { font-size: 1.02rem; line-height: 1.6; }

/* ---------- платный блок под блюром ---------- */
.lock { padding-top: 6px; }
.lock .eyebrow { margin-bottom: 6px; }
.lock-list { position: relative; display: grid; gap: 16px; counter-reset: l; }
.lock-list::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(to bottom, rgba(0, 0, 0, 0), var(--bg)); pointer-events: none; }
.ph-stage .lock-list::after { background: linear-gradient(to bottom, rgba(0, 0, 0, 0), var(--bg2)); }
.lock-list li { counter-increment: l; padding: 12px 14px 12px 16px; border: 1.5px dashed var(--line); border-radius: 16px; background: var(--paper); }
.lk-t { font: 700 1.04rem/1.3 var(--f-ui); }
.lk-t::before { content: counter(l, decimal-leading-zero); display: inline-block; margin-right: 10px; font: 600 .78rem var(--f-mono); color: var(--acc); }
.bl {
  margin-top: 8px; max-height: 3.4em; overflow: hidden; font: 400 .98rem/1.7 var(--f-body); color: var(--ink2);
  filter: blur(5.5px); -webkit-user-select: none; user-select: none; pointer-events: none;
}
.bl-s { margin-top: 4px; max-width: 62%; }
.lock-cta {
  position: relative; z-index: 2; display: grid; gap: 14px; margin-top: -34px; padding: 18px 18px 20px;
  border: 2.5px solid var(--ink); border-radius: 24px; background: var(--paper); box-shadow: 5px 5px 0 var(--mint);
}
.lk-ic { width: 30px; height: 30px; color: var(--acc); }
.lk-h { font: 800 1.12rem/1.25 var(--f-ui); }
.lk-p { margin-top: 6px; font-size: .98rem; line-height: 1.6; color: var(--ink2); }
.lock-cta .btn { width: 100%; }
@media (min-width: 640px) {
  .lock-cta { grid-template-columns: auto minmax(0, 1fr); align-items: start; column-gap: 16px; }
  .lock-cta .btn { grid-column: 1 / -1; width: auto; justify-self: start; }
}

/* ---------- «профессии нет в списке» ---------- */
.none { display: grid; gap: 20px; max-width: 52rem; padding: 22px 18px; border: 2px solid var(--ink); border-radius: 26px 26px 26px 8px; background: var(--paper); box-shadow: 5px 5px 0 var(--sun); }
.none-art { display: none; }
.none-tx { display: grid; gap: 14px; }
.none-t { margin: 0; font-size: 1.4rem; }
.none-q { font: 600 .92rem/1.4 var(--f-ui); color: var(--coral); overflow-wrap: anywhere; }
.none-q:empty { display: none; }
.none-list { display: grid; gap: 8px; padding-left: 4px; }
.none-list li { position: relative; padding-left: 26px; line-height: 1.55; }
.none-list li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 12px; height: 12px; border-radius: 4px; background: var(--mint); border: 2px solid var(--ink); }
.none-try { font-size: .92rem; color: var(--ink2); }
.none .btn { justify-self: start; }
@media (min-width: 720px) { .none { grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 28px; padding: 30px; } .none-art { display: block; } }

/* ---------- список по группам ---------- */
.gfilter { margin-bottom: 22px; max-width: 46rem; }
.gfilter summary {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--paper); font: 600 .95rem var(--f-ui); cursor: pointer; list-style: none; width: fit-content; max-width: 100%;
}
.gfilter summary::-webkit-details-marker { display: none; }
.gfilter summary::after { content: ''; width: 8px; height: 8px; margin-left: 4px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.gfilter[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.gf-l { color: var(--ink2); }
#gfCur { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.gf-chip { min-height: var(--tap); padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); font: 600 .88rem var(--f-ui); }
.gf-chip:hover { border-color: var(--ink); }
.gf-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.gf-chip small { margin-left: 4px; opacity: .7; font-weight: 500; }
.plist { display: grid; gap: 26px; }
.pl-g { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); font: 700 1.05rem/1.3 var(--f-ui); }
.pl-g span { font: 600 .78rem var(--f-mono); color: var(--ink2); }
.pl-ul { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-ul a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 15px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: 500 .95rem/1.2 var(--f-ui); text-decoration: none; }
.pl-ul a:hover { border-color: var(--ink); background: var(--mint3); }
.pl-ul a.cur { background: var(--mint3); border-color: var(--acc); }

/* ---------- отдельная страница профессии ---------- */
.prof-page { padding: 14px 0 56px; background: var(--bg); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 0; margin-bottom: 18px; font: 500 .84rem/1.3 var(--f-ui); color: var(--ink2); }
.crumbs li + li::before { content: '/'; margin: 0 8px; opacity: .55; }
.crumbs a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--acc); }
.crumbs [aria-current] { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--ink); font-weight: 700; }
.more { max-width: 46rem; margin-top: 44px; padding-top: 26px; border-top: 2px solid var(--ink); }
.npills { display: flex; flex-wrap: wrap; gap: 8px; }
.npill { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 16px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); font: 700 .92rem/1.2 var(--f-ui); text-decoration: none; }
.npill:hover { background: var(--mint2); color: var(--ink); }
.mini-search { margin-top: 28px; }
.mini-search label { display: block; margin-bottom: 8px; font: 600 .92rem/1.4 var(--f-ui); }
.ms-row { display: flex; gap: 8px; }
.ms-row input { flex: 1; min-width: 0; min-height: 52px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); font: 500 1.05rem var(--f-ui); color: var(--ink); }
.ms-row .btn { min-height: 52px; padding: 0 20px; }
.pc-all { margin-top: 18px; font: 700 .95rem var(--f-ui); }
.pc-all a { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); }
.disc { max-width: 46rem; margin-top: 36px; font: 400 .8rem/1.55 var(--f-ui); color: var(--ink2); }

/* ---------- движение: только transform и opacity, уважаем «уменьшить движение» ---------- */
@keyframes prof-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fx .pcard > *, .fx .presults a, .fx .none { animation: prof-in .5s cubic-bezier(.2, .65, .2, 1) both; }
.fx .pcard > :nth-child(2) { animation-delay: .06s; }
.fx .pcard > :nth-child(3) { animation-delay: .12s; }
.fx .pcard > :nth-child(4) { animation-delay: .18s; }
.fx .pcard > :nth-child(5) { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .ptile, .ptile:hover, .ptile:active { transition: none; }
  .fx .pcard > *, .fx .presults a, .fx .none { animation: none; }
}

/* серые полосы вместо закрытого текста платного разбора (29.10: без абракадабры в HTML) и лид страницы профессии */
.bl-bar{display:block;height:.9em;margin-top:.6em;border-radius:.45em;background:currentColor;opacity:.14}
.bl-bar-s{width:62%}
.pc-lead{margin:.9em 0 0;font:500 1rem/1.55 var(--f-ui);color:var(--ink2);max-width:62ch}
