/* ---------- Карточки внедрений (.pj): плитки ---------- */
.pj-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pj { --ink-p: #1d1d3f; --mut-p: #6b6d88; --line-p: #e7e9f3;
  position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 22px; border-radius: 22px; background: #fff; border: 1px solid var(--line-p); color: var(--ink-p);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s; }
.pj[hidden] { display: none; }
.pj:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 35%, var(--line-p)); box-shadow: 0 24px 46px -28px color-mix(in srgb, var(--accent) 60%, transparent); }
.pj .i, .pj .ti { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pj__date { display: none; }
.pj__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pj__prod { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: color-mix(in srgb, var(--accent) 75%, #10102a); }
.pj__ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent); }
.pj__ok { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px; border-radius: 999px; background: #e3f6ec; color: #0b7a4b; font-size: 12px; font-weight: 700; }
.pj__ok .i { width: 13px; height: 13px; stroke-width: 3; }
.pj__client { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.pj__ind { margin: 0; font-size: 14px; line-height: 1.5; color: var(--mut-p); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pj__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pj__meta li { padding: 5px 10px; border-radius: 999px; background: #f3f4f9; font-size: 12px; font-weight: 600; color: #4a4c66; }
.pj__meta b { color: var(--ink-p); }
.pj__act { margin-top: auto; padding-top: 6px; display: flex; align-items: center; gap: 10px; }
.pj__match { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 10px 14px; border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 10%, #fff); color: color-mix(in srgb, var(--accent) 80%, #10102a); font-size: 13px; font-weight: 700; text-decoration: none; text-align: center;
  transition: background-color .2s, color .2s; }
.pj__match:hover { background: var(--accent); color: #fff; }
.pj__ext { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--mut-p); text-decoration: none; }
.pj__ext:hover { color: var(--blue); }
.pj a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Плитки: 4 в ряд, крупная иконка продукта, печать «подтверждено» в углу */
.pj-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pj { padding: 20px; gap: 10px; border-radius: 20px; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 7%, #fff), #fff 55%); }
.pj__top { flex-direction: column; align-items: flex-start; gap: 10px; }
.pj__ico { width: 46px; height: 46px; border-radius: 14px; background: var(--accent); color: #fff; box-shadow: 0 12px 22px -14px var(--accent); }
.pj__ico .ti { width: 22px; height: 22px; }
.pj__prod { flex-direction: column; align-items: flex-start; gap: 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.pj__ok { position: absolute; top: 18px; right: 18px; width: 30px; height: 30px; padding: 0; justify-content: center; border-radius: 50%; font-size: 0; background: #22b46a; color: #fff; box-shadow: 0 0 0 4px #e3f6ec; }
.pj__ok .i { width: 15px; height: 15px; }
.pj__client { font-size: 16px; }
.pj__ind { font-size: 13px; -webkit-line-clamp: 1; }
.pj__meta li { font-size: 11px; padding: 4px 8px; background: rgba(29, 29, 63, .05); }
.pj__act { flex-direction: column; align-items: stretch; gap: 6px; }
.pj__match { font-size: 12px; min-height: 38px; }
.pj__ext { justify-content: center; font-size: 12px; }

@media (max-width: 1240px) { .pj-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .pj-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pj-list { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
@media (prefers-reduced-motion: reduce) { .pj { transition: none; } }

/* проект из архива каталога 1С */
.pj__arch { position: absolute; top: 18px; right: 54px; padding: 4px 9px; border-radius: 999px; background: #eef0f6; color: #6b6d88; font-size: 11px; font-weight: 700; }
.pj:not(:has(.pj__ok)) .pj__arch { right: 18px; }

/* выпадающие списки фильтров: шире кнопки, крайние раскрываются влево */
.filters .dd__list { right: auto; width: max-content; min-width: 100%; max-width: min(380px, calc(100vw - 32px)); }
.filters .filter:nth-last-child(-n+3) .dd__list { left: auto; right: 0; }
.filters .dd__option { align-items: flex-start; }
.filters .dd__opt-label { line-height: 1.35; }
.filters .dd__opt-meta { padding-top: 2px; }

/* печать «Подтверждено клиентом»: только галочка ровно по центру, текст для экранных дикторов и в подсказке */
.pj__ok { gap: 0; line-height: 0; cursor: help; }
.pj__ok .i { display: block; margin: 0; }
.pj__ok-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* страница «Клиенты» без заголовка: отступ сверху под шапкой */
.pj-top { height: 0; }
.pj-top + .commercial-body { padding-top: 20px; }
.pj-top + .commercial-body .pmx { margin-top: 0; }
