/* Espace Snaky Pro (chantier K). Chargé par le layout sur les pages dont l'id commence par « pro ».
   Autonome : préfixe pk-, couleurs de la charte en variables locales, polices du site si présentes. */
.pk {
  --pk-red: #be1823;
  --pk-red-d: #7f000b;
  --pk-yellow: #faaa1f;
  --pk-ink: #212121;
  --pk-cream: #f8f0dc;
  --pk-cream-d: #efe2c2;
  --pk-muted: #6b6259;
  --pk-display: var(--f-display, "Snaky Display", "Arial Black", system-ui, sans-serif);
  --pk-text: var(--f-text, "Snaky Text", system-ui, -apple-system, "Segoe UI", sans-serif);
  --pk-radius: 20px;
  --pk-shadow: 0 12px 30px -14px rgba(60, 20, 0, 0.35), 0 2px 6px rgba(60, 20, 0, 0.08);
  --pk-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: var(--pk-text);
  color: var(--pk-ink);
  background: var(--pk-cream);
  line-height: 1.5;
  overflow-x: clip;
}
.pk *, .pk *::before, .pk *::after { box-sizing: border-box; }
.pk img { max-width: 100%; height: auto; display: block; }
.pk a { color: inherit; }
.pk-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.pk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pk-i { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Typo ---------- */
.pk-kicker {
  display: inline-block; margin: 0 0 12px; padding: 5px 12px; border-radius: 99px;
  font: 700 0.78rem/1.2 var(--pk-text); letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--pk-ink); color: var(--pk-yellow);
}
.pk-kicker-light { background: rgba(255, 255, 255, 0.16); color: #fff; }
.pk-kicker-yellow { background: var(--pk-yellow); color: var(--pk-ink); }
.pk-h1 { margin: 0 0 14px; font: 400 clamp(2.4rem, 11vw, 5.6rem)/0.95 var(--pk-display); color: #fff; letter-spacing: -0.01em; }
.pk-h1 em { font-style: normal; color: var(--pk-yellow); display: inline-block; transform: rotate(-4deg); }
.pk-h1-dark { color: var(--pk-ink); font-size: clamp(1.9rem, 7vw, 3.4rem); line-height: 1.02; }
.pk-h2 { margin: 0 0 14px; font: 400 clamp(1.6rem, 6vw, 2.6rem)/1.05 var(--pk-display); }
.pk-h3 { margin: 0 0 8px; font: 800 1.2rem/1.2 var(--pk-text); }
.pk-h4 { margin: 0 0 8px; font: 800 0.8rem/1.2 var(--pk-text); text-transform: uppercase; letter-spacing: 0.07em; color: var(--pk-red); }
.pk-lead { margin: 0 0 18px; font-size: 1.1rem; color: rgba(255, 255, 255, 0.92); max-width: 36em; }
.pk-lead-dark { color: var(--pk-muted); }
.pk-note { margin: 8px 0 0; font-size: 0.82rem; color: var(--pk-muted); }

/* ---------- Boutons ---------- */
.pk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border: 3px solid transparent; border-radius: 99px;
  font: 800 1rem/1.1 var(--pk-text); text-decoration: none; cursor: pointer; text-align: center;
  transition: transform 0.18s var(--pk-ease), box-shadow 0.18s var(--pk-ease), background-color 0.18s;
}
.pk-btn:hover { transform: translateY(-2px) rotate(-1deg); }
.pk-btn:active { transform: translateY(0) scale(0.98); }
.pk-btn:focus-visible, .pk-card-link:focus-visible, .pk-tabs button:focus-visible, .pk-dl:focus-visible {
  outline: 3px solid var(--pk-yellow); outline-offset: 3px;
}
.pk-btn-red { background: var(--pk-red); color: #fff; box-shadow: 0 5px 0 var(--pk-red-d); }
.pk-btn-red:hover { box-shadow: 0 7px 0 var(--pk-red-d); }
.pk-btn-yellow { background: var(--pk-yellow); color: var(--pk-ink); box-shadow: 0 5px 0 var(--pk-ink); }
.pk-btn-line { background: transparent; border-color: currentColor; }
.pk-btn-line-light { background: transparent; border-color: #fff; color: #fff; }
.pk-btn-sm { min-height: 40px; padding: 7px 14px; font-size: 0.9rem; }
.pk-btn-big { min-height: 56px; padding: 14px 26px; font-size: 1.08rem; }
.pk-btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.pk-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

/* ---------- Sections ---------- */
.pk-sec { padding: 56px 0; position: relative; }
.pk-cream { background: var(--pk-cream); }
.pk-dark { background: var(--pk-ink); color: #fff; }
.pk-yellow { background: var(--pk-yellow); }
.pk-red { background: var(--pk-red); color: #fff; }

/* ---------- Hero ---------- */
.pk-hero {
  background: radial-gradient(120% 90% at 85% 10%, #d8232f 0%, var(--pk-red) 45%, var(--pk-red-d) 100%);
  color: #fff; padding: 40px 0 0; overflow: hidden;
}
.pk-hero-in { display: grid; gap: 8px; align-items: end; }
.pk-hero-txt { padding-bottom: 8px; }
.pk-perks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 8px; }
.pk-perks li { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.pk-perks .pk-i { color: var(--pk-ink); background: var(--pk-yellow); border-radius: 50%; padding: 3px; width: 1.5em; height: 1.5em; }
.pk-hero-pic { position: relative; justify-self: center; width: min(78vw, 360px); }
.pk-hero-pic img { filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.35)); animation: pk-bob 4s ease-in-out infinite; }
.pk-hero-tag {
  position: absolute; top: 18%; right: -4%; padding: 6px 14px; border-radius: 12px;
  background: var(--pk-yellow); color: var(--pk-ink); font: 400 1.5rem/1 var(--pk-display);
  transform: rotate(10deg); box-shadow: 0 5px 0 var(--pk-ink);
}
@keyframes pk-bob { 50% { transform: translateY(-8px) rotate(-1deg); } }

/* ---------- Chiffres ---------- */
.pk-num-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pk-num-list li { background: rgba(255, 255, 255, 0.07); border-radius: var(--pk-radius); padding: 18px 16px; }
.pk-num-list b { display: block; font: 400 clamp(1.7rem, 7vw, 2.6rem)/1 var(--pk-display); color: var(--pk-yellow); margin-bottom: 6px; }
.pk-num-list span { font-size: 0.92rem; color: rgba(255, 255, 255, 0.85); }
.pk-orders { margin-top: 32px; }
.pk-bars { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.pk-bars li { display: grid; grid-template-columns: minmax(0, 7.5em) minmax(0, 1fr) 3.6em; gap: 10px; align-items: center; }
.pk-bar-l { font-weight: 700; text-transform: capitalize; }
.pk-bar-track { height: 14px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.pk-bar-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pk-yellow), #ffd36e); }
.pk-w45 { width: 90%; } .pk-w31 { width: 62%; } .pk-w22 { width: 44%; } .pk-w16 { width: 32%; }
.pk-bars b { white-space: nowrap; font-family: var(--pk-display); font-weight: 400; color: var(--pk-yellow); text-align: right; }
.pk-dark .pk-note { color: rgba(255, 255, 255, 0.6); }

/* ---------- Avantages ---------- */
.pk-advs { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.pk-adv {
  position: relative; background: #fff; border-radius: var(--pk-radius); padding: 22px 20px 20px 72px;
  box-shadow: var(--pk-shadow); transition: transform 0.2s var(--pk-ease);
}
.pk-adv:hover { transform: translateY(-3px) rotate(-0.4deg); }
.pk-adv p { margin: 0; color: var(--pk-muted); }
.pk-adv-n {
  position: absolute; left: 18px; top: 20px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--pk-red); color: #fff; font: 400 1.2rem/1 var(--pk-display);
}
.pk-adv:nth-child(even) .pk-adv-n { background: var(--pk-yellow); color: var(--pk-ink); }

/* ---------- Création de compte / connexion ---------- */
.pk-auth { display: grid; gap: 24px; }
.pk-auth-aside p { margin: 0 0 16px; max-width: 30em; }
.pk-auth-aside img { width: 150px; margin: 8px 0 0; }
.pk-auth-card { background: #fff; border-radius: 24px; padding: 18px; box-shadow: 0 8px 0 var(--pk-ink); border: 3px solid var(--pk-ink); }
.pk-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin-bottom: 18px; background: var(--pk-cream); border-radius: 99px; }
.pk-tabs button {
  min-height: 44px; border: 0; border-radius: 99px; background: transparent; cursor: pointer;
  font: 800 0.95rem/1.1 var(--pk-text); color: var(--pk-muted);
}
.pk-tabs button[aria-selected="true"] { background: var(--pk-ink); color: #fff; }
.pk-form[hidden] { display: none; }
.pk-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.pk-fld { display: grid; gap: 5px; }
.pk-fld label { font-weight: 700; font-size: 0.92rem; }
.pk-fld abbr { color: var(--pk-red); text-decoration: none; }
.pk-fld small { color: var(--pk-muted); font-weight: 500; }
.pk-fld input, .pk-select select, .pk-search input {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid #d9ccb0; border-radius: 14px;
  background: #fffdf8; font: 500 1rem/1.3 var(--pk-text); color: var(--pk-ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pk-fld input:focus, .pk-select select:focus, .pk-search input:focus { outline: none; border-color: var(--pk-ink); box-shadow: 0 0 0 4px rgba(250, 170, 31, 0.45); }
.pk-fld input[aria-invalid="true"] { border-color: var(--pk-red); background: #fff3f3; box-shadow: 0 0 0 3px rgba(190, 24, 35, 0.15); }
.pk-hint { font-size: 0.8rem; color: var(--pk-muted); }
.pk-pw { position: relative; display: block; }
.pk-pw input { padding-right: 96px; }
.pk-pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 36px; padding: 4px 12px;
  border: 0; border-radius: 99px; background: var(--pk-cream); font: 700 0.82rem/1 var(--pk-text); cursor: pointer; color: var(--pk-ink);
}
.pk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pk-check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 8px; font-size: 0.88rem; cursor: pointer; }
.pk-check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--pk-red); }
.pk-legal { margin: 8px 0 16px; font-size: 0.8rem; color: var(--pk-muted); }
.pk-form .pk-btn-big { width: 100%; }
.pk-msg { margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; font-weight: 700; background: #eef8ee; color: #1d5a24; }
.pk-msg-err { background: #fff0f0; color: var(--pk-red-d); }
.pk-msg[hidden] { display: none; }

/* ---------- Partenaires ---------- */
.pk-partners-in { display: grid; gap: 18px; }
.pk-partners p { margin: 0; }

/* ---------- Bandeau des pages protégées ---------- */
.pk-bar { background: var(--pk-ink); color: #fff; }
.pk-bar-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 10px; padding-bottom: 10px; }
.pk-bar-brand { display: none; align-items: center; gap: 8px; margin: 0; font: 400 1.1rem/1 var(--pk-display); }
.pk-bar-brand b { color: var(--pk-yellow); font-weight: 400; }
.pk-bar-nav { display: flex; gap: 4px; order: 3; width: 100%; }
.pk-bar-nav a {
  flex: 1; text-align: center; padding: 9px 14px; border-radius: 99px; text-decoration: none; font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
}
.pk-bar-nav a[aria-current="page"] { background: var(--pk-yellow); color: var(--pk-ink); }
.pk-bar-hello { margin: 0 auto 0 0; flex: 1; font-size: 0.9rem; color: rgba(255, 255, 255, 0.85); min-width: 0; overflow-wrap: anywhere; }
.pk-bar-hello b { color: #fff; }
.pk-bar .pk-btn-line { color: #fff; }
.pk-bar .pk-btn-line span { display: none; }

/* ---------- Catalogue ---------- */
.pk-cat-head { padding: 36px 0 28px; }
.pk-cat-head-in { display: grid; gap: 18px; align-items: end; }
.pk-count { margin: 0; font-weight: 700; color: var(--pk-muted); }
.pk-count b { font: 400 1.6rem/1 var(--pk-display); color: var(--pk-red); }
.pk-cat { padding-top: 20px; background: #fff; }
.pk-tools {
  display: grid; gap: 12px; padding: 14px; margin-bottom: 14px; border-radius: var(--pk-radius);
  background: var(--pk-cream); position: sticky; top: 8px; z-index: 5; box-shadow: var(--pk-shadow);
}
.pk-search { position: relative; }
.pk-search .pk-i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--pk-muted); pointer-events: none; }
.pk-search input { padding-left: 44px; font-size: 1.05rem; }
.pk-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pk-select { display: grid; gap: 4px; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--pk-muted); min-width: 0; }
.pk-select select { min-height: 44px; padding: 8px 10px; font-size: 0.95rem; text-transform: none; letter-spacing: 0; }
.pk-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pk-chip { position: relative; cursor: pointer; }
.pk-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pk-chip span { display: inline-flex; min-height: 38px; align-items: center; padding: 6px 14px; border-radius: 99px; border: 2px solid var(--pk-ink); font-weight: 800; font-size: 0.9rem; background: #fff; }
.pk-chip input:checked + span { background: var(--pk-ink); color: var(--pk-yellow); }
.pk-chip input:focus-visible + span { outline: 3px solid var(--pk-yellow); outline-offset: 2px; }
.pk-reset { margin-left: auto; border: 0; background: none; font: 700 0.9rem var(--pk-text); text-decoration: underline; cursor: pointer; color: var(--pk-muted); min-height: 38px; }
.pk-results { margin: 0 0 12px; font-weight: 700; color: var(--pk-muted); }
.pk-grid-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pk-card[hidden] { display: none; }
.pk-card-link {
  position: relative; display: flex; flex-direction: column; height: 100%; padding: 10px 10px 14px; border-radius: var(--pk-radius);
  background: var(--pk-cream); text-decoration: none; transition: transform 0.2s var(--pk-ease), box-shadow 0.2s var(--pk-ease);
}
.pk-card-link:hover { transform: translateY(-4px) rotate(-0.6deg); box-shadow: var(--pk-shadow); }
.pk-card-img { display: block; aspect-ratio: 1; border-radius: 14px; background: #fff; overflow: hidden; margin-bottom: 10px; }
.pk-card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s var(--pk-ease); }
.pk-card-link:hover .pk-card-img img { transform: scale(1.06); }
.pk-card-badges { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 6px; }
.pk-badge { display: inline-block; padding: 3px 8px; border-radius: 99px; font: 800 0.7rem/1.2 var(--pk-text); text-transform: uppercase; letter-spacing: 0.04em; }
.pk-badge-new { background: var(--pk-red); color: #fff; }
.pk-badge-halal { background: #1f7a3a; color: #fff; }
.pk-badge-pro { background: var(--pk-ink); color: var(--pk-yellow); }
.pk-card-ref { font: 700 0.75rem/1.2 ui-monospace, "SF Mono", Menlo, monospace; color: var(--pk-muted); }
.pk-card-name { font-weight: 800; line-height: 1.2; margin: 3px 0 4px; }
.pk-card-meta { font-size: 0.82rem; color: var(--pk-muted); margin-top: auto; }
.pk-empty { text-align: center; padding: 30px 0; font-weight: 700; }
.pk-empty img { width: 120px; margin: 0 auto 8px; }
.pk-empty[hidden] { display: none; }

/* ---------- Fiche détaillée (dialog) ---------- */
.pk-dlg {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0;
  background: #fff; color: var(--pk-ink); font-family: var(--pk-text);
}
.pk-dlg::backdrop { background: rgba(33, 33, 33, 0.72); }
.pk-dlg[open] { animation: pk-in 0.25s var(--pk-ease); }
@keyframes pk-in { from { opacity: 0; transform: translateY(24px); } }
html:has(.pk-dlg[open]) { overflow: hidden; }
.pk-dlg-in { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.pk-dlg-head {
  position: sticky; top: 0; z-index: 2; display: flex; gap: 12px; align-items: flex-start; justify-content: space-between;
  padding: 16px 18px; background: var(--pk-red); color: #fff;
}
.pk-dlg-head .pk-h3 { margin: 0; font: 400 1.4rem/1.1 var(--pk-display); }
.pk-dlg-ref { margin: 0 0 4px; font: 700 0.78rem/1 ui-monospace, "SF Mono", Menlo, monospace; opacity: 0.85; }
.pk-dlg-close {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--pk-yellow); color: var(--pk-ink); font: 700 1.6rem/1 var(--pk-text);
}
.pk-dlg-body { display: grid; gap: 20px; padding: 18px; }
.pk-dlg-media figure { margin: 0 0 12px; background: var(--pk-cream); border-radius: var(--pk-radius); padding: 12px; }
.pk-dlg-media img { width: 100%; max-width: 220px; margin: 0 auto; }
.pk-dlg-media figcaption { font-size: 0.8rem; color: var(--pk-muted); text-align: center; margin-top: 6px; }
.pk-dlg-info { display: grid; gap: 12px; }
.pk-block { border-top: 2px solid var(--pk-cream-d); padding-top: 12px; }
.pk-dl-list { margin: 0; display: grid; gap: 6px; }
.pk-row { display: grid; grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr); gap: 10px; align-items: center; }
.pk-row dt { font-weight: 700; font-size: 0.9rem; }
.pk-row dd { margin: 0; min-width: 0; }
.pk-ext { font-weight: 700; color: var(--pk-red); }
.pk-family { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pk-family a { display: grid; gap: 4px; text-decoration: none; font-size: 0.78rem; font-weight: 700; line-height: 1.2; }
.pk-family img { background: var(--pk-cream); border-radius: 12px; aspect-ratio: 1; object-fit: contain; }

/* « Information à venir » : bloc designé, jamais une donnée inventée */
.pk-soon {
  display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 6px 12px; border-radius: 10px;
  border: 2px dashed #d9ccb0; background: repeating-linear-gradient(-45deg, #fffaf0 0 8px, #fbf3e1 8px 16px);
  color: var(--pk-muted); font-size: 0.85rem; font-weight: 700;
}
.pk-soon .pk-i { color: var(--pk-yellow); }

/* ---------- Téléchargements ---------- */
.pk-dl {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 10px 14px; margin: 6px 0 0;
  border-radius: 14px; background: var(--pk-cream); text-decoration: none; font-weight: 800; font-size: 0.92rem;
  transition: background-color 0.15s, transform 0.15s var(--pk-ease);
}
.pk-dl:hover { background: var(--pk-yellow); transform: translateX(3px); }
.pk-dl .pk-i { color: var(--pk-red); }
.pk-dl small { flex-basis: 100%; padding-left: calc(1.15em + 8px); font-weight: 500; color: var(--pk-muted); font-size: 0.78rem; }
.pk-docs { background: #fff; }
.pk-docs-grid { display: grid; gap: 16px; }
.pk-doc { background: var(--pk-cream); border-radius: var(--pk-radius); padding: 20px; min-width: 0; }
.pk-doc > p { margin: 0 0 12px; color: var(--pk-muted); }
.pk-doc .pk-dl { background: #fff; }
.pk-doc .pk-dl:hover { background: var(--pk-yellow); }
.pk-doc-main { display: grid; gap: 18px; background: var(--pk-red); color: #fff; }
.pk-doc-main p { color: rgba(255, 255, 255, 0.9); margin: 0 0 14px; }
.pk-doc-main .pk-note { color: rgba(255, 255, 255, 0.75); }
.pk-doc-main .pk-btn-red { background: var(--pk-yellow); color: var(--pk-ink); box-shadow: 0 5px 0 var(--pk-ink); }
.pk-doc-cover { position: relative; border-radius: 16px; overflow: hidden; transform: rotate(-2deg); box-shadow: 0 10px 0 var(--pk-red-d); max-width: 360px; }
.pk-doc-cover span { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 10px; background: var(--pk-yellow); color: var(--pk-ink); font: 400 1.1rem/1 var(--pk-display); }
.pk-logo-prev { background: #fff; border-radius: 14px; padding: 16px; margin-bottom: 8px; }
.pk-logo-prev img { width: 140px; margin: 0 auto; }
.pk-thumbs { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pk-thumb { background: #fff; border-radius: 16px; padding: 8px; display: flex; flex-direction: column; min-width: 0; }
.pk-thumb img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; width: 100%; }
.pk-thumb-sm img { aspect-ratio: 1; object-fit: contain; }
.pk-thumb .pk-dl { margin-top: auto; background: transparent; padding: 8px 4px 2px; font-size: 0.82rem; }
.pk-thumbs-sm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pk-details summary { cursor: pointer; font-weight: 800; padding: 12px 16px; border-radius: 99px; background: var(--pk-ink); color: #fff; display: inline-block; }
.pk-details summary span { color: var(--pk-yellow); }
.pk-details[open] summary { margin-bottom: 16px; }

/* ---------- Tablette et plus ---------- */
@media (min-width: 640px) {
  .pk-wrap { padding: 0 28px; }
  .pk-num-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pk-advs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pk-fld-full { grid-column: 1 / -1; }
  .pk-auth-card { padding: 26px; }
  .pk-grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .pk-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pk-thumbs-sm { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pk-bar-nav { order: 0; width: auto; }
  .pk-bar-nav a { flex: none; }
  .pk-bar .pk-btn-line span { display: inline; }
  .pk-bar-brand { display: flex; }
  .pk-bar-hello { text-align: right; }
  .pk-dlg-media img { max-width: 380px; }
  .pk-tools { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pk-search { grid-column: 1 / -1; }
  .pk-dlg {
    width: min(960px, calc(100% - 48px)); height: auto; max-height: calc(100% - 48px);
    margin: auto; border-radius: 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  }
  .pk-dlg-in { max-height: calc(100vh - 48px); }
  .pk-docs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pk-doc-main, .pk-doc-wide { grid-column: 1 / -1; }
  .pk-doc-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .pk-partners-in { grid-template-columns: minmax(0, 1.4fr) auto; align-items: center; }
}
@media (min-width: 960px) {
  .pk-sec { padding: 84px 0; }
  .pk-hero { padding-top: 56px; }
  .pk-hero-in { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
  .pk-hero-txt { padding-bottom: 64px; }
  .pk-hero-pic { width: 100%; max-width: 400px; }
  .pk-advs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pk-orders { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 8px 40px; align-items: start; }
  .pk-orders .pk-bars { margin: 0; grid-row: span 2; }
  .pk-auth { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
  .pk-auth-aside { position: sticky; top: 90px; }
  .pk-auth-aside img { width: 220px; }
  .pk-cat-head-in { grid-template-columns: minmax(0, 1fr) auto; }
  .pk-tools { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) auto; align-items: end; }
  .pk-search { grid-column: auto; }
  .pk-grid-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pk-dlg-body { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); padding: 26px; gap: 28px; }
  .pk-dlg-media { position: sticky; top: 90px; align-self: start; }
  .pk-docs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pk-doc-wide { grid-column: 1 / -1; }
  .pk-doc-main { grid-column: 1 / span 2; }
  .pk-thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pk-thumbs-sm { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .pk-grid-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .pk *, .pk-dlg { animation: none !important; transition: none !important; }
}
