/* oplata.express — the site speaks the payment form's own language (web/src/styles.css): a warm light canvas,
   a dark receipt printer, paper receipts in mono type, a foil seal and ink stamps. */

/* Fonts: Sofia Sans Extra Condensed for headlines, Onest for text, JetBrains Mono for everything a receipt would print.
   The «ext» files carry the rouble sign. «Head Fallback» is Arial squeezed to the headline's width, so lines break the
   same way before the real face arrives. */
@font-face { font-family: Onest; font-weight: 400; font-display: swap; src: url(/_s/onest-cyrillic-400.woff2?v=51adb4c8c5) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Onest; font-weight: 500; font-display: swap; src: url(/_s/onest-cyrillic-500.woff2?v=a345dcbda6) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Onest; font-weight: 600; font-display: swap; src: url(/_s/onest-cyrillic-600.woff2?v=73984d20ad) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Sofia Sans Extra Condensed"; font-weight: 800; font-display: swap; src: url(/_s/sofia-cyrillic-800.woff2?v=5a842e9615) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Onest; font-weight: 400; font-display: swap; src: url(/_s/onest-latin-400.woff2?v=93dfb945d2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Onest; font-weight: 500; font-display: swap; src: url(/_s/onest-latin-500.woff2?v=83c1e16166) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Onest; font-weight: 600; font-display: swap; src: url(/_s/onest-latin-600.woff2?v=a56e6d2dcc) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sofia Sans Extra Condensed"; font-weight: 800; font-display: swap; src: url(/_s/sofia-latin-800.woff2?v=9e26fb6773) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url(/_s/mono-cyrillic-500.woff2?v=26c9ed511d) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-display: swap; src: url(/_s/mono-cyrillic-700.woff2?v=6251ef44d6) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url(/_s/mono-latin-500.woff2?v=cb182feeed) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-display: swap; src: url(/_s/mono-latin-700.woff2?v=d0d4e81880) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url(/_s/mono-ext-500.woff2?v=879df9319f) format("woff2"); unicode-range: U+20BD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-display: swap; src: url(/_s/mono-ext-700.woff2?v=45a606d88f) format("woff2"); unicode-range: U+20BD; }
@font-face { font-family: "Press Start 2P"; font-weight: 400; font-display: swap; src: url(/_s/pixel-latin.woff2?v=afec86997f) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Press Start 2P"; font-weight: 400; font-display: swap; src: url(/_s/pixel-cyrillic.woff2?v=c2a20dcb95) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Press Start 2P"; font-weight: 400; font-display: swap; src: url(/_s/pixel-latin-ext.woff2?v=3c7df3a15e) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

@font-face { font-family: "Head Fallback"; src: local(Arial), local(Helvetica), local("Liberation Sans"); size-adjust: 62%; }

@property --ha { syntax: "<number>"; inherits: true; initial-value: 24; }

:root {
  --canvas: #ebe8df;
  --ink: #1c1b18;
  --ink-75: rgba(28, 27, 24, 0.82);
  --ink-60: rgba(28, 27, 24, 0.72);
  --paper: #fffdf7; --marker: rgba(78, 227, 191, 0.5);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .11 0 0 0 0 .1 0 0 0 0 .08 .07 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --ink-30: rgba(28, 27, 24, 0.3);
  --hair: rgba(28, 27, 24, 0.1);
  --focus: #1463ff;
  --green: #1dc471;
  --green-ink: #0a7340;
  --red: #c8101a;
  --orange: #a24c17; /* 4.78:1 on the canvas, 5.76:1 on paper — small stamp text passes WCAG AA */
  --hl: linear-gradient(#4ee3bf, #4ee3bf);
  --curl: linear-gradient(90deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0) 5%, rgba(0, 0, 0, 0) 95%, rgba(0, 0, 0, 0.04));
  --head: "Sofia Sans Extra Condensed", "Head Fallback", "Arial Narrow", sans-serif;
  --ui: Onest, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.2, 0.9, 0.3, 1.25);
  --lift: 0 0 0 1px rgba(28, 27, 24, 0.08), 0 1px 2px rgba(28, 27, 24, 0.08), 0 22px 44px -22px rgba(28, 27, 24, 0.36);
  --rosette: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20110%20110%22%3E%3Cpath%20transform%3D%22translate(5%205)%22%20d%3D%22M91.00%2050.00Q101.19%2063.72%2085.51%2070.50Q87.48%2087.48%2070.50%2085.51Q63.72%20101.19%2050.00%2091.00Q36.28%20101.19%2029.50%2085.51Q12.52%2087.48%2014.49%2070.50Q-1.19%2063.72%209.00%2050.00Q-1.19%2036.28%2014.49%2029.50Q12.52%2012.52%2029.50%2014.49Q36.28%20-1.19%2050.00%209.00Q63.72%20-1.19%2070.50%2014.49Q87.48%2012.52%2085.51%2029.50Q101.19%2036.28%2091.00%2050.00Z%22%2F%3E%3C%2Fsvg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--canvas); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--ink); font: 400 17px/1.55 var(--ui); overflow-x: clip; -webkit-font-smoothing: antialiased; }
main { flex: 1; counter-reset: sec; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.ico { width: 18px; height: 18px; flex: none; }
.sbp { height: 1.15em; width: auto; flex: none; }

/* Type */
.display { font: 600 clamp(2.3rem, 4.2vw, 3.6rem) / 1.08 var(--ui); letter-spacing: -0.03em; text-wrap: balance; }
.h2 { font: 600 clamp(1.8rem, 3vw, 2.5rem) / 1.15 var(--ui); letter-spacing: -0.025em; text-wrap: balance; }
.display em, .h2 em { font-style: normal; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.5; color: var(--ink-75); max-width: 34em; }
p, summary { text-wrap: pretty; }
h3 { text-wrap: balance; }
.sub { color: var(--ink-75); font-size: 1.08rem; max-width: 36em; }
.cap, .eyebrow, .num { font: 500 13px/18px var(--ui); color: var(--ink-60); }
.num { font-weight: 700; }
.draft { border-bottom: 1.5px dashed var(--orange); cursor: help; white-space: nowrap; }
/* «кого-то», «что-либо»: the hyphen is not a place to break the line. */
.nb { white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 26px; border: 0; border-radius: 15px; font: 600 16px/20px var(--ui); white-space: nowrap; cursor: pointer; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: linear-gradient(#31302d, #1c1b18); color: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 4px 8px -2px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn-primary:hover { box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 12px 22px -8px rgba(28, 27, 24, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.18); transform: translateY(-1px); }
.btn-secondary { background: rgba(255, 255, 255, 0.6); box-shadow: inset 0 0 0 1.5px rgba(28, 27, 24, 0.16); }
.btn-secondary:hover { background: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(28, 27, 24, 0.4); }
.btn-sm { height: 40px; padding: 0 16px; border-radius: 12px; font-size: 12.5px; }
.btn:disabled { opacity: 0.55; cursor: default; transform: none; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; }
.acts .more { align-self: center; }
.acts-br { flex-basis: 100%; height: 0; } /* the text link goes under the two buttons, flush with them */

/* Small things shared by the sections */
.led { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 46%), var(--led, var(--green)); box-shadow: 0 0 0 2.5px rgba(0, 0, 0, 0.32); }
.engrave { font: 700 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.7); }
.stars { height: 10px; margin: 10px 0 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cpath d='M5 1.7v6.6M2.14 3.35l5.72 3.3M7.86 3.35l-5.72 3.3' stroke='%231a1835' stroke-opacity='.3' stroke-width='1.1'/%3E%3C/svg%3E") 50% 0 repeat-x; }
.rule { height: 0; margin: 10px 0; border-top: 1px dashed var(--ink-30); }
.stamp { display: inline-block; padding: 3px 10px; border: 1px solid currentColor; border-radius: 999px; font: 500 13px/18px var(--ui); color: var(--orange); white-space: nowrap; }
.stamp.is-ok { color: var(--green-ink); }
.stamp.is-bad { color: var(--red); }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 5px 11px; border: 0; border-radius: 9px; background: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(28, 27, 24, 0.14); font: 500 13px/18px var(--ui); color: var(--ink); }
.chip .ico { width: 14px; height: 14px; }
.chip .led { box-shadow: 0 0 0 2.5px rgba(29, 196, 113, 0.18); }
.chip.is-cmd { background: var(--ink); color: #fff; box-shadow: none; }
.chip.is-dash { background: none; box-shadow: none; outline: 1.5px dashed var(--ink-30); outline-offset: -1.5px; color: var(--ink-75); }
.chip.is-no { color: var(--ink-60); }
.chip.is-no .ico { color: var(--red); }
.chip.is-yes { box-shadow: inset 0 0 0 1.5px var(--green); }
.chip.is-yes .ico { color: var(--green-ink); }
button.chip { cursor: pointer; }
button.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.flow { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 500 13px/18px var(--ui); }
.flow b { padding: 5px 10px; border-radius: 9px; background: var(--ink); color: #fff; font-weight: 500; }
.flow .ico { width: 15px; height: 15px; color: var(--ink-60); }
.barcode { width: 100%; height: 34px; fill: var(--ink); }
.qr { width: 100%; height: auto; color: var(--ink); }
.qr-box { display: block; flex: none; width: 112px; padding: 9px; border-radius: 14px; background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--hl) border-box; border: 1.5px solid transparent; }
.more { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/20px var(--ui); border-bottom: 1.5px solid var(--ink-30); padding-bottom: 3px; transition: border-color 0.2s, gap 0.2s var(--ease); }
.more:hover { border-color: var(--ink); gap: 12px; }
button.more { padding: 0 0 3px; border-width: 0 0 1.5px; background: none; cursor: pointer; }

/* The foil seal of a paid invoice */
.holo { position: relative; display: block; flex: none; width: 60px; aspect-ratio: 1; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.14)); }
.holo-foil { position: absolute; inset: 0; -webkit-mask: var(--rosette) center / 100% 100% no-repeat; mask: var(--rosette) center / 100% 100% no-repeat; transition: --ha 1.4s var(--ease);
  background:
    radial-gradient(circle at 58% 29%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 38%),
    repeating-conic-gradient(from calc(var(--ha) * 1deg), rgba(255, 255, 255, 0) 0deg 5deg, rgba(255, 255, 255, 0.3) 5deg 6deg),
    conic-gradient(from calc(var(--ha) * 1deg), #2fd9ae, #b6f5e4, #4ee3bf, #19b888, #d4f9ee, #2fd9ae); }
.holo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.holo svg path { fill: none; stroke: var(--ink); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.holo:hover .holo-foil, .rc:hover .holo-foil { --ha: 204; }

/* Paper receipt */
.rc { position: relative; background: var(--grain), var(--paper); box-shadow: var(--lift); font: 500 13px/20px var(--mono); }
.rc::after, .faq::after, .toc-box::after, .prose::after { content: ""; position: absolute; left: 0; right: 0; top: calc(100% - 0.5px); height: 8px; background: var(--grain), var(--paper); -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 0 / 14px 100% repeat-x; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 0 / 14px 100% repeat-x; }
.rc-main { padding: 22px 22px 18px; background: var(--curl), var(--grain), var(--paper); }
.rc-stub { padding: 14px 22px 16px; border-top: 1.5px dashed rgba(28, 27, 24, 0.22); background: var(--curl), var(--grain), var(--paper); }
.rc-brand { font: 700 15px/20px var(--mono); letter-spacing: 0.2em; text-transform: uppercase; text-align: center; }
.rc-kind { margin: 2px 0 0; font: 500 11px/18px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; text-align: center; color: var(--ink-60); }
.rc-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 12px; padding: 2px 0; }
.rc-row:has(.sbp) { align-items: center; }
.rc-row > span { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-60); }
.rc-row > b { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-align: right; white-space: nowrap; }
.rc-total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.rc-total > span { font: 700 13px/20px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.rc-total > b { margin-left: auto; font: 700 28px/34px var(--mono); letter-spacing: -0.03em; white-space: nowrap; }
.rc-stub .barcode { margin-top: 10px; }

/* Header and footer */
.site-hd { position: sticky; top: 0; z-index: 20; background: var(--canvas); border-bottom: 1px solid var(--hair); }
.hdr { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; }
.mark { height: 24px; width: auto; }
.wm { height: 10px; width: auto; }
.hd-nav { display: flex; gap: 2px; margin-left: 10px; }
.hd-nav a, .menu nav a { padding: 8px 12px; border-radius: 10px; font: 500 14px/20px var(--ui); color: var(--ink-75); transition: background 0.2s, color 0.2s; }
.hd-nav a:hover, .menu nav a:hover { color: var(--ink); background: rgba(28, 27, 24, 0.06); }
.hd-nav a[aria-current], .menu nav a[aria-current] { color: var(--ink); background: rgba(28, 27, 24, 0.07); }
.hd-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu nav a:last-child { display: none; }
.lang { display: inline-flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 12px; font: 700 12px/1 var(--mono); letter-spacing: 0.1em; box-shadow: inset 0 0 0 1.5px rgba(28, 27, 24, 0.16); }
.lang:hover { box-shadow: inset 0 0 0 1.5px rgba(28, 27, 24, 0.4); }
.menu { display: none; position: relative; }
.menu summary { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; list-style: none; cursor: pointer; box-shadow: inset 0 0 0 1.5px rgba(28, 27, 24, 0.16); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after { display: block; width: 16px; height: 1.5px; border-radius: 2px; background: var(--ink); }
.menu summary span { position: relative; }
.menu summary span::before, .menu summary span::after { content: ""; position: absolute; left: 0; }
.menu summary span::before { top: -5px; }
.menu summary span::after { top: 5px; }
.menu summary span, .menu summary span::before, .menu summary span::after { transition: top 0.2s, rotate 0.2s, background 0.2s; }
.menu[open] summary span { background: transparent; }
.menu[open] summary span::before { top: 0; rotate: 45deg; }
.menu[open] summary span::after { top: 0; rotate: -45deg; }
.menu nav a { padding: 12px; }
/* The open menu dims the page with its own shadow, so nothing of the page reads through around the panel; the button stays above the dimming. */
.menu[open] summary { position: relative; z-index: 1; background: var(--paper); }
.menu nav { position: absolute; right: 0; top: calc(100% + 10px); display: grid; gap: 2px; min-width: 210px; padding: 8px; border-radius: 16px; background: var(--paper); box-shadow: var(--lift), 0 0 0 200vmax rgba(28, 27, 24, 0.6); }
.site-ft { padding: 34px 0 40px; border-top: 1px solid var(--hair); }
.site-ft .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; font: 500 13px/18px var(--ui); color: var(--ink-60); }
.site-ft .mark { height: 18px; color: var(--ink); }
.ft-brand { display: inline-flex; align-items: center; gap: 12px; min-height: 32px; }
.ft-nav { display: flex; flex-wrap: wrap; gap: 0 22px; letter-spacing: 0.04em; }
.ft-nav a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink-75); } /* a finger needs 24px and more */
.ft-nav a:hover { color: var(--ink); }

/* First screen: the copy and the receipt printer */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr); gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 56px; }
.hero-copy { display: grid; gap: 26px; justify-items: start; }
.hero-h { position: relative; display: grid; justify-items: start; }
@keyframes blink { 50% { opacity: 0.35; } }
.points { display: flex; flex-wrap: wrap; padding: 14px 0; border-top: 1px dashed var(--ink-30); border-bottom: 1px dashed var(--ink-30); font: 500 15px/22px var(--ui); }
.points li + li { margin-left: 16px; padding-left: 16px; border-left: 1px dashed var(--ink-30); }
.printer { width: 100%; max-width: 440px; margin: 0 auto; }
.slab-box { position: relative; z-index: 1; perspective: 900px; }
.slab { position: relative; height: 96px; border-radius: 18px 18px 30px 30px; transform: rotateX(16deg); transform-origin: 50% 100%; transition: transform 0.15s var(--ease);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0) 9%, rgba(255, 255, 255, 0.05) 50%, rgba(0, 0, 0, 0) 91%, rgba(0, 0, 0, 0.42)),
    linear-gradient(#0c0b08 0%, #1e1d1a 34%, #33322f 62%, #3d3c39 78%, #252421 92%, #1b1a17 100%);
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.13), inset 0 -16px 18px rgba(0, 0, 0, 0.3), 0 14px 24px -8px rgba(0, 0, 0, 0.28), 0 2px 3px rgba(0, 0, 0, 0.3); }
.slab .engrave { position: absolute; left: 24px; top: 24px; }
.slab .led { position: absolute; right: 26px; top: 26px; animation: blink 2.4s steps(1, end) infinite; }
.slot { position: absolute; left: 6%; right: 6%; bottom: 14px; height: 16px; border-radius: 10px; background: linear-gradient(#020206, #0d0c09); box-shadow: inset 0 3px 6px #000, 0 1px 0 rgba(255, 255, 255, 0.14); }
.js .slab { cursor: pointer; }
.js .slab:active { transform: rotateX(16deg) translateY(2px); }
.feed { position: relative; z-index: 2; width: 84%; margin: -22px auto 0; clip-path: inset(0 -60px -90px -60px); }
.printer .rc { animation: print 1s cubic-bezier(0.25, 0.6, 0.2, 1) 0.2s both; }
.printer .rc-main { padding-top: 40px; background: linear-gradient(rgba(9, 8, 5, 0.5), rgba(9, 8, 5, 0.2) 20px, rgba(9, 8, 5, 0.06) 48px, rgba(9, 8, 5, 0) 80px), var(--curl), var(--grain), var(--paper); }
.rc-seal { display: flex; align-items: center; gap: 12px; margin-top: 12px; font: 700 11px/16px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-ink); }
.printer .holo { width: 76px; animation: slam 0.5s var(--spring) 1.25s both; }
.hint { display: none; margin-top: 22px; text-align: center; text-wrap: balance; font: 500 13px/18px var(--ui); color: var(--ink-75); }
.js .hint { display: block; }
@keyframes print { from { transform: translateY(-102%); } }
@keyframes slam { 0% { opacity: 0; transform: scale(2.4) rotate(-14deg); } 60% { opacity: 1; transform: scale(0.92); } 100% { transform: none; } }

/* Sections */
.sec { padding: 68px 0; }
.sec-hd { display: grid; gap: 16px; max-width: 760px; margin-bottom: 44px; }
.wrap:not(.aud-grid, .faq-grid) > .sec-hd { max-width: none; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 18px 56px; align-items: end; padding-top: 16px; border-top: 1.5px solid var(--ink); }
.sec-hd .h2 { align-self: start; font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.12; }
.wrap:not(.aud-grid, .faq-grid) > .sec-hd .sub { padding-bottom: 0.4em; }

/* Payment methods: tickets and the real form */
.pm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: center; }
.pm-list { display: grid; gap: 18px; }
.ticket { --tx: 28px; padding: 28px var(--tx); border-radius: 10px; background: var(--grain), var(--paper); box-shadow: var(--lift); }
.ticket-hd { position: relative; display: flex; align-items: center; gap: 12px; padding-bottom: 20px; border-bottom: 1.5px dashed rgba(28, 27, 24, 0.22); }
.ticket-hd::before, .ticket-hd::after { content: ""; position: absolute; bottom: -12px; width: 12px; height: 22px; background: var(--canvas); border: 1px solid rgba(28, 27, 24, 0.2); }
.ticket-hd::before { left: calc(-1px - var(--tx)); border-left: 0; border-radius: 0 12px 12px 0; }
.ticket-hd::after { right: calc(-1px - var(--tx)); border-right: 0; border-radius: 12px 0 0 12px; }
.ticket-hd .sbp { height: 30px; }
.ticket h3 { font: 600 1.25rem/1.2 var(--ui); letter-spacing: -0.02em; }
.ticket-halves { display: grid; grid-template-columns: 1fr 1fr; }
.half { display: grid; align-content: start; gap: 8px; padding: 22px 26px 0 0; }
.half + .half { padding: 22px 0 0 26px; border-left: 1.5px dashed rgba(28, 27, 24, 0.22); }
.half h4 { font: 500 13px/18px var(--ui); color: var(--ink-60); }
.half p, .ticket.is-soon p { color: var(--ink-75); font-size: 0.98rem; line-height: 1.45; }
.demo { display: flex; align-items: center; gap: 14px; margin-top: 10px; min-height: 112px; }
.demo .cap { max-width: 9em; }
.bank-btn { display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 20px; border-radius: 15px; background: linear-gradient(#31302d, #1c1b18); color: #fff; font: 600 16px/20px var(--ui); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 10px 18px -8px rgba(28, 27, 24, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.bank-btn .sbp { height: 22px; padding: 3px; box-sizing: content-box; border-radius: 6px; background: #fff; }
.ticket.is-soon { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(255, 253, 247, 0.5); border: 1.5px dashed var(--ink-30); box-shadow: none; }
.ticket.is-soon h3 { margin-bottom: 4px; color: var(--ink-75); }
.shot { justify-self: center; width: 100%; max-width: 284px; padding: 8px; border-radius: 38px; background: linear-gradient(#31302d, #1c1b18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 30px 50px -24px rgba(28, 27, 24, 0.55); }
/* The screen of the phone: the payment form's first receipt, drawn from the site's own parts */
.pay { position: relative; padding: 38px 12px 26px; border-radius: 30px; background: var(--canvas); overflow: hidden; }
.pay::before { content: ""; position: absolute; top: 12px; left: 50%; width: 62px; height: 7px; margin-left: -31px; border-radius: 4px; background: rgba(28, 27, 24, 0.82); }
.pay .rc { font-size: 12px; }
.pay .rc-main { padding: 18px 16px 14px; }
.pay .rc-stub { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 14px 16px 16px; }
.pay-wm { display: flex; justify-content: center; margin-bottom: 4px; }
.pay-wm .wm { height: 9px; }
.pay-item, .pay-total { display: grid; gap: 2px; }
.pay-item > span, .pay-total > div > span:first-child { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-60); }
.pay-item > b { font: 600 15px/20px var(--ui); }
.pay-total > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pay-total > b { font: 700 25px/32px var(--mono); letter-spacing: -0.03em; white-space: nowrap; }
.pay-way { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 11px; box-shadow: inset 0 0 0 1.5px var(--ink); font: 600 14px/20px var(--ui); }
.pay-way > span { margin-right: auto; }
.pay-way .sbp { height: 20px; }
.pay-way .ico { color: var(--green-ink); }
.pay-way.is-off { box-shadow: inset 0 0 0 1.5px rgba(28, 27, 24, 0.14); color: var(--ink-60); }
.pay-way.is-off .ico { color: inherit; }
.pay-way > i { font: 500 13px/18px var(--ui); font-style: normal; }
.pay-btn { justify-content: center; gap: 6px; height: 46px; padding: 0 8px; border-radius: 13px; font-size: 13px; white-space: nowrap; }
.pay-btn .ico { width: 16px; height: 16px; }
.pay .stars { background-position: 0 0; background-repeat: round no-repeat; } /* whole stars only: the row is narrow, a cut one shows */

/* Who it is for: five small receipts */

/* Why: a specification sheet */
.aud-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.aud-grid .sec-hd { order: 2; position: sticky; top: 100px; margin-bottom: 0; padding-top: 16px; border-top: 1.5px solid var(--ink); }
.tape { width: 100%; max-width: 500px; justify-self: center; }
.tape .rc-main { padding: 30px 30px 22px; }
.tape-mark { display: flex; justify-content: center; color: var(--ink); }
.tape-mark .wm { height: 13px; }
.tape li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; align-items: baseline; padding: 14px 0; border-top: 1px dashed var(--ink-30); }
.tape li:first-child { border-top: 0; padding-top: 2px; }
.tape li > div { grid-column: 1 / -1; }
.tape h3 { font: 600 1.1rem/1.25 var(--ui); letter-spacing: -0.02em; }
.tape p { margin-top: 2px; font: 400 0.92rem/1.45 var(--ui); color: var(--ink-75); }
.tape-item { grid-column: 1; display: flex; align-items: baseline; gap: 8px; margin-top: 8px; font: 500 13px/18px var(--ui); color: var(--ink-60); }
.tape-item { white-space: nowrap; }
.tape-item::after { content: ""; flex: 1; min-width: 12px; height: 3px; background: radial-gradient(circle, var(--ink-60) 0 1px, #0000 1.4px) 0 50% / 6px 3px repeat-x; }
.tape li > b { font: 700 15px/20px var(--mono); letter-spacing: -0.02em; white-space: nowrap; }
.tape .rc-stub { padding: 14px 30px 18px; }
.tape .barcode { margin: 0; }
.tape .rc-stub { display: grid; gap: 16px; }
.tape .rc-main > .rc-row { margin-top: 2px; }
.sheet { position: relative; padding: 8px 68px; border-radius: 5px; background: var(--grain), var(--paper); box-shadow: var(--lift); }
.sheet::before, .sheet::after { content: ""; position: absolute; top: 6px; bottom: 6px; width: 34px; background: radial-gradient(circle, #e3e2df 0 4.8px, rgba(28, 27, 24, 0.34) 5.2px 6.2px, #0000 6.6px) 50% 0 / 34px 28px no-repeat space; }
.sheet::before { left: 0; border-right: 1px dashed var(--ink-30); }
.sheet::after { right: 0; border-left: 1px dashed var(--ink-30); }
.sheet .chip, .sheet .flow b { border-radius: 4px; }
.spec { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.spec li { grid-column: span 3; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 0 14px; padding: 30px 28px 30px 0; border-top: 1px dashed var(--ink-30); }
.spec li:nth-child(odd):not(:first-child) { padding-left: 28px; border-left: 1px dashed var(--ink-30); }
.spec li:nth-child(2), .spec li:nth-child(3) { border-top: 0; }
.spec li:nth-child(1) { grid-column: 1 / -1; margin-top: 26px; padding: 40px; border: 0; border-radius: 6px; background: var(--ink); color: #fff; }
.spec li:nth-child(1) > div { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px 48px; }
.spec li:nth-child(1) h3 { align-self: end; font: 600 clamp(1.6rem, 2.6vw, 2.2rem) / 1.12 var(--ui); letter-spacing: -0.02em; }
.spec li:nth-child(1) p { margin-top: 0; font-size: 1.05rem; color: rgba(255, 255, 255, 0.76); }
.spec li:nth-child(1) .art { grid-column: 2; grid-row: 1 / span 2; align-self: center; flex-direction: column; align-items: stretch; gap: 6px; margin-top: 0; }
.spec li:nth-child(1) .chip { min-height: 38px; padding: 8px 14px; background: rgba(255, 255, 255, 0.08); box-shadow: none; font-size: 13px; color: rgba(255, 255, 255, 0.76); }
.spec li:nth-child(1) .chip.is-no .ico { color: #ff8f86; }
.spec li:nth-child(1) .chip.is-yes { background: #4ee3bf; color: var(--ink); font-weight: 700; }
.spec li:nth-child(1) .chip.is-yes .ico { color: var(--ink); }
.spec h3 { font: 600 1.25rem/1.2 var(--ui); letter-spacing: -0.02em; }
.spec p { margin-top: 6px; color: var(--ink-75); font-size: 0.98rem; line-height: 1.45; }
.art { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; min-height: 34px; }
.art .stamp { margin: 8px 20px 8px 6px; }
.eg { padding: 1px 7px; border: 1px dashed var(--ink-30); border-radius: 4px; font: 500 13px/18px var(--ui); color: var(--ink-75); }

/* Fee calculator */
.calc { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 36px 48px; align-items: start; }
.calc-in { display: grid; gap: 10px; }
.calc-cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding-top: 24px; border-top: 1px dashed var(--ink-30); }
.calc-fee { display: flex; align-items: baseline; gap: 12px; font: 500 13px/18px var(--ui); color: var(--ink-60); }
.calc-fee b { font: 700 56px/1 var(--mono); letter-spacing: -0.05em; color: var(--ink); background: linear-gradient(transparent 62%, var(--marker) 62% 92%, transparent 92%); }
.calc-in label { font: 500 13px/18px var(--ui); color: var(--ink-60); }
.calc-field { display: flex; align-items: baseline; gap: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); font: 700 40px/48px var(--mono); letter-spacing: -0.03em; }
.calc-field input { width: 100%; min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; font: inherit; letter-spacing: inherit; outline: none; }
.calc-field:focus-within { outline: 2px solid var(--focus); outline-offset: 6px; border-radius: 4px; } /* the site's own focus ring: a mint line was paler than no focus */
.calc-field input[readonly] { pointer-events: none; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 0 8px 8px; }
.calc-out .rc-total > span { font-size: 11px; }
.calc-out .rc-total > b { font-size: 24px; line-height: 30px; }
.calc-out .rc-kind { color: var(--ink); font-weight: 700; }

/* Reliability: the machine */
.machine { position: relative; padding: 64px 56px 56px; border-radius: 30px; color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 7%, rgba(255, 255, 255, 0.03) 50%, rgba(0, 0, 0, 0) 93%, rgba(0, 0, 0, 0.3)),
    linear-gradient(#252421 0%, #1e1d1a 30%, #161512 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -2px 0 rgba(0, 0, 0, 0.4), 0 34px 60px -30px rgba(28, 27, 24, 0.6); }
.machine-hd { position: absolute; left: 56px; right: 56px; top: 26px; display: flex; align-items: center; justify-content: space-between; }
.machine .sec-hd::before { color: rgba(255, 255, 255, 0.72); }
.machine .engrave { color: rgba(255, 255, 255, 0.72); }
.machine .sub { color: rgba(255, 255, 255, 0.74); }
.machine .h2 em { color: #4ee3bf; }
.machine-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.machine-grid li { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
.machine-grid h3 { margin-top: 20px; font: 600 1.2rem/1.2 var(--ui); letter-spacing: -0.02em; }
.machine-grid p { margin-top: 6px; color: rgba(255, 255, 255, 0.72); font-size: 0.98rem; line-height: 1.45; }
.lcd { display: grid; align-content: center; gap: 6px; min-height: 112px; padding: 16px 18px; border-radius: 14px; background: linear-gradient(#020206, #0d0c09); box-shadow: inset 0 3px 8px #000, 0 0 0 1px rgba(255, 255, 255, 0.28); font: 500 12px/20px var(--mono); color: #c9f7df; }
.lcd-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lcd-row span { display: inline-flex; align-items: center; gap: 9px; }
.lcd-row b { font-weight: 700; color: #4ee3bf; white-space: nowrap; }
.lcd-row.is-off, .lcd-row.is-off b { color: rgba(255, 255, 255, 0.68); font-weight: 500; }
.lcd .led { animation: blink 2.4s steps(1, end) infinite; }
.lcd-row + .lcd-row .led { animation-delay: 1.2s; }
.ticks { display: flex; gap: 4px; margin-top: 6px; }
.ticks i { flex: 1; height: 14px; border-radius: 2px; background: #4ee3bf; opacity: 0.85; animation: blink 3.6s steps(1, end) infinite; }
.ticks i:nth-child(3n) { animation-delay: 1.2s; }
.ticks i:nth-child(3n + 1) { animation-delay: 2.4s; }

/* The API in three prints, and the money's path under the calculator */
.api-grid .sec-hd .more { margin-top: 10px; }
.api-works { display: grid; justify-items: start; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--ink-30); font: 500 13px/18px var(--ui); color: var(--ink-60); }
.api-works:hover .eh { box-shadow: 0 12px 22px -8px rgba(28, 27, 24, 0.5); }
.api-prints { display: grid; gap: 22px; }
.api-prints, .api-prints li, .api-grid .sec-hd { min-width: 0; } /* a long code line scrolls inside its print, never widens the grid */
.api-prints .cap { margin-bottom: 8px; }
.api-prints .cap b { color: var(--ink); }
.api-prints li:nth-child(2) { margin-left: 28px; }
.api-prints li:nth-child(3) { margin-left: 56px; }
.path { margin-top: 44px; padding: 22px 0 0; border-top: 1.5px solid var(--ink); }
.path ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 16px; }
.path li { position: relative; display: grid; align-content: start; gap: 6px; padding: 0 24px 0 0; }
.path li + li { padding-left: 24px; border-left: 1px dashed var(--ink-30); }
.path li:not(:last-child)::after { content: ""; position: absolute; right: -6px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--canvas); box-shadow: inset 0 0 0 1.5px var(--ink); z-index: 1; }
.path .num { color: var(--ink); }
.path b { font: 600 1.05rem/1.25 var(--ui); }
.path span:last-child { color: var(--ink-75); font-size: 0.92rem; line-height: 1.45; }
.eh { display: inline-flex; padding: 12px 18px; border-radius: 14px; background: linear-gradient(#31302d, #1c1b18); }
.eh img { height: 26px; width: auto; }

/* Questions */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 56px; align-items: start; }
.faq-grid .sec-hd { position: sticky; top: 100px; margin-bottom: 0; padding-top: 16px; border-top: 1.5px solid var(--ink); }
.faq { position: relative; counter-reset: q; padding: 6px 30px 10px; background: var(--grain), var(--paper); box-shadow: var(--lift); }
.qa { border-top: 1px dashed var(--ink-30); }
.qa:first-child { border-top: 0; }
.qa summary { display: grid; grid-template-columns: minmax(0, 1fr) 20px; align-items: baseline; gap: 12px; padding: 20px 0; list-style: none; cursor: pointer; font: 500 1.2rem/1.3 var(--ui); letter-spacing: -0.01em; }
/* Plus and minus are drawn, not typed: the two glyphs of a typeface differ in width and weight. */
.qa summary::after, .toc-m summary::after { content: ""; justify-self: end; width: 14px; height: 14px; color: var(--ink-60); background: linear-gradient(currentColor, currentColor) 50% / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) 50% / 2px 100% no-repeat; }
.qa[open] summary::before { justify-self: start; border-radius: 3px; background: var(--marker); box-shadow: 0 0 0 4px var(--marker); color: var(--ink); }
.qa[open] summary::after, .toc-m[open] summary::after { color: var(--ink); background-size: 100% 2px, 0 0; }
.qa summary::-webkit-details-marker { display: none; }
.qa p { padding: 0 32px 22px 42px; color: var(--ink-75); max-width: 46em; }
.qa p a { border-bottom: 1.5px solid var(--ink-30); }
.qa p a:hover { border-color: var(--ink); }
.qa p:not(:last-child) { padding-bottom: 10px; }
.qa p strong { color: var(--ink); }
.qa code, .help-tip code { padding: 0.1em 0.36em; border-radius: 5px; background: rgba(28, 27, 24, 0.06); font: 500 0.86em var(--mono); color: var(--ink); overflow-wrap: anywhere; }

/* The placeholder pages: one receipt in the middle of the page */
.soon-rc { max-width: 560px; margin: 0 auto; }
.soon-rc .rc-main { display: grid; justify-items: center; gap: 14px; padding: 38px 36px 34px; text-align: center; }
.soon-mark { color: var(--ink); }
.soon-mark .wm { height: 13px; }
.soon-rc .stars { width: 100%; margin: 2px 0 6px; }
.soon { padding-top: 72px; }
.soon-rc .acts { justify-content: center; margin-top: 10px; }
.soon-rc .stamp { margin-bottom: 6px; }
.soon-rc .rc-stub { padding: 18px 36px 22px; }
.soon-rc .barcode { margin: 0; }

/* The application form (/connect/ and the foot of the home page): a receipt to fill in, the headline beside it */
.apply { padding-bottom: 120px; }
.apply-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.apply-how { display: grid; justify-items: start; gap: 24px; margin-top: 12px; }
.apply-how ol { display: grid; gap: 12px; counter-reset: how; }
.apply-how li { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: baseline; color: var(--ink-75); counter-increment: how; }
.apply-how .more { display: inline; line-height: 26px; } /* wraps as text on a phone, the arrow stays at the words */
.apply-how .more .ico { display: inline-block; margin-left: 8px; vertical-align: -3px; }
.apply-how li::before { content: counter(how) "."; font: 600 13px/20px var(--ui); color: var(--ink); }
.apply-rc { scroll-margin-top: 92px; }
.apply-rc .rc-main { display: grid; gap: 22px; padding: 30px 32px 32px; }
.apply-rc .rc-kind { margin: 0; }
.apply-rc .stars { margin: -14px 0 0; }
.apply-rc .rc-stub { display: grid; gap: 14px; padding: 24px 32px 30px; }
.apply-rc .btn { width: 100%; }
.fld { display: grid; gap: 6px; min-width: 0; }
.fld-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.fld-top label { font: 600 13px/18px var(--ui); }
.fld-top span { font: 500 13px/18px var(--ui); color: var(--ink-60); white-space: nowrap; }
/* 16px and up: a smaller field makes iOS zoom the page in on focus. */
.fld input, .fld textarea { display: block; width: 100%; min-width: 0; margin: 0; padding: 9px 10px 8px; border: 0; border-bottom: 1.5px solid var(--ink-60); border-radius: 6px 6px 0 0; background: rgba(28, 27, 24, 0.04); font: 500 16px/24px var(--ui); outline: none; transition: background 0.2s, border-color 0.2s, box-shadow 0.2s; }
.fld textarea { min-height: 89px; overflow: hidden; resize: none; }
.fld input:hover, .fld textarea:hover { border-color: var(--ink); }
.fld input:focus-visible, .fld textarea:focus-visible { border-radius: 6px 6px 0 0; border-color: var(--ink); background: rgba(78, 227, 191, 0.18); box-shadow: 0 1.5px 0 var(--ink); }
/* A wrong field stays red while it is being fixed: the focus colour must not make it look right. */
.fld [aria-invalid="true"], .fld [aria-invalid="true"]:focus-visible { border-color: var(--red); background: rgba(200, 16, 26, 0.06); box-shadow: 0 1.5px 0 var(--red); }
.fld:has([aria-invalid="true"]) .fld-hint { display: none; }
.fld-hint { font: 400 13.5px/19px var(--ui); color: var(--ink-60); }
/* Fieldsets of the form: the turnover chips and the project's two documents. */
fieldset.fld, .fld-group { min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset.fld > legend { width: 100%; padding: 0; margin-bottom: 8px; }
.fld-top .fld-label { font: 600 13px/18px var(--ui); color: var(--ink); white-space: normal; }
.fld-group > legend { font: 600 17px/22px var(--ui); letter-spacing: -0.01em; color: var(--ink); }
.fld-group { display: grid; gap: 14px; padding-top: 18px; border-top: 1px dashed var(--ink-30); }
.fld-group > legend { float: left; width: 100%; padding: 0; }
.fld-group > .fld-hint { margin-top: -8px; }
.tv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tv { position: relative; display: block; cursor: pointer; }
.fld .tv input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.tv span { display: grid; gap: 8px; white-space: nowrap; align-content: start; min-height: 70px; padding: 11px 12px 10px; border-radius: 12px; background: rgba(28, 27, 24, 0.04); box-shadow: inset 0 0 0 1.5px rgba(28, 27, 24, 0.18); font: 700 13px/17px var(--mono); letter-spacing: -0.01em; color: var(--ink); transition: background 0.15s, box-shadow 0.15s, color 0.15s, transform 0.15s var(--ease); }
.tv:hover span { box-shadow: inset 0 0 0 1.5px var(--ink); }
.tv input:checked + span { background: linear-gradient(#31302d, #1c1b18); color: #fff; box-shadow: 0 8px 16px -10px rgba(28, 27, 24, 0.7); transform: translateY(-1px); }
.tv input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.lv { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.lv b { width: 5px; border-radius: 1.5px; background: currentColor; opacity: 0.16; }
.lv b:nth-child(1) { height: 30%; } .lv b:nth-child(2) { height: 47%; } .lv b:nth-child(3) { height: 64%; } .lv b:nth-child(4) { height: 82%; } .lv b:nth-child(5) { height: 100%; }
.lv-1 b:nth-child(-n+1), .lv-2 b:nth-child(-n+2), .lv-3 b:nth-child(-n+3), .lv-4 b:nth-child(-n+4), .lv-5 b:nth-child(-n+5) { opacity: 1; }
.tv input:checked + span .lv b { background: #4ee3bf; }
fieldset[aria-invalid="true"] .tv span { box-shadow: inset 0 0 0 1.5px var(--red); background: rgba(200, 16, 26, 0.04); }
fieldset.fld:has([aria-invalid="true"]) .fld-hint, fieldset[aria-invalid="true"] .fld-hint { display: none; }
@media (max-width: 640px) {
  .tv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tv:last-child { grid-column: 1 / -1; }
  .tv span { min-height: 64px; }
}
.fld-err { font: 600 13.5px/19px var(--ui); color: var(--red); }
.agree { display: flex; align-items: flex-start; gap: 12px; font: 400 15px/22px var(--ui); cursor: pointer; }
.agree input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); }
.agree input[aria-invalid="true"] { outline: 2px solid var(--red); outline-offset: -1px; border-radius: 4px; } /* one red frame on the box itself, not a second square around it */
.agree a, .apply-status a { border-bottom: 1.5px solid var(--ink-30); font-weight: 600; color: var(--ink); }
.agree a:hover, .apply-status a:hover { border-color: var(--ink); }
.apply-status { font: 600 15px/22px var(--ui); color: var(--red); }
.apply-status:empty { display: none; }
.apply-done .rc-main { justify-items: center; gap: 14px; padding: 46px 32px 36px; text-align: center; }
.apply-done h3 { margin-top: 8px; font: 600 clamp(1.7rem, 2.8vw, 2.2rem) / 1.12 var(--ui); letter-spacing: -0.02em; outline: none; }
.apply-next { max-width: 22em; text-wrap: balance; font: 400 17px/1.5 var(--ui); color: var(--ink-75); }
.apply-done .btn { margin-top: 8px; }
.apply-rc .apply-scan { display: flex; align-items: center; gap: 24px; }
.apply-scan .qr-box { width: 156px; padding: 14px; } /* the light margin around the code is what lets a camera find it */
.apply-scan p:not(.cap) { margin: 6px 0 14px; font: 400 15px/22px var(--ui); color: var(--ink-75); }

/* The cabinet without code: what the project's buttons do — and the bot's own dialogue that ends with a payment link. */
.sec-hd .more { justify-self: start; margin-top: 6px; }
.pm-try { justify-self: start; margin-top: 8px; }

/* The home page showcase: three live forms in phone frames, drawn at 390px and shown at 250px */
.fx { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.fx-card { display: grid; justify-items: center; gap: 6px; text-align: center; }
/* The first screen: the live payment form of a real client, a size up from the gallery's phones. */
.hero-form { justify-self: center; display: grid; justify-items: center; gap: 4px; margin: 0; }
.hero-form a { display: block; border-radius: 36px; }
.hero-form .fx-phone { display: block; margin: 0 0 10px; width: 320px; height: 540px; }
.hero-form .fx-phone iframe { transform: scale(0.78); }
.hero-form a:hover .fx-phone { transform: translateY(-4px); }
.hero-form .cap { text-align: center; }
.hero-works { margin-top: 0; }
.fx-phone { position: relative; width: 266px; height: 516px; margin-bottom: 14px; overflow: hidden; border: 8px solid #1c1b18; border-radius: 36px; background: #1c1b18; box-shadow: var(--lift); transition: transform 0.3s var(--ease); }
.fx-phone iframe { width: 390px; height: 780px; border: 0; transform: scale(0.641); transform-origin: 0 0; pointer-events: none; background: var(--canvas); }
.fx-card:hover .fx-phone { transform: translateY(-4px) rotate(-1deg); }
.fx-card b { font: 600 1.15rem/1.3 var(--ui); }
.fx-card span:last-child { max-width: 30ch; color: var(--ink-75); font-size: 0.94rem; line-height: 1.4; text-wrap: balance; }

/* Status: a receipt of checks, each service with a barcode of the last 90 days */
.st { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: 96px; }
.st-rc .rc-main { display: grid; gap: 16px; padding: 28px 30px 26px; }
.st-mark { display: flex; justify-content: center; }
.st-mark .wm { height: 11px; }
.st-overall { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 52px; color: var(--ink-75); }
.st-overall .stamp { font-size: 15px; }
.st-list { display: grid; gap: 22px; margin-top: 6px; }
.st-row { display: grid; gap: 8px; padding-top: 16px; border-top: 1px dashed var(--ink-30); }
.st-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.st-top b { font: 600 16px/22px var(--ui); }
.st-state { font: 700 11px/16px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.st-state.is-up { color: var(--green-ink); } .st-state.is-down { color: var(--red); } .st-state.is-degraded { color: var(--orange); } .st-state.is-unknown { color: var(--ink-60); }
.st-days { display: grid; grid-template-columns: repeat(90, minmax(0, 1fr)); align-items: end; gap: 1px; height: 34px; }
.st-day { display: block; height: calc(var(--h) * 100%); border-radius: 1px; background: var(--ink); }
.st-day.is-warn { background: var(--orange); } .st-day.is-bad { background: var(--red); } .st-day.is-none { background: var(--ink-30); }
.st-foot { display: flex; justify-content: space-between; gap: 8px; font: 500 11px/16px var(--mono); color: var(--ink-60); }
.st-inc h2 { margin-bottom: 14px; font: 600 1.5rem/1.2 var(--ui); letter-spacing: -0.02em; }
.st-inc ol { display: grid; gap: 12px; }
.st-inc-row { display: grid; gap: 2px; }
.st-inc-none { color: var(--ink-75); }

/* Docs: the signature check on paper */
.sig { margin-top: 28px; padding: 22px 22px 24px; border-radius: 14px; background: rgba(28, 27, 24, 0.04); box-shadow: inset 0 0 0 1px var(--hair); }
.sig-hd { margin-bottom: 16px; color: var(--ink-75); }
.sig-hd b { color: var(--ink); }
.sig form { display: grid; gap: 14px; justify-items: start; }
.sig-f { display: grid; gap: 6px; width: 100%; }
.sig-f input, .sig-f textarea { width: 100%; min-width: 0; padding: 9px 10px; border: 0; border-bottom: 1.5px solid var(--ink-60); border-radius: 6px 6px 0 0; background: var(--paper); font: 500 14px/20px var(--mono); resize: vertical; outline: none; }
.sig-f input:focus-visible, .sig-f textarea:focus-visible { border-color: var(--ink); box-shadow: 0 1.5px 0 var(--ink); }
.sig-f small { color: var(--ink-60); font-size: 13px; }
.sig-out { margin-top: 16px; padding: 12px 14px; border-radius: 10px; font-size: 15px; }
.sig-out[data-tone="ok"] { background: rgba(29, 196, 113, 0.12); color: var(--green-ink); }
.sig-out[data-tone="bad"] { background: rgba(200, 16, 26, 0.07); color: var(--red); }
.sig-out ul { margin-top: 6px; padding-left: 18px; list-style: disc; color: var(--ink-75); }

/* Payment form gallery: the themes on the left, a live form on the right */
.fg { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; padding-bottom: 96px; }
.fg-list, .fg-stage { min-width: 0; } /* the strip of forms on a phone scrolls inside, never widens the page */
.fg-list ol { display: grid; gap: 2px; position: sticky; top: 92px; }
.fg-theme { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 10px; padding: 14px 16px; border-radius: 12px; transition: background 0.2s; }
.fg-theme .num { grid-row: span 2; padding-top: 3px; }
.fg-theme b { font: 600 1.1rem/1.3 var(--ui); }
.fg-theme span:last-child { color: var(--ink-75); font-size: 0.94rem; line-height: 1.4; }
.fg-theme:hover { background: rgba(28, 27, 24, 0.05); }
.fg-theme[aria-current] { background: var(--paper); box-shadow: var(--lift); }
.fg-theme[aria-current] .num { color: var(--ink); }
.fg-stage { display: grid; gap: 18px; justify-items: start; }
.fg-ctl { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 10px 28px; }
.fg-set { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.fg-set legend { float: left; margin-right: 4px; } /* the label stays in the row: the form starts higher */
.fg-opt { cursor: pointer; }
.fg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.fg-opt:has(input:checked) { background: var(--ink); color: #fff; box-shadow: none; }
.fg-opt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.fg-view { position: relative; width: 100%; overflow: hidden; border-radius: 28px; background: #1c1b18; box-shadow: var(--lift); }
.fg-view[data-device="phone"] { max-width: 410px; padding: 0; border: 10px solid #1c1b18; }
.fg-view iframe { display: block; border: 0; transform-origin: 0 0; background: var(--canvas); }
.fg-play { justify-self: start; }
.fg-about { display: none; }
.fg-set:first-child { grid-column: 1 / -1; } /* the steps take a whole row */
.fg-view[data-device="desktop"] { border-radius: 14px; border: 8px solid #1c1b18; }
.fg-note { color: var(--ink-75); font-size: 0.94rem; }
.fg-note .more { margin-left: 6px; }

/* For buyers: the invoice check on a receipt, the answers beside it */
.buyer-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: 96px; }
.check-rc .rc-main { display: grid; gap: 18px; padding: 28px 30px 30px; }
.check-rc .rc-kind { margin: 0; }
.check-rc .stars { margin: -10px 0 0; }
.check-rc .btn { width: 100%; }
.check-rc input { font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.check-out { display: grid; gap: 4px; padding: 20px 30px 26px; }
.check-status { margin-bottom: 8px; font: 600 1.5rem/1.2 var(--ui); letter-spacing: -0.02em; }
.check-status[data-status="paid"] { color: var(--green-ink); }
.check-status[data-status="expired"] { color: var(--ink-60); }
.check-out a, .check-more a { border-bottom: 1.5px solid var(--ink-30); }
.check-more { margin-top: 26px; padding-top: 18px; border-top: 1px dashed var(--ink-30); color: var(--ink-75); }
.check-more a { font-weight: 600; color: var(--ink); }
.desk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 80px; align-items: center; }
.desk .sec-hd { margin-bottom: 30px; }
.desk-list { margin-bottom: 30px; border-bottom: 1px dashed var(--ink-30); }
.desk-list > div { display: grid; grid-template-columns: 148px minmax(0, 1fr); align-items: baseline; gap: 6px 20px; padding: 15px 0; border-top: 1px dashed var(--ink-30); }
.desk-list dd { color: var(--ink-75); font-size: 0.98rem; line-height: 1.45; text-wrap: pretty; }
.tg { margin: 0; border-radius: 24px; background: var(--paper); box-shadow: var(--lift); overflow: hidden; }
.tg-hd { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--hair); }
.tg-hd b { display: block; font: 500 15px/20px var(--ui); }
.tg-hd small { display: block; font: 400 12px/16px var(--ui); color: var(--ink-60); }
.tg-ava { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; }
.tg-ava .mark { height: 15px; }
.tg-log { display: grid; gap: 8px; padding: 18px 14px 16px; background: linear-gradient(rgba(235, 232, 223, 0.74), rgba(235, 232, 223, 0.74)), var(--hl); }
.tg-msg { justify-self: start; max-width: 86%; padding: 9px 13px 10px; border-radius: 16px 16px 16px 5px; background: var(--paper); box-shadow: 0 1px 1.5px rgba(28, 27, 24, 0.16); font: 400 14px/20px var(--ui); }
.tg-msg b { display: block; font-weight: 500; }
.tg-msg small { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; font: 500 13px/18px var(--ui); color: var(--ink-60); }
.tg-msg.is-me { justify-self: end; border-radius: 16px 16px 5px 16px; background: var(--ink); color: #fff; font: 500 14px/20px var(--ui); }
.js .tg:not(.is-live) .tg-log > * { opacity: 0; }
.tg.is-live .tg-log > * { animation: say 0.42s var(--ease) both; }
.tg.is-live .tg-log > :nth-child(2) { animation-delay: 0.7s; }
.tg.is-live .tg-log > :nth-child(3) { animation-delay: 1.3s; }
.tg.is-live .tg-log > :nth-child(4) { animation-delay: 2s; }
.tg.is-live .tg-log > :nth-child(5) { animation: say-bill 0.5s var(--spring) 2.7s both; }
.tg.is-live .tg-log > :nth-child(6) { animation-delay: 3s; }
@keyframes say { from { opacity: 0; translate: 0 10px; } }
@keyframes say-bill { from { opacity: 0; scale: 0.92; } }
.tg-bill { width: 86%; margin-top: 4px; transform-origin: 0 100%; }
.tg-bill small { color: var(--green-ink); }
.tg-bill small .ico { width: 14px; height: 14px; }
.tg-bill b { margin: 2px 0; font: 700 24px/30px var(--mono); letter-spacing: -0.03em; }
.tg-kb { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; width: 86%; margin-top: -3px; }
.tg-kb span { display: grid; place-items: center; min-height: 36px; padding: 4px 8px; border-radius: 9px; background: var(--ink); color: #fff; font: 500 13px/18px var(--ui); text-align: center; }

@media (max-width: 1080px) {
  .hd-bot { display: none; }
  .hero-grid { gap: 36px; }
  .desk { gap: 48px; }
  .pm-grid { grid-template-columns: minmax(0, 1fr) 250px; gap: 36px; }
  .calc { grid-template-columns: 1fr; gap: 32px; }
  .calc-in { max-width: 340px; }
  .presets .chip { min-height: 44px; padding: 5px 18px; }
  .sheet { padding: 8px 58px; }
  .machine { padding: 64px 36px 40px; }
  .machine-hd { left: 36px; right: 36px; }
}
/* Just above the burger the Russian header is 13px too wide (901–913px): the links get a little less padding. */
@media (max-width: 960px) { .hd-nav a { padding-inline: 9px; } }
@media (max-width: 900px) {
  .hd-nav { display: none; }
  .menu { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; padding-top: 48px; padding-bottom: 64px; }
  .faq-grid, .aud-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .aud-grid .sec-hd { order: 0; position: static; margin-bottom: 32px; }
  /* The headline, the form, then how it goes: the headline's box dissolves so the form can stand between its parts. */
  .buyer-grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 64px; }
  .st { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-bottom: 64px; }
  .fg { grid-template-columns: 1fr; gap: 28px; }
  /* A phone shows the forms as a strip to swipe. */
  .fx { display: flex; gap: 18px; margin: 0 -24px; padding: 4px 24px 18px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .fx li { flex: none; scroll-snap-align: center; }
  /* A phone: the forms as a strip of names, the live form right under it, the switches below the form. */
  .fg { gap: 18px; }
  .fg-list ol { position: static; display: flex; gap: 6px; margin: 0 -24px; padding: 2px 24px 8px; overflow-x: auto; scroll-snap-type: x proximity; }
  .fg-list li { flex: none; scroll-snap-align: start; }
  .fg-theme { grid-template-columns: auto auto; align-items: baseline; padding: 10px 14px; box-shadow: inset 0 0 0 1.5px rgba(28, 27, 24, 0.14); white-space: nowrap; }
  .fg-theme .num { grid-row: auto; padding-top: 0; }
  .fg-theme span:last-child { display: none; }
  .fg-stage { justify-items: stretch; }
  .fg-view { order: -1; justify-self: center; }
  .fg-ctl { grid-template-columns: minmax(0, 1fr); }
  .fg-set { min-inline-size: 0; } /* a fieldset is as wide as its content by default; its chips scroll instead */
  /* A phone: the steps right above the form — a tap shows its result on screen; the other switches go under it. */
  .fg-ctl { display: contents; }
  .fg-play { order: -4; width: 100%; }
  .fg-set:first-child { order: -3; }
  .fg-view { order: -2; }
  .fg-about { display: block; margin-top: 4px; color: var(--ink-75); font-size: 0.94rem; }
  .fg-list ol { scroll-padding-inline: 16px; }
  .check-rc { max-width: 560px; }
  .apply-grid .sec-hd { display: contents; }
  .apply-grid .sec-hd::before { margin-bottom: 16px; }
  .apply-grid .sec-hd .h2 { margin-bottom: 16px; }
  .apply-grid .sec-hd .sub { margin-bottom: 30px; }
  .apply-rc { order: 1; }
  .apply-how { order: 2; margin-top: 44px; }
  .hd-bot { display: inline-flex; }
  .faq-grid .sec-hd { display: contents; }
  .faq-grid .sec-hd::before { margin-bottom: 16px; }
  .faq-grid .sec-hd .h2 { margin-bottom: 30px; }
  .faq-grid .sec-hd .more { order: 3; margin-top: 26px; }
  /* A tablet keeps the phone beside the tickets; the two halves of a ticket stack so the column stays readable. */
  .pm-grid { grid-template-columns: minmax(0, 1fr) 230px; gap: 32px; }
  .ticket-halves { grid-template-columns: 1fr; }
  .half { padding: 20px 0; }
  .half + .half { padding: 20px 0 0; border-left: 0; border-top: 1.5px dashed rgba(28, 27, 24, 0.22); }
  .demo { min-height: 0; }
  .display { font-size: clamp(2rem, 8.6vw, 2.6rem); line-height: 1.1; }
  .h2 { font-size: clamp(1.6rem, 6.6vw, 2.1rem); }
  .sec-hd .h2 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .wrap:not(.aud-grid, .faq-grid) > .sec-hd { grid-template-columns: 1fr; }
  .wrap:not(.aud-grid, .faq-grid) > .sec-hd .sub { padding-bottom: 0; }
  .path ol { grid-template-columns: 1fr; gap: 0; }
  .path li:nth-child(n) { padding: 14px 0 14px 28px; border-left: 1.5px dashed var(--ink-30); }
  .path li:not(:last-child)::after { display: none; }
  .path li::before { content: ""; position: absolute; left: -6.5px; top: 18px; width: 11px; height: 11px; border-radius: 50%; background: var(--canvas); box-shadow: inset 0 0 0 1.5px var(--ink); }
  .spec li:nth-child(n) { grid-column: 1 / -1; padding-right: 0; padding-left: 0; border-left: 0; }
  .spec li:nth-child(3) { border-top: 1px dashed var(--ink-30); }
  .spec li:nth-child(odd):not(:first-child) { padding-left: 0; border-left: 0; }
  .spec li:nth-child(1) { padding: 28px 22px; }
  .spec li:nth-child(1) > div { grid-template-columns: 1fr; }
  .spec li:nth-child(1) .art { grid-column: 1; grid-row: auto; margin-top: 10px; }
  .machine-grid { grid-template-columns: 1fr; gap: 32px; }
  .lcd { min-height: 0; }
  .desk { grid-template-columns: 1fr; gap: 44px; }
  .tg { width: 100%; max-width: 440px; margin-inline: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero-grid { gap: 20px; padding-top: 24px; padding-bottom: 48px; }
  .desk-list > div { grid-template-columns: 1fr; }
  .tg-bill, .tg-kb { width: 94%; max-width: 94%; }
  .hero-copy { display: contents; }
  .printer { order: 2; margin-top: 8px; }
  .points { width: 100%; justify-content: center; padding: 12px 0; font-size: 12px; line-height: 18px; letter-spacing: 0.04em; }
  :lang(en) .points { font-size: 10.5px; letter-spacing: 0.02em; }
  .points li + li { margin-left: 8px; padding-left: 8px; }
  .brand .wm { display: none; }
  .tape .rc-main { padding: 26px 20px 20px; }
  .tape .rc-stub { padding: 14px 20px 16px; }
  .hdr { height: 60px; gap: 12px; }
  .sec { padding: 44px 0; }
  .sec-hd { margin-bottom: 30px; }
  .acts { width: 100%; }
  .hero .btn-lg { flex: 1 1 auto; height: 50px; padding: 0 12px; gap: 8px; font-size: 15px; }
  .ticket { --tx: 20px; padding: 22px var(--tx); }
  .pm-grid { grid-template-columns: 1fr; gap: 44px; }
  .ticket.is-soon { gap: 14px; }
  /* A QR code is what a buyer at a computer sees; on a phone it is a picture nobody can scan. */
  .half:first-child .demo, .apply-scan .qr-box, .apply-scan .cap { display: none; }
  .fx { margin: 0 -16px; padding: 4px 16px 18px; }
  .st-rc .rc-main { padding: 24px 18px 22px; }
  .st-days { gap: 0.5px; height: 28px; }
  .nx-hd .acts .btn { flex: 1 1 100%; }
  .fg-list ol { margin: 0 -16px; padding: 2px 16px 8px; }
  /* A phone: the form at the screen's own width, edge to edge, no phone drawn around a phone; no desktop view. */
  .fg-view[data-device="screen"] { max-width: none; margin: 0 -16px; width: calc(100% + 32px); border: 0; border-radius: 0; box-shadow: none; background: none; }
  .fg-set:has(input[name="device"]) { display: none; }
  .fg-set legend { width: 100%; margin: 0 0 6px; }
  .hd-bot { display: none; }
  .menu nav a:last-child { display: block; }
  .acts .more { margin: 6px auto 0; }
  .apply-rc .rc-main { padding: 26px 20px 28px; }
  .apply-rc .rc-stub { padding: 22px 20px 26px; }
  .apply-done .rc-main { padding: 40px 20px 30px; }
  .apply-scan p:not(.cap) { margin-top: 0; }
  .apply-rc .apply-scan { justify-content: center; text-align: center; }
  .shot { max-width: 236px; border-radius: 34px; }
  .pay { border-radius: 26px; }
  .sheet { padding: 4px 16px 4px 42px; }
  .sheet::before { width: 26px; background-size: 26px 28px; }
  .sheet::after { display: none; }
  .spec li { grid-template-columns: 1fr; gap: 6px 0; padding: 24px 0; }
  .spec li:nth-child(1) { padding: 26px 14px; }
  .spec li:nth-child(1) .chip { gap: 6px; padding: 8px; font-size: 11px; }
  .tape-item { font-size: 10.5px; letter-spacing: 0.02em; }
  .calc-cta { display: grid; justify-content: stretch; }
  .api-prints li:nth-child(n) { margin-left: 0; }
  /* A phone shows the request and the answer; the webhook is in the docs, one tap away. */
  .api-prints li:nth-child(3) { display: none; }
  .spec li:nth-child(n + 2):nth-child(-n + 4) .art { display: none; }
  .calc-cta .btn { width: 100%; }
  .machine-grid li + li { padding-top: 28px; border-top: 1px dashed rgba(255, 255, 255, 0.22); }
  .calc-out { grid-template-columns: 1fr; gap: 28px; padding: 0 0 8px; }
  .calc-field { font-size: 34px; line-height: 42px; }
  .machine { padding: 60px 20px 28px; border-radius: 24px; }
  .machine-hd { left: 22px; right: 22px; top: 24px; }
  .faq { padding: 4px 18px 8px; }
  .menu { position: static; }
  .menu nav { left: 12px; right: 12px; top: calc(100% + 8px); }
  .qa summary { grid-template-columns: 24px minmax(0, 1fr) 16px; gap: 8px; font-size: 1.08rem; padding: 18px 0; }
  .qa p { padding: 0 0 18px; }
  .soon-rc .rc-main { padding: 30px 20px 26px; }
  .soon-rc .acts .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Long-read pages (API docs, rules): the table of contents on a paper slip, the text on a paper sheet.
   Kept after the breakpoints above: `.wrap` resets its padding there, and these blocks add their own on top of it. */
.doc-hd { display: grid; gap: 16px; padding-top: 64px; padding-bottom: 40px; }
.doc { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: 104px; }
.toc-box { position: sticky; top: 92px; background: var(--grain), var(--paper); box-shadow: var(--lift); }
.toc { position: relative; max-height: calc(100vh - 132px); padding: 20px 18px 16px; overflow-y: auto; overscroll-behavior: contain; font: 500 13px/18px var(--ui); }
.toc .cap { margin-bottom: 12px; }
.toc a { display: block; padding: 3px 0 3px 10px; border-left: 2px solid transparent; color: var(--ink-75); }
.toc ol ol a { padding-left: 22px; font-size: 12px; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current] { border-color: var(--green); background: rgba(29, 196, 113, 0.1); color: var(--ink); font-weight: 700; }
.toc-m { display: none; margin-top: 20px; border: 1px dashed var(--ink-30); border-radius: 10px; font: 500 13px/20px var(--ui); }
.toc-m summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; list-style: none; cursor: pointer; font: 600 13px/18px var(--ui); }
.toc-m summary::-webkit-details-marker { display: none; }
/* The list fades out at the bottom edge — a cut-off line alone does not say there is more to scroll to. */
.toc-m > ol { max-height: 56vh; padding: 0 14px 30px; overflow-y: auto; overscroll-behavior: contain; -webkit-mask-image: linear-gradient(#000 calc(100% - 34px), transparent); mask-image: linear-gradient(#000 calc(100% - 34px), transparent); }
.toc-m ol ol { padding-left: 14px; border-left: 1px dashed var(--ink-30); }
.prose .toc-m a { display: block; padding: 9px 0; border: 0; font-weight: 700; color: var(--ink); }
.prose .toc-m ol ol a { padding: 7px 0; font-weight: 500; color: var(--ink-75); }

.prose { position: relative; min-width: 0; padding: 12px 52px 36px; background: var(--grain), var(--paper); box-shadow: var(--lift); counter-reset: h; }
.prose > section { padding: 40px 0 36px; border-top: 1px dashed var(--ink-30); scroll-margin-top: 76px; }
.prose > section:first-of-type { border-top: 0; }
.prose h2 { margin-bottom: 20px; font: 600 clamp(1.5rem, 2.4vw, 1.9rem) / 1.2 var(--ui); letter-spacing: -0.02em; }
.sub-sec { margin-top: 44px; scroll-margin-top: 88px; }
.prose h3 { margin-bottom: 14px; font: 600 1.22rem/1.35 var(--ui); letter-spacing: -0.01em; }
.sub-sec h3 code { margin-right: 4px; font: 700 0.95rem/1.4 var(--mono); overflow-wrap: anywhere; }
.verb { display: inline-block; margin-right: 10px; padding: 0 8px; border-radius: 6px; background: var(--ink); font: 700 11px/22px var(--mono); letter-spacing: 0.08em; color: #fff; vertical-align: 0.12em; }
.verb.is-get { background: none; box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.what { font-size: 1rem; color: var(--ink-60); }
.anchor { margin-left: 8px; font: 500 0.8em/1 var(--mono); color: var(--ink-60); opacity: 0; transition: opacity 0.15s; }
h2:hover > .anchor, h3:hover > .anchor, .anchor:focus-visible { opacity: 1; }
@media (hover: none) { .anchor { opacity: 0.5; } }

.prose p, .prose li, .prose dd { color: var(--ink-75); }
.prose p { max-width: 46em; }
.prose :is(p, ul, ol, dl, figure, .tabs) + :is(p, ul, ol, dl, figure, .tabs) { margin-top: 16px; }
.prose :not(pre) > code { padding: 0.1em 0.36em; border-radius: 5px; background: rgba(28, 27, 24, 0.06); font: 500 0.86em var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.prose h3 > code { padding: 0; background: none; }
.prose :is(p, li, dd) a { border-bottom: 1.5px solid var(--ink-30); color: var(--ink); }
.prose :is(p, li, dd) a:hover { border-color: var(--ink); }
.prose a > code { background: none; padding: 0; }
.dots li, .nums li { position: relative; padding-left: 30px; max-width: 46em; }
.dots li + li, .nums li + li { margin-top: 8px; }
.dots li::before { content: ""; position: absolute; left: 6px; top: 0.72em; width: 12px; height: 2px; background: var(--ink-30); }
.nums { counter-reset: n; }
.nums li { counter-increment: n; }
.nums li::before { content: counter(n); position: absolute; left: 0; top: 0.18em; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-30); font: 600 13px/20px var(--ui); text-align: center; color: var(--ink); }
.prose .note { max-width: none; padding: 12px 16px; border-left: 3px solid var(--orange); border-radius: 0 8px 8px 0; background: rgba(162, 76, 23, 0.07); font-size: 0.95rem; color: var(--ink); }
/* A hint, not a warning. */
.prose .note.is-tip { border-left-color: var(--green); background: rgba(29, 196, 113, 0.09); }
.prose .note + .steps { margin-top: 30px; }

.code { overflow: hidden; border-radius: 14px; background: #151411; color: #eae9e6; }
.code figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; padding: 0 8px 0 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font: 500 11px/16px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.66); }
.code pre { margin: 0; padding: 16px; overflow-x: auto; font: 500 13px/1.65 var(--mono); font-variant-ligatures: none; tab-size: 4; } /* «!==» stays three characters */
.code pre:focus-visible { outline: 2px solid #9fd8ff; outline-offset: -2px; border-radius: 0 0 14px 14px; }
.code code { font: inherit; }
.code .k { color: #9fd8ff; }
.code .s { color: #b7f0c8; }
.code .n { color: #f5cc3d; }
.copy { padding: 4px 10px; border: 0; border-radius: 7px; background: rgba(255, 255, 255, 0.1); font: 700 10.5px/18px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: #fff; cursor: pointer; }
.copy:hover { background: rgba(255, 255, 255, 0.2); }
.copy:focus-visible { outline-color: #9fd8ff; }
.copy.is-done { background: var(--green); color: #06281a; }

.fields { border-top: 1px dashed var(--ink-30); }
.fields > div { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 4px 24px; padding: 12px 0; border-bottom: 1px dashed var(--ink-30); }
.fields dt { min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.prose > section > .fields:last-child > div:last-child, .prose > section > .sub-sec:last-child > .fields:last-child > div:last-child { padding-bottom: 0; border-bottom: 0; }
.fields dt small { display: block; margin-top: 4px; font: 500 13px/18px var(--ui); color: var(--ink-60); }

.steps { display: grid; gap: 40px; counter-reset: st; }
.steps > li { position: relative; min-width: 0; padding-left: 68px; counter-increment: st; }
.steps > li::before { content: counter(st); position: absolute; left: 0; top: -3px; padding: 0 2px; background: linear-gradient(var(--marker), var(--marker)) 0 92% / 100% 0.36em no-repeat; font: 700 2rem/1 var(--mono); letter-spacing: -0.04em; color: var(--ink); }
.chain { display: flex; flex-wrap: wrap; gap: 8px 26px; font: 500 13px/18px var(--ui); }
.chain li { position: relative; padding: 5px 10px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--ink-30); color: var(--ink); }
.chain li + li::before { content: ""; position: absolute; left: -20px; top: 50%; width: 14px; height: 1.5px; background: var(--ink-30); }

/* Tabs without scripts: the radio buttons stay focusable, the labels look like tabs, the checked one shows its pane. */
.tabs { position: relative; display: flex; flex-wrap: wrap; gap: 6px; }
.tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.tabs > label { padding: 6px 14px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--ink-30); font: 600 13px/20px var(--ui); color: var(--ink-75); cursor: pointer; }
.tabs > input:checked + label { background: var(--ink); box-shadow: none; color: #fff; }
.tabs > input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 3px; }
.panes { flex: 1 1 100%; min-width: 0; margin-top: 6px; }
.pane { display: none; }
.tabs > input:nth-of-type(1):checked ~ .panes > :nth-child(1),
.tabs > input:nth-of-type(2):checked ~ .panes > :nth-child(2),
.tabs > input:nth-of-type(3):checked ~ .panes > :nth-child(3),
.tabs > input:nth-of-type(4):checked ~ .panes > :nth-child(4) { display: block; }

/* The retry chain fits one line only on a wide sheet; a wrapped line would leave its links hanging, so below that it
   stands as a column with the links running down. */
@media (max-width: 1180px) {
  .chain { flex-direction: column; align-items: flex-start; gap: 10px; }
  .chain li + li::before { left: 16px; top: -10px; width: 1.5px; height: 10px; }
}
@media (max-width: 1080px) {
  .doc { grid-template-columns: 208px minmax(0, 1fr); gap: 32px; }
  .prose { padding: 8px 36px 30px; }
}
@media (max-width: 900px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc-box { display: none; }
  .toc-m { display: block; }
}
@media (max-width: 640px) {
  .doc-hd { padding-top: 40px; padding-bottom: 28px; }
  .doc { padding-bottom: 72px; }
  .prose { padding: 2px 18px 24px; }
  .prose > section { padding: 30px 0 28px; }
  .sub-sec { margin-top: 36px; }
  .fields > div { grid-template-columns: minmax(0, 1fr); }
  .steps { gap: 32px; }
  .steps > li { padding-left: 0; }
  .steps > li::before { position: static; display: inline-block; margin-bottom: 10px; font-size: 1.5rem; }
  .code { border-radius: 10px; }
  .code figcaption { padding-left: 12px; }
  .code pre { padding: 14px 12px; font-size: 12px; }
}

/* The questions page: the same paper sheets as the home page block, one per group, numbered straight through —
   the page owns the counter, so the sheets must not restart it. */
.faq-page { display: grid; gap: 48px; padding-bottom: 64px; counter-reset: q; }
.faq-page .faq { counter-reset: none; }
.faq-group { scroll-margin-top: 88px; }
.faq-group > h2, .help-before-hd { position: sticky; top: 100px; }
.faq-group > h2, .help-before-hd h2, .faq-more h2 { font: 600 clamp(1.45rem, 2.2vw, 1.8rem) / 1.2 var(--ui); letter-spacing: -0.02em; }
.faq-group > h2 small { display: block; margin-bottom: 10px; font: 600 13px/18px var(--ui); color: var(--ink-60); }
.faq-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-bottom: 104px; }
.faq-more > div:first-child { display: grid; gap: 8px; }

/* The support page: the two bots as two receipts, then where to look before writing. */
.help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; padding-bottom: 80px; }
/* Both receipts are equally tall: the stub with the button sits at the bottom. */
.help-rc { display: flex; flex-direction: column; }
.help-rc .rc-main { flex: 1; }
.help-rc .rc-main { padding: 30px 30px 22px; }
.help-rc .rc-kind { margin: 0 0 8px; text-align: left; }
.help-handle { font: 700 clamp(1.1rem, 2vw, 1.5rem) / 1.2 var(--mono); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.help-text { margin-bottom: 14px; font: 400 1rem/1.5 var(--ui); color: var(--ink-75); }
.help-rc .rc-row { padding: 8px 0; border-top: 1px dashed var(--ink-30); }
.help-rc .rc-stub { display: grid; gap: 18px; padding: 22px 30px 26px; }
.help-rc .rc-stub .btn { justify-content: center; }
.help-rc .barcode { margin: 0; }
.help-before { padding-bottom: 104px; }
.help-before-hd { display: grid; gap: 12px; }
.help-tip { margin-top: 8px; padding: 12px 16px; border-left: 3px solid var(--green); border-radius: 0 8px 8px 0; background: rgba(29, 196, 113, 0.08); font-size: 0.95rem; }
.help-link { display: grid; grid-template-columns: minmax(0, 1fr) 20px; align-items: center; gap: 2px 16px; padding: 20px 0; border-top: 1px dashed var(--ink-30); }
.help-link:first-child { border-top: 0; }
.help-link b { font: 500 1.2rem/1.3 var(--ui); letter-spacing: -0.01em; }
.help-link span { grid-column: 1; font-size: 0.95rem; color: var(--ink-60); }
.help-link .ico { grid-column: 2; grid-row: 1 / span 2; color: var(--ink-60); transition: translate 0.15s, color 0.15s; }
.help-link:hover .ico { translate: 4px 0; color: var(--ink); }
@media (max-width: 900px) {
  .faq-page { gap: 36px; }
  .faq-group > h2, .help-before-hd { position: static; margin-bottom: 18px; }
  .help-grid { gap: 24px; padding-bottom: 56px; }
  .help-rc .rc-main { padding: 26px 22px 20px; }
  .help-rc .rc-stub { padding: 20px 22px 24px; }
  .help-before-hd { margin-bottom: 24px; }
}
@media (max-width: 720px) {
  .help-grid { grid-template-columns: 1fr; gap: 28px; }
  .help-rc { width: 100%; max-width: 560px; margin-inline: auto; }
}
@media (max-width: 640px) {
  .site-ft .wrap { justify-content: center; }
  .ft-nav { justify-content: center; gap: 0 16px; }
  .faq-more { padding-bottom: 64px; }
  .faq-more .btn { flex: 1 1 100%; }
  .help-rc .rc-main { padding: 24px 20px 18px; }
  .help-rc .rc-stub { padding: 18px 20px 22px; }
  .help-before { padding-bottom: 64px; }
}

/* «Who it is for»: each line leads to its niche page */
.tape h3 a { border-bottom: 1px dashed var(--ink-30); transition: border-color 0.2s; }
.tape h3 a:hover { border-color: var(--ink); }

/* Niche pages (/for/<slug>/, src/pages/niches.mjs): the header with actions, four steps on a paper sheet, the API
   sample beside its rules, the form theme in a phone frame (.fx-phone of the home page) and the closing actions. */
.nx-hd { grid-template-columns: minmax(0, 1fr) auto; gap: 16px 56px; align-items: center; }
.nx-hd-text { display: grid; gap: 16px; justify-items: start; min-width: 0; }
.nx-phone { display: grid; justify-items: center; gap: 10px; margin: 0; }
.nx-phone .fx-phone { display: block; margin: 0; }
.nx-phone a:hover .fx-phone { transform: translateY(-4px) rotate(-1deg); }
.nx-phone figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 10px; }
.nx-more { margin-top: 14px; }
.nx-more summary { cursor: pointer; font: 600 15px/22px var(--ui); border-bottom: 1.5px solid var(--ink-30); width: fit-content; }
.nx-more summary:hover { border-color: var(--ink); }
.nx-more[open] summary { margin-bottom: 12px; }
.nx-hd .acts { margin-top: 8px; }
.nx-hd .points { justify-self: start; margin-top: 8px; }
.nx-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 5px; background: var(--grain), var(--paper); box-shadow: var(--lift); }
.nx-steps li { display: grid; align-content: start; gap: 10px; min-width: 0; padding: 28px 26px 30px; }
.nx-steps li + li { border-left: 1px dashed var(--ink-30); }
.nx-steps .num { justify-self: start; padding: 0 2px; background: linear-gradient(var(--marker), var(--marker)) 0 92% / 100% 0.36em no-repeat; font: 700 1.6rem/1 var(--mono); letter-spacing: -0.04em; color: var(--ink); }
.nx-steps h3 { font: 600 1.15rem/1.25 var(--ui); letter-spacing: -0.02em; }
.nx-steps p { color: var(--ink-75); font-size: 0.95rem; line-height: 1.45; }
.nx-steps code, .nx-hook-text code { padding: 0.1em 0.36em; border-radius: 5px; background: rgba(28, 27, 24, 0.06); font: 500 0.86em var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.nx-hook { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.nx-hook-text { position: sticky; top: 100px; display: grid; gap: 26px; justify-items: start; min-width: 0; }
.nx-hook-text li { color: var(--ink-75); }
.nx-hook-text li a { border-bottom: 1.5px solid var(--ink-30); color: var(--ink); }
.nx-hook-text li a:hover { border-color: var(--ink); }
.nx-hook-code { display: grid; gap: 18px; min-width: 0; }
.nx-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: end; }
.nx-cta > div:first-child { display: grid; gap: 14px; }
.nx-other { grid-column: 1 / -1; display: grid; gap: 10px; padding-top: 22px; border-top: 1px dashed var(--ink-30); }
.nx-other ul { display: flex; flex-wrap: wrap; gap: 8px; }
.nx-other .chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
@media (max-width: 1080px) {
  .nx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nx-steps li:nth-child(odd) { border-left: 0; }
  .nx-steps li:nth-child(n + 3) { border-top: 1px dashed var(--ink-30); }
}
@media (max-width: 900px) {
  .nx-hook, .nx-cta, .nx-hd { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .nx-hook-text { position: static; }
  .nx-phone { justify-self: center; }
}
@media (max-width: 640px) {
  .nx-steps { grid-template-columns: minmax(0, 1fr); }
  .nx-steps li { padding: 22px 20px 24px; border-left: 0 !important; }
  .nx-steps li + li { border-top: 1px dashed var(--ink-30); }
  .nx-cta .btn { flex: 1 1 100%; }
}

/* «0 % on crypto»: the dark panel right after the first screen (and on /crypto/), the receipt-calculator on it. */
.zero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 40px 64px; align-items: center; padding: 56px; border-radius: 30px; color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 7%, rgba(255, 255, 255, 0.03) 50%, rgba(0, 0, 0, 0) 93%, rgba(0, 0, 0, 0.3)),
    linear-gradient(#252421 0%, #1e1d1a 30%, #161512 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -2px 0 rgba(0, 0, 0, 0.4), 0 34px 60px -30px rgba(28, 27, 24, 0.6); }
.zero-sec { padding-top: 24px; padding-bottom: 24px; } /* the panel sits close to the first screen and to the next section */
.zero-copy { display: grid; gap: 18px; justify-items: start; min-width: 0; }
.tag.is-dark { color: rgba(255, 255, 255, 0.78); }
.zero-big { display: flex; align-items: flex-start; gap: 0.04em; margin: 4px 0 -6px; font: 600 clamp(6rem, 13vw, 10.5rem) / 0.85 var(--ui); letter-spacing: -0.05em; color: #4ee3bf; font-variant-numeric: tabular-nums; text-shadow: 0 0 60px rgba(78, 227, 191, 0.18); }
.zero-big small { margin-top: 0.06em; font-size: 0.42em; line-height: 1; color: #fff; }
.zero .h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.zero .h2 em { color: #4ee3bf; }
.zero .sub { color: rgba(255, 255, 255, 0.76); text-wrap: pretty; }
.zero .more { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.zero .more:hover { border-color: #fff; }
.zr-acts { display: grid; gap: 14px; justify-self: stretch; margin-top: 6px; }
.zr-soon { display: flex; align-items: center; gap: 10px; font: 500 13px/18px var(--ui); color: rgba(255, 255, 255, 0.76); }
.zr-soon b { color: #fff; }
.btn-mint { background: linear-gradient(#6cf0cf, #4ee3bf); color: var(--ink); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 8px 18px -8px rgba(78, 227, 191, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-mint:hover { transform: translateY(-1px); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 14px 26px -10px rgba(78, 227, 191, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.5); }

.zr { width: 100%; color: var(--ink); }
.zr .rc-main { position: relative; }
.zr .rc-kind { color: var(--ink); font-weight: 700; }
.zr-in { display: grid; gap: 4px; margin-bottom: 10px; }
.zr-in > span:first-child { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-60); }
.zr-field { display: flex; align-items: baseline; gap: 10px; padding: 6px 12px 6px; border-radius: 10px; background: rgba(28, 27, 24, 0.05); box-shadow: inset 0 0 0 1.5px rgba(28, 27, 24, 0.22); font: 700 34px/42px var(--mono); letter-spacing: -0.03em; cursor: text; transition: box-shadow 0.2s; }
.zr-field:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.zr-field:focus-within { box-shadow: inset 0 0 0 2px #1bb592, 0 0 0 4px rgba(78, 227, 191, 0.35); }
.zr-field input { width: 100%; min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; font: inherit; letter-spacing: inherit; color: inherit; outline: none; cursor: text; }
.zr-hint { font-size: 11px; line-height: 16px; letter-spacing: 0.04em; color: var(--ink-60); }
html:not(.js) .zr-hint { display: none; }
.zr-field input[readonly] { pointer-events: none; }
.zr-field i { font: 700 14px/1 var(--mono); font-style: normal; letter-spacing: 0.08em; color: var(--ink-60); }
.zr .rc-row.is-market b { color: var(--ink-60); }
/* The point of the receipt: our fee line, set apart, struck through once it hits zero, the zero on a mint plaque. */
.zr .rc-row.is-ours { align-items: center; margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--ink-30); }
.zr .rc-row.is-ours > span { color: var(--ink); font-weight: 700; text-decoration: line-through 2px transparent; text-decoration-skip-ink: none; transition: text-decoration-color 0.4s var(--ease); }
.zr.is-zero .rc-row.is-ours > span, html:not(.js) .zr .rc-row.is-ours > span { text-decoration-color: var(--red); }
.zr .rc-row.is-ours b { padding: 2px 8px; border-radius: 6px; background: #4ee3bf; color: var(--ink); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.zr .rc-total > b { font-size: 22px; line-height: 28px; }
.zr .rc-row.is-kept > span { color: var(--ink); font-weight: 700; }
.zr .rc-row.is-kept b { font-weight: 700; color: var(--green-ink); }
.zr .stamp { position: absolute; top: 16px; right: 16px; font-size: 15px; line-height: 20px; padding: 4px 12px; }
.js .zr:not(.is-zero) .stamp { opacity: 0; scale: 1.8; }
.zr.is-zero .stamp { animation: zr-stamp 0.42s var(--spring, var(--ease)) both; }
@keyframes zr-stamp { from { opacity: 0; scale: 1.8; } to { opacity: 1; scale: 1; } }

/* The crypto ticket among the payment methods: dark, leads to /crypto/. */
.ticket.is-crypto { display: flex; align-items: center; gap: 20px; background: linear-gradient(#252421, #161512); color: #fff; transition: transform 0.2s var(--ease); }
.ticket.is-crypto:hover { transform: translateY(-2px); }
.ticket.is-crypto h3 { margin-bottom: 4px; color: #fff; }
.ticket.is-crypto p { color: rgba(255, 255, 255, 0.74); }
.ticket.is-crypto > .ico { flex: none; width: 22px; height: 22px; margin-left: auto; color: #4ee3bf; }
.pay-way.is-alt { box-shadow: inset 0 0 0 1.5px rgba(28, 27, 24, 0.14); }
.pay-way.is-alt .ico { color: var(--ink); }
.pay-way.is-alt > i { padding: 2px 7px; border-radius: 6px; background: #4ee3bf; color: var(--ink); font-weight: 700; }

/* /crypto/ */
.nx-steps p, .nx-steps h3 { text-wrap: pretty; }
.cx-h1 { font-size: clamp(3rem, 6.4vw, 5.6rem); }
.cx-h1 em { background: linear-gradient(transparent 60%, var(--marker) 60% 92%, transparent 92%); }

@media (max-width: 900px) {
  .zero { grid-template-columns: minmax(0, 1fr); padding: 44px 36px; }
  .zr { max-width: 460px; justify-self: center; margin-bottom: 14px; }
}
@media (max-width: 640px) {
  .zero { padding: 32px 20px 28px; border-radius: 22px; gap: 32px; }
  .zero-big { font-size: 9.5rem; }
  .zr .rc-main, .zr .rc-stub { padding-left: 16px; padding-right: 16px; }
  .zr .stamp { font-size: 14px; top: 12px; right: 10px; }
  .zr-field { font-size: 28px; line-height: 36px; }
  .ticket.is-crypto { gap: 14px; }
  .zr-acts .acts > .btn { flex: 1 1 100%; }
  .pay-way { gap: 6px; padding: 0 8px; font-size: 12.5px; }
  .pay-way > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pay-way.is-alt > i { display: none; } /* the narrow drawing keeps the word whole; the 0 % is all around it */
}
/* The narrowest phones: one long word of a section title («РАЗРАБОТЧИКОВ») must fit 288 px. */
@media (max-width: 360px) {
  .sec-hd .h2 { font-size: 1.7rem; }
}

/* /crypto/networks/: networks and coins on a receipt; «soon» rows muted; the note and the call beside it. */
.nw-sec { scroll-margin-top: 76px; }
.nw-rc .stars { background-position: 0 0; background-repeat: round no-repeat; } /* whole stars only, no cut halves */
.nw-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1024px) { .nw-grid { grid-template-columns: minmax(0, 720px) minmax(0, 1fr); gap: 56px; align-items: start; } }
.nw { width: 100%; border-collapse: collapse; font: 500 14px/20px var(--mono); }
.nw th, .nw td { padding: 12px 10px; border-bottom: 1px dashed var(--ink-30); text-align: left; vertical-align: middle; }
.nw thead th { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-60); font-weight: 500; }
.nw tbody th { font-weight: 700; }
.nw tbody tr:last-child > * { border-bottom: 0; }
.nw tr.is-soon > * { color: var(--ink-60); }
.nw-state { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--green-ink); }
.nw tr.is-soon .nw-state { color: var(--orange); letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; }
/* Networks being added: their own group under a heading row (owner 13.11: show the coming coins too). */
.nw tr.nw-group > th { padding-top: 24px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); font-weight: 700; }
.nw-fin { font: 400 12px/1 var(--ui); color: var(--ink-60); white-space: nowrap; }
.nw-side { display: grid; gap: 24px; align-content: start; }
.nw-note { font: 400 16px/1.5 var(--ui); color: var(--ink-75); max-width: none; text-wrap: pretty; }
.nw-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.nw-memo { margin-left: 4px; font: 500 12px/1 var(--mono); color: var(--ink-75); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.nw-tbd { font: 500 12px/1 var(--ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange); }
.nw-ton { margin-top: 56px; scroll-margin-top: 88px; }
.nw-h3 { margin: 0; font: 600 clamp(1.4rem, 2.4vw, 1.8rem)/1.2 var(--ui); letter-spacing: -0.02em; }
.nw-ton .sub { margin: 8px 0 16px; }
.nw-ton .nx-steps { margin-top: 20px; }
/* The one line a TON payer must not miss: a plate, not a plain note (as in the payment forms) */
.nw-warn { margin-top: 0; padding: 12px 16px; max-width: 640px; border: 1.5px solid var(--orange); border-radius: 8px; background: rgba(162, 76, 23, 0.08);
  font: 600 16px/1.4 var(--ui); color: var(--orange); }

@media (max-width: 640px) {
  .nw thead { display: none; }
  .nw, .nw tbody, .nw tr { display: block; }
  .nw tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 10px 16px; padding: 4px 0 12px; }
  .nw th, .nw td { padding: 0; border: 0; }
  .nw td[data-label]::before { content: attr(data-label); display: block; font-size: 10px; line-height: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-60); }
  .nw-memo { display: table; margin: 6px 0 0; } /* on its own line under the coins, flush with them */
  .nw tbody th { grid-column: 1 / -1; }
  .nw tr.nw-group { display: block; padding: 16px 0 6px; }
  .nw-acts { flex-direction: column; align-items: flex-start; }
}

/* Keyboard users jump past the header: the link is out of sight until it gets the focus. */
.skip { position: absolute; left: 12px; top: 12px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: #1c1b18; color: #fff; font: 600 15px/20px var(--ui); transform: translateY(-160%); transition: transform 0.15s var(--ease); }
.skip:focus-visible { transform: none; outline: 2px solid var(--focus); outline-offset: 2px; }
main:focus { outline: none; }

/* 404: the likeliest places to go next, under the buttons. */
.soon-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 6px; }

/* /status/: where to go when something is down. */
.st-help { grid-column: 2; display: flex; flex-wrap: wrap; align-content: start; gap: 10px 24px; } /* beside the receipt, under the notices when there are any */
@media (max-width: 900px) { .st-help { grid-column: auto; } }

/* Printing the docs or the rules: the text on white, no header, footer, menus or buttons; code wraps instead of being
   cut off; outside links print their address. */
@media print {
  html, body { background: #fff; }
  .site-hd, .site-ft, .skip, .toc-box, .toc-m, .copy, .acts, .anchor, .tabs-ctl, .nx-cta, .apply { display: none !important; }
  .doc { display: block; padding-bottom: 0; }
  .prose, .rc, .ticket, .sheet, .toc-box { box-shadow: none !important; background: #fff !important; }
  .prose::after, .rc::after { display: none; }
  pre, pre code { white-space: pre-wrap !important; overflow: visible !important; word-break: break-word; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #555; word-break: break-all; }
  h2, h3 { break-after: avoid; }
  pre, figure, table { break-inside: avoid; }
  * { animation: none !important; transition: none !important; }
}

/* Rows of stars on every receipt: whole stars only, never a half at the edges. */
.stars { background-position: 0 0; background-repeat: round no-repeat; }
/* The gallery's switches: one group per row on a wide screen too — «Screen» no longer hangs between other rows. */
.fg-ctl { grid-template-columns: minmax(0, 1fr); }
/* Phone frames show the top of a form, like a real screen that scrolls: when the form is taller than the screen, a fade
   into the bezel (solid at the very bottom) says «more below» instead of a line of text cut in half. */
.fx-phone::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 44px; border-radius: 0 0 28px 28px; background: linear-gradient(rgba(28, 27, 24, 0), #1c1b18 calc(100% - 12px)); pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.fx-phone.is-more::after { opacity: 1; } /* only when the form is taller than the screen (site.js) */

/* /forms/: how to turn the chosen form on — the bot path and the API call. */
.fg-how { max-width: 640px; font: 400 14px/1.55 var(--ui); color: var(--ink-75); }
.fg-how code { padding: 0.1em 0.36em; border-radius: 5px; background: rgba(28, 27, 24, 0.06); font: 500 0.92em var(--mono); white-space: nowrap; }
.fg-how a { border-bottom: 1px solid var(--ink-30); }

/* The header switch for the dark theme (/_s/menu.js?v=ec425d7f2c): a moon, filled while the dark theme is on. */
.theme-tg { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 12px; background: none; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(28, 27, 24, 0.16); cursor: pointer; }
.theme-tg:hover { box-shadow: inset 0 0 0 1.5px var(--ink-30); }
.theme-tg svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.theme-tg[aria-pressed="true"] svg { fill: currentColor; }

/* The dark theme, by the visitor's choice only (light is the default): «receipts on a dark desk». The canvas and what
   sits on it turn dark; paper — receipts, sheets, tickets, the docs, the questions, the request form, the phones —
   keeps its light paper and dark ink: the colour tokens are set back inside paper. Payment forms are always light. */
:root[data-theme="dark"] {
  --canvas: #161512; --ink: #f1eee6; --ink-75: rgba(241, 238, 230, 0.82); --ink-60: rgba(241, 238, 230, 0.68);
  --ink-30: rgba(241, 238, 230, 0.3); --hair: rgba(241, 238, 230, 0.12); --marker: rgba(78, 227, 191, 0.38);
  --orange: #f0a167; --green-ink: #4ee3bf; --focus: #6aa0ff;
  color-scheme: dark;
}
[data-theme="dark"] :is(.rc, .ticket, .sheet, .prose, .toc-box, .toc-m, .faq, .apply-rc, .chip, .tv, .calc-field, .menu nav, .nx-steps, .nw-rc, .st-rc, .fx-phone, .tg, .shot, .pay) {
  --ink: #1c1b18; --ink-75: rgba(28, 27, 24, 0.82); --ink-60: rgba(28, 27, 24, 0.72); --ink-30: rgba(28, 27, 24, 0.3);
  --hair: rgba(28, 27, 24, 0.1); --marker: rgba(78, 227, 191, 0.5); --orange: #a24c17; --green-ink: #0a7340; --focus: #1463ff;
  color: var(--ink); color-scheme: light;
}
[data-theme="dark"] .btn-secondary { background: rgba(255, 255, 255, 0.08); color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(241, 238, 230, 0.25); }
[data-theme="dark"] .btn-primary { background: linear-gradient(#f5f2ea, #e2ddd1); color: #1c1b18; }
[data-theme="dark"] .btn-primary .ico, [data-theme="dark"] .btn-mint, [data-theme="dark"] .btn-mint .ico { color: #1c1b18; }
[data-theme="dark"] :is(.zero, .machine) .btn-primary { background: linear-gradient(#6cf0cf, #4ee3bf); }
/* On paper the main button stays graphite, as in the light theme. */
[data-theme="dark"] :is(.rc, .ticket, .sheet, .apply-rc, .prose, .soon-rc) .btn-primary { background: linear-gradient(#31302d, #1c1b18); color: #fff; }
[data-theme="dark"] :is(.rc, .ticket, .sheet, .apply-rc, .prose, .soon-rc) .btn-primary .ico { color: #fff; }
[data-theme="dark"] .site-hd { background: rgba(22, 21, 18, 0.96); }
[data-theme="dark"] :is(.machine, .zero) { box-shadow: inset 0 0 0 1px rgba(241, 238, 230, 0.1), 0 34px 60px -30px rgba(0, 0, 0, 0.8); }
[data-theme="dark"] .ticket.is-soon { background: #ebe8df; border-color: rgba(28, 27, 24, 0.25); } /* the light canvas colour: «Скоро» keeps 4.78:1 */
[data-theme="dark"] :is(.theme-tg, .lang) { box-shadow: inset 0 0 0 1.5px rgba(241, 238, 230, 0.25); }
[data-theme="dark"] .chip.is-cmd { color: #fff; } /* its own white on graphite, not the paper ink */
[data-theme="dark"] .skip { background: #f1eee6; color: #1c1b18; }
/* The narrowest phones: the header holds the theme switch too. */
@media (max-width: 380px) {
  .hd-end { gap: 6px; }
  .theme-tg { width: 34px; height: 34px; }
  .lang { height: 34px; padding: 0 8px; }
}

/* /on-site/ — the payment form on the shop's own site: a browser window, the shop's checkout and our form in it. */
.os-win { margin: 0; width: min(100%, 600px); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--lift); border: 1px solid var(--ink-30); }
.os-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #ecebe6; border-bottom: 1px solid var(--ink-30); }
.os-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9c6bd; }
.os-url { flex: 1; min-width: 0; margin-left: 10px; padding: 4px 12px; border-radius: 999px; background: #fff; font: 500 13px/18px var(--ui); color: var(--ink-60); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.os-page { display: grid; grid-template-columns: minmax(0, 1fr) 282px; gap: 20px; padding: 20px; background: #faf9f6; }
.os-shop { display: grid; align-content: start; gap: 10px; min-width: 0; font: 400 13px/18px var(--ui); color: var(--ink-75); }
.os-logo { margin: 0 0 6px; font: 600 15px/1.2 var(--ui); color: var(--ink); }
.os-cap { margin: 0; font: 500 13px/18px var(--ui); color: var(--ink-60); }
.os-row { display: flex; justify-content: space-between; gap: 10px; margin: 0; padding-bottom: 8px; border-bottom: 1px dashed var(--ink-30); }
.os-row b { font: 600 13px/18px var(--mono); color: var(--ink); white-space: nowrap; }
.os-total { border-bottom: 0; font-weight: 600; color: var(--ink); }
.os-form { position: relative; width: 282px; height: 547px; overflow: hidden; border-radius: 10px; background: var(--canvas); }
.os-form iframe { width: 390px; height: 760px; border: 0; transform: scale(0.7231); transform-origin: 0 0; pointer-events: none; background: var(--canvas); }
.os-same { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.os-same li { display: grid; align-content: start; gap: 8px; min-width: 0; padding: 24px 26px; border-radius: 5px; background: var(--grain), var(--paper); box-shadow: var(--lift); }
.os-same h3 { margin: 0; font: 600 18px/24px var(--ui); }
.os-same p { margin: 0; font: 400 15px/22px var(--ui); color: var(--ink-75); }
@media (max-width: 640px) {
  .os-page { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 14px; justify-items: center; }
  .os-shop { width: 100%; }
  .os-shop .os-cap, .os-shop .os-row:not(.os-total) { display: none; }
  .os-same { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 360px) { .os-page { padding: 10px 2px; } }

/* Home, first screen: the main advantage — the payment form on the shop's own site with no marks of ours. */
.nomark { display: grid; gap: 10px; justify-items: start; max-width: 600px; margin: 4px 0 8px; padding: 20px 22px 22px; border: 0; border-radius: 10px; background: var(--grain), var(--paper); box-shadow: var(--lift); }
.nomark-h { margin: 0; font: 600 clamp(1.3rem, 2vw, 1.6rem)/1.2 var(--ui); letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.nomark-p { margin: 0; font: 400 15px/22px var(--ui); color: var(--ink-75); text-wrap: pretty; }
.nomark-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
@media (max-width: 640px) { .nomark { padding: 16px 16px 18px; } .nomark-acts .btn { flex: 1 1 100%; justify-content: center; } }
.nomark-for, .os-for { margin: 0; font: 500 13px/19px var(--ui); color: var(--ink); text-wrap: pretty; }
.os-for { max-width: 560px; padding-left: 12px; border-left: 3px solid var(--ink); }

/* Payment methods on the home page: TON Connect inside the crypto ticket, the Telegram wallets' own ticket, fees by method. */
.pm-sub { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; font: 400 15px/1.45 var(--ui); color: var(--ink-75); }
.pm-sub .w-ico { flex: none; width: 24px; height: 24px; margin-top: 1px; }
.pm-sub b { color: var(--ink); font-weight: 600; }
.ticket.is-crypto .pm-sub b { color: #fff; }
.is-wallets p { margin-top: 14px; font: 400 16px/1.5 var(--ui); color: var(--ink-75); }
.is-wallets .pm-note { margin-top: 8px; font-size: 14px; color: var(--ink-60); }
.pm-wicons { display: inline-flex; flex: none; }
.pm-wicons .w-ico { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 2px var(--paper); }
.pm-wicons .w-ico + .w-ico { margin-left: -8px; }
.pm-fees { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; border-radius: 10px; background: rgba(28, 27, 24, 0.14); box-shadow: var(--lift); }
.pm-fees-h { grid-column: 1 / -1; margin: 0; padding: 10px 16px; background: var(--ink); color: #fff; font: 500 13px/18px var(--ui); }
.pm-fee { display: grid; gap: 4px; align-content: start; padding: 14px 16px; background: var(--grain), var(--paper); }
.pm-fee span { font: 400 13px/1.35 var(--ui); color: var(--ink-75); }
.pm-fee b { font: 700 1.6rem/1 var(--mono); color: var(--ink); letter-spacing: -0.02em; }
.pm-fee.is-zero b { color: var(--green-ink); }
.pm-fee.is-payout { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.pm-fee.is-payout span { font-weight: 500; color: var(--ink); }
.pm-fees-note { grid-column: 1 / -1; margin: -1px 0 0; padding: 0 16px 12px; background: var(--grain), var(--paper); font: 400 13px/1.4 var(--ui); color: var(--ink-60); }
.pm-rate { margin: 22px 0 0; padding-top: 18px; border-top: 1.5px dashed rgba(28, 27, 24, 0.22); color: var(--ink); font-size: 0.98rem; line-height: 1.45; }
@media (max-width: 640px) { .pm-fees { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* /crypto/: two more ways — TON Connect and the Telegram wallets — then the fees by method. */
.cx-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.cx-way p { margin-top: 16px; font: 400 16px/1.55 var(--ui); color: var(--ink-75); }
.cx-way .ticket-hd > .w-ico { width: 30px; height: 30px; flex: none; }
@media (max-width: 760px) { .cx-ways { grid-template-columns: minmax(0, 1fr); } }

/* «Свои способы оплаты»: the home ticket and the /own-methods/ page. */
.ticket.is-own { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: inherit; text-decoration: none; transition: transform 0.2s var(--ease); }
.ticket.is-own:hover { transform: translateY(-2px); }
.ticket.is-own p { margin-top: 6px; color: var(--ink-75); font-size: 0.98rem; line-height: 1.45; }
.om-card { width: min(100%, 420px); }
.om-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--ink-30); font: 400 14px/1.3 var(--ui); }
.om-row span { display: grid; gap: 2px; min-width: 0; }
.om-row b { font: 600 15px/1.2 var(--ui); color: var(--ink); }
.om-row small { font: 400 12px/1.3 var(--mono); color: var(--ink-60); }
.om-row em { flex: none; font: 700 1.1rem/1 var(--mono); font-style: normal; color: var(--green-ink); }
.om-head { padding-top: 4px; border-bottom: 1.5px solid var(--ink); font: 500 13px/18px var(--ui); color: var(--ink-60); }
.om-head span { display: block; }
.om-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.om-safe { display: grid; gap: 12px; max-width: 760px; margin: 0; padding: 0; list-style: none; }
.om-safe li { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border-radius: 8px; background: var(--grain), var(--paper); box-shadow: var(--lift); font: 400 16px/1.5 var(--ui); color: var(--ink-75); }
.om-safe li svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--green-ink); }
.om-note { margin-top: 18px; font: 400 14px/1.5 var(--ui); color: var(--ink-60); }
@media (max-width: 900px) { .om-steps { grid-template-columns: minmax(0, 1fr); } .om-steps li + li { border-left: 0; border-top: 1px dashed var(--ink-30); } }

/* «Счёт в любом чате» (/chat-invoice/ and its home block): a Telegram chat drawn in the site's paper. The seller types
   «@ExPay_Agent 25», the hint lists a result per project, then the hint folds away and the invoice — the core's own card
   picture, its caption and the «Pay» button — is in the chat. Without JS or motion the final state is shown. */
/* The chat column has a fixed track: the card picture inside is 800px wide by itself, and an `auto` track would grow
   to it and squeeze the text into a narrow strip. */
.ci-hd .ci { width: 100%; max-width: 400px; }
@media (min-width: 901px) { .ci-hd { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); } }
.ci .ci-ava { font: 600 15px/1 var(--ui); }
.ci-log > .ci-me { font: 400 14px/20px var(--ui); }
.ci-hint { justify-self: stretch; overflow: hidden; margin: 4px -14px -16px; background: var(--paper); border-top: 1px solid var(--hair); }
.ci-hint ul { margin: 0; padding: 6px 0; list-style: none; }
.ci-hint li { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 12px; padding: 7px 16px; }
.ci-hint li:first-child { background: rgba(28, 27, 24, 0.05); }
.ci-hint li b { display: block; font: 500 14px/19px var(--ui); }
.ci-hint li small { display: block; overflow: hidden; font: 400 12px/16px var(--ui); color: var(--ink-60); text-overflow: ellipsis; white-space: nowrap; }
.ci-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--ink); color: #fff; }
.ci-ico .mark { height: 12px; }
.ci-field { display: flex; align-items: center; gap: 2px; margin: 0; padding: 11px 16px 13px; border-top: 1px solid var(--hair); font: 500 14px/20px var(--ui); }
.ci-field span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ci-field i { flex: none; width: 2px; height: 18px; background: var(--focus, #1463ff); }
.ci-out { display: grid; justify-items: end; gap: 5px; justify-self: end; width: 88%; }
.ci-sent { width: 100%; padding: 5px 5px 9px; border-radius: 16px 16px 5px 16px; background: var(--paper); box-shadow: 0 1px 1.5px rgba(28, 27, 24, 0.16); }
.ci-via { display: block; padding: 3px 8px 6px; font: 500 13px/18px var(--ui); color: var(--ink-60); }
.ci-img { display: block; width: 100%; height: auto; border-radius: 11px; }
.ci-cap { margin: 8px 8px 0; font: 400 14px/20px var(--ui); }
.ci-pay { display: grid; place-items: center; width: 100%; min-height: 38px; padding: 4px 10px; border-radius: 10px; background: var(--ink); color: #fff; font: 500 14px/18px var(--ui); }
.js .ci:not(.is-live) .ci-log > * { opacity: 0; }
.ci.is-live .ci-log > .ci-hint { animation: ci-hint 2.2s var(--ease) 1.3s both; }
.ci.is-live .ci-log > .ci-out { animation: say-bill 0.5s var(--spring) 3.3s both; transform-origin: 100% 100%; }
.ci.is-live .ci-field i { animation: ci-caret 0.9s steps(1) 1.3s 3; }
@keyframes ci-hint {
  0% { opacity: 0; translate: 0 10px; max-height: 260px; }
  12%, 78% { opacity: 1; translate: 0 0; max-height: 260px; }
  100% { opacity: 0; max-height: 0; margin-top: -8px; margin-bottom: -8px; border-top-width: 0; }
}
@keyframes ci-caret { 50% { opacity: 0; } }
/* The final state for those who see no motion: the hint is gone, the invoice is in the chat. */
@media (prefers-reduced-motion: reduce) { .js .ci .ci-log > .ci-hint { display: none; } .js .ci .ci-log > * { opacity: 1; animation: none; } }

.ci-q-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 32px 56px; align-items: start; }
.ci-q { border-bottom: 1px dashed var(--ink-30); }
.ci-q-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 6px 20px; align-items: baseline; padding: 14px 0; border-top: 1px dashed var(--ink-30); }
.ci-q-row code { font: 500 14px/20px var(--mono); overflow-wrap: anywhere; }
.ci-q-row > span { color: var(--ink-75); font-size: 0.98rem; line-height: 1.45; text-wrap: pretty; }
.ci-q-head > span { font: 500 13px/18px var(--ui); color: var(--ink-60); }
.ci-cur { margin: 16px 0 0; max-width: 560px; color: var(--ink-75); font-size: 0.95rem; line-height: 1.5; }
.ci-eur { margin: 0; }
.ci-eur .ci-img, .ci-states .ci-img { border-radius: 12px; box-shadow: var(--lift); }
.ci-eur figcaption { margin-top: 10px; font: 500 13px/18px var(--ui); color: var(--ink-60); }
.ci-states { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.ci-states li { display: grid; gap: 12px; align-content: start; min-width: 0; }
.ci-state-cap { display: flex; align-items: center; gap: 10px; margin: 0; font: 600 16px/22px var(--ui); }
.ci-state-cap .num { font: 500 13px/18px var(--ui); color: var(--ink-60); }
@media (max-width: 900px) {
  .ci-q-grid { grid-template-columns: minmax(0, 1fr); }
  .ci-eur { max-width: 520px; }
  .ci-states { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
}
@media (max-width: 640px) {
  .ci-q-row { grid-template-columns: minmax(0, 1fr); }
  .ci-out { width: 94%; }
}

/* «Оплата прямо в вашем боте» (/telegram-bot/ and its home block): the shop's bot sends the invoice with a «Pay»
   mini-app button, and the form rises as a sheet inside the bot. Without JS or motion the final state is shown. */
@media (min-width: 901px) {
  .desk.is-flip { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); }
  .desk.is-flip > figure { order: -1; }
  .tb-hd { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); }
}
.tb-hd .tb { width: 100%; max-width: 400px; }
.tb .tb-ava { font: 600 15px/1 var(--ui); }
.tb-log > .tb-me { font: 400 14px/20px var(--ui); }
.tb-kb { justify-self: start; width: 74%; margin-top: -3px; }
.tb-kb span { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; border-radius: 9px; background: var(--ink); color: #fff; font: 500 13px/18px var(--ui); }
.tb-sheet { display: grid; justify-items: center; gap: 4px; margin: 6px -14px -16px; padding: 10px 18px 18px; border-radius: 18px 18px 0 0; background: var(--paper); box-shadow: 0 -6px 18px rgba(28, 27, 24, 0.14); text-align: center; }
.tb-grip { width: 36px; height: 4px; margin-bottom: 6px; border-radius: 2px; background: var(--ink-30); }
.tb-sheet small { font: 500 13px/18px var(--ui); color: var(--ink-60); }
.tb-sheet b { font: 500 15px/20px var(--ui); }
.tb-sum { font: 700 26px/32px var(--mono); letter-spacing: -0.03em; }
.tb-go { display: grid; place-items: center; width: 100%; min-height: 42px; margin-top: 6px; border-radius: 11px; background: var(--ink); color: #fff; font: 500 14px/18px var(--ui); }
.tb.is-live .tb-log > .tb-sheet { animation: tb-up 0.6s var(--spring) 2.1s both; }
@keyframes tb-up { from { opacity: 0; translate: 0 70px; } }
.tb-steps { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.tb-steps li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px 40px; align-items: start; padding: 26px 28px; border-radius: 5px; background: var(--grain), var(--paper); box-shadow: var(--lift); }
.tb-steps .num { font: 500 13px/18px var(--ui); color: var(--ink-60); }
.tb-steps h3 { margin: 8px 0; font: 600 20px/26px var(--ui); }
.tb-steps p { margin: 0; color: var(--ink-75); line-height: 1.5; text-wrap: pretty; }
.tb-code { margin: 0; padding: 16px 18px; overflow-x: auto; border-radius: 10px; background: #1c1b18; color: #f3efe4; font: 400 12.5px/1.6 var(--mono); }
@media (max-width: 900px) { .tb-steps li { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .tb-steps li { padding: 20px 18px; } .tb-code { font-size: 12px; } }

/* The calculator's split line (the buyer's share of the fee, 16.11): half and half, worked out live like the receipts. */
.calc-split { grid-column: 1 / -1; margin: 4px 0 0; max-width: 760px; color: var(--ink-75); font-size: 0.98rem; line-height: 1.5; text-wrap: pretty; }
.calc-split b { font: 600 0.98rem/1.5 var(--mono); color: var(--ink); white-space: nowrap; }

/* The hero's live form on the narrowest phones (16.11): the 320px phone made the single grid track 320px at a 320px
   screen (an `fr` track grows to its widest child) and the page scrolled sideways by 16px. The track never grows past
   the screen, and below 360px the phone shrinks with the form inside scaled to match (390px frame → 272px). */
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 359px) {
  .hero-form .fx-phone { width: 288px; height: 484px; }
  .hero-form .fx-phone iframe { transform: scale(0.6974); }
}

/* /crypto/ heading on phones (16.11): with Onest «Криптовалюта —» is ~7.8em wide and unbreakable, so the 3rem floor
   pushed it past a 320px screen (the page scrolled sideways by 70px). On phones the size follows the screen. */
@media (max-width: 640px) { .cx-h1 { font-size: clamp(1.9rem, 9.6vw, 3rem); } }

/* «Способы оплаты» (owner 16.11): each method is a few facts for the merchant, printed like receipt rows: what on the
   left, the value on the right, a hairline between. Inherits the card's colours (the crypto card is dark). */
.pm-facts { display: grid; margin: 14px 0 0; }
.pm-facts > div { display: grid; grid-template-columns: minmax(7.5em, auto) minmax(0, 1fr); gap: 2px 16px; align-items: baseline; padding: 9px 0; border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.pm-facts > div:first-child { border-top: 0; padding-top: 0; }
.pm-facts dt { font-size: 0.9rem; opacity: 0.66; }
.pm-facts dd { margin: 0; font-size: 0.98rem; line-height: 1.45; text-wrap: pretty; }
.ticket.is-crypto .ticket-hd > svg:last-child { margin-left: auto; }
@media (max-width: 420px) { .pm-facts > div { grid-template-columns: minmax(0, 1fr); } }

/* «Цифры вживую» (/api/live): two receipts side by side. The rate: the number large, its 24 h as a thin ink line with a
   faint fill, min and max under it. Webhooks: «63 of 63» large, the delivery times as receipt rows, the retry ladder. */
.live-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.live .rc-main { padding: 24px 26px 22px; }
.live-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.live-hd h3 { margin: 0; font: 600 17px/24px var(--ui); }
.live-ago { display: inline-flex; align-items: center; gap: 6px; font: 400 13px/18px var(--ui); color: var(--ink-60); white-space: nowrap; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-ink); }
.live-big { margin: 14px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.live-big b { font: 600 clamp(2.2rem, 5vw, 3rem)/1 var(--mono); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.live-big span { color: var(--ink-75); font-size: 0.98rem; }
.live-src { margin: 6px 0 0; font-size: 0.95rem; }
.live-note { margin: 18px 0 8px; color: var(--ink-60); font-size: 0.9rem; line-height: 1.45; text-wrap: pretty; }
.live-chart { margin: 0; height: 120px; }
.live-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.live-chart .lc-line { fill: none; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.live-chart .lc-area { fill: color-mix(in srgb, var(--ink) 7%, transparent); stroke: none; }
.live-chart .lc-dot { fill: var(--green-ink); stroke: var(--paper); stroke-width: 2; vector-effect: non-scaling-stroke; }
.live-range { display: flex; justify-content: space-between; margin-top: 6px; font: 400 12px/16px var(--mono); color: var(--ink-60); font-variant-numeric: tabular-nums; }
.live-inv { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--hair); }
.live-inv b { font: 600 1rem/1 var(--mono); }
.live-inv span { color: var(--ink-60); font-size: 0.9rem; }
.live-facts { margin-top: 18px; }
.live-facts dd { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.live-ladder { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.live-ladder li { padding: 4px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair); font: 400 13px/18px var(--ui); white-space: nowrap; }
.live-ladder li:last-child { white-space: normal; }
@media (max-width: 900px) { .live-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .live .rc-main { padding: 20px 18px 18px; } }

/* «Курс и доставка» (16.11, our own numbers removed): the delivery card is the service's shape, not statistics — the
   path «payment → 3 delivery points → your server» and the retry ladder. With no rate the card takes the whole row. */
.live-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.live-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; margin: 16px 0 0; padding: 0; list-style: none; }
.live-flow li { display: inline-flex; align-items: center; }
.live-flow span { padding: 6px 12px; border-radius: 8px; background: var(--plate, rgba(28, 27, 24, 0.06)); font: 500 14px/20px var(--ui); white-space: nowrap; }
.live-flow li:not(:last-child)::after { content: "→"; margin: 0 10px; color: var(--ink-60); }
