/* ═══════════════════════════════════════════════════════════════════════
   Averya — service picker pages (service-*.html). Scoped to .pk*.
   Per-page pillar accent arrives as --c on the .pk section (inline style).
   Liquid-glass language of the services page; blur only on fixed surfaces.
   ═══════════════════════════════════════════════════════════════════════ */

/* Cream canvas (owner: "צבע שמנת, מזמין") — the warm ground the glass sits on. */
.pk {
  padding-block: 148px 72px;
  background: linear-gradient(180deg, #fcf9f2 0%, #f8f2e7 60%, #faf6ec 100%);
}
.pk-crumb { font-size: 13.5px; color: var(--ink-muted, #6e6e73); margin-bottom: 18px; }
.pk-crumb a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(14, 24, 60, .2); }
.pk-crumb a:hover { color: var(--c); border-color: var(--c); }
.pk-hint { margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--ink-soft, #3c3c3c); }

.pk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; margin-top: 34px; }

/* ── categories ── */
.pk-cat {
  border-radius: 22px;
  border: .5px solid rgba(14, 24, 60, .10);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 8px 24px -10px rgba(13, 19, 48, .10);
  padding: 6px 20px 8px;
  margin-bottom: 14px;
  border-inline-start: 3px solid color-mix(in srgb, var(--c) 55%, transparent);
}
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .pk-cat { border-inline-start-color: var(--c); }
}
.pk-cat-h { margin: 0; }
.pk-cat-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: start;
  color: var(--ink, #1d1d1f);
}
.pk-cat-t { flex: 1 1 auto; font-size: 19px; font-weight: 800; }
.pk-cat-n {
  flex: 0 0 auto;
  min-width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding-inline: 8px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--c);
}
.pk-chev { flex: 0 0 auto; width: 20px; height: 20px; color: var(--ink-muted, #6e6e73); transition: transform .28s cubic-bezier(.32, .72, 0, 1); }
.pk-cat-head[aria-expanded="false"] .pk-chev { transform: rotate(-90deg); }
.pk-cat-d { margin: 0 0 10px; font-size: 14.5px; color: var(--ink-muted, #6e6e73); }
.pk-cat.is-closed .pk-items, .pk-cat.is-closed .pk-cat-d { display: none; }

.pk-items { display: grid; gap: 8px; padding-bottom: 14px; }

/* ── selectable rows ── */
.pk-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 14px;
  border: .5px solid rgba(14, 24, 60, .08);
  background: rgba(250, 251, 255, .8);
  cursor: pointer;
  transition: background .18s, border-color .18s, box-shadow .18s;
}
.pk-item:hover { background: #fff; border-color: rgba(14, 24, 60, .16); }
.pk-item input { position: absolute; opacity: 0; pointer-events: none; }
.pk-box {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  margin-top: 2px;
  border-radius: 7px;
  border: 1.5px solid rgba(14, 24, 60, .28);
  background: #fff;
  display: grid;
  place-items: center;
  transition: background .18s, border-color .18s;
}
/* The check is a GLYPH, not a directional element — physical borders only
   (logical inline-start flips in RTL and mirrored the mark). Drawn with
   left+bottom borders, nudged 1px up so it sits optically centered. */
.pk-box::after {
  content: '';
  width: 11px;
  height: 6px;
  margin-top: -2px;
  border-left: 2.4px solid #fff;
  border-bottom: 2.4px solid #fff;
  border-bottom-left-radius: 1px;
  transform: rotate(-45deg) scale(0);
  transform-origin: center;
}
.pk-item input:checked ~ .pk-box { background: var(--c); border-color: var(--c); }
.pk-item input:checked ~ .pk-box::after { animation: pk-check-pop .28s cubic-bezier(.32, .72, 0, 1) forwards; }
@keyframes pk-check-pop {
  0%   { transform: rotate(-45deg) scale(0); }
  70%  { transform: rotate(-45deg) scale(1.18); }
  100% { transform: rotate(-45deg) scale(1); }
}
.pk-item input:checked ~ .pk-ib strong { color: var(--c); }
.pk-item.is-on { border-color: rgba(14,24,60,.3); background: #fff; border-color: color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 5%, #fff); }
.pk-item input:focus-visible ~ .pk-box { outline: 2px solid var(--c); outline-offset: 2px; }
.pk-ib { display: block; min-width: 0; }
.pk-ib strong { display: block; font-size: 15.5px; font-weight: 700; transition: color .18s; }
.pk-ib small { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.55; color: var(--ink-muted, #6e6e73); }

/* ── the spec panel ── */
.pk-spec {
  position: sticky;
  top: 96px;
  border-radius: 22px;
  border: .5px solid rgba(255, 255, 255, .7);
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(248, 250, 255, .86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 14px 40px -14px rgba(13, 19, 48, .18);
  padding: 20px;
}
.pk-spec-t { margin: 0; font-size: 20px; font-weight: 800; }
.pk-spec-count { margin: 4px 0 10px; font-size: 13.5px; color: var(--ink-muted, #6e6e73); }
.pk-spec-count b { color: var(--c); font-size: 15px; }
.pk-spec-empty { font-size: 13.5px; color: var(--ink-muted, #6e6e73); background: rgba(14, 24, 60, .04); border-radius: 12px; padding: 10px 12px; }
.pk-spec.has-items .pk-spec-empty { display: none; }
.pk-spec-list { list-style: none; margin: 0 0 6px; padding: 0; max-height: 200px; overflow-y: auto; display: grid; gap: 4px; }
.pk-spec-list li { font-size: 13px; line-height: 1.45; padding-inline-start: 14px; position: relative; color: var(--ink-soft, #3c3c3c); }
.pk-spec-list li::before { content: ''; position: absolute; inset-inline-start: 0; top: .5em; width: 6px; height: 6px; border-radius: 2px; background: var(--c); }

.pk-form { display: grid; gap: 10px; margin-top: 12px; }
.pk-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-soft, #3c3c3c); }
.pk-form input, .pk-form textarea {
  font: inherit;
  font-size: 14px;
  padding: 9px 12px;
  border-radius: 12px;
  border: .5px solid rgba(14, 24, 60, .16);
  background: #fff;
  color: var(--ink, #1d1d1f);
}
.pk-form input:focus, .pk-form textarea:focus { outline: none; border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 14%, transparent); }
.pk-hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pk-form [data-ts-slot] { display: flex; justify-content: center; }
.pk-form [data-ts-slot]:empty { display: none; }
.pk-send { width: 100%; justify-content: center; }
.pk-copy { width: 100%; justify-content: center; }
.pk-note { margin: 2px 0 0; font-size: 12px; color: var(--ink-muted, #6e6e73); text-align: center; }
.pk-status { min-height: 1.2em; font-size: 13.5px; font-weight: 700; text-align: center; }
.pk-status[data-kind="ok"] { color: #1a7f37; }
.pk-status[data-kind="error"] { color: #c0392b; }

/* ── floating jump-to-spec pill (mobile mainly) ── */
.pk-fly {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  inset-inline-start: 50%;
  transform: translateX(50%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 24px;
  border: .5px solid rgba(255, 255, 255, .75);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
  box-shadow: 0 10px 30px rgba(12, 22, 66, .22);
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink, #1d1d1f);
  cursor: pointer;
}
:dir(ltr) .pk-fly { transform: translateX(-50%); }
.pk-fly-n {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding-inline: 7px;
  border-radius: 12px;
  color: #fff;
  background: var(--pk-c, #2563EB);
  font-size: 13px;
}

/* ── FAQ (site design: .faq-item from styles.css + app.js) + back row ── */
.pk-faq { margin-top: 48px; max-width: 760px; margin-inline: auto; }
.pk-faq-t { font-size: 26px; font-weight: 800; margin: 0 0 16px; text-align: center; }
.pk-back { display: flex; gap: 12px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }

/* ── responsive ── */
@media (max-width: 980px) {
  .pk { padding-block: 120px 56px; }
  .pk-grid { grid-template-columns: 1fr; }
  .pk-spec { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  .pk-chev, .pk-item { transition: none; }
  .pk-item input:checked ~ .pk-box::after { animation: none; transform: rotate(-45deg) scale(1); }
}
@media (forced-colors: active) {
  .pk-item, .pk-cat, .pk-spec { border: 1px solid CanvasText; }
  .pk-item input:checked ~ .pk-box { background: Highlight; border-color: Highlight; }
}
@media print { .pk-fly { display: none; } }
@media (min-width: 981px) { .pk-fly { display: none; } }

/* ── elevation pass (2026-07-29 late): the site's full material language ── */
.pk { position: relative; }
.pk::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 420px;
  pointer-events: none;
  background:
    radial-gradient(52% 70% at 78% 0%, color-mix(in srgb, var(--c) 14%, transparent), transparent 78%),
    radial-gradient(40% 55% at 18% 6%, color-mix(in srgb, var(--c) 8%, transparent), transparent 80%);
}
.pk .padding-global { position: relative; }
.pk-cats { counter-reset: pkcat; }
.pk-cat {
  counter-increment: pkcat;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E"),
    linear-gradient(180deg, color-mix(in srgb, var(--c) 5%, #fff) 0%, rgba(255, 255, 255, .92) 46%);
  background-blend-mode: overlay, normal;
}
.pk-cat-head::before {
  content: counter(pkcat, decimal-leading-zero);
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--c);
  background: #fff;
  border: .5px solid rgba(14, 24, 60, .15);
  background: color-mix(in srgb, var(--c) 9%, #fff);
  border: .5px solid color-mix(in srgb, var(--c) 28%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}
.pk-spec { overflow: hidden; }
.pk-spec::before {
  content: '';
  position: absolute;
  inset-inline: -30%;
  top: -90px;
  height: 200px;
  pointer-events: none;
  background: radial-gradient(50% 70% at 50% 100%, color-mix(in srgb, var(--c) 16%, transparent), transparent 80%);
}
.pk-spec > * { position: relative; }
/* faq-section's site background band reads grey on the cream canvas */
.pk .pk-faq.faq-section { background: none; padding-block: 0; }

/* audit fixes 2026-07-29 */
.pk-fly[hidden], .pk-cat-n[hidden] { display: none; }
