/* ═══ ПИЛОТ (30.11.2026): страница инструмента — статья с визуалом ═══════════════════════════════
   Отдельный файл, а не src/index.css: общий CSS грузится на всех 83 страницах и задерживает первый показ —
   с этими 3 КБ он перерастал первое окно TCP (≈14 КБ) и в Lighthouse добавлял круг к FCP/LCP.
   Подключается ссылкой в начале статьи (scripts/pilot-pages.mjs) — только на пилотных страницах, ниже первого экрана.
   html собирает scripts/pilot-pages.mjs (WebP→JPG, PDF→Word, HEIC→JPG), React показывает его через SeoText.
   Текст — колонкой для чтения (≈46rem), картинки и карточки — на всю ширину статьи. Стили действуют и до загрузки JS. */
.seo-text .pl { font-size: 16.5px; line-height: 1.72; color: #d4d4de; }
.seo-text .pl > p, .seo-text .pl > ul, .seo-text .pl > ol { max-width: 46rem; margin: 0 0 14px; }
.seo-text .pl > ul, .seo-text .pl > ol { padding-left: 22px; }
.seo-text .pl > ul li, .seo-text .pl > ol li { margin: 0 0 8px; }
.seo-text .pl > ol.pl-steps, .seo-text .pl > ul.pl-facts, .seo-text .pl > ul.pl-next { max-width: none; padding-left: 0; }
.seo-text .pl h2 { font-size: 26px !important; line-height: 1.22; font-weight: 800; letter-spacing: -0.02em; margin: 56px 0 14px; scroll-margin-top: 84px; }
.seo-text .pl h2:first-of-type { margin-top: 8px; }
.seo-text .pl .pl-h3 { font-size: 18px !important; margin: 34px 0 12px; }
.seo-text .pl figure { margin: 18px 0 22px; }
.seo-text .pl figcaption, .seo-text .pl .pl-cap { margin-top: 8px; font-size: 13.5px; color: #8b8ba3; line-height: 1.5; }
.seo-text .pl-fig img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid rgba(255,255,255,.08); }
.seo-text .pl-hero img { box-shadow: 0 30px 70px -40px rgba(56,189,248,.55); }

/* оглавление в тексте: телефон и робот; на компьютере его заменяет боковая колонка */
.seo-text .pl-toc { margin: 0 0 28px; border: 1px solid rgba(255,255,255,.09); border-radius: 16px; background: rgba(255,255,255,.035); }
.seo-text .pl-toc summary { cursor: pointer; padding: 12px 16px; font-weight: 700; color: #fff; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.seo-text .pl-toc summary::-webkit-details-marker { display: none; }
.seo-text .pl-toc summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid #8b8ba3; border-bottom: 2px solid #8b8ba3; transform: rotate(45deg); margin-top: -4px; transition: transform .2s; }
.seo-text .pl-toc details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.seo-text .pl-toc ol { margin: 0; padding: 0 16px 14px 36px; font-size: 15px; line-height: 1.5; }
.seo-text .pl-toc li { margin: 6px 0; }
.seo-text .pl-toc a { text-decoration: none; color: #cfd2e0 !important; }
.seo-text .pl-toc a:hover { color: #fff !important; }
@media (min-width: 1024px) { .seo-text .pl-toc { display: none; } }

/* три шага: настоящие снимки страницы */
.seo-text .pl-steps { list-style: none !important; padding: 0 !important; margin: 18px 0 6px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: none; }
.seo-text .pl-step { position: relative; display: flex; flex-direction: column; gap: 4px; margin: 0 !important; }
.seo-text .pl-stepimg { display: block; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); background: #181822; margin-bottom: 10px; aspect-ratio: 716 / 564; }
.seo-text .pl-stepimg img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: top; }
.seo-text .pl-stepn { display: inline-flex; vertical-align: 2px; margin-right: 4px; width: 24px; height: 24px; border-radius: 50%; background: #0ea5e9; color: #fff; font-weight: 800; font-size: 13px; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(14,165,233,.45); }
.seo-text .pl-step b { font-size: 16.5px; }
.seo-text .pl-step > span:last-child { font-size: 14.5px; line-height: 1.55; color: #a9a9bd; }

/* строка фактов вместо абзацев про ограничения */
.seo-text .pl-facts { list-style: none !important; padding: 0 !important; margin: 18px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: none; }
.seo-text .pl-facts li { margin: 0 !important; display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; background: rgba(56,189,248,.06); border: 1px solid rgba(56,189,248,.18); font-size: 13.5px; line-height: 1.4; color: #b9bccb; }
.seo-text .pl-facts svg { flex: none; color: #38bdf8; margin-top: 1px; }

/* пример: файлы, вес, пара картинок */
.seo-text .pl-files { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; margin: 18px 0 12px; }
.seo-text .pl-file { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); min-width: 0; }
.seo-text .pl-fileimg { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.seo-text .pl-filet { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.seo-text .pl-filet b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seo-text .pl-filet span { font-size: 12.5px; color: #8b8ba3; line-height: 1.4; }
.seo-text .pl-kb { font-size: 19px; font-weight: 800; color: #fff; white-space: nowrap; }
.seo-text .pl-filearr { width: 34px; height: 34px; border-radius: 50%; background: rgba(56,189,248,.15); color: #7dd3fc; display: flex; align-items: center; justify-content: center; }
.seo-text .pl-badge { position: absolute; top: -9px; left: 12px; padding: 1px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .03em; color: #0c0c18; background: var(--c); }
.seo-text .pl-badge.big { position: static; justify-self: start; font-size: 14px; padding: 4px 12px; border-radius: 8px; }
.seo-text .pl-bars { display: grid; gap: 8px; margin: 6px 0 18px; max-width: 46rem; }
.seo-text .pl-bar { display: grid; grid-template-columns: 52px minmax(0, 1fr) 72px; align-items: center; gap: 10px; font-size: 13.5px; }
.seo-text .pl-barl { color: #a9a9bd; font-weight: 700; }
.seo-text .pl-bart { height: 12px; border-radius: 6px; background: rgba(255,255,255,.06); overflow: hidden; }
.seo-text .pl-bart i { display: block; height: 100%; border-radius: 6px; background: var(--c); }
.seo-text .pl-barv { text-align: right; color: #fff; font-weight: 700; }
.seo-text .pl-pairg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.seo-text .pl-pairg > div { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); background: #fff; }
.seo-text .pl-pairg img { display: block; width: 100%; height: auto; }
.seo-text .pl-pair.one .pl-pairg { grid-template-columns: repeat(2, minmax(0, 400px)); }
.seo-text .pl-pair.stack .pl-pairg { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.seo-text .pl-pair.stack .pl-pairg > div { padding-top: 34px; }
.seo-text .pl-pair.stack .pl-tag { top: 8px; left: 12px; }
.seo-text .pl-tag { position: absolute; left: 10px; top: 10px; padding: 2px 10px; border-radius: 999px; background: rgba(12,12,24,.78); color: #fff; font-size: 12.5px; font-weight: 700; }

/* прозрачный фон: шахматка показывает, где прозрачно */
.seo-text .pl-alpha { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 18px; max-width: 46rem; }
.seo-text .pl-alpha figure { margin: 0; }
.seo-text .pl-chess { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid rgba(255,255,255,.1);
  background-color: #2a2a3d; background-image: linear-gradient(45deg, #3a3a52 25%, transparent 25%, transparent 75%, #3a3a52 75%), linear-gradient(45deg, #3a3a52 25%, transparent 25%, transparent 75%, #3a3a52 75%);
  background-size: 22px 22px; background-position: 0 0, 11px 11px; }
.seo-text .pl-alpha figcaption { display: flex; flex-direction: column; font-size: 13px; }
.seo-text .pl-alpha figcaption b { color: #fff; font-size: 14px; }

/* сравнение форматов карточкой */
.seo-text .pl-cmp { margin: 18px 0 8px; border-radius: 20px; padding: 6px 18px 16px; background: linear-gradient(180deg, rgba(56,189,248,.07), rgba(255,255,255,.02)); border: 1px solid rgba(56,189,248,.2); }
.seo-text .pl-cmph, .seo-text .pl-cmpr { display: grid; grid-template-columns: 190px minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: center; }
.seo-text .pl-cmph { padding: 12px 0; }
.seo-text .pl-cmpr { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.07); font-size: 14.5px; line-height: 1.45; }
.seo-text .pl-cmpl { color: #8b8ba3; font-weight: 600; font-size: 13.5px; }
.seo-text .pl-cmpv { display: flex; gap: 6px; align-items: flex-start; color: #c9cbd8; }
.seo-text .pl-cmpv.win { color: #fff; font-weight: 600; }
.seo-text .pl-cmpv svg { flex: none; color: #34d399; margin-top: 2px; }
.seo-text .pl-cmpn { margin: 10px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.04); font-size: 14.5px; color: #e4e4ee; }

/* что сохраняется / что нет; два случая рядом */
.seo-text .pl-keep, .seo-text .pl-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0 18px; }
.seo-text .pl-keepc, .seo-text .pl-twoc { padding: 16px; border-radius: 16px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.035); }
.seo-text .pl-keepc.ok, .seo-text .pl-twoc.ok { border-color: rgba(52,211,153,.3); background: rgba(52,211,153,.06); }
.seo-text .pl-keepc.no, .seo-text .pl-twoc.no { border-color: rgba(251,113,133,.3); background: rgba(251,113,133,.06); }
.seo-text .pl-keepc > b, .seo-text .pl-twoc > b { display: block; margin-bottom: 8px; font-size: 15.5px; }
.seo-text .pl-keepc ul { list-style: none !important; padding: 0 !important; margin: 0; }
.seo-text .pl-keepc li { display: flex; gap: 8px; margin: 0 0 8px; font-size: 14.5px; line-height: 1.5; }
.seo-text .pl-keepc li svg { flex: none; margin-top: 3px; }
.seo-text .pl-keepc.ok li svg { color: #34d399; } .seo-text .pl-keepc.no li svg { color: #fb7185; }
.seo-text .pl-twoc p { margin: 0; font-size: 14.5px; line-height: 1.55; }

.seo-text .pl-tip { max-width: 46rem; margin: 16px 0 18px; padding: 14px 16px; border-radius: 14px; border-left: 4px solid #fbbf24; background: rgba(251,191,36,.07); }
.seo-text .pl-tip b { display: block; color: #fde68a; font-size: 14px; margin-bottom: 2px; }
.seo-text .pl-tip p { margin: 0; font-size: 15px; }

.seo-text .pl-errs { counter-reset: e; list-style: none !important; padding: 0 !important; }
.seo-text .pl-errs li { position: relative; padding-left: 40px; margin: 0 0 14px !important; }
.seo-text .pl-errs li::before { counter-increment: e; content: counter(e); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 9px; background: rgba(251,113,133,.14); color: #fda4af; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }

.seo-text .pl-next { list-style: none !important; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: none !important; }
.seo-text .pl-next li { margin: 0 !important; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; }
.seo-text .pl-next a { font-weight: 700; text-decoration: none; }
.seo-text .pl-next span { font-size: 13.5px; color: #8b8ba3; line-height: 1.45; }

.seo-text .pl-faq { display: grid; gap: 8px; max-width: 46rem; }
.seo-text .pl-faq details { border-radius: 14px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.035); }
.seo-text .pl-faq summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; position: relative; font-weight: 700; color: #fff; line-height: 1.4; }
.seo-text .pl-faq summary::-webkit-details-marker { display: none; }
.seo-text .pl-faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: #38bdf8; }
.seo-text .pl-faq details[open] summary::after { content: "−"; }
.seo-text .pl-faq details p { margin: 0; padding: 0 16px 16px; font-size: 15px; color: #b9bccb; }

/* плашка проекта посреди статьи — в цветах самого проекта, целиком ссылка */
.seo-text a.pl-promo { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "h v" "t v" "d v" "f v"; column-gap: 22px; margin: 34px 0; padding: 22px; border-radius: 24px; text-decoration: none !important; color: #fff !important; transition: transform .18s, box-shadow .18s; }
.seo-text a.pl-promo:hover { transform: translateY(-2px); color: #fff !important; }
.seo-text .pl-promoh { grid-area: h; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.seo-text .pl-promoh b { display: block; font-size: 15px; line-height: 1.2; }
.seo-text .pl-promoh small { font-size: 12.5px; opacity: .75; }
.seo-text .pl-pi { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.seo-text .pl-promot { grid-area: t; font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.seo-text .pl-promod { grid-area: d; margin: 8px 0 14px; font-size: 15px; line-height: 1.55; opacity: .88; }
.seo-text .pl-promof { grid-area: f; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.seo-text .pl-promob { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 800; font-size: 15px; }
.seo-text .pl-promof small { font-size: 12.5px; opacity: .8; }
.seo-text .pl-promov { grid-area: v; align-self: center; display: flex; gap: 8px; }
.seo-text .pl-promov > span { position: relative; display: block; width: 96px; border-radius: 12px; overflow: hidden; }
.seo-text .pl-promov img { display: block; width: 100%; height: auto; }
.seo-text .pl-promov em { position: absolute; left: 6px; bottom: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(0,0,0,.65); font-style: normal; font-size: 11.5px; font-weight: 700; }
.seo-text a.pp-art { border: 1px solid rgba(236,72,153,.4); background: radial-gradient(120% 140% at 100% 0%, rgba(255,122,69,.26), transparent 55%), linear-gradient(160deg, #1d0a17, #140912); box-shadow: 0 24px 60px -34px rgba(255,45,126,.7); }
.seo-text a.pp-art .pl-promot span { background: linear-gradient(90deg, #f472b6, #fdba74); -webkit-background-clip: text; background-clip: text; color: transparent; }
.seo-text a.pp-art .pl-promob { background: linear-gradient(90deg, #db2777, #f59e0b); }
.seo-text a.pp-art .pl-promof small { color: #fed7aa; }
.seo-text a.pp-docs { border: 1px solid #ddd6fe; background: linear-gradient(180deg, #fff, #f4f2fd); color: #1d1d1f !important; box-shadow: 0 24px 60px -34px rgba(109,40,217,.75); }
.seo-text a.pp-docs:hover { color: #1d1d1f !important; }
.seo-text a.pp-docs b { color: #1d1d1f; }
.seo-text a.pp-docs .pl-promot span { background: linear-gradient(90deg, #6d28d9, #c026d3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.seo-text a.pp-docs .pl-promod { color: #475569; opacity: 1; }
.seo-text a.pp-docs .pl-promob { color: #fff; background: linear-gradient(90deg, #6d28d9, #8b5cf6); }
.seo-text a.pp-docs .pl-promof small { color: #6d28d9; }
.seo-text .pl-promodoc { grid-area: v; align-self: center; width: 250px; display: block; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid #ede9fe; box-shadow: 0 12px 30px -18px rgba(79,70,229,.55); font-size: 12.5px; color: #334155; line-height: 1.4; }
.seo-text .pl-promodoc b { display: block; color: #1d1d1f; font-size: 13px; margin-bottom: 8px; }
.seo-text .pl-promodoc i { display: block; height: 6px; border-radius: 3px; background: #e2e8f0; margin: 0 0 6px; } .seo-text .pl-promodoc i.s { width: 70%; }
.seo-text .pl-promodoc em { display: block; font-style: normal; font-weight: 700; padding: 6px 9px; border-radius: 6px; margin-top: 7px; }
.seo-text .pl-promodoc em.r { border-left: 3px solid #f43f5e; background: #fff1f2; color: #9f1239; }
.seo-text .pl-promodoc em.g { border-left: 3px solid #10b981; background: #ecfdf5; color: #065f46; }

@media (max-width: 767px) {
  .seo-text .pl { font-size: 16px; }
  .seo-text .pl h2 { font-size: 22px !important; margin-top: 44px; }
  .seo-text .pl-steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .seo-text .pl-stepimg { aspect-ratio: auto; }
  .seo-text .pl-stepimg img { height: auto; }
  .seo-text .pl-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seo-text .pl-files { grid-template-columns: minmax(0, 1fr); }
  .seo-text .pl-filearr { justify-self: center; transform: rotate(90deg); }
  .seo-text .pl-cmp { padding: 4px 14px 14px; }
  .seo-text .pl-cmph { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .seo-text .pl-cmph > span:first-child { display: none; }
  .seo-text .pl-cmpr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 4px; }
  .seo-text .pl-cmpl { grid-column: 1 / -1; }
  .seo-text .pl-keep, .seo-text .pl-two, .seo-text .pl-next { grid-template-columns: minmax(0, 1fr); }
  .seo-text a.pl-promo { grid-template-columns: minmax(0, 1fr); grid-template-areas: "h" "t" "d" "v" "f"; padding: 18px; }
  .seo-text .pl-promot { font-size: 19px; }
  .seo-text .pl-promov { margin: 0 0 14px; }
  .seo-text .pl-promov > span { width: 50%; max-width: 150px; }
  .seo-text .pl-promodoc { width: auto; margin: 0 0 14px; }
}
