/* Блог fienpay.com — токены как на главной (index.html), тёмная тема, золотой акцент.
   ponytail: один файл на все новые статьи и /blog; старые статьи (до 21.10.2026) со своими стилями. */
:root {
  --bg: #07070a; --e1: #0f0f14; --e2: #16161d;
  --line: rgba(255,255,255,.10); --line2: rgba(255,255,255,.16);
  --ink: #fafafa; --body: #d4d4da; --muted: #8a8a95;
  --gold: #f5b23e; --gold-soft: #ffd27a; --on-gold: #1a1400;
  --font: 'Geist', system-ui, -apple-system, 'SF Pro Text', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { font-family: var(--font); background: var(--bg); color: var(--body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-soft); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { max-width: 760px; margin: 0 auto; padding: 0 16px; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-size: 20px; font-weight: 700; letter-spacing: -.03em; color: #fff; }
.logo:hover { color: #fff; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; font: 600 15px/1 var(--font); letter-spacing: -.01em; white-space: nowrap; border: 1px solid transparent; transition: background-color .2s, border-color .2s; }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-soft); color: var(--on-gold); }
.btn-line { border-color: var(--line2); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.top-act { display: flex; gap: 8px; }
.btn-line { border-color: var(--line2); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; }

main { max-width: 760px; margin: 0 auto; padding: 40px 16px 80px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--ink); }
h1 { color: #fff; font-size: clamp(32px, 5.4vw, 48px); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; margin-bottom: 16px; }
.date { font-size: 13px; color: var(--muted); margin-bottom: 32px; }
.lead { font-size: 19px; line-height: 1.6; color: var(--ink); margin-bottom: 24px; }
h2 { color: #fff; font-size: clamp(24px, 3.6vw, 30px); font-weight: 600; letter-spacing: -.025em; line-height: 1.2; margin: 52px 0 16px; }
h3 { color: #fff; font-size: 19px; font-weight: 600; margin: 28px 0 10px; }
p { margin-bottom: 18px; }
ul, ol { padding-left: 22px; margin-bottom: 18px; }
li { margin-bottom: 8px; }
li::marker { color: var(--gold); }
strong, b { color: var(--ink); font-weight: 600; }

.table { overflow-x: auto; margin: 20px 0 24px; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; font-size: 13px; background: var(--e1); }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--ink); }

.note { background: var(--e1); border-radius: 16px; padding: 16px 20px; margin: 20px 0; font-size: 15.5px; }
.note p:last-child { margin-bottom: 0; }

.cta { background: var(--e1); border-radius: 16px; padding: 28px 24px; margin: 48px 0; }
.cta h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 26px); }
.cta p { color: var(--muted); margin-bottom: 20px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

.faq { display: grid; gap: 10px; margin-top: 16px; }
.faq details { border-radius: 16px; background: var(--e1); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-size: 16.5px; font-weight: 500; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus:not(:focus-visible) { outline: none; }
.faq summary::after { content: "+"; flex: none; color: var(--gold); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); font-size: 15.5px; }

.posts { display: grid; gap: 12px; margin-top: 8px; }
.post { display: block; border-radius: 16px; padding: 20px; background: var(--e1); transition: border-color .2s; }
.post:hover { background: var(--e2); }
.post b { display: block; color: #fff; font-size: 18px; letter-spacing: -.015em; margin-bottom: 6px; }
.post span { color: var(--muted); font-size: 15px; }

footer { border-top: 1px solid var(--line); }
.foot { max-width: 760px; margin: 0 auto; padding: 32px 16px 104px; font-size: 13px; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; }
.foot-links a { color: var(--muted); font-size: 14px; }
.foot-links a:hover { color: var(--ink); }

@media (max-width: 480px) {
  .top .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .top .btn-cab { width: 40px; padding: 0; } .top .btn-cab span { display: none; }
  .cta-row .btn { flex: 1 1 100%; }
}

.alert { background: var(--e1); border-radius: 16px; padding: 16px 20px; margin: 4px 0 26px; }
.alert p { margin-bottom: 8px; }
.alert p:last-child { margin-bottom: 0; }
.alert b:first-child { color: #ff8a8a; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; color: var(--ink); background: var(--e2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }

/* Доверие: отзывы, гарантия, сноски. Блоки те же, что на главной (index.html). */
img { max-width: 100%; height: auto; }
.small { font-size: 14px; color: var(--muted); }
.revs + .small { margin-top: -4px; }
.cta .small { margin: 14px 0 0; }
.trust { background: var(--e1); border-radius: 16px; padding: 20px 22px; margin: 20px 0 24px; }
.trust p { font-size: 15.5px; margin-bottom: 12px; }
.trust p:last-child { margin-bottom: 0; }
.revs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 12px; }
.revs img { border: 1px solid var(--line); border-radius: 14px; display: block; }
@media (max-width: 560px) { .revs { grid-template-columns: 1fr; } }
.guar { display: flex; gap: 14px; align-items: flex-start; background: var(--e1); border-radius: 16px; padding: 18px 20px; margin: 20px 0 24px; }
.guar b { color: var(--ink); }
.guar p { margin-bottom: 0; font-size: 15.5px; }

/* Покупка в статье: плашка в середине (вставляет blog.js перед «Пошагово») и плавающая кнопка внизу — DESIGN.md «Floating primary CTA» */
.cta-mid { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--e1); border-radius: 16px; padding: 18px 20px; margin: 32px 0; }
.cta-mid p { margin: 0; color: var(--ink); font-size: 16px; }
.cta-mid p span { display: block; color: var(--muted); font-size: 14px; }
.fbar { position: fixed; left: 50%; bottom: 0; z-index: 20; width: min(calc(100vw - 32px), 420px); padding-bottom: max(env(safe-area-inset-bottom), 12px); transform: translate(-50%, 150%); transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1); }
.fbar.show { transform: translate(-50%, 0); }
.fbar .btn { width: 100%; min-height: 56px; font-size: 16px; box-shadow: 0 12px 28px -10px rgba(0,0,0,.6); }
@media (max-width: 480px) { .cta-mid .btn { flex: 1 1 100%; } }
@media (min-width: 761px) { .fbar { left: auto; right: 32px; width: auto; padding-bottom: 32px; transform: translateY(150%); } .fbar.show { transform: none; } .fbar .btn { width: auto; min-height: 52px; padding: 0 26px; } }
