/* Sync2Sys site v2: библиотека (.lib-) и помощь (.hlp-). Подключается через css: sec-library.css */

/* Карточка материала, которого ещё нет */
.lib-soon .card__art { opacity: 0.55; }
.lib-empty { padding: 32px 0; font-size: 16px; color: var(--ink-3); }

/* Метки над заголовком статьи */
.lib-kind { display: inline-flex; align-items: center; gap: 8px; }

/* Цитата клиента */
.lib-quote { margin: 0; padding: 28px 32px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); }
.lib-quote blockquote { margin: 0; font-size: 21px; line-height: 1.5; letter-spacing: -0.01em; color: var(--ink); }
.lib-quote figcaption { margin-top: 16px; font-size: 15px; color: var(--ink-2); }
.lib-quote figcaption b { font-weight: 500; color: var(--ink); }
.lib-quote figcaption span { color: var(--ink-3); }

/* Цифры клиента внутри текста истории */
.lib-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--white); overflow: hidden; }
.lib-facts div { padding: 22px 24px; border-right: 1px solid var(--line); }
.lib-facts div:last-child { border-right: 0; }
.lib-facts b { display: block; font-size: 30px; line-height: 1.1; font-weight: 500; letter-spacing: -0.02em; }
.lib-facts span { display: block; margin-top: 8px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 860px) { .lib-facts { grid-template-columns: 1fr; } .lib-facts div { border-right: 0; border-bottom: 1px solid var(--line); } .lib-facts div:last-child { border-bottom: 0; } }

/* Карточка клиента в списке */
.lib-client { gap: 14px; }
.lib-client img { height: 36px; width: auto; max-width: 160px; object-fit: contain; object-position: left center; margin-bottom: 8px; }
.lib-client .rev__uses, .lib-uses { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.lib-uses span { padding: 4px 10px; border-radius: 99px; background: var(--fill); font-size: 13px; color: var(--ink-2); }

/* Главы видео */
.prose .lib-chapters { display: grid; gap: 0; border-top: 1px solid var(--line); list-style: none; padding: 0; }
.lib-chapters li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.lib-chapters time { font-family: var(--mono); font-size: 14px; color: var(--ink-3); }

/* Лента обновлений: метка раздела */
.lib-area { display: inline-block; padding: 3px 10px; border-radius: 99px; background: var(--fill); font-size: 13px; color: var(--ink-2); }

/* Помощь: контакты, лимиты, примеры запросов */
.hlp-contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hlp-contacts div { padding: 24px 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.hlp-contacts small { display: block; margin-bottom: 6px; font-size: 13px; color: var(--ink-3); }
.hlp-contacts b { font-size: 18px; font-weight: 500; }
.hlp-contacts p { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
@media (max-width: 860px) { .hlp-contacts { grid-template-columns: 1fr; gap: 12px; } }
.hlp-limits td:last-child, .hlp-limits th:last-child { text-align: left; }
.hlp-limits td b { font-weight: 500; }
.hlp-kv { display: grid; gap: 4px; }
.hlp-kv small { font-size: 13px; color: var(--ink-3); }
.hlp-kv b { font-size: 17px; font-weight: 500; }
.hlp-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hlp-cookie { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 24px 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.hlp-cookie p { flex: 1 1 320px; font-size: 16px; color: var(--ink-2); }

/* Статья на телефоне: блок кода и таблица не распирают колонку */
.article > .prose, .article > .toc { min-width: 0; }
.prose pre { max-width: 100%; }
@media (max-width: 860px) { .prose table { font-size: 15px; } .prose th, .prose td { padding: 10px 8px; } .prose h2 { overflow-wrap: anywhere; } }

/* ---------- Списки материалов: поиск, фильтры, крупная первая карточка, ровная сетка ---------- */
.lib-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-bottom: 40px; }
.lib-bar .filters, .lib-bar .search { margin-bottom: 0; }
.lib-bar .search { flex: 0 1 320px; }
@media (max-width: 860px) { .lib-bar { flex-direction: column-reverse; align-items: stretch; margin-bottom: 28px; } .lib-bar .search { flex: none; max-width: none; } }

.lib-list { row-gap: 64px; }
.lib-list:not(:has(> :not([hidden])))::after { content: "Nothing matches this filter yet."; grid-column: 1 / -1; padding: 32px 0; font-size: 16px; color: var(--ink-3); }
/* пустой фильтр на языке страницы (переводчик релиза CSS не видит, пин 25.11) */
html[lang="lt"] .lib-list:not(:has(> :not([hidden])))::after { content: "Pagal šį filtrą kol kas nieko nėra."; }
html[lang="lv"] .lib-list:not(:has(> :not([hidden])))::after { content: "Šim filtram pagaidām nekas neatbilst."; }
html[lang="pl"] .lib-list:not(:has(> :not([hidden])))::after { content: "Nic jeszcze nie pasuje do tego filtra."; }
html[lang="ru"] .lib-list:not(:has(> :not([hidden])))::after { content: "По этому фильтру пока ничего нет."; }
html[lang="uk"] .lib-list:not(:has(> :not([hidden])))::after { content: "За цим фільтром поки нічого немає."; }
.lib-list > [hidden] { display: none; }
@media (max-width: 1180px) { .lib-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .lib-list { grid-template-columns: 1fr; row-gap: 40px; } }

/* Обложка: матовая панель цвета темы и окно интерфейса, уходящее под нижний край */
.lib-cover { position: relative; display: block; height: 220px; padding: 26px 28px 0; border-radius: 16px; overflow: hidden; background: radial-gradient(150% 130% at 100% 100%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 60%), color-mix(in srgb, var(--c, var(--green-deep)) 88%, #000); transition: transform 0.2s; }
.card:hover .lib-cover, .lib-feat:hover .lib-cover { transform: translateY(-4px); }
.lib-cover .ui { font-size: 13px; border-radius: 12px 12px 0 0; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35); }
.lib-cover .ui__bar { padding: 11px 16px; }
.lib-cover .ui__bar .sp { font-size: 12px; }
.lib-cover .ui__r { padding: 10px 16px; gap: 10px; }
.lib-cover .ui__r small { font-size: 12px; }
.lib-cover .chip { height: 22px; font-size: 12px; padding: 0 8px; }
.lib-cover .mk { width: 30px; font-size: 11px; }
.lib-cover .num { font-size: 13px; }
.lib-cover--soft { background: color-mix(in srgb, var(--c, var(--green-deep)) 9%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, var(--green-deep)) 18%, #fff); }
.lib-cover--soft .ui { box-shadow: 0 0 0 1px var(--line); opacity: 0.8; }
.lib-cover--shot, .lib-feat .lib-cover--shot { display: flex; align-items: center; padding-bottom: 44px; }
.lib-cover--shot .lib-shot { width: 100%; max-height: 100%; }
.lib-cover__play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: #fff; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; }
.lib-cover__play::before { content: ""; border-left: 17px solid var(--ink); border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 5px; }
.lib-cover__len { position: absolute; z-index: 2; right: 16px; bottom: 14px; padding: 3px 8px; border-radius: 6px; background: rgba(11, 20, 16, 0.78); color: #fff; font-family: var(--mono); font-size: 12px; }

/* Скрин магазина клиента в рамке окна */
.lib-shot { display: block; background: #fff; overflow: hidden; border-radius: 12px; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35); }
.lib-shot::before { content: ""; display: block; height: 24px; background-color: #f1f2ee; border-bottom: 1px solid var(--line); background-image: radial-gradient(circle at 15px 12px, #d5d8d0 4px, transparent 4.5px), radial-gradient(circle at 29px 12px, #d5d8d0 4px, transparent 4.5px), radial-gradient(circle at 43px 12px, #d5d8d0 4px, transparent 4.5px); }
.lib-shot img { display: block; width: 100%; height: auto; }

/* Карточка в сетке */
.lib-list .card { gap: 18px; }
.lib-list .card small, .lib-feat small { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--green-deep); }
.lib-list .card small .tag { height: 24px; font-size: 12px; margin-left: 0; }
.lib-list .card h3 { margin-top: -6px; text-wrap: balance; }
.lib-list .card p { margin-top: -6px; }
.lib-more { margin-top: auto; padding-top: 4px; font-size: 15px; font-weight: 500; color: var(--green-deep); }
.lib-soon { cursor: default; }
.lib-soon:hover .lib-cover { transform: none; }
.lib-soon h3 { color: var(--ink-2); }

/* Крупная первая карточка */
.lib-feat { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); }
.lib-feat .lib-cover { height: 400px; padding: 44px 48px 0; }
.lib-feat .lib-cover .ui { font-size: 15px; }
.lib-feat .lib-cover .ui__bar { padding: 15px 20px; }
.lib-feat .lib-cover .ui__r { padding: 14px 20px; }
.lib-feat .lib-cover .ui__r small { font-size: 13px; }
.lib-feat .lib-cover .chip { height: 26px; font-size: 13px; }
.lib-feat .lib-cover .num { font-size: 14px; }
.lib-feat__text { display: flex; flex-direction: column; gap: 16px; padding: 20px 36px 20px 0; }
.lib-feat__text h2 { font-size: 36px; line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
.lib-feat__text p { font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.lib-feat__text .lib-more { margin-top: 8px; font-size: 16px; }
.lib-feat:hover h2 { color: var(--green-deep); }
.lib-feat--rev .lib-cover { order: 2; }
.lib-feat--rev .lib-feat__text { padding: 20px 0 20px 36px; }
.lib-feat + .lib-feat { margin-top: -32px; }
@media (max-width: 1180px) { .lib-feat { gap: 36px; } .lib-feat .lib-cover { height: 340px; padding: 32px 32px 0; } .lib-feat__text h2 { font-size: 30px; } }
@media (max-width: 860px) {
  .lib-feat, .lib-feat--rev { grid-template-columns: 1fr; gap: 20px; padding: 12px; border-radius: 20px; }
  .lib-feat .lib-cover { height: 230px; padding: 22px 20px 0; order: 0; }
  .lib-feat .lib-cover--shot { padding-bottom: 22px; }
  .lib-feat .lib-cover .ui { font-size: 13px; }
  .lib-feat .lib-cover .ui__bar { padding: 11px 14px; }
  .lib-feat .lib-cover .ui__r { padding: 10px 14px; }
  .lib-feat__text, .lib-feat--rev .lib-feat__text { padding: 4px 10px 14px; gap: 12px; }
  .lib-feat__text h2 { font-size: 26px; }
  .lib-feat__text p { font-size: 16px; }
  .lib-feat + .lib-feat { margin-top: -16px; }
  .lib-cover { height: 200px; padding: 22px 20px 0; }
}

/* Заголовок полосы внутри списка («Guides on the same topics», «Keep reading») */
.lib-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; margin-bottom: 40px; }
.lib-head h2 { font-size: 36px; line-height: 1.12; letter-spacing: -0.025em; }
.lib-head a { font-size: 16px; font-weight: 500; color: var(--green-deep); }
@media (max-width: 860px) { .lib-head { margin-bottom: 24px; } .lib-head h2 { font-size: 28px; } }

/* История клиента: карточка в списке и врезка в статье */
.lib-feat__logo { height: 34px; width: auto; max-width: 170px; object-fit: contain; object-position: left center; align-self: flex-start; }
.lib-feat__text blockquote { margin: 0; font-size: 22px; line-height: 1.4; letter-spacing: -0.01em; color: var(--ink); text-wrap: pretty; }
.lib-feat__text .lib-uses { margin-top: 0; padding-top: 0; }
.lib-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 56px; padding: 32px 36px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.lib-logos span { flex: 1 1 220px; font-size: 16px; color: var(--ink-2); }
.lib-logos img { height: 30px; width: auto; max-width: 130px; object-fit: contain; }
@media (max-width: 860px) { .lib-logos { padding: 24px; gap: 20px 32px; } .lib-logos span { flex-basis: 100%; } .lib-feat__text blockquote { font-size: 19px; } }
.prose .lib-shot { box-shadow: 0 0 0 1px var(--line), 0 24px 40px -30px rgba(16, 22, 19, 0.3); border-radius: 16px; }
.prose .lib-about { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.prose .lib-about img { height: 30px; width: auto; }
.prose .lib-about a { font-size: 16px; }

/* Лента обновлений */
.lib-log { max-width: 900px; }
.lib-log article { border-top: 1px solid var(--line); }
.lib-log time { padding-top: 4px; }

/* Помощь: строки контактов без переполнения на узком экране */
.hlp-contacts b, .contacts b { overflow-wrap: anywhere; }

/* Обложки: окно видно всегда, общее появление строк по позиции прокрутки здесь не действует; своё движение ниже */
html .lib-cover .ui.ui > * { opacity: 1; transform: none; transition: none; }
html .lib-cover .ui.ui > * .chip { opacity: 1; transform: none; transition: none; }

/* Мелкие правки ритма */
.prose > h2:first-child { margin-top: 0; }
.formgrid .h3 + .body, .formgrid .h3 + .checks { margin-top: 16px; }

/* Окно в обложке: по центру, если помещается; иначе уходит под нижний край */
.lib-cover { display: flex; flex-direction: column; }
.lib-cover > .ui { flex: none; margin: auto 0; border-radius: 12px; }
.lib-cover:not(.lib-cover--shot) { padding-bottom: 26px; }
.lib-feat .lib-cover:not(.lib-cover--shot) { padding-bottom: 44px; }
.lib-cover--shot { flex-direction: row; }
@media (max-width: 860px) { .lib-cover:not(.lib-cover--shot), .lib-feat .lib-cover:not(.lib-cover--shot) { padding-bottom: 22px; } }
.lib-log .todo { margin-top: 14px; }

/* Страницы без тёмного призыва: воздух между контентом и подвалом */
main > section.sec:last-child { padding-bottom: 120px; }
@media (max-width: 860px) { main > section.sec:last-child { padding-bottom: 64px; } }

/* ================= Движение и выделения (правило 13.11.2026) ================= */
/* Двигаем только transform и opacity. Скрытые до появления состояния включает класс .lib-js, его ставит sec-library.js,
   когда нет prefers-reduced-motion. Без скрипта и в спокойном режиме всё видно сразу. */

@keyframes lib-row { from { opacity: 0; transform: translateY(10px); } }
@keyframes lib-pop { from { opacity: 0; transform: scale(0.6); } }
@keyframes lib-ping { from { transform: scale(1); opacity: 0.6; } to { transform: scale(3.2); opacity: 0; } }
@keyframes lib-ring { from { transform: scale(1); opacity: 0.7; } to { transform: scale(1.55); opacity: 0; } }
@keyframes lib-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes lib-sheen { 0%, 60% { transform: translateX(-160%) skewX(-18deg); } 100% { transform: translateX(620%) skewX(-18deg); } }
@keyframes lib-pan { from { transform: translateY(0); } to { transform: translateY(var(--pan, 0)); } }
@keyframes lib-orbit { to { transform: rotate(360deg); } }

/* Появление блоков по прокрутке */
.lib-js .lib-rv { opacity: 0; transform: translateY(22px); }
.lib-js .lib-rv.is-in { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.lib-js tr.lib-rv { transform: translateY(10px); }

/* Обложка: строки окна встают по одной, когда карточка вошла в экран */
.lib-seen .lib-cover .ui > * { animation: lib-row 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; animation-delay: 0.25s; }
.lib-seen .lib-cover .ui > :nth-child(2) { animation-delay: 0.34s; }
.lib-seen .lib-cover .ui > :nth-child(3) { animation-delay: 0.43s; }
.lib-seen .lib-cover .ui > :nth-child(4) { animation-delay: 0.52s; }
.lib-seen .lib-cover .ui > :nth-child(5) { animation-delay: 0.61s; }
.lib-seen .lib-cover .ui > :nth-child(n+6) { animation-delay: 0.7s; }
.lib-seen .lib-cover .ui .chip { animation: lib-pop 0.4s cubic-bezier(0.3, 1.6, 0.5, 1) 0.8s backwards; }

/* Окно крупной карточки в покое: активная строка идёт сверху вниз */
.lib-cover .ui__r { position: relative; }
.lib-cover .ui__r::after { content: ""; position: absolute; inset: 0; border-left: 3px solid var(--c, var(--green)); background: color-mix(in srgb, var(--c, var(--green)) 9%, transparent); opacity: 0; transition: opacity 0.5s ease; pointer-events: none; }
.lib-cover .ui__r.is-live::after { opacity: 1; }
.lib-cover .ui__r > * { position: relative; z-index: 1; }

/* Статусы в окнах: точка, у «требует внимания» она мигает */

/* Живая точка в шапке окна и в метках */
.lib-dot { position: relative; display: inline-block; flex: none; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--green-bright); vertical-align: middle; }
.lib-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; }

/* Кнопка воспроизведения: расходящееся кольцо */
.lib-cover__play::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #fff; opacity: 0; }
.video span::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #fff; opacity: 0; }

/* Крупная карточка: ссылка стала кнопкой, рамка плотнее */
.lib-feat { border-color: color-mix(in srgb, var(--green-deep) 22%, var(--line)); box-shadow: 0 30px 50px -40px rgba(15, 107, 52, 0.35); }
.lib-feat__text .lib-more { align-self: flex-start; display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--green-deep); color: #fff; transition: background 0.15s, transform 0.2s; }
.lib-feat:hover .lib-feat__text .lib-more { background: var(--green); transform: translateX(4px); }
.lib-feat__text small { font-size: 15px; }
.lib-list .card:not(.lib-soon):hover h3 { color: var(--green-deep); }
.lib-uses span:first-child { background: var(--green-soft); color: var(--green-deep); font-weight: 500; box-shadow: inset 0 0 0 1px var(--green-line); }

/* Статья: короткий ответ */
.prose .answer { position: relative; padding-left: 34px; overflow: hidden; box-shadow: 0 22px 40px -32px rgba(15, 107, 52, 0.5); }
.prose .answer::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--green); transform-origin: top; }
.prose .answer b { display: flex; align-items: center; font-size: 14px; }
.prose .answer b::before { content: ""; flex: none; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--green-bright); }
.prose .answer p { font-size: 19px; color: var(--ink); }
.lib-js .answer.lib-rv:not(.is-in)::before { transform: scaleY(0); }
.lib-js .answer.lib-rv.is-in::before { transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s; }

/* История клиента: цифры и цитата */
.lib-facts div { position: relative; }
.lib-facts div::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--green-bright); transform-origin: left; }
.lib-facts div:first-child { background: var(--green-soft); }
.lib-facts div:first-child b { color: var(--green-deep); font-size: 36px; }
.lib-facts b { font-variant-numeric: tabular-nums; }
.lib-js .lib-facts.lib-rv:not(.is-in) div::before { transform: scaleX(0); }
.lib-js .lib-facts.lib-rv.is-in div::before { transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s; }
.lib-js .lib-facts.lib-rv.is-in div:nth-child(2)::before { transition-delay: 0.35s; }
.lib-js .lib-facts.lib-rv.is-in div:nth-child(3)::before { transition-delay: 0.5s; }
.lib-quote { position: relative; padding-left: 38px; overflow: hidden; }
.lib-quote::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--green); }
.lib-shot img { will-change: auto; }

/* Формы: карточка формы и главная кнопка */
.form { border-color: var(--green-line); box-shadow: 0 0 0 5px var(--green-soft), 0 34px 54px -40px rgba(15, 107, 52, 0.45); }
.form .btn--dark, .hlp-links .btn--dark, .hlp-cookie .btn--dark, .hlp-404 ~ .hero__cta .btn--dark { position: relative; overflow: hidden; background: var(--green-deep); }
.form .btn--dark:hover, .hlp-links .btn--dark:hover, .hlp-cookie .btn--dark:hover, .hlp-404 ~ .hero__cta .btn--dark:hover { background: #0b5529; }
.form .btn--dark { height: 54px; font-size: 17px; }
.form .btn--dark::after, .hlp-links .btn--dark::after, .hlp-cookie .btn--dark::after, .hlp-404 ~ .hero__cta .btn--dark::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 20%; background: rgba(255, 255, 255, 0.28); transform: translateX(-160%) skewX(-18deg); pointer-events: none; }
.form input.is-bad, .form select.is-bad, .form textarea.is-bad { border-color: #d92d20; background: #fff5f4; }
.form__done h3::before { content: ""; display: block; width: 60px; height: 60px; margin: 0 auto 20px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 30px no-repeat; }

/* Контакты: главная карточка и статус часов работы */
.hlp-contacts div:first-child { background: var(--green-soft); border-color: var(--green-line); }
.hlp-contacts div:first-child b { font-size: 21px; }
.hlp-contacts div:first-child b a, .contacts div:first-child b a { color: var(--green-deep); }
.contacts div:first-child { border-top: 2px solid var(--green); }
.contacts div:first-child b { font-size: 22px; }
.hlp-open { display: inline-flex; align-items: center; gap: 7px; height: 24px; margin-left: 8px; padding: 0 10px; border-radius: 999px; background: var(--fill); font-size: 13px; font-weight: 500; color: var(--ink-2); vertical-align: 2px; white-space: nowrap; }
.hlp-open[hidden] { display: none; }
.hlp-open::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.hlp-open.is-on { background: var(--green-soft); color: var(--green-deep); box-shadow: inset 0 0 0 1px var(--green-line); }
.hlp-open.is-on::before { background: var(--green-bright); }
.hlp-cookie { background: var(--green-soft); border-color: var(--green-line); }
.hlp-cookie p { color: var(--ink); }

/* Документация: значки разделов плотнее, подсветка по очереди */
.tiles .tile__ic { background: color-mix(in srgb, var(--c, var(--th)) 88%, #000); color: #fff; transition: transform 0.4s cubic-bezier(0.3, 1.4, 0.5, 1); }
.tiles .tile::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 2px solid var(--c, var(--green)); opacity: 0; transition: opacity 0.45s ease; pointer-events: none; }
.tiles .tile.is-live::after { opacity: 1; }
.tiles .tile.is-live .tile__ic { transform: scale(1.12); }
.tiles .tile__go { color: var(--green-deep); font-weight: 500; }
ol.steps li { position: relative; }
ol.steps li::before { transition: transform 0.4s cubic-bezier(0.3, 1.4, 0.5, 1); }
ol.steps li.is-live::before { background: var(--green); color: #fff; transform: scale(1.15); }
ol.steps li::after { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--green); transform-origin: left; }
.lib-js ol.steps li.lib-rv:not(.is-in)::after { transform: scaleX(0); }
.lib-js ol.steps li.lib-rv.is-in::after { transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(0.2s + var(--i, 0) * 180ms); }

/* Лента обновлений: цвет направления, отметка последней записи */
.lib-area { background: color-mix(in srgb, var(--c, var(--green-deep)) 10%, #fff); color: color-mix(in srgb, var(--c, var(--green-deep)) 82%, #000); font-weight: 500; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, var(--green-deep)) 26%, #fff); }
.lib-log time { display: flex; align-items: center; align-self: start; }
.lib-log time::before { content: ""; flex: none; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--line); }
.lib-log article:first-child time { color: var(--green-deep); font-weight: 500; }
.lib-log article:first-child time::before { background: var(--green-bright); }
.lib-log article:first-child h3 { font-size: 28px; }

/* API: лимиты с полосой, строка старшего плана, курсор в примере запроса */
.hlp-limits td:nth-child(2) b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.hlp-limits td:nth-child(2)::after { content: ""; display: block; width: 100%; max-width: 150px; height: 6px; margin-top: 8px; border-radius: 99px; background: var(--green-bright); transform: scaleX(var(--k, 1)); transform-origin: left; }
.hlp-limits tr:last-child td:nth-child(2) b { color: var(--green-deep); }
.lib-js .hlp-limits tr.lib-rv:not(.is-in) td:nth-child(2)::after { transform: scaleX(0); }
.lib-js .hlp-limits tr.lib-rv.is-in td:nth-child(2)::after { transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s; }
.hlp-caret code::after { content: ""; display: inline-block; width: 8px; height: 1.1em; margin-left: 4px; background: var(--green-bright); vertical-align: text-bottom; }

/* 404: цифры, вокруг нуля ходит точка */
.hlp-404 { display: flex; align-items: center; justify-content: center; gap: 0.08em; margin-bottom: 28px; font-size: clamp(88px, 17vw, 176px); line-height: 1; font-weight: 500; letter-spacing: -0.04em; color: var(--ink); }
.hlp-404 i { position: relative; flex: none; width: 0.62em; height: 0.74em; border: 0.11em solid var(--green); border-radius: 50%; }
.hlp-404 i::after { content: ""; position: absolute; inset: -0.11em; border-radius: 50%; background: radial-gradient(circle at 50% 0.055em, var(--ink) 0.075em, transparent 0.08em); }

@media (prefers-reduced-motion: no-preference) {
  .lib-cover .chip--warn::before, .prose .ui .chip--warn::before { animation: lib-blink 1.8s ease-in-out infinite; }
  .lib-dot::after, .prose .answer b::before { animation: lib-ping 2.2s ease-out infinite; }
  .prose .answer b::before { animation-name: lib-blink; animation-duration: 2s; animation-timing-function: ease-in-out; }
  .lib-cover__play::after, .video span::after { animation: lib-ring 2s ease-out infinite; }
  .form .btn--dark::after, .hlp-links .btn--dark::after, .hlp-cookie .btn--dark::after, .hlp-404 ~ .hero__cta .btn--dark::after { animation: lib-sheen 4.8s ease-in-out infinite; }
  .form.is-sent .form__done h3::before { animation: lib-pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) backwards; }
  .hlp-open.is-on::before, .lib-log article:first-child time::before { animation: lib-blink 1.8s ease-in-out infinite; }
  .lib-shot.is-pan img { animation: lib-pan 16s ease-in-out 1.2s infinite alternate; }
  .hlp-caret code::after { animation: lib-blink 1.1s steps(2, jump-none) infinite; }
  .hlp-404 i::after { animation: lib-orbit 6s linear infinite; }
}

@media (max-width: 860px) {
  .prose .answer { padding-left: 26px; }
  .prose .answer p { font-size: 17px; }
  .lib-facts div:first-child b { font-size: 32px; }
  .lib-quote { padding-left: 28px; }
  .lib-log article:first-child h3 { font-size: 24px; }
  .hlp-open { margin-left: 0; margin-top: 6px; }
}
.lib-cover .ui__bar .sp { display: inline-flex; align-items: center; white-space: nowrap; }

/* Небольшая подпись под лидом (срок 2-4 недели, решение Саши 18.11.2026) */
.hlp-note { display: block; margin-top: 12px; max-width: 600px; font-size: 14px; line-height: 1.5; color: var(--ink-3); }

/* Сверка с согласованными страницами интеграций (Саша 20.11: «поправь все»): карточки белые, цвет только в рамке, без теней, скругление 16 */
.prose .answer { background: var(--white); border-color: var(--green-line); box-shadow: none; }
.lib-facts { border-color: var(--green-line); }
.lib-facts div:first-child { background: var(--white); }
.prose .lib-shot { box-shadow: none; border: 1px solid var(--line); }
.form { box-shadow: none; border-radius: 16px; }
.hlp-contacts div:first-child { background: var(--white); }
.hlp-cookie { background: var(--white); }
.video { border-radius: 16px; }

/* Скриншоты в статье: две картинки рядом, на телефоне друг под другом */
.prose figure.lib-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lib-shots img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.lib-zoom { display: block; cursor: zoom-in; border-radius: 10px; }
.lib-box { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(16, 22, 19, 0.88); cursor: zoom-out; opacity: 0; transition: opacity 0.2s; }
.lib-box.is-on { opacity: 1; }
.lib-box img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 10px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .lib-box { transition: none; } }
.lib-shots figcaption { grid-column: 1 / -1; margin-top: 0; }
@media (max-width: 760px) { .prose figure.lib-shots { grid-template-columns: 1fr; } }
/* дата статьи в карточке (собирается в <small>, build_site.py card_dates); везде строкой «Статья · eBay · дата» (Саша 27.11.2026: крупная дата не нужна) */
.lib-list .card small .lib-date, .lib-feat small .lib-date { font-weight: 500; }

/* Инфографика в статье о дате доставки eBay (blog/ebay-estimated-delivery-date-wrong, 27.11.2026) */
.prose figure.edd { margin: 32px 0; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.edd-h { margin: 0 0 18px; font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.edd b, .edd small { display: block; }
.edd small { margin-top: 2px; font-size: 13px; color: var(--ink-2); }
.edd-calc { display: grid; grid-template-columns: minmax(0, 1fr) 28px 190px; gap: 14px; align-items: center; }
.edd-fs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.edd-fs > div { padding: 12px 14px; border: 1px solid #c9cfc6; border-radius: 10px; background: #f3f4f1; font-size: 14px; line-height: 1.3; }
.edd-fs > .is-you { border-color: #3b6cf6; background: #eef3ff; }
.edd-arr { height: 3px; background: var(--ink); position: relative; }
.edd-arr::after { content: ""; position: absolute; right: -2px; top: -6px; border: 7.5px solid transparent; border-left: 11px solid var(--ink); border-right: 0; }
.edd-date { padding: 18px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; line-height: 1.35; }
.edd-date b { font-size: 15px; margin-bottom: 6px; }
.edd-note { margin: 14px 0 0; font-size: 13px; color: var(--ink-2); }
.prose .edd-tl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.prose .edd-tl li { position: relative; margin: 0; padding: 26px 0 0; font-size: 14px; line-height: 1.3; }
.prose .edd-tl li::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: #3b6cf6; z-index: 1; }
.prose .edd-tl li::after { content: ""; position: absolute; left: 0; right: -12px; top: 7px; height: 2px; background: #c9cfc6; }
.prose .edd-tl li:last-child::after { display: none; }
.prose .edd-tl .is-warn::before { background: #e8590c; }
.prose .edd-tl .is-ok::before { background: #2f9e44; }
.edd-prot { margin-top: 20px; padding: 16px 18px; border: 1px solid #e8590c; border-radius: 12px; background: #fff4e6; font-size: 14px; line-height: 1.45; }
.prose .edd-prot ol { margin: 8px 0 0; padding-left: 20px; }
.prose .edd-prot li { margin: 2px 0; padding: 0; }
.prose .edd-prot li::before, .prose .edd-prot li::after { content: none; }
@media (max-width: 760px) {
  .prose figure.edd { padding: 18px 16px; }
  .edd-calc { grid-template-columns: 1fr; }
  .edd-arr { width: 3px; height: 22px; margin: 0 auto; }
  .edd-arr::after { right: auto; left: -6px; top: auto; bottom: -2px; border: 7.5px solid transparent; border-top: 11px solid var(--ink); border-bottom: 0; }
  .prose .edd-tl { grid-template-columns: 1fr; gap: 14px; }
  .prose .edd-tl li { padding: 0 0 0 28px; }
  .prose .edd-tl li::after { left: 7px; right: auto; top: 16px; bottom: -14px; width: 2px; height: auto; }
}

/* Инфографика в статье о фидах Shopify на нескольких языках (blog/shopify-google-merchant-center-multiple-languages, 27.11.2026) */
.prose figure.sgf { margin: 32px 0; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.sgf b, .sgf small, .sgf span { display: block; }
.sgf-grid { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; align-items: center; }
.sgf-cat { position: relative; padding: 20px 16px; border-radius: 12px; background: var(--ink); color: #fff; text-align: center; font-size: 14px; line-height: 1.35; }
.sgf-cat b { font-size: 16px; margin-bottom: 6px; }
.sgf-cat small { margin-top: 4px; font-size: 12px; color: rgba(255, 255, 255, 0.7); }
.sgf-cat::after { content: ""; position: absolute; right: -28px; top: 50%; width: 28px; height: 2px; background: var(--ink); }
.sgf-rows { display: grid; gap: 12px; padding-left: 16px; border-left: 2px solid var(--ink); }
.sgf-row { display: grid; grid-template-columns: minmax(0, 1.2fr) 24px minmax(0, 1fr); gap: 10px; align-items: center; }
.sgf-x, .sgf-ds { padding: 11px 14px; border-radius: 10px; font-size: 14px; line-height: 1.3; }
.sgf-x { border: 1px solid #3b6cf6; background: #eef3ff; }
.sgf-ds { border: 1px solid #30a46c; background: #f2fbf5; }
.sgf small { margin-top: 2px; font-size: 13px; color: var(--ink-2); }
.sgf-ds small { margin: 0 0 2px; }
.sgf-arr { height: 2px; background: var(--ink); position: relative; }
.sgf-arr::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 9px solid var(--ink); border-right: 0; }
.sgf-warn { margin-top: 20px; padding: 14px 18px; border: 1px solid #f5a524; border-radius: 12px; background: #fff7e6; font-size: 14px; line-height: 1.45; }
.sgf-warn span { margin-top: 4px; color: var(--ink-2); }
.prose .lib-note { font-size: 14px; color: var(--ink-2); }
@media (max-width: 760px) {
  .prose figure.sgf { padding: 18px 16px; }
  .sgf-grid { grid-template-columns: 1fr; gap: 20px; }
  .sgf-cat::after { right: auto; left: 0; top: auto; bottom: -20px; width: 2px; height: 20px; }
  .sgf-rows { padding-left: 12px; }
  .sgf-row { grid-template-columns: 1fr; gap: 6px; }
  .sgf-arr { width: 2px; height: 14px; margin-left: 16px; }
  .sgf-arr::after { right: auto; left: -5px; top: auto; bottom: -2px; border: 6px solid transparent; border-top: 9px solid var(--ink); border-bottom: 0; }
}

/* Статья о сбое Shoptet (27.11.2026): один скрин во всю ширину; схема «всё на платформе магазина» против «каталог вне магазина» */
.prose figure.lib-shots--one { grid-template-columns: 1fr; max-width: 660px; }
.prose figure.sho { margin: 32px 0; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.sho b, .sho small { display: block; }
.sho-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.sho-col { display: flex; flex-direction: column; gap: 12px; }
.sho-h { font-size: 16px; line-height: 1.3; }
.sho-s { margin-top: -8px; font-size: 13px; color: var(--ink-2); }
.sho-plat { position: relative; display: grid; gap: 10px; padding: 34px 14px 14px; border: 2px dashed #cf3f4f; border-radius: 12px; background: #fdf1f2; }
.sho-pl { position: absolute; left: 14px; top: 9px; font-size: 12px; font-weight: 600; color: #a3303e; }
.sho-n { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border: 1px solid #30a46c; border-radius: 10px; background: #f2fbf5; font-size: 14px; line-height: 1.3; }
.sho-n b { font-weight: 600; }
.sho-st { flex: none; padding: 2px 8px; border-radius: 999px; background: #30a46c; color: #fff; font-size: 12px; font-weight: 600; }
.sho-n.is-down { border-color: #cf3f4f; background: #fff; }
.sho-n.is-down .sho-st { background: #cf3f4f; }
.sho-cat { position: relative; padding: 14px 16px; border-radius: 12px; background: var(--ink); color: #fff; text-align: center; font-size: 15px; }
.sho-cat small { margin-top: 2px; font-size: 12px; color: rgba(255, 255, 255, 0.7); }
.sho-cat::after { content: ""; position: absolute; left: 18px; bottom: -12px; width: 2px; height: 12px; background: var(--ink); }
/* дерево от каталога: у каждой плашки свой кусок вертикали и отвод, линия не рвётся при переносе строк */
.sho-out { display: grid; gap: 10px; padding-left: 32px; }
.sho-out > .sho-n { position: relative; }
.sho-out > .sho-n::before { content: ""; position: absolute; left: -15px; top: 50%; width: 15px; height: 2px; margin-top: -1px; background: var(--ink); }
.sho-out > .sho-n::after { content: ""; position: absolute; left: -15px; top: -11px; bottom: -1px; width: 2px; background: var(--ink); }
.sho-out > .sho-n:first-child::after { top: -1px; }
.sho-out > .sho-n:last-child::after { bottom: auto; height: calc(50% + 12px); }
.sho-out > .sho-n:first-child:last-child::after { height: calc(50% + 2px); }
@media (max-width: 760px) {
  .prose figure.sho { padding: 18px 16px; }
  .sho-grid { grid-template-columns: 1fr; }
}
