/* Страницы: pay*, offer/privacy/rules, admin. Только токены site.css. */
.pay-hero { border-radius: var(--radius); padding: 24px; margin: 8px 0 24px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.pay-hero .eyebrow { color: var(--muted); }
.pay-machine { font-weight: 1000; font-size: clamp(48px, 15vw, 88px); line-height: 1; letter-spacing: -0.03em; text-transform: uppercase; color: var(--accent); word-break: break-all; }
.pay-hero h1 { font-size: clamp(28px, 8vw, 40px); margin: 0; color: var(--paper); }
.pay-page .pay-screen, .pay-page .wrap { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
body.one-screen .wrap > .btn.punch { margin-top: 0; }
.wrap > .err { text-align: center; }
.wrap > .btn + .btn, .ok-actions > * + * { margin-top: 12px; }
.ok-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.ok-actions .link { margin: 0; text-align: center; }
.ok-actions .btn { width: 100%; }
.ok-actions[hidden] { display: none; }

.go.inv { border-radius: var(--radius); padding: 40px 24px 32px; margin-top: 8px; }
.go.inv h1 { color: var(--paper); font-size: clamp(40px, 12vw, 72px); margin: 16px 0 8px; }
.go.inv .machine { color: var(--muted); font-size: 16px; letter-spacing: 0.14em; }
.go.inv .hits { color: var(--accent); font-size: clamp(96px, 34vw, 160px); line-height: 1; margin: 16px 0 0; font-weight: 1000; letter-spacing: -0.04em; }
.hits-lbl, .timer-lbl { color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; font-size: 14px; margin-top: 4px; }
.go.inv .timer { color: var(--paper); font-size: clamp(40px, 12vw, 56px); font-weight: 1000; font-variant-numeric: tabular-nums; letter-spacing: 0; margin-top: 32px; }
.go .check, .go .cross { width: 88px; height: 88px; display: block; margin: 0 auto; fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.go .check circle { stroke: var(--accent); fill: var(--accent); transform-origin: center; animation: popIn 500ms var(--bounce) both; }
.go .check path { stroke: var(--ink); stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 500ms var(--ease) 350ms forwards; }
.go .cross circle { stroke: var(--danger); fill: var(--danger); }
.go .cross path { stroke: var(--paper); }
.fail-text { color: var(--muted); font-size: 17px; max-width: 30ch; margin: 8px auto 0; }
@keyframes popIn { from { transform: scale(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .go .check path { stroke-dashoffset: 0; animation: none; } .go .check circle { animation: none; } }

/* Юр. документы */
.doc { max-width: 720px; }
.doc > h1, .doc > p, .doc > h2 { max-width: 68ch; }
.doc > h1 { font-size: clamp(26px, 8.5vw, 48px); overflow-wrap: anywhere; text-transform: none; margin: 16px 0 8px; }
.doc > h1 + .muted { font-size: 15px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 2px solid var(--ink); }
.doc h2 { font-size: 22px; margin: 40px 0 8px; }
.doc p { font-size: 17px; line-height: 1.6; margin: 12px 0; }
.doc .muted a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.doc .land-foot { margin-top: 56px; padding-top: 32px; border-top: 2px solid var(--ink); }

/* Админка */
.admin-page .wrap { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
.admin-page .panel { padding: 24px; margin: 16px 0; }
.admin-page .panel-title { margin-bottom: 8px; }
.admin-page .promo-card { background: var(--paper); border-radius: var(--radius-sm); }
.admin-page input[type=file] { padding: 12px 16px; height: auto; }
@media (min-width: 720px) { .admin-page .wrap { max-width: 720px; } }
.doc .nav-mini a { color: var(--ink); font-weight: 800; }
.doc .nav-mini a.is-active { color: var(--paper); }
.doc .logo { color: var(--ink); }
.doc .land-foot .legal a { color: var(--muted); font-weight: 500; }
.doc .land-foot .legal a:hover { color: var(--ink); }

/* v10: админка — поля даты/времени не выпирают вправо, кнопки удаления */
.admin-page .wrap { overflow-x: clip; }
.admin-page .panel { overflow: hidden; }
.admin-page input, .admin-page select { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
.admin-page input[type="datetime-local"], .admin-page input[type="date"], .admin-page input[type="time"] {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; max-width: 100%; min-width: 0;
  min-height: 52px; padding: 0 16px; font-size: 16px; line-height: 52px; text-align: left; background-color: var(--card);
}
.admin-page input[type="datetime-local"]::-webkit-date-and-time-value { text-align: left; min-width: 0; }
.admin-page input[type="datetime-local"]::-webkit-calendar-picker-indicator { margin: 0; }
.admin-page .btn + .btn { margin-top: 8px; }
.admin-page .btn.danger { width: 100%; }

/* ── Экран после оплаты: кольцевой таймер и сила удара (2026-10-06) ── */
.ok-card .machine { margin: 0; color: var(--muted); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 13px; min-height: 1em; }
.ring { position: relative; width: clamp(150px, 34dvh, 220px); aspect-ratio: 1; margin: 6px auto 2px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,0.14); stroke-width: 7; }
.ring-fg { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; transition: stroke-dashoffset .3s linear, stroke .3s; }
.ring-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-num { color: var(--paper); font-size: clamp(48px, 11dvh, 76px); font-weight: 1000; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.ring-unit { color: var(--muted); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; min-height: 1em; }
.ok-card .status { color: var(--paper); font-weight: 900; font-size: clamp(18px, 3.2dvh, 24px); margin: 8px 0 0; text-align: center; }
.ok-card[data-state="expired"] .ring-fg, .ok-card[data-state="none"] .ring-fg, .ok-card[data-state="pending"] .ring-fg { stroke: rgba(255,255,255,0.25); }
.ok-card.is-low .ring-fg { stroke: #ff4d4d; }
.ok-card.is-low .ring-num { color: #ff6b6b; animation: ringPulse 1s ease-in-out infinite; }
.ok-card[data-state="done"] .ring-num { color: var(--accent); }
.force { display: flex; flex-direction: column; align-items: center; margin-top: 6px; }
.force-num { color: var(--accent); font-size: clamp(56px, 12dvh, 96px); font-weight: 1000; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.force-lbl { color: var(--muted); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; }
.force.pop .force-num { animation: forcePop .5s cubic-bezier(.2,1.4,.4,1); }
.hits-line { color: var(--muted); font-weight: 800; margin: 4px 0 0; }
.hits-line b { color: var(--paper); }
.ok-card .help { color: var(--muted); font-size: 14px; margin: 6px 0 0; text-align: center; }
.ok-card .help a { color: var(--paper); text-decoration: underline; }
@keyframes ringPulse { 50% { opacity: .65; } }
@keyframes forcePop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ring-fg { transition: none; } .ok-card.is-low .ring-num, .force.pop .force-num { animation: none; } }

/* Админка: тип силомеров у акции и справочник автоматов */
.kind-badge { align-self: flex-start; display: inline-block; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink); }
.kind-badge.kind-adult { background: var(--ink); color: var(--paper); }
.kind-badge.kind-kids { background: var(--accent); color: var(--ink); }
.hint-kind { font-size: 14px; margin: 6px 0 4px; }
.machine-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line, rgba(0,0,0,.12)); }
.machine-row:first-child { border-top: 0; }
.machine-row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.admin-page .machine-row select { width: auto; min-width: 140px; flex: none; }

/* Админка: раздел «Силомеры» */
#m-add { margin-bottom: 14px; }
#m-form { margin-bottom: 16px; }
#m-form .btn + .btn { margin-top: 10px; }
.m-secret { border: 2px solid var(--ink); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 14px; background: var(--card); display: flex; flex-direction: column; gap: 10px; }
.m-key { background: var(--ink); color: var(--paper); border-radius: 14px; padding: 12px; font-family: ui-monospace, monospace; font-size: 14px; word-break: break-all; }
.m-card.is-off { border-style: dashed; }
.m-off-note { margin: 0 0 10px; font-size: 14px; font-weight: 800; color: var(--danger, #c0392b); }
.m-board { font-size: 13px; font-weight: 700; color: var(--muted); }
.m-top { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.m-top > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.m-status { font-size: 13px; font-weight: 900; padding: 4px 10px; border-radius: 999px; white-space: nowrap; flex: none; }
.m-status.on { background: #d9f5df; color: #11692b; }
.m-status.warn { background: #fde0dc; color: #a0281a; }
.m-status.off { background: var(--paper-2); color: var(--muted); }
.m-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 4px; }
.m-contact { font-size: 14px; margin: 4px 0 0; }
.m-kpi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.m-kpi div { background: var(--paper-2); border-radius: 14px; padding: 10px 6px; text-align: center; min-width: 0; }
.m-kpi b { display: block; font-size: 18px; white-space: nowrap; }
.m-kpi span { font-size: 12px; color: var(--muted); font-weight: 800; }
.m-qr { display: flex; gap: 12px; align-items: center; margin: 6px 0 10px; }
.m-qr img { width: 88px; height: 88px; border: 2px solid var(--ink); border-radius: 12px; flex: none; background: #fff; }
.m-qr > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.m-qr .muted { font-size: 13px; word-break: break-all; }
.m-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.m-btns .btn { min-height: 46px; font-size: 15px; margin: 0; padding-left: 8px; padding-right: 8px; white-space: normal; line-height: 1.1; }
.m-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.m-tools .btn { min-height: 46px; font-size: 15px; margin: 0; text-decoration: none; display: flex; align-items: center; justify-content: center; }
.m-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 16px; }
.m-grid-item { display: flex; flex-direction: column; gap: 8px; }
.m-grid-item.is-off img { outline: 3px dashed var(--muted); outline-offset: -3px; }
.m-grid-item img { width: 100%; height: auto; display: block; border-radius: 16px; }
.m-qr-acts { display: flex; gap: 14px; font-weight: 800; }

/* Админка: подлисты */
.admin-page .admin-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 16px; }
.admin-page .admin-tabs .seg-btn { white-space: normal; line-height: 1.1; min-height: 52px; font-size: 14px; }

/* Силомеры: фильтры */
.m-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.m-filters #f-q { grid-column: 1 / -1; }
.admin-page .m-filters input, .admin-page .m-filters select { min-height: 46px; font-size: 15px; margin: 0; }
.m-found { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 14px; color: var(--muted); }
.m-found .link-btn { background: none; border: 0; color: var(--accent-press, var(--accent)); font-weight: 900; cursor: pointer; padding: 4px 0; font-size: 14px; }
#machines { display: grid; gap: 12px; }
#machines .promo-card { margin: 0; }

/* ── ПК-версия админки ── */
@media (min-width: 1024px) {
  .admin-page .wrap { max-width: 1240px; padding-left: 32px; padding-right: 32px; }
  .admin-page .admin-tabs { max-width: 640px; }
  .admin-page [data-pane="new"] { max-width: 760px; }
  #promos { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
  #promos .promo-card { margin: 0; }
  .m-tools { grid-template-columns: repeat(2, max-content); }
  .m-tools .btn { padding-left: 22px; padding-right: 22px; }
  #m-add { width: auto; padding-left: 28px; padding-right: 28px; }
  .m-filters { grid-template-columns: 2fr repeat(4, 1fr); align-items: center; }
  .m-filters #f-q { grid-column: auto; }
  #machines { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); align-items: start; }
  #m-form, .m-secret { max-width: 760px; }
}
