/* Portal pages (pay.cdnnodes.com, valdesec.net). Ported from the redesign mockups,
   docs/design/2026-09-29-website-uiux (PR #541) — do not restyle without the founder's approval.
   Latin and digits in Outfit, Cyrillic and ₽ in Onest; everything is self-hosted. */
@font-face { font-family: 'Outfit'; src: url('fonts/outfit-latin-var.woff2?v=3') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; 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: 'Onest'; src: url('fonts/onest-cyrillic-var.woff2?v=3') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+2116, U+20BD; }
@font-face { font-family: 'JetBrains Mono'; src: url('fonts/jetbrains-mono-var.woff2?v=3') format('woff2'); font-weight: 100 800; font-style: normal; font-display: swap; unicode-range: U+0020-007E, U+0400-045F, U+0490-0491; }

:root { --pn-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body.pn-page { font-family: 'Outfit', 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; background: #f2f0ed; color: #111; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible { outline: 2px solid #0066ff; outline-offset: 2px; }

.pn-screen { max-width: 560px; margin: 24px auto; background: #fafaf8; border: 1px solid rgba(0,0,0,0.08); border-radius: 22px; overflow: hidden; }
@media (max-width: 599px) { .pn-screen { margin: 0; border: 0; border-radius: 0; min-height: 100vh; } }

.pn-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-bottom: 1px solid rgba(0,0,0,0.06); }
.pn-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; letter-spacing: -0.3px; }
.pn-logo > img { width: 26px; height: 26px; object-fit: contain; display: block; }
.pn-hr { display: flex; align-items: center; gap: 8px; }
.pn-lang { display: inline-flex; border: 1px solid rgba(0,0,0,0.12); border-radius: 100px; padding: 2px; }
.pn-lang > a { padding: 4px 9px; border-radius: 100px; font: 600 11px var(--pn-mono); color: #555; text-decoration: none; }
.pn-lang > a.on { background: #111; color: #fafaf8; }
.pn-sup { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 100px; border: 1px solid rgba(0,0,0,0.12); font-size: 13px; font-weight: 500; text-decoration: none; }

.pn-body { padding: 24px 22px 26px; display: flex; flex-direction: column; gap: 14px; }
.pn-h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -1px; line-height: 1.08; text-wrap: balance; }
.pn-sub { margin: 0; font-size: 15px; color: #555; line-height: 1.55; }
.pn-way { border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid rgba(0,0,0,0.07); }
.pn-way.hl { border: 2px solid #0066ff; }
.pn-wayh { display: flex; align-items: baseline; gap: 10px; }
.pn-wayh > b { font: 700 12px var(--pn-mono); color: #0066ff; }
.pn-wayh > strong { font-size: 16px; font-weight: 700; }
.pn-wayh > em { margin-left: auto; font-style: normal; font: 600 10px var(--pn-mono); letter-spacing: 1px; text-transform: uppercase; color: #0052cc; background: rgba(0,102,255,0.08); padding: 3px 8px; border-radius: 100px; white-space: nowrap; }
.pn-p { margin: 0; font-size: 14px; color: #555; line-height: 1.55; }
.pn-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pn-app { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #f2f0ed; font-size: 13px; color: #555; line-height: 1.35; }
.pn-app > img { width: 32px; height: 32px; border-radius: 8px; display: block; flex-shrink: 0; }
.pn-app > span > b { color: #111; font-weight: 600; display: block; font-size: 14px; }
.pn-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.pn-steps > li { display: flex; gap: 10px; align-items: baseline; font-size: 14px; color: #333; line-height: 1.45; }
.pn-steps > li > b { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: #111; color: #fafaf8; font: 700 11px var(--pn-mono); display: inline-flex; align-items: center; justify-content: center; }
.pn-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; border-radius: 100px; background: #111; color: #fafaf8; font-size: 16px; font-weight: 600; text-decoration: none; }
.pn-btn.ghost { background: transparent; color: #111; border: 1.5px solid rgba(0,0,0,0.14); font-weight: 500; }
.pn-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pn-row > div > strong { display: block; font-size: 15px; font-weight: 700; }
.pn-row > div > span { font-size: 13px; color: #555; }
.pn-mini { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 100px; border: 1.5px solid rgba(0,0,0,0.14); font-size: 14px; font-weight: 500; white-space: nowrap; text-decoration: none; }
.pn-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: #555; padding-top: 4px; }
.pn-foot > a { color: #0052cc; text-decoration: none; font-weight: 500; }

/* Renewal page (mockup 09): full-width page — status card, plans, footer. */
body.pn-page--wide { background: #fafaf8; }
.pn-screen.rn { max-width: 1040px; margin: 0 auto; border: 0; border-radius: 0; background: transparent; overflow: visible; }
.rn .pn-head { border-bottom: 0; padding: 10px 16px; }
.rn .pn-body { padding: 0; gap: 0; }
.rn-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 8px 16px 32px; align-items: start; }
.rn-card { border: 1px solid; border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rn-card.t-warn { padding: 16px 18px; }
.rn-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 600; }
.rn-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.rn-big { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.05; text-wrap: balance; }
.rn-card.t-warn .rn-big { font-size: 26px; }
.rn-note { margin: 0; font-size: 15px; line-height: 1.55; text-wrap: pretty; }
.rn-small { font-size: 13px; }
.rn-account { margin: 0; font: 13px var(--pn-mono); }
.t-calm { background: #fff; color: #111; border-color: rgba(0,0,0,0.08); }
.t-calm .rn-eyebrow { color: #1f5f4f; } .t-calm .rn-dot { background: #00d4aa; } .t-calm .rn-note, .t-calm .rn-account { color: #555; }
.t-warn { background: #fff6e5; color: #111; border-color: rgba(245,158,11,0.45); }
.t-warn .rn-eyebrow { color: #8a4b00; } .t-warn .rn-dot { background: #f59e0b; } .t-warn .rn-note, .t-warn .rn-account { color: #5c4a2e; }
.t-ended { background: #111; color: #fafaf8; border-color: #111; }
.t-ended .rn-eyebrow { color: rgba(250,250,248,0.78); } .t-ended .rn-dot { background: #f59e0b; } .t-ended .rn-note, .t-ended .rn-account { color: rgba(250,250,248,0.8); }
.t-positive { background: #e6faf4; color: #0d2e25; border-color: rgba(0,166,125,0.4); }
.t-positive .rn-eyebrow { color: #0b5d47; } .t-positive .rn-dot { background: #00a67d; } .t-positive .rn-note, .t-positive .rn-account { color: #2f4f45; }
.t-neutral { background: #f2f0ed; color: #111; border-color: rgba(0,0,0,0.06); }
.t-neutral .rn-eyebrow { color: #555; } .t-neutral .rn-dot { background: #999; } .t-neutral .rn-note, .t-neutral .rn-account { color: #555; }
.t-failed { background: #fff1f0; color: #111; border-color: rgba(239,68,68,0.35); }
.t-failed .rn-eyebrow { color: #b42318; } .t-failed .rn-dot { background: #ef4444; } .t-failed .rn-note, .t-failed .rn-account { color: #5a2a25; }
.rn-form { margin: 6px 0 0; }
.rn-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; margin-top: 6px; border: 0; border-radius: 100px; background: #111; color: #fafaf8; font-family: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; }
.rn-btn > img { width: 20px; height: 20px; display: block; }
.rn-btn.ghost { background: transparent; color: #111; border: 1.5px solid rgba(0,0,0,0.16); font-weight: 500; }
.t-ended .rn-btn.ghost { color: #fafaf8; border-color: rgba(250,250,248,0.4); }
.rn-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.rn-stack .rn-btn { margin-top: 0; }
.rn-link { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: #0b5d47; }
.rn-btn:focus-visible, .rn-pay:focus-visible, .rn-pill:focus-visible { outline: 3px solid #0066ff; outline-offset: 2px; }
@keyframes rn-spin { to { transform: rotate(360deg); } }
.rn-spin { display: block; width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(0,102,255,0.18); border-top-color: #0066ff; animation: rn-spin 0.9s linear infinite; }
@media (prefers-reduced-motion: reduce) { .rn-spin { animation: none; } }
.rn-plans-wrap { min-width: 0; }
.rn-h2 { margin: 0 0 14px; font-size: 20px; font-weight: 700; letter-spacing: -0.4px; text-wrap: balance; }
.rn-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.rn-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rn-plan { position: relative; display: block; cursor: pointer; }
.rn-plan > input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.rn-plan-box { position: relative; display: flex; flex-direction: column; gap: 3px; min-height: 100px; padding: 16px; border-radius: 18px; border: 2px solid rgba(0,0,0,0.08); background: rgba(255,255,255,0.7); color: #111; }
.rn-plan > input:checked + .rn-plan-box { border-color: #0066ff; background: #fff; box-shadow: 0 8px 24px rgba(0,102,255,0.12); }
.rn-plan > input:focus-visible + .rn-plan-box { outline: 3px solid #0066ff; outline-offset: 2px; }
.rn-badge { position: absolute; top: -10px; right: 12px; padding: 3px 9px; border-radius: 100px; background: #0066ff; color: #fff; font: 600 11px var(--pn-mono); white-space: nowrap; }
.rn-badge.offer { background: #7c3aed; }
.rn-pname { font-size: 15px; font-weight: 600; }
.rn-prow { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rn-list { font-size: 15px; color: #6b6b6b; }
.rn-price { font-size: 23px; font-weight: 800; letter-spacing: -0.5px; }
.rn-per { font-size: 13px; color: #555; }
.rn-pay { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; margin-top: 18px; border: 0; border-radius: 100px; background: #111; color: #fafaf8; font-family: inherit; font-size: 17px; font-weight: 600; cursor: pointer; }
.rn-pay:disabled { opacity: 0.6; cursor: progress; }
.rn-meta { margin: 12px 0 0; font-size: 13px; color: #555; text-align: center; }
.rn-secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px 0 0; font-size: 13px; font-weight: 600; color: #111; }
.rn-legal { margin: 8px auto 0; max-width: 380px; font-size: 12px; line-height: 1.55; color: #555; text-align: center; text-wrap: pretty; }
.rn-legal a { color: #555; text-underline-offset: 2px; }
.rn-foot { padding: 0 16px 28px; }
.rn-foot-inner { border-top: 1px solid rgba(0,0,0,0.08); padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.rn-foot-title { margin: 0; font-size: 14px; font-weight: 600; }
.rn-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.rn-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 100px; border: 1px solid rgba(0,0,0,0.12); color: #111; font-size: 14px; font-weight: 500; text-decoration: none; }
.rn-pill > img { width: 18px; height: 18px; display: block; }
.rn-pill.soon { align-self: flex-start; border: 1.5px dashed rgba(0,0,0,0.22); color: #6b6b6b; }
.rn-soon { font: 600 10px var(--pn-mono); text-transform: uppercase; letter-spacing: 1px; padding: 2px 6px; border-radius: 4px; background: rgba(0,0,0,0.05); }
@media (min-width: 900px) {
  .rn .pn-head { padding: 20px 48px; }
  .rn-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; padding: 32px 48px 64px; }
  .rn-main.single { grid-template-columns: minmax(0, 560px); justify-content: center; }
  .rn-card { padding: 32px; }
  .rn-card.t-warn { padding: 22px 26px; }
  .rn-big { font-size: 44px; }
  .rn-card.t-warn .rn-big { font-size: 32px; }
  .rn-foot { padding: 0 48px 40px; }
}

/* /sub/ in a browser (2c) — mockup 13, frames 4–5 */
.pn-btn > img { width: 22px; height: 22px; border-radius: 6px; display: block; }
.pn-btn > img.flat { border-radius: 0; }
button.pn-btn { width: 100%; font: inherit; font-size: 16px; cursor: pointer; }
.pn-icon { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.pn-icon.warn { background: #fff6e5; color: #c27803; }
.pn-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid rgba(0,0,0,0.07); font-size: 14px; flex-wrap: wrap; }
.pn-status > span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.pn-status > span > i { width: 8px; height: 8px; border-radius: 50%; background: #00d4aa; }
.pn-status > a { color: #0052cc; font-weight: 600; text-decoration: none; }
.pn-small { margin: 0; font-size: 12px; color: #555; line-height: 1.5; text-align: center; }
