/* Кабинет покупателя (ПРМ-080): токены дизайна, оболочка, компоненты. Не зависит от shop.css и style.css. */

/* ---------- токены: светлая тема по умолчанию ---------- */
:root {
  --c-surface: #ffffff;
  --c-block: #f6f8f6;
  --c-text: #24303d;
  --c-text2: #4b5866;
  --c-muted: #5f6b77;
  --c-faint: #8a97a3;
  --c-line: #e3e8ec;
  --c-line2: #eef1f3;
  --c-line3: #cfd7dd;
  --c-green: #4a9b2f;
  --c-green-d: #3b7d25;
  --c-gtint: #eaf5e4;
  --c-gink: #2f6a1d;
  --c-accent: #f07d1a;
  --c-red: #c0392b;
  --c-rtint: #fdecea;
  --c-rline: #f3c4bf;
  --c-atint: #fbf1dc;
  --c-aink: #7a5410;
  --c-aline: #f0dcae;
  --c-otint: #ffe6d0;
  --c-oink: #9a3f00;
  --c-oline: #f2b27c;
  --c-stop: #5b1f1a;
  --c-stint: #f3e9e8;
  --c-skel: #eef1f3;
  --c-logo-ink: #24303d;
  --c-tabbar: #ffffff;
  color-scheme: light;
}

/* тёмная тема: явный выбор */
[data-theme="dark"] {
  --c-surface: #1b232b;
  --c-block: #141a20;
  --c-text: #e7ecef;
  --c-text2: #b4bec7;
  --c-muted: #9aa6b1;
  --c-faint: #7d8995;
  --c-line: #2c3741;
  --c-line2: #232d36;
  --c-line3: #3a4652;
  --c-green: #5aa83b;
  --c-green-d: #5aa83b;
  --c-gtint: #1e3320;
  --c-gink: #9fd987;
  --c-accent: #f07d1a;
  --c-red: #ef6b5d;
  --c-rtint: #3a1d1b;
  --c-rline: #6b302b;
  --c-atint: #352a14;
  --c-aink: #f0c76d;
  --c-aline: #5e4a1f;
  --c-otint: #44260f;
  --c-oink: #ffb277;
  --c-oline: #8a4a1c;
  --c-stop: #c25a50;
  --c-stint: #2e1f1e;
  --c-skel: #232d36;
  --c-logo-ink: #e7ecef;
  --c-tabbar: #1b232b;
  color-scheme: dark;
}

/* тёмная тема: «авто» — по настройке устройства, те же токены */
@media (prefers-color-scheme: dark) {
  [data-theme="auto"] {
    --c-surface: #1b232b;
    --c-block: #141a20;
    --c-text: #e7ecef;
    --c-text2: #b4bec7;
    --c-muted: #9aa6b1;
    --c-faint: #7d8995;
    --c-line: #2c3741;
    --c-line2: #232d36;
    --c-line3: #3a4652;
    --c-green: #5aa83b;
    --c-green-d: #5aa83b;
    --c-gtint: #1e3320;
    --c-gink: #9fd987;
    --c-accent: #f07d1a;
    --c-red: #ef6b5d;
    --c-rtint: #3a1d1b;
    --c-rline: #6b302b;
    --c-atint: #352a14;
    --c-aink: #f0c76d;
    --c-aline: #5e4a1f;
  --c-otint: #44260f;
  --c-oink: #ffb277;
  --c-oline: #8a4a1c;
    --c-stop: #c25a50;
    --c-stint: #2e1f1e;
    --c-skel: #232d36;
    --c-logo-ink: #e7ecef;
    --c-tabbar: #1b232b;
    color-scheme: dark;
  }
}

/* ПРМ-132: общий «глазок» пароля (static/password_toggle.js) берёт цвета из --muted и --ink; в кабинете токены называются --c-*, иначе в тёмной теме значок тёмный на тёмном */
html { --muted: var(--c-muted); --ink: var(--c-text); }

/* ---------- основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-block);
  color: var(--c-text);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
a { color: var(--c-green-d); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; font-weight: 700; margin: 0 0 12px; }
h2 { font-size: 15px; font-weight: 700; margin: 0 0 10px; }
p { margin: 0 0 10px; }
button, input, select, textarea { font: inherit; color: inherit; }
.pt-ic { flex: none; display: block; }
.pt-muted { color: var(--c-muted); }
.pt-small { font-size: 12.5px; }
.pt-missing-key { color: var(--c-red); font-family: monospace; }
.pt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pt-field input.pt-sr, input.pt-sr { width: 1px; height: 1px; padding: 0; border: 0; margin: 0; }

/* ---------- кнопки, поля, карточки ---------- */
.pt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border: 0; border-radius: 12px;
  background: var(--c-green); color: #ffffff; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none;
}
.pt-btn:hover { text-decoration: none; filter: brightness(.96); }
.pt-btn-ghost { background: var(--c-surface); color: var(--c-text); border: 1px solid var(--c-line); font-size: 14px; font-weight: 600; min-height: 46px; }
.pt-btn-block { width: 100%; }
.pt-btn-sm { min-height: 44px; padding: 0 14px; font-size: 14px; }
.pt-link-btn { background: transparent; border: 0; color: var(--c-green-d); font-size: 13px; font-weight: 600; min-height: 44px; padding: 0; cursor: pointer; text-align: left; }
.pt-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 16px; padding: 16px; }
.pt-card + .pt-card { margin-top: 12px; }
.pt-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.pt-field > span.pt-hint { font-weight: 400; color: var(--c-muted); font-size: 12px; }
.pt-input, .pt-field input, .pt-field select {
  width: 100%; height: 46px; border: 1px solid var(--c-line3); border-radius: 10px; padding: 0 12px;
  background: var(--c-surface); font-size: 14px; font-weight: 400; color: var(--c-text);
}
.pt-input:focus, .pt-field input:focus, .pt-field select:focus { outline: 2px solid var(--c-green); outline-offset: 1px; }
.pt-field input[readonly] { background: var(--c-block); color: var(--c-text2); }
.pt-alert { background: var(--c-rtint); border: 1px solid var(--c-rline); color: var(--c-red); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-size: 13px; }
.pt-alert ul { margin: 0; padding-left: 18px; }
.pt-note { background: var(--c-atint); border: 1px solid var(--c-aline); color: var(--c-aink); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-size: 13px; }
.pt-ok { background: var(--c-gtint); border: 1px solid var(--c-gtint); color: var(--c-gink); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-size: 13px; }

/* переключатели: язык, тема, вход/регистрация (тень — только у активного сегмента) */
.pt-seg { display: flex; gap: 3px; padding: 3px; background: var(--c-block); border-radius: 11px; }
.pt-seg form { flex: 1; display: flex; }
.pt-seg button, .pt-seg a {
  flex: 1; display: flex; align-items: center; justify-content: center; min-height: 44px; border: 0; border-radius: 8px; padding: 0 10px;
  background: transparent; color: var(--c-muted); font-size: 14px; cursor: pointer; text-decoration: none; text-align: center;
}
.pt-seg .on { background: var(--c-surface); color: var(--c-text); box-shadow: 0 1px 3px rgba(0, 0, 0, .16); font-weight: 600; }
.pt-seg-lang { max-width: 200px; margin-left: auto; }
.pt-prefs .pt-seg-lang { max-width: none; margin-left: 0; }
.pt-orders td .pt-row { flex-wrap: nowrap; }

/* ---------- страницы без оболочки (вход, регистрация) ---------- */
.pt-bare { max-width: 480px; margin: 0 auto; padding: 18px 12px 40px; }
.pt-bare-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.pt-bare h1 { margin: 0; }
.pt-bare .pt-card { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.pt-cat {
  display: flex; flex-direction: column; gap: 2px; min-height: 56px; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: 12px;
  background: var(--c-surface); color: var(--c-text); text-decoration: none; text-align: left;
}
.pt-cat:hover { text-decoration: none; border-color: var(--c-green); }
.pt-cat b { font-size: 14.5px; }
.pt-cat span { font-size: 12.5px; color: var(--c-text2); }
.pt-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; min-height: 44px; }
.pt-consent input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--c-green); }

/* ---------- логотип ---------- */
.pt-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--c-logo-ink); font-size: 20px; font-weight: 700; text-decoration: none; }
.pt-logo:hover { text-decoration: none; }
.pt-logo-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--c-green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; }

/* ---------- оболочка ---------- */
.pt-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 12px; background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.pt-top .pt-spacer { flex: 1; }
.pt-search { display: none; flex: 1; position: relative; }
.pt-search input { width: 100%; height: 44px; border: 1px solid var(--c-line3); border-radius: 12px; padding: 0 12px 0 40px; background: var(--c-surface); font-size: 14px; }
.pt-search .pt-ic { position: absolute; left: 12px; top: 12px; color: var(--c-muted); }
.pt-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--c-gtint); color: var(--c-gink); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; text-decoration: none; flex: none; }
.pt-avatar:hover { text-decoration: none; }
.pt-user { display: none; align-items: center; gap: 10px; color: var(--c-text); text-decoration: none; }
.pt-user:hover { text-decoration: none; }
.pt-user b { display: block; font-size: 13.5px; line-height: 1.2; }
.pt-cartbtn { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-surface); color: var(--c-text); font-weight: 600; text-decoration: none; }
.pt-cartbtn:hover { text-decoration: none; }
.pt-count { min-width: 22px; height: 22px; border-radius: 11px; background: var(--c-green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; padding: 0 6px; }

.pt-body { display: block; }
.pt-side { display: none; }
.pt-main { padding: 12px 12px 96px; max-width: 980px; margin: 0 auto; }
.pt-page-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pt-page-title h1 { margin: 0; }

/* меню: группы, строки (боковое на ПК и «Ещё» на телефоне — одна разметка) */
.pt-menu-group-name { margin: 16px 4px 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--c-text); }
.pt-menu-group { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 14px; overflow: hidden; }
.pt-menu-row { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 8px 12px; color: var(--c-text); font-size: 14px; text-decoration: none; border-top: 1px solid var(--c-line2); }
.pt-menu-row:first-child { border-top: 0; }
.pt-menu-row:hover { text-decoration: none; background: var(--c-block); }
.pt-menu-row .pt-ico { width: 30px; height: 30px; border-radius: 9px; background: var(--c-block); color: var(--c-green-d); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.pt-menu-row .pt-meta { margin-left: auto; font-size: 11.5px; color: var(--c-muted); }
.pt-menu-row .pt-chev { color: var(--c-faint); }
.pt-menu-row.on { background: var(--c-gtint); color: var(--c-gink); font-weight: 600; }
.pt-menu-row.on .pt-ico { background: var(--c-surface); }
.pt-menu-home { margin-bottom: 4px; }

.pt-profile-card { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 14px; color: var(--c-text); text-decoration: none; }
.pt-profile-card:hover { text-decoration: none; }
.pt-profile-card .pt-avatar { width: 56px; height: 56px; font-size: 18px; }
.pt-profile-card b { display: block; font-size: 17px; }
.pt-profile-card span { color: var(--c-muted); font-size: 13px; }
.pt-prefs { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.pt-prefs .pt-label { font-size: 12.5px; font-weight: 600; margin-bottom: 4px; color: var(--c-text2); }
.pt-logout { margin-top: 16px; }

/* нижняя панель телефона */
.pt-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; background: var(--c-tabbar); border-top: 1px solid var(--c-line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); min-height: 64px; }
.pt-tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; color: var(--c-muted); font-size: 12px; text-decoration: none; position: relative; }
.pt-tab:hover { text-decoration: none; }
.pt-tab.on { color: var(--c-green-d); }
.pt-tab .pt-count { position: absolute; top: 2px; left: 55%; }

/* ---------- страницы кабинета ---------- */
.pt-orders { width: 100%; border-collapse: collapse; }
.pt-orders th { text-align: left; font-size: 12px; font-weight: 600; color: var(--c-muted); padding: 6px 8px; border-bottom: 1px solid var(--c-line); }
.pt-orders td { padding: 10px 8px; border-bottom: 1px solid var(--c-line2); vertical-align: top; }
.pt-orders .pt-sum { white-space: nowrap; font-weight: 600; }
.pt-order-card { display: none; }
.pt-two { display: grid; gap: 12px; }
.pt-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pt-kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; font-size: 14px; }
.pt-kv dt { color: var(--c-muted); }
.pt-kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.pt-history a { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-top: 1px solid var(--c-line2); color: var(--c-text); text-decoration: none; }
.pt-history a:first-child { border-top: 0; }
.pt-chat-line { max-width: 90%; padding: 8px 12px; border-radius: 12px; margin: 6px 0; background: var(--c-block); }
.pt-chat-line.me { margin-left: auto; background: var(--c-gtint); }
.pt-chat-line small { display: block; color: var(--c-muted); font-size: 11.5px; }

/* чат (кнопка и окно) */
.pt-chat-btn { position: fixed; right: 14px; bottom: 82px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--c-green); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pt-chat-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pt-chat-dot { position: absolute; top: 6px; right: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--c-red); border: 2px solid var(--c-surface); }
.pt-chat { position: fixed; right: 12px; bottom: 148px; z-index: 40; width: min(360px, calc(100vw - 24px)); max-height: 70vh; display: flex; flex-direction: column; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 16px; overflow: hidden; }
.pt-chat[hidden], .pt-chat-btn[hidden] { display: none; }
.pt-chat-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--c-line); font-weight: 700; }
.pt-chat-close { border: 0; background: transparent; font-size: 18px; cursor: pointer; min-width: 44px; min-height: 44px; }
.pt-chat > div, .pt-chat > form { padding: 12px 14px; }
.pt-chat-lines { overflow-y: auto; flex: 1; max-height: 40vh; }
.pt-chat-say { display: flex; gap: 8px; border-top: 1px solid var(--c-line); }
.pt-chat-say input { flex: 1; min-width: 0; }
.pt-chat-error { color: var(--c-red); font-size: 12.5px; }
.pt-chat form input { width: 100%; height: 44px; border: 1px solid var(--c-line3); border-radius: 10px; padding: 0 12px; background: var(--c-surface); margin-bottom: 8px; }

/* ---------- ПК ---------- */
@media (min-width: 901px) {
  .pt-top { height: 68px; padding: 0 20px; }
  .pt-search { display: block; }
  .pt-top .pt-spacer { display: none; }
  .pt-cartbtn { display: inline-flex; }
  .pt-user { display: inline-flex; }
  .pt-top .pt-avatar-only { display: none; }
  .pt-body { display: flex; align-items: flex-start; }
  .pt-side { display: block; width: 280px; flex: none; position: sticky; top: 68px; height: calc(100vh - 68px); overflow-y: auto; background: var(--c-block); border-right: 1px solid var(--c-line); padding: 12px 12px 24px; }
  .pt-main { flex: 1; min-width: 0; max-width: none; padding: 22px 24px 40px; }
  .pt-tabs { display: none; }
  .pt-chat-btn { bottom: 24px; right: 24px; }
  .pt-chat { bottom: 92px; right: 24px; }
  .pt-two { grid-template-columns: 1fr 1fr; align-items: start; }
  .pt-page-title h1 { font-size: 24px; }
  .pt-bare h1 { font-size: 24px; }
  .pt-side .pt-menu-row { min-height: 46px; }
  .pt-more-page { display: none; }
}
@media (max-width: 900px) {
  .pt-orders { display: none; }
  .pt-order-card { display: block; padding: 12px 0; border-top: 1px solid var(--c-line2); }
  .pt-order-card:first-child { border-top: 0; }
  .pt-kv { grid-template-columns: 110px 1fr; }
}
@media (max-width: 380px) {
  .pt-main { padding-left: 10px; padding-right: 10px; }
  .pt-kv { grid-template-columns: 1fr; }
}

/* ---------- ПРМ-082: пользователи организации ---------- */
.pt-add { padding: 0; margin-bottom: 12px; }
.pt-add > summary, .pt-edit > summary { list-style: none; cursor: pointer; }
.pt-add > summary::-webkit-details-marker, .pt-edit > summary::-webkit-details-marker { display: none; }
.pt-add > summary { margin: 12px; width: calc(100% - 24px); }
.pt-addform { display: flex; flex-direction: column; padding: 0 16px 16px; }
.pt-edit .pt-addform { padding: 12px 0 0; }
.pt-edit[open] { flex-basis: 100%; }
.pt-perms { display: grid; gap: 2px; margin-top: 4px; }
.pt-perm { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 500; cursor: pointer; }
.pt-perm input { flex: none; width: 22px; height: 22px; accent-color: var(--c-green); }
.pt-member { margin-bottom: 12px; }
.pt-member + .pt-member { margin-top: 0; }
.pt-perm-line { margin: 8px 0 10px; color: var(--c-text2); font-size: 13px; line-height: 1.45; }
.pt-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--c-line3); color: var(--c-text2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.pt-chip-ok { background: var(--c-gtint); border-color: var(--c-gtint); color: var(--c-gink); }
.pt-chip-stop { background: var(--c-stint); border-color: var(--c-stint); color: var(--c-stop); }
.pt-linkcard { margin-bottom: 12px; border-color: var(--c-green); }
.pt-copy { display: flex; gap: 8px; align-items: stretch; }
.pt-copy input { flex: 1; min-width: 0; min-height: 44px; border: 1px solid var(--c-line3); border-radius: 12px; background: var(--c-block); color: var(--c-text); padding: 0 12px; font-size: 13px; }

/* ---------- ПРМ-082, часть 9: кнопка «назад» на страницах без шапки ---------- */
.pt-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px 0 2px; margin: 0 0 4px -2px; background: none; border: 0;
  color: var(--c-text2); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; border-radius: 10px; }
.pt-back:hover { color: var(--c-text); text-decoration: none; }
.pt-back:focus-visible { outline: 2px solid var(--c-green); outline-offset: 2px; }

/* ---------- ПРМ-083: документы и статусы ---------- */
.pt-chip-warn { background: var(--c-atint); border-color: var(--c-aline); color: var(--c-aink); }
.pt-doc { margin-bottom: 12px; }
.pt-dropzone { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 64px; padding: 10px; border: 1.5px dashed var(--c-line3); border-radius: 12px;
  color: var(--c-text2); font-size: 14px; cursor: pointer; word-break: break-word; }
.pt-dropzone.over, .pt-dropzone:hover { border-color: var(--c-green); color: var(--c-text); }
.pt-dropzone:focus-within { outline: 2px solid var(--c-green); outline-offset: 2px; }

.pt-page-title a { white-space: nowrap; }

/* ПРМ-089 (К3-1): значок статуса и колокольчик в шапке, красная плашка, плитки, уведомления */
.pt-fin-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; min-height: 32px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  text-decoration: none; white-space: nowrap; color: var(--c-gink); border: 1px solid transparent; }
.pt-fin-badge:hover { text-decoration: none; }
.pt-fin-badge-overdue { color: var(--c-red); background: var(--c-rtint); border-color: var(--c-rline); }
.pt-fin-badge-stop { color: var(--c-stop); background: var(--c-stint); border-color: var(--c-line3); }
.pt-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--c-text); text-decoration: none; flex: none; }
.pt-bell:hover { text-decoration: none; }
.pt-bell-count { position: absolute; top: 3px; right: 0; min-width: 18px; height: 18px; font-size: 11px; padding: 0 4px; }
.pt-fin-alert { border: 1px solid; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.pt-fin-alert-overdue { background: var(--c-rtint); border-color: var(--c-rline); color: var(--c-red); }
.pt-fin-alert-stop { background: var(--c-stint); border-color: var(--c-line3); color: var(--c-stop); }
.pt-fin-alert-head { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.pt-fin-alert p { margin: 6px 0 10px; color: var(--c-text); font-size: 13.5px; }
.pt-fin-explain summary { list-style: none; cursor: pointer; }
.pt-fin-explain summary::-webkit-details-marker { display: none; }
.pt-fin-explain-body { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--c-surface); border: 1px solid var(--c-line); color: var(--c-text); font-size: 13px; max-width: 520px; }
.pt-fin-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 6px; }
.pt-fin-tile { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pt-fin-tile-main { grid-column: 1 / -1; background: var(--c-gtint); border-color: var(--c-gtint); }
.pt-fin-tile-main .pt-fin-tile-sum { font-size: 26px; }
.pt-fin-tile-label { font-size: 12.5px; color: var(--c-muted); }
.pt-fin-tile-sum { font-size: 20px; color: var(--c-text); overflow-wrap: anywhere; }
.pt-fin-tile-red .pt-fin-tile-sum { color: var(--c-red); }
.pt-fin-tile-note { font-size: 12px; color: var(--c-muted); }
.pt-fin-data { margin: 4px 0 14px; }
.pt-fin-stale { color: var(--c-aink); }
@media (min-width: 900px) { .pt-fin-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pt-fin-tile-main { grid-column: auto; } }
@media (max-width: 520px) { .pt-top .pt-logo > span:not(.pt-logo-mark) { display: none; } .pt-fin-badge { padding: 4px 8px; font-size: 12px; } .pt-fin-badge-overdue span, .pt-fin-badge-stop span { max-width: 110px; overflow: hidden; text-overflow: ellipsis; } }
.pt-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pt-note-item { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 14px; padding: 12px 14px; }
.pt-note-item p { margin: 6px 0 10px; font-size: 13.5px; }
.pt-note-unread { border-color: var(--c-green); }
.pt-note-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pt-note-head .pt-muted { margin-left: auto; }
.pt-note-new { background: var(--c-gtint); color: var(--c-gink); border-radius: 8px; padding: 1px 8px; font-size: 11px; font-weight: 700; }
.pt-notes-tools { margin: 0 0 10px; }
/* ПРМ-092: съёмка и загрузка документов с телефона */
.pt-cam { margin-top: 10px; }
.pt-capture [hidden] { display: none !important; }
.pt-cam-pages { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pt-cam-page { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 12px; padding: 8px; }
.pt-cam-thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--c-gtint); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.pt-cam-name { flex: 1; min-width: 80px; font-size: 13.5px; overflow-wrap: anywhere; }
.pt-cam progress { width: 100%; height: 10px; }
.pt-cam-msg { margin: 6px 0; font-size: 13.5px; }
.pt-cam-bad { color: var(--c-red); font-weight: 600; }
.pt-cam-ok { color: var(--c-gink); }
.pt-cam .pt-btn { min-height: 44px; }
/* ПРМ-093: адреса доставки, контакты бухгалтерии, блок «Статус организации» */
.pt-addr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pt-addr p { margin: 4px 0; overflow-wrap: anywhere; }
.pt-addr-line { font-size: 14px; }
.pt-addr-off { opacity: .75; }
.pt-addr a[href^="tel:"] { display: inline-flex; align-items: center; min-height: 44px; }
.pt-addr p.pt-small { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
.pt-sub { font-size: 14px; margin: 12px 0 4px; color: var(--c-muted); }
.pt-orgstat { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0; }
.pt-orgstat > div { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.pt-orgstat dt { color: var(--c-muted); font-size: 13px; }
.pt-orgstat dd { margin: 0; font-weight: 600; }
/* ПРМ-093 Часть 6: скрытое поле «Название банка» */
.pt-field[hidden] { display: none !important; }

/* ПРМ-097: вставка «Платёж на проверке» в красной плашке статуса — янтарная, с иконкой и словами, не только цветом */
.pt-pay-pending { margin: 10px 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--c-aline); background: var(--c-atint); color: var(--c-aink); }
.pt-pay-pending-head { display: flex; align-items: center; gap: 8px; }
.pt-pay-pending p { margin: 6px 0 8px; }
.pt-pay-pending .pt-btn { min-height: 44px; }
/* ПРМ-098: индикатор запрета у корзины и вставка о разрешении менеджера */
.pt-gate-dot { display: inline-block; width: 10px; height: 10px; margin-left: 4px; border-radius: 50%; background: var(--c-stop); }
.pt-gate-override { display: flex; align-items: center; gap: 8px; margin: 10px 0; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--c-gline, var(--c-line3)); background: var(--c-gtint); color: var(--c-gink); }
/* ПРМ-099 (К7): раздел «Заказы». Таблица на компьютере, карточки на телефоне; зоны нажатия не меньше 44 px */
.pt-ord-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.pt-ord-filters select, .pt-ord-filters input[type=search] { min-height: 44px; padding: 0 10px; border: 1px solid var(--c-line3); border-radius: 8px; background: var(--c-surface); color: var(--c-text); font: inherit; }
.pt-ord-filters input[type=search] { flex: 1 1 140px; min-width: 0; }
.pt-ord-filters .pt-btn { min-height: 44px; }
.pt-ord-list { display: flex; flex-direction: column; gap: 8px; }
.pt-ord { display: grid; grid-template-columns: minmax(180px, 1.3fr) minmax(130px, 1fr) minmax(90px, .7fr) minmax(130px, 1fr) minmax(150px, 1.2fr); gap: 4px 12px; align-items: center; padding: 8px 12px; border: 1px solid var(--c-line); border-radius: 10px; background: var(--c-surface); }
.pt-ord-main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pt-ord-num { display: inline-flex; align-items: center; min-height: 44px; }
.pt-ord-sum { text-align: right; }
@media (max-width: 760px) { .pt-ord { grid-template-columns: 1fr auto; } .pt-ord-main { grid-column: 1 / -1; } .pt-ord-pay, .pt-ord-1c { grid-column: 1 / -1; } }
.pt-steps { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; padding: 0; list-style: none; }
.pt-step { display: flex; align-items: center; gap: 6px; color: var(--c-text2); }
.pt-step-dot { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--c-line3); box-sizing: border-box; }
.pt-step-done .pt-step-dot { background: var(--c-gtint); border-color: var(--c-gink); color: var(--c-gink); }
.pt-step-current { font-weight: 700; color: var(--c-text); }
.pt-step-current .pt-step-dot { border-color: var(--c-aink); background: var(--c-atint); }
.pt-spin { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border: 2px solid var(--c-line3); border-top-color: var(--c-gink); border-radius: 50%; animation: pt-spin 1s linear infinite; vertical-align: middle; }
@keyframes pt-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pt-spin { animation: none; } }
.pt-events { margin: 0; padding: 0; list-style: none; }
.pt-events li { padding: 6px 0; border-top: 1px solid var(--c-line); }
.pt-events li:first-child { border-top: 0; }
.pt-lines { width: 100%; border-collapse: collapse; }
.pt-lines th { text-align: left; font-size: 12px; font-weight: 600; color: var(--c-muted); padding: 6px 8px; border-bottom: 1px solid var(--c-line); }
.pt-lines td { padding: 8px; border-bottom: 1px solid var(--c-line2); vertical-align: top; }
.pt-lines .pt-sum { white-space: nowrap; font-weight: 600; text-align: right; }
.pt-back { display: inline-flex; align-items: center; min-height: 44px; }
/* ПРМ-100: документы к оплате (таблица на широком экране, карточки на телефоне) и экран «Как оплатить» */
.pt-docs { width: 100%; border-collapse: collapse; }
.pt-docs th { text-align: left; font-size: 12px; font-weight: 600; color: var(--c-muted); padding: 6px 8px; border-bottom: 1px solid var(--c-line); }
.pt-docs td { padding: 10px 8px; border-bottom: 1px solid var(--c-line2); vertical-align: top; }
.pt-docs .pt-sum { white-space: nowrap; font-weight: 600; text-align: right; }
.pt-docs th.pt-sum { text-align: right; }
.pt-docs tr.pt-doc-over td:first-child { box-shadow: inset 3px 0 0 var(--c-stop); }
.pt-doc-card { display: none; padding: 12px 0; border-top: 1px solid var(--c-line2); }
.pt-doc-card:first-of-type { border-top: 0; }
.pt-doc-card .pt-row { justify-content: space-between; gap: 8px; }
.pt-doc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pt-doc-actions .pt-btn { min-height: 44px; }
.pt-copy-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--c-line2); }
.pt-copy-row:first-of-type { border-top: 0; }
.pt-copy-row .pt-copy-val { word-break: break-word; font-weight: 600; }
@media (max-width: 900px) {
  .pt-docs { display: none; }
  .pt-doc-card { display: block; }
}
/* ПРМ-101: раздел «Баланс» */
.pt-bal-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--c-line2); }
.pt-bal-row:first-of-type { border-top: 0; }
.pt-bal-row .pt-bal-sum { white-space: nowrap; font-weight: 600; text-align: right; }
.pt-bal-row .pt-bal-sum-red { color: var(--c-stop); }
.pt-bal-big { font-size: 26px; font-weight: 700; line-height: 1.2; }
.pt-bal-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pt-bal-act select, .pt-bal-act .pt-btn { min-height: 44px; }
/* ПРМ-103 (К4-1): каталог, карточка товара и избранное в кабинете (префикс pc-). Только токены кабинета, новых цветов нет. */
.pc-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--c-muted); margin: 0 0 4px; }
.pc-crumbs a { color: var(--c-text2); text-decoration: none; min-height: 24px; display: inline-flex; align-items: center; }
.pc-crumbs a:hover { text-decoration: underline; }
.pc-bar { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 8px; }
.pc-search { position: relative; display: flex; gap: 8px; flex: 1 1 auto; min-width: 0; }
.pc-search input[type=search] { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid var(--c-line3); border-radius: 12px; background: var(--c-surface); color: var(--c-text); font-size: 15px; }
.pc-search .pt-btn, .pc-groups-btn, .pc-apply { min-height: 44px; }
.pc-groups-btn { display: none; }
.pc-apply[hidden] { display: none; }
.pc-hints { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px; list-style: none; background: var(--c-surface); border: 1px solid var(--c-line3); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .15); max-height: 60vh; overflow: auto; }
.pc-hints[hidden] { display: none; }
.pc-hints li a { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; min-height: 44px; padding: 8px 10px; border-radius: 8px; color: var(--c-text); text-decoration: none; font-size: 14px; }
.pc-hints li[aria-selected=true] a, .pc-hints li a:hover { background: var(--c-gtint); }
.pc-hints small { color: var(--c-muted); font-size: 11.5px; white-space: nowrap; }
.pc-filters { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: 0 0 10px; }
.pc-chk { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid var(--c-line3); border-radius: 999px; background: var(--c-surface); font-size: 13px; cursor: pointer; }
.pc-chk input { margin: 0; width: 18px; height: 18px; accent-color: var(--c-green); }
.pc-chk:focus-within, .pc-sel select:focus-visible, .pc-search input:focus-visible { outline: 2px solid var(--c-green); outline-offset: 2px; }
.pc-sel select { min-height: 44px; max-width: 180px; padding: 0 8px; border: 1px solid var(--c-line3); border-radius: 12px; background: var(--c-surface); color: var(--c-text); font-size: 13px; }
.pc-reset { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--c-text2); }
.pc-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 16px; align-items: start; }
.pc-tree { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 2px; padding: 8px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 12px; max-height: calc(100vh - 90px); overflow: auto; }
.pc-tree-link { display: flex; justify-content: space-between; gap: 6px; align-items: center; min-height: 36px; padding: 4px 10px; border-radius: 8px; color: var(--c-text); text-decoration: none; font-size: 13.5px; }
.pc-tree-link:hover { background: var(--c-block); }
.pc-tree-link.on { background: var(--c-gtint); color: var(--c-gink); font-weight: 700; }
.pc-tree-sub { margin-left: 12px; font-size: 13px; }
.pc-tree-link small { color: var(--c-muted); font-size: 11.5px; }
.pc-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; flex-wrap: wrap; }
.pc-found { font-size: 13px; color: var(--c-muted); }
.pc-viewsw { display: inline-flex; border: 1px solid var(--c-line3); border-radius: 10px; overflow: hidden; }
.pc-viewsw button { min-height: 44px; padding: 0 14px; border: 0; background: var(--c-surface); color: var(--c-text2); font-size: 13px; cursor: pointer; }
.pc-viewsw button[aria-pressed=true] { background: var(--c-gtint); color: var(--c-gink); font-weight: 700; }
.pc-addall { margin: 0; }
/* ПРМ-117: карточка по макету. Плитки — степпер и «В корзину» отдельными строками на всю ширину, сердечко кругом поверх фото справа сверху;
   список — строка: фото 76 px, сердечко у названия, степпер и кнопка в одной строке (на ПК две колонки). Бейдж на фото — процент скидки. */
.pc-item { position: relative; }
/* ПРМ-123: без белой вспышки при перезагрузке каталога. Уходя, список притемняется на 0,12 с; новая страница проявляется с того же тона за 0,13 с.
   Ничего не двигается и не задерживается. Без анимации — при настройке «уменьшить движение». */
.pc-grid { transition: opacity .12s ease; }
.pc-leaving .pc-grid { opacity: .55; }
@keyframes pc-arrive { from { opacity: .55; } to { opacity: 1; } }
.pc-grid { animation: pc-arrive .13s ease-out; }
@media (prefers-reduced-motion: reduce) { .pc-grid { animation: none; transition: none; } .pc-leaving .pc-grid { opacity: 1; } }
.pc-grid[data-view=tiles] { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.pc-grid[data-view=tiles] .pc-item { display: flex; flex-direction: column; gap: 6px; padding: 10px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 12px; min-width: 0; }
.pc-grid[data-view=tiles] .pc-photo { height: 130px; }
.pc-grid[data-view=tiles] .pc-price { margin-top: auto; }
.pc-grid[data-view=tiles] .pc-buy { flex-direction: column; align-items: stretch; gap: 6px; }
.pc-grid[data-view=tiles] .pc-qty { display: flex; width: 100%; }
.pc-grid[data-view=tiles] .pc-qty button { flex: 0 0 44px; width: 44px; }
.pc-grid[data-view=tiles] .pc-qty-val { flex: 1 1 auto; justify-content: center; }
.pc-grid[data-view=tiles] .pc-add, .pc-grid[data-view=tiles] .pc-ask-btn { width: 100%; }
.pc-grid[data-view=tiles] .pc-fav-form { position: absolute; top: 14px; right: 14px; }
.pc-grid[data-view=tiles] .pc-fav { width: 36px; min-height: 36px; border-radius: 50%; }
.pc-grid[data-view=list] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pc-grid[data-view=list] .pc-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 6px 12px; align-items: start; padding: 10px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 14px; min-width: 0; }
.pc-grid[data-view=list] .pc-photo { grid-column: 1; grid-row: 1 / span 3; width: 76px; height: 76px; border: 1px solid var(--c-line); border-radius: 10px; }
.pc-grid[data-view=list] .pc-info, .pc-grid[data-view=list] .pc-price, .pc-grid[data-view=list] .pc-actions { grid-column: 2; min-width: 0; }
.pc-grid[data-view=list] .pc-info { padding-right: 36px; }
.pc-grid[data-view=list] .pc-actions { display: flex; gap: 8px; align-items: center; }
.pc-grid[data-view=list] .pc-buy { flex: 1 1 auto; min-width: 0; }
.pc-grid[data-view=list] .pc-add { flex: 1 1 auto; min-width: 0; }
.pc-grid[data-view=list] .pc-qty-unit { display: none; }
.pc-grid[data-view=list] .pc-qty button { width: 38px; }
.pc-grid[data-view=list] .pc-qty input { width: 40px; max-width: none; field-sizing: fixed; text-align: center; }
.pc-grid[data-view=list] .pc-fav-form { position: absolute; top: 4px; right: 4px; }
.pc-grid[data-view=list] .pc-fav { width: 36px; min-height: 36px; border-color: transparent; background: transparent; }
@media (max-width: 760px) { .pc-grid[data-view=list] { grid-template-columns: minmax(0, 1fr); } }
.pc-qty-val { display: inline-flex; align-items: baseline; gap: 4px; min-width: 0; }
.pc-item .pc-qty-val input { width: 3.4ch; min-width: 1.6ch; max-width: 6ch; padding: 0; text-align: right; field-sizing: content; }
.pc-qty-unit { font-size: 13px; color: var(--c-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70px; }
.pc-grid[data-view=list] .pc-name { min-height: 0; }
.pc-item .pc-qty-val input:disabled { opacity: 1; }
.pc-photo { position: relative; display: flex; align-items: center; justify-content: center; background: var(--c-block); border-radius: 8px; overflow: hidden; text-decoration: none; }
.pc-photo img { width: 100%; height: 100%; object-fit: contain; }
/* ПРМ-124: фото, догружающееся с сервера, проявляется за 0,12 с (класс ставит catalog.js, пока фото не готово) */
.pc-photo img { transition: opacity .12s ease; }
.pc-photo img.pc-img-wait { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .pc-photo img { transition: none; } }
.pc-nophoto { font-size: 11px; color: var(--c-muted); text-align: center; padding: 4px; }
.pc-sale { position: absolute; top: 4px; left: 4px; padding: 0 6px; border-radius: 6px; background: var(--c-accent); color: #ffffff; font-size: 11px; font-weight: 700; }
.pc-info { min-width: 0; }
.pc-name { display: block; color: var(--c-text); font-weight: 600; font-size: 14px; text-decoration: none; overflow-wrap: anywhere; line-height: 1.3; }
.pc-name:hover { text-decoration: underline; }
.pc-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12px; color: var(--c-muted); margin-top: 2px; }
/* статус наличия — бейдж (ПРМ-134): «Под заказ» своим оранжевым тоном и с часами, чтобы его не принимали за товар в наличии */
.pc-stock { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 12px; border: 1px solid transparent; font-size: 12px; font-weight: 700; line-height: 1.35; white-space: nowrap; }
.pc-stock::before { content: ""; width: 12px; height: 12px; flex: none; background-color: currentColor; -webkit-mask: var(--pc-stock-ic) center / contain no-repeat; mask: var(--pc-stock-ic) center / contain no-repeat; }
.pc-stock-in { --pc-stock-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background: var(--c-gtint); color: var(--c-gink); border-color: var(--c-gtint); }
.pc-stock-low { --pc-stock-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2.5v6.5' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='12.4' r='1.4'/%3E%3C/svg%3E"); background: var(--c-atint); color: var(--c-aink); border-color: var(--c-aline); }
.pc-stock-order { --pc-stock-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3Cpath d='M8 4.6V8l2.4 1.6' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background: var(--c-otint); color: var(--c-oink); border-color: var(--c-oline); }
.pc-stock-unknown { --pc-stock-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 6.2a2.1 2.1 0 1 1 3 1.9c-.7.4-1 .8-1 1.6' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='12.5' r='1.2'/%3E%3C/svg%3E"); background: var(--c-block); color: var(--c-muted); border-color: var(--c-line3); }
.pc-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 15px; }
.pc-price b { font-size: 16px; white-space: nowrap; }
.pc-price s { color: var(--c-muted); font-size: 12px; white-space: nowrap; }
.pc-unit { color: var(--c-muted); font-size: 12px; }
.pc-off { color: var(--c-accent); font-weight: 700; font-size: 12px; }
.pc-ask { color: var(--c-muted); font-size: 13px; }
.pc-buy { display: flex; gap: 6px; align-items: center; margin: 0; }
.pc-qty { display: inline-flex; align-items: center; border: 1px solid var(--c-line3); border-radius: 10px; overflow: hidden; }
.pc-qty button { width: 40px; min-height: 44px; border: 0; background: var(--c-block); color: var(--c-text); font-size: 18px; cursor: pointer; }
.pc-qty input { width: 52px; min-height: 44px; border: 0; text-align: center; background: var(--c-surface); color: var(--c-text); font-size: 15px; -moz-appearance: textfield; }
.pc-qty input::-webkit-outer-spin-button, .pc-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pc-add { min-height: 44px; }
.pc-ask-btn { min-height: 44px; }
.pc-fav-form { margin: 0; }
.pc-fav { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 44px; min-height: 44px; border: 1px solid var(--c-line3); border-radius: 10px; background: var(--c-surface); color: var(--c-muted); cursor: pointer; }
.pc-fav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pc-fav.on { color: var(--c-red); border-color: var(--c-rline); background: var(--c-rtint); }
.pc-fav.on svg { fill: currentColor; }
.pc-fav-line { width: auto; padding: 0 12px; font-size: 13px; }
.pc-fav:focus-visible, .pc-add:focus-visible, .pc-qty button:focus-visible, .pc-qty input:focus-visible, .pc-viewsw button:focus-visible, .pc-name:focus-visible, .pc-tree-link:focus-visible { outline: 2px solid var(--c-green); outline-offset: 2px; }
.pc-pages { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 12px 0; font-size: 13px; color: var(--c-muted); }
.pc-empty-list { margin: 0; padding-left: 18px; }
.pc-empty-list li { min-height: 28px; }
.pc-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin: 8px 0 12px; }
.pc-bigphoto { display: flex; align-items: center; justify-content: center; min-height: 260px; background: var(--c-block); border: 1px solid var(--c-line); border-radius: 12px; overflow: hidden; }
.pc-bigphoto img { max-width: 100%; max-height: 420px; object-fit: contain; }
.pc-thumbs { display: flex; gap: 6px; overflow-x: auto; margin-top: 6px; }
.pc-thumb { flex: 0 0 auto; width: 56px; height: 56px; padding: 0; border: 2px solid var(--c-line); border-radius: 8px; background: var(--c-block); cursor: pointer; }
.pc-thumb.on { border-color: var(--c-green); }
.pc-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.pc-h1 { font-size: 22px; margin: 0 0 6px; line-height: 1.25; overflow-wrap: anywhere; }
.pc-prod-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin: 0 0 8px; font-size: 13px; color: var(--c-muted); }
.pc-price-big b { font-size: 26px; }
.pc-buy-big { margin: 10px 0; }
.pc-bought { margin: 6px 0; font-size: 13px; color: var(--c-text2); }
.pc-facts { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--c-muted); }
.pc-block { margin: 12px 0; }
.pc-h2 { font-size: 18px; margin: 0 0 8px; }
.pc-specs { width: 100%; border-collapse: collapse; font-size: 13px; }
.pc-specs td { padding: 6px 8px; border-top: 1px solid var(--c-line2); vertical-align: top; }
.pc-specs td:first-child { color: var(--c-muted); width: 40%; }
.pc-video-frame iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; }
.pc-video-title { font-weight: 600; font-size: 13px; margin: 6px 0; }
.pc-doc { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--c-line2); }
.pc-doc-btns { display: inline-flex; gap: 6px; }
.pc-doc .pt-btn { min-height: 44px; }
@media (max-width: 900px) {
  .pc-name { display: flex; align-items: center; min-height: 44px; }
  .pc-layout { grid-template-columns: minmax(0, 1fr); }
  .pc-groups-btn { display: inline-flex; }
  .pc-tree { display: none; position: fixed; z-index: 40; top: 0; left: 0; bottom: 0; width: min(86vw, 320px); max-height: none; border-radius: 0 16px 16px 0; box-shadow: 8px 0 32px rgba(0, 0, 0, .3); padding-top: 16px; }
  .pc-tree.pc-open { display: flex; }
  .pc-product { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .pc-grid[data-view=tiles] .pc-qty button { flex-basis: 36px; width: 36px; }
  .pc-grid[data-view=tiles] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-sel select { max-width: 150px; }
  .pc-bar { flex-wrap: wrap; }
}
/* ПРМ-104 (К4-2): метки «Новинка» и «Акция до N %», страница «Акции и условия». Только токены кабинета. */
.pc-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 3px; }
.pc-chip { display: inline-flex; align-items: center; min-height: 20px; padding: 0 8px; border-radius: 12px; font-size: 11.5px; font-weight: 700; line-height: 1.35; padding-top: 2px; padding-bottom: 2px; max-width: 100%; overflow-wrap: anywhere; }
.pc-chip-new { background: var(--c-gtint); color: var(--c-gink); }
.pc-chip-promo { background: var(--c-atint); color: var(--c-aink); border: 1px solid var(--c-aline); }
.pc-promos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.pc-promo { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 12px; min-width: 0; }
.pc-promo-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.pc-promo-name { overflow-wrap: anywhere; font-size: 14px; }
.pc-promo-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12.5px; color: var(--c-muted); }
.pc-promo-note { margin: 2px 0 0; font-size: 13px; color: var(--c-text2); white-space: pre-line; overflow-wrap: anywhere; }
.pc-promo-btn { align-self: flex-start; min-height: 44px; }
.pc-promo-filter { margin: 0 0 8px; padding: 6px 10px; border: 1px solid var(--c-aline); background: var(--c-atint); color: var(--c-aink); border-radius: 10px; font-size: 13px; }
.pc-promo-filter a { display: inline-flex; align-items: center; min-height: 44px; color: var(--c-aink); font-weight: 700; }
