/* ============================================================
   AviParser · внутренние страницы (инструкции, блог)
   Шапка/подвал/кнопки берутся из styles.css (rem-масштаб лендинга),
   текстовая часть — в px для удобного чтения.
   ============================================================ */
.page { background: #0b0c10; }
.header--solid { background: rgba(11,12,16,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }

.article { padding: calc(55rem + 36px) 0 56px; }
.article__wrap { max-width: 820px; padding: 0 20px; }
.article__wrap--wide { max-width: 1120px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #8f949c; margin-bottom: 22px; }
.crumbs a { color: #c3c7ce; text-decoration: none; }
.crumbs a:hover { color: var(--mint-accent); }
.crumbs [aria-current] { color: #e9ebee; }

.article__head { margin-bottom: 26px; }
.article__label { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mint-accent); margin-bottom: 12px; }
.article__title { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.06; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.article__lead { margin-top: 16px; font-size: 19px; line-height: 1.5; color: #d5d8dd; max-width: 720px; }
.article__meta { margin-top: 16px; font-size: 13.5px; color: #8f949c; }
.article__cover { margin: 0 0 28px; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.45); background: #15181d; }
.article__cover img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.article__cover img[src$=".svg"] { aspect-ratio: auto; object-fit: contain; }

.toc { margin: 0 0 30px; padding: 18px 22px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.03); }
.toc__title { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8f949c; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 24px; }
.toc li { margin: 4px 0; font-size: 15px; break-inside: avoid; }
.toc a { color: #e9ebee; text-decoration: none; }
.toc a:hover { color: var(--mint-accent); }

/* ─── текст ─── */
.prose { font-size: 17.5px; line-height: 1.68; color: #e3e6ea; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(24px, 3vw, 30px); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; color: #fff; margin-top: 2em; scroll-margin-top: calc(55rem + 20px); }
.prose h3 { font-size: 21px; line-height: 1.25; font-weight: 700; color: #fff; margin-top: 1.6em; scroll-margin-top: calc(55rem + 20px); }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose p { margin-bottom: 0; }
.prose a { color: var(--mint-accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { color: #fff; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--mint-accent); }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 3px solid var(--pink-accent); background: rgba(240,108,180,.06); border-radius: 0 12px 12px 0; color: #f0f2f4; font-size: 17px; }
.prose blockquote p { margin: 0; }
.prose code { font-family: ui-monospace, Consolas, "Cascadia Mono", monospace; font-size: .9em; padding: .12em .4em; border-radius: 6px; background: rgba(255,255,255,.08); color: #bff5e0; }
.prose pre { padding: 16px 18px; border-radius: 12px; background: #15181d; border: 1px solid rgba(255,255,255,.08); overflow-x: auto; font-size: 14.5px; line-height: 1.5; }
.prose pre code { background: none; padding: 0; color: #e9ebee; }
.prose hr { border: 0; border-top: 1px solid rgba(255,255,255,.1); margin: 2em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid rgba(255,255,255,.1); text-align: left; vertical-align: top; }
.prose th { background: rgba(255,255,255,.05); color: #fff; font-weight: 700; }
.prose tbody tr:nth-child(even) { background: rgba(255,255,255,.025); }
.prose img { border-radius: 12px; }
.prose kbd { font-family: inherit; font-size: .85em; padding: .1em .5em; border: 1px solid rgba(255,255,255,.25); border-bottom-width: 2px; border-radius: 6px; background: #1b1f25; }

.figure { margin: 1.6em 0; }
.figure img { width: 100%; height: auto; border-radius: 14px; background: #15181d; box-shadow: 0 14px 36px rgba(0,0,0,.4); }
.figure figcaption { margin-top: 10px; font-size: 13.5px; line-height: 1.45; color: #9aa0a8; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.figure__credit { color: #6f7580; }
.figure__credit a { color: #8f949c; text-decoration: none; }
.figure__credit a:hover { color: var(--mint-accent); }
.figure--diagram img { box-shadow: none; background: transparent; }

.note { margin: 1.4em 0; padding: 14px 18px 14px 20px; border-radius: 12px; border: 1px solid rgba(112,245,196,.35); background: rgba(112,245,196,.07); font-size: 16.5px; }
.note strong { color: var(--mint-accent); margin-right: 4px; }
.note--tip { border-color: rgba(207,169,252,.4); background: rgba(207,169,252,.08); }
.note--tip strong { color: #d7b8ff; }

.steps { counter-reset: step; }
.steps h3 { counter-increment: step; position: relative; padding-left: 46px; }
.steps h3::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--mint-accent); color: #0b0c10; font-size: 15px; font-weight: 800; display: grid; place-items: center; }

.inline-cta { margin: 48px 0 0; padding: 22px 24px; border-radius: 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(112,245,196,.14), rgba(151,59,240,.16)); border: 1px solid rgba(255,255,255,.1); }
.inline-cta div { display: grid; gap: 4px; }
.inline-cta strong { color: #fff; font-size: 18px; }
.inline-cta span { color: #c3c7ce; font-size: 15px; }
.inline-cta .btn { height: 44px; padding: 0 26px; font-size: 15px; }

/* ─── карточки материалов ─── */
.related { margin-top: 52px; }
.related h2 { font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 18px; letter-spacing: -0.02em; }
.pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pcards--grid { grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 10px; }
.pcard { display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: inherit; border-radius: 16px; overflow: hidden; background: #15181d; border: 1px solid rgba(255,255,255,.08);
  transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.45); border-color: rgba(112,245,196,.4); }
.pcard__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0f1115; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.pcard__img img[src$=".svg"] { object-fit: contain; padding: 6px; background: #0f1115; }
.pcard:hover .pcard__img img { transform: scale(1.05); }
.pcard__body { display: grid; gap: 8px; padding: 16px 18px 18px; align-content: start; }
.pcard__label { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mint-accent); }
.pcard__title { font-size: 17px; line-height: 1.3; font-weight: 700; color: #fff; }
.pcard__desc { font-size: 14px; line-height: 1.45; color: #aeb3bb; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard time { font-size: 12.5px; color: #7d838c; }

/* ─── CTA и подвал внутренних страниц ─── */
.page-cta { margin-top: 20px; }
.footer-links { background: #0b0d11; border-top: 1px solid rgba(255,255,255,.06); padding: 44px 0 26px; font-size: 15px; }
.footer-links__inner { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 32px; padding: 0 20px; max-width: 1120px; }
.footer-links__brand img { width: 150px; }
.footer-links__brand p { margin: 14px 0 16px; color: #aeb3bb; line-height: 1.5; max-width: 340px; }
.footer-links h3 { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8f949c; margin: 4px 0 12px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links li a { color: #e3e6ea; text-decoration: none; line-height: 1.4; }
.footer-links li a:hover { color: var(--mint-accent); }
.footer-links .footer__tg { padding-left: 0; font-size: 15px; }
.footer-links .footer__tg img { width: 20px; height: 20px; }
.footer-links__bottom { margin-top: 32px; padding: 18px 20px 0; max-width: 1120px; border-top: 1px solid rgba(255,255,255,.06); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #7d838c; }
.footer-links__bottom a { color: #aeb3bb; text-decoration: none; }

/* ─── адаптив ─── */
@media (max-width: 900px) {
  .pcards, .pcards--grid { grid-template-columns: 1fr 1fr; }
  .footer-links__inner { grid-template-columns: 1fr 1fr; }
  .footer-links__brand { grid-column: 1 / -1; }
}
@media (max-width: 699px) {
  .article { padding-top: 84px; }
  .article__lead { font-size: 17px; }
  .prose { font-size: 16.5px; }
  .toc ol { columns: 1; }
  .pcards, .pcards--grid { grid-template-columns: 1fr; }
  .footer-links__inner { grid-template-columns: 1fr; }
  .inline-cta { padding: 18px; }
  .inline-cta .btn { width: 100%; }
  .page .sticky-cta { display: none; }
}

/* ─── страница заказа /success/ ─── */
.order { min-height: 50vh; display: grid; align-content: start; }
.order__state { display: grid; gap: 14px; }
.order__state[hidden] { display: none; }
.order__spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid rgba(112,245,196,.18); border-top-color: var(--mint-accent);
  animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.article__label--bad { color: #ff8a8a; }
.keybox { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(112,245,196,.14), rgba(151,59,240,.14)); border: 1px solid rgba(112,245,196,.4); }
.keybox code { font-family: ui-monospace, Consolas, monospace; font-size: clamp(20px, 3.4vw, 28px); font-weight: 700; letter-spacing: .04em;
  color: #fff; user-select: all; word-break: break-all; }
.keybox .btn { height: 42px; padding: 0 20px; font-size: 15px; font-family: inherit; cursor: pointer; }
.order__save { font-size: 15px; color: #aeb3bb; }
.order__save a { color: var(--mint-accent); }
.order code { font-family: ui-monospace, Consolas, monospace; }
.howbuy--page { counter-reset: hb; list-style: none; padding: 0; margin: 10px 0 6px; display: grid; gap: 12px; }
.howbuy--page li { counter-increment: hb; position: relative; padding-left: 40px; font-size: 16.5px; line-height: 1.5; color: #d5d8dd; }
.howbuy--page li::before { content: counter(hb); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(112,245,196,.14); color: var(--mint-accent); font-weight: 800; font-size: 14px; }
.howbuy--page b { color: #fff; }
.howbuy--page a { color: var(--mint-accent); }
