:root { color-scheme: light; --bg: #f3f4f2; --surface: #fff; --ink: #202722; --muted: #737b74; --line: #dfe4de; --accent: #285b43; --accent-hover: #1f4935; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
a { color: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #9abb9d; outline-offset: 4px; }
.shell { min-height: 100svh; max-width: 1120px; padding: 0 40px; margin: auto; display: flex; flex-direction: column; }
.header { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 17px; font-weight: 650; letter-spacing: -.4px; }
.brand-mark { display: flex; gap: 3px; align-items: flex-end; width: 28px; height: 26px; }
.brand-mark i { width: 6px; background: var(--accent); border-radius: 1px; height: 12px; }
.brand-mark i:nth-child(2) { height: 19px; }
.brand-mark i:nth-child(3) { height: 26px; }
.header-label, .eyebrow, .footer > span:first-child { font-size: 10px; letter-spacing: 1.6px; font-weight: 650; color: var(--muted); }
main { flex: 1; width: 100%; max-width: 512px; margin: 52px auto 44px; }
.demo-banner { display: flex; align-items: center; gap: 8px; padding: 0 1px 16px; color: #6b6b53; font-size: 12px; line-height: 1.5; }
.dot { flex-shrink: 0; width: 6px; height: 6px; background: #9b8d4d; border-radius: 50%; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 32px 36px; box-shadow: 0 2px 5px #26332504; }
.panel-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 23px; }
.panel-symbol { color: var(--accent); font-size: 26px; font-weight: 350; line-height: 1; }
h1 { margin: 0 0 13px; font-size: 30px; line-height: 1.15; letter-spacing: -1.2px; font-weight: 600; }
.intro { margin: 0 0 29px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.field { margin-bottom: 23px; }
label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 600; }
input { display: block; width: 100%; height: 49px; border: 1px solid var(--line); border-radius: 4px; background: #fcfdfb; color: var(--ink); padding: 0 14px; transition: border-color .15s, box-shadow .15s; }
input::placeholder { color: #a0a79f; }
input:focus { outline: none; border-color: #719d7b; box-shadow: 0 0 0 3px #285b4310; }
.hint { display: block; color: var(--muted); font-size: 11px; line-height: 1.65; margin-top: 7px; }
.amount-input { position: relative; }
.amount-input input { font-size: 20px; font-weight: 500; letter-spacing: -.4px; padding-right: 45px; }
.amount-input > span { position: absolute; right: 15px; top: 13px; color: var(--muted); font-size: 18px; }
.presets { display: flex; gap: 8px; margin-top: 9px; }
.presets button { flex: 1; background: #f7f8f5; border: 1px solid var(--line); border-radius: 4px; padding: 8px 4px; font-size: 12px; color: #6b746b; cursor: pointer; transition: .15s; }
.presets button:hover { background: #edf2eb; }
.presets button[aria-pressed="true"] { color: var(--accent); border-color: #a8bda8; background: #edf3ed; }
.button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 49px; padding: 12px 17px; border: 1px solid transparent; border-radius: 4px; font-size: 13px; font-weight: 550; text-decoration: none; cursor: pointer; transition: background .15s; }
.primary { background: var(--accent); color: #fff; }
.primary:hover { background: var(--accent-hover); }
.secondary { margin-top: 10px; border-color: var(--line); background: #fafbf8; color: #657064; justify-content: center; }
.secondary:hover { background: #edf2eb; }
button:disabled { opacity: .65; cursor: wait; }
.button-arrow { font-size: 20px; font-weight: 400; line-height: 1; }
.payment-note { display: flex; justify-content: center; align-items: center; gap: 7px; margin: 14px 0 0; color: #879087; font-size: 10px; line-height: 1.6; }
.payment-note svg { flex-shrink: 0; }
.below-panel { text-align: center; margin: 21px 0 0; color: #949c93; font-size: 11px; }
.footer { padding: 24px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.footer > span:last-child { color: var(--muted); font-size: 11px; max-width: 50%; text-align: right; line-height: 1.6; }
.message { padding: 12px; border-radius: 4px; font-size: 12px; line-height: 1.6; }
.error { background: #faf0ec; color: #9a4b37; border: 1px solid #eddbd3; }
.status-symbol { display: grid; place-items: center; background: #edf3ed; color: var(--accent); height: 36px; width: 36px; border-radius: 50%; font-size: 20px; }
.details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 9px 0; margin: 0 0 24px; }
.details > div { display: flex; gap: 20px; justify-content: space-between; padding: 9px 0; font-size: 13px; line-height: 1.5; }
dt { color: var(--muted); }
dd { margin: 0; text-align: right; max-width: 70%; }
.demo-actions { margin-bottom: 18px; }
.demo-actions > .hint { margin-bottom: 13px; }
.text-link { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; font-size: 12px; color: var(--accent); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.reference { font-size: 10px; line-height: 1.7; color: #959d94; margin: 22px 0 0; word-break: break-all; }
@media (max-width: 600px) {
  .shell { padding: 0 20px; }
  .header { min-height: 75px; }
  .header-label { font-size: 8px; letter-spacing: .8px; }
  .brand { font-size: 15px; }
  main { margin-top: 30px; }
  .panel { padding: 26px 24px; }
  h1 { font-size: 27px; }
  .footer { align-items: flex-start; }
  .footer > span:first-child { font-size: 8px; line-height: 1.8; max-width: 40%; }
  .footer > span:last-child { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Журнал использует тот же спокойный стиль; таблицы прокручиваются на телефоне. */
.admin-shell { max-width: 1280px; }
.admin-main { max-width: none; }
.admin-filters { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 20px; }
.admin-filters > div:first-child { flex: 1; }
.admin-filters select { height: 49px; width: 100%; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; background: #fcfdfb; color: var(--ink); font: inherit; }
.admin-filters .button { width: auto; }
.admin-table-wrap { overflow-x: auto; padding: 0; }
.admin-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.admin-table th { color: var(--muted); font-weight: 500; white-space: nowrap; background: #fafbf8; }
.admin-table th, .admin-table td { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.6; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table td { min-width: 150px; overflow-wrap: anywhere; }
.admin-table-wrap > .hint { padding: 16px; margin: 0; }
.admin-event-button { border: 0; padding: 0; background: none; color: var(--accent); cursor: pointer; margin-top: 6px; font-size: 12px; text-decoration: underline; }
.admin-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 16px 0 28px; }
.admin-pagination .button { width: auto; min-height: 40px; margin: 0; }
.admin-pagination .hint { margin: 0; }
.admin-details h2 { font-size: 18px; font-weight: 550; overflow-wrap: anywhere; margin: 0 0 20px; }
.admin-details dd { overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
  .admin-filters { flex-wrap: wrap; }
  .admin-filters > div:first-child { flex-basis: 100%; }
  .admin-filters > div:nth-child(2) { flex: 1; }
  .admin-table th, .admin-table td { padding: 12px; }
  .admin-details { padding: 22px 16px; }
}
