/* Запас — стили экранов: оплата, поддержка и справка, уведомления, профиль, страница для заведений.
   Подключён в index.html после /screens.css. Цвета — только переменные из /shared/tokens.css. */

/* плитка-иконка в строках меню: тона */
.menu-ic.urgent { background: var(--urgent-soft); color: var(--urgent); }
.menu-ic.ok { background: var(--ok-soft); color: var(--ok); }
.menu-ic.warn { background: var(--warn-soft); color: var(--warn); }
.menu-ic.info { background: var(--info-soft); color: var(--info); }

/* ───────── оплата ───────── */
.pay-debt { display: flex; flex-direction: column; gap: 12px; padding: 16px; margin: 4px 0 8px; border-radius: 24px; background: var(--urgent-soft); }
.pay-debt-top { display: flex; align-items: center; gap: 12px; }
.pay-debt-top .price { color: var(--urgent); margin-top: 4px; }
.pay-debt-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--urgent); color: var(--on-urgent); }
/* карта — «пластик» на графите, с водяным знаком «З» */
.pay-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; width: 100%; max-width: 344px; min-height: 176px; padding: 18px 20px 12px;
  border-radius: 24px; border: 1px solid var(--device-line); box-shadow: var(--sh-2); overflow: hidden; isolation: isolate; }
.pay-card::after { content: ''; position: absolute; z-index: -1; right: -26px; bottom: -34px; width: 190px; height: 190px; background: var(--device-2);
  -webkit-mask: url(/shared/brand/mark-mono.svg) center / contain no-repeat; mask: url(/shared/brand/mark-mono.svg) center / contain no-repeat; }
.pay-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pay-card-brand { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.pay-card-tags { display: flex; gap: 6px; }
.pay-card-tags .tag:not(.brand) { background: var(--device-2); color: var(--on-device-muted); }
.pay-card-num { font-size: 30px; font-weight: 750; letter-spacing: .05em; line-height: 1; }
.pay-card-bot { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; }
.pay-card .icon-btn { color: var(--on-device); margin-right: -10px; }
.pay-card .icon-btn:hover { background: var(--device-2); }
.pay-card.ghost { min-height: 150px; background: var(--surface-2); border: 1.5px dashed var(--line-strong); box-shadow: none; color: var(--faint); justify-content: center; }
.pay-card.ghost::after { background: var(--surface-3); }
.pay-nocard { display: flex; flex-direction: column; gap: 14px; }
.pay-safe { display: flex; align-items: flex-start; gap: 6px; margin-top: 12px; }
.pay-safe .ic { margin-top: 2px; }
.pay-bonus { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.pay-bonus-v { font-size: 20px; flex: none; }
.promo { margin-top: 14px; }
.promo-row { display: flex; gap: 8px; }
.promo-row .input { flex: 1 1 0; min-width: 0; font-weight: 650; letter-spacing: .04em; }
.promo-row .input::placeholder { font-weight: 400; letter-spacing: 0; }
.promo-row .btn { min-height: 50px; flex: none; }
.pm-sum { flex: none; font-weight: 700; white-space: nowrap; }
.pm-sum.is-plus { color: var(--ok); }
.pm-sum.is-quiet { color: var(--muted); font-weight: 600; }
.pm-sum.is-failed { color: var(--urgent); text-decoration: line-through; }

/* ───────── поддержка ───────── */
.tk-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.tk { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; }
.tk.is-unread { border-color: var(--primary-ink); box-shadow: inset 0 0 0 1px var(--primary-ink); }
.tk-top { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.tk-top b { flex: 1 1 0; min-width: 0; font-size: 16px; }
.tk-when { flex: none; }
.tk-last { margin: 2px 0 8px; }
.tk-bot { display: flex; flex-wrap: wrap; gap: 6px; }
.tk .vr-go { align-self: center; }

.sn-h { margin: 22px 0 10px; }
.sn-h:first-child { margin-top: 6px; }
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kind { display: flex; align-items: center; gap: 10px; min-height: 62px; padding: 10px 12px; border: 0; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.25; text-align: left; transition: background var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.kind-ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--ink-2); }
.kind.on { background: var(--device); color: var(--on-device); box-shadow: inset 0 0 0 1px var(--device-line), 0 0 0 2px var(--primary-ink); }
.kind.on .kind-ic { background: var(--device-2); color: var(--brand); }
.kinds .kind:last-child:nth-child(odd) { grid-column: 1 / -1; }
.sn-photos { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 6px; }
.ph { display: flex; flex-wrap: wrap; gap: 8px; }
.ph-i { position: relative; width: 76px; height: 76px; border-radius: 16px; overflow: hidden; background: var(--surface-2); flex: none; }
.ph-i img { width: 100%; height: 100%; object-fit: cover; }
.ph-i.busy img { opacity: .45; }
.ph-pct { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink); }
.ph-x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(8, 11, 9, .72); color: #fff; }
.ph-add { width: 76px; height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; flex: none; border: 1.5px dashed var(--field-line); border-radius: 16px;
  background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; }
.ph.compact .ph-i, .ph.compact .ph-add { width: 56px; height: 56px; border-radius: 12px; }

/* переписка: экран без нижнего меню, поле ввода прижато к низу */
html[data-route="/support/:id"] .main { padding-bottom: 0; }
.tkp { min-height: calc(100dvh - var(--hdr)); display: flex; flex-direction: column; }
.tkp-body { flex: 1 1 auto; width: 100%; padding-bottom: 16px; }
.chat { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.chat-day { align-self: center; padding: 10px 0 2px; font-size: 12px; font-weight: 650; color: var(--muted); }
.chat-sys { align-self: center; max-width: 88%; padding: 6px 12px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: 13px; text-align: center; }
.msg { display: flex; flex-direction: column; gap: 4px; max-width: 84%; padding: 10px 14px 8px; border-radius: 20px; }
.msg.me { align-self: flex-end; background: var(--primary-soft); border-bottom-right-radius: 6px; }
.msg.them { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg-who { font-size: 12px; font-weight: 700; color: var(--primary-ink); }
.msg-t { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-at { align-self: flex-end; font-size: 11px; color: var(--muted); }
.msg-ph { display: flex; flex-wrap: wrap; gap: 6px; }
.msg-ph-i { width: 96px; height: 96px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.msg-ph-i img { width: 100%; height: 100%; object-fit: cover; }
.chat-res { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; padding: 12px 14px; border-radius: 16px; background: var(--ok-soft); }
.chat-res .ic { color: var(--ok); margin-top: 2px; }
.chat-res p { font-size: 14px; color: var(--ink-2); }
.composer { position: sticky; bottom: 0; z-index: 35; padding: 8px 10px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.composer-in { max-width: var(--col); margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.composer-row { display: flex; align-items: flex-end; gap: 4px; }
textarea.composer-t { flex: 1 1 0; min-width: 0; min-height: 46px; height: 46px; max-height: 140px; padding: 11px 16px; border-radius: 23px; resize: none; line-height: 1.35; }
.composer-note { font-size: 12px; color: var(--muted); text-align: center; }
.composer-send { background: var(--surface-2); color: var(--muted); margin-left: 4px; }
.composer-send.on { background: var(--primary); color: var(--on-primary); box-shadow: inset 0 0 0 1px var(--primary-edge); }
.composer-send.on:hover { background: var(--primary-hover); }
.composer-send:disabled { opacity: .5; }
.photo-full { width: 100%; height: auto; border-radius: 16px; }

/* ───────── справка ───────── */
.steps { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.step { display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: center; gap: 14px; padding: 10px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.step-art { height: 124px; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; overflow: hidden; }
.step-art .zs { zoom: .68; }
.step-t { padding-right: 6px; }
.step-t h2 { font-size: 17px; margin: 6px 0 4px; letter-spacing: -.01em; }
.step-t p { font-size: 14px; }
.step-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; background: var(--primary); color: var(--on-primary); font-size: 14px; font-weight: 800; box-shadow: inset 0 0 0 1px var(--primary-edge); flex: none; }
.step-qr { position: relative; width: 84px; height: 84px; display: grid; place-items: center; }
.step-qr .mark { color: var(--on-device); }
.step-qr i { position: absolute; width: 22px; height: 22px; border: 3px solid var(--brand); }
.step-qr i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.step-qr i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.step-qr i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; }
.step-qr i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.step-timer { font-size: 17px; font-weight: 750; color: var(--on-device); }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.faq-i { border-bottom: 1px solid var(--line); }
.faq-i:last-child { border-bottom: 0; }
.faq-i summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 16px; font-weight: 650; cursor: pointer; list-style: none; }
.faq-i summary::-webkit-details-marker { display: none; }
.faq-i summary .ic { color: var(--faint); flex: none; transition: transform var(--t) var(--ease); }
.faq-i[open] summary .ic { transform: rotate(180deg); }
.faq-i p { padding: 0 16px 16px; color: var(--ink-2); }
.help-legal { margin-top: 20px; }
.help .facts { margin-top: 10px; }

/* ───────── уведомления ───────── */
.nt-list { display: flex; flex-direction: column; gap: 8px; }
.nt { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; }
.nt.is-new { background: color-mix(in oklab, var(--primary-soft) 55%, var(--surface)); border-color: color-mix(in oklab, var(--primary-ink) 28%, var(--line)); }
.nt-top { display: flex; align-items: baseline; gap: 10px; }
.nt-top b { flex: 1 1 0; min-width: 0; font-size: 15px; line-height: 1.3; }
.nt-when { flex: none; }
.nt-body { display: block; margin-top: 3px; font-size: 14px; line-height: 1.4; color: var(--ink-2); overflow-wrap: anywhere; }
.nt-dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--primary-ink); flex: none; }

/* ───────── профиль ───────── */
.me-card { display: flex; align-items: center; gap: 14px; padding: 16px; margin-top: 4px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; }
.me-name { font-size: 20px; letter-spacing: -.015em; }
.me-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.me-tile { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; }
.me-tile b, .me-tile .price { font-size: 17px; font-weight: 700; }
.me-debt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-top: 12px; border-radius: 20px; background: var(--urgent-soft); color: var(--ink); text-decoration: none !important; }
.me-debt b { color: var(--urgent); }
.pe-ava { display: flex; align-items: center; gap: 16px; margin: 8px 0 22px; }
.pe-ava-pic { position: relative; flex: none; }
.pe-ava-busy { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: color-mix(in oklab, var(--surface) 70%, transparent); }
.pe-ava-act { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.set-i { gap: 14px; padding-block: 13px; }

/* ───────── заведениям ───────── */
.pt-hero { display: flex; flex-direction: column; gap: 20px; padding: 22px 20px; margin-top: 4px; border-radius: 28px; border: 1px solid var(--device-line); box-shadow: var(--sh-2); overflow: hidden; }
.pt-hero-t { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.pt-hero h1 { font-size: 28px; line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
.pt-hero p { font-size: 16px; color: var(--on-device-muted); }
.pt-mark { color: var(--brand); }
.pt-hero-art { display: flex; justify-content: center; }
.pt-why { display: grid; gap: 10px; margin-top: 14px; }
.pt-why-i { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.pt-why-i b { display: block; margin-bottom: 2px; }
.pt-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.pt-steps li { display: flex; align-items: flex-start; gap: 12px; }
.pt-steps b { display: block; margin-bottom: 2px; }
.pt-done { align-items: center; text-align: center; padding: 28px 16px; }
@media (min-width: 620px) {
  .pt-hero { flex-direction: row; align-items: center; padding: 28px; }
  .pt-hero-t { flex: 1 1 0; }
  .pt-why { grid-template-columns: 1fr 1fr; }
}
