/* LogiRates, шаблон текстовой страницы (text2610): FAQ, Contacts, Help, API, Service status, документы.
   Все селекторы под .tp. Шрифт Manrope (уже подключён на сайте). Картинка: assets/text2610/ рядом с этим файлом. */
/* ===== Общее для пакета: то, что у нас в /shipping/ лежит в site.css. Всё в рамках .tp ===== */
.tp { overflow-x: clip; background: #fff; font-family: Manrope, "Manrope Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; interpolate-size: allow-keywords; }
.tp a { color: inherit; }
/* Фирменная лента в первом экране: уходит под шапку и растворяется вниз */
.tp img.lr-ribbon { position: absolute; z-index: 0; max-width: none; height: auto; mix-blend-mode: multiply; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 98%); mask-image: linear-gradient(to bottom, #000 70%, transparent 98%); }
@media (max-width: 980px) {
  .tp img.lr-ribbon { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%, #000 65%, transparent 95%); mask-image: linear-gradient(to bottom, transparent 0, #000 30%, #000 65%, transparent 95%); }
}
/* Появление (класс lr-motion на html ставит скрипт в <head>, inertia.blade.php; блоки помечает data-r initText2610): первый экран поднимается, секции, блоки и вопросы при скролле */
@keyframes lr-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
/* Заголовок и основной текст первого экрана видны сразу (VT-PERF-02): lr-rise только у второстепенных блоков */
.lr-motion .tp > section:first-of-type .bw > :not(.tp-crumbs, h1, .tp-lead) { animation: lr-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.lr-motion .tp [data-r] { transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.lr-motion .tp [data-r]:not(.in) { opacity: 0; transform: translateY(28px); }
.lr-motion .tp [data-stagger] > * { transition: opacity .6s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * 70ms), transform .6s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * 70ms); }
.lr-motion .tp [data-stagger]:not(.in) > * { opacity: 0; transform: translateY(16px); }
/* Плавное раскрытие вопросов на <details> */
.tp details::details-content { height: 0; overflow: clip; transition: height .35s cubic-bezier(.2, .7, .2, 1), content-visibility .35s allow-discrete; }
.tp details[open]::details-content { height: auto; }
@media (prefers-reduced-motion: reduce) {
  .tp *, .tp ::before, .tp ::after { animation: none !important; transition: none !important; }
}

/* Шаблон текстовой страницы в стиле раздела /shipping/ (text-page.njk): FAQ, Contacts, дальше Help и статьи, API,
   Service status, документы. Белый фон, лента в первом экране, Manrope 800, градиентные иконки, тёплая карточка в конце.
   Колонка текста до 760px, боковая колонка 300px. Стили ограничены .tp. Переломы 1180px, 980px, 560px */
.tp {
  --card: 0 1px 2px rgba(26, 31, 51, .06), 0 14px 34px rgba(60, 30, 0, .07);
  position: relative; color: var(--ink); -webkit-font-smoothing: antialiased; text-wrap: pretty;
}
.tp *, .tp ::before, .tp ::after { box-sizing: border-box; }
.tp :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; padding: 0; }
.tp :where(ul, ol) { list-style: none; }
.tp :where(h1, h2, h3) { text-wrap: balance; }
.tp img { display: block; max-width: 100%; }
.tp :where(button) { font: inherit; color: inherit; }
.tp .bw { position: relative; width: 1198px; max-width: calc(100% - 48px); margin: 0 auto; }

/* Градиентные иконки: 1 жёлтая, 2 оранжевая, 3 розовая, 4 тёмная */
.tp-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #f2b632, var(--accent)); }
.tp-ico--2 { background: linear-gradient(135deg, #ff9a4d, var(--orange)); }
.tp-ico--3 { background: linear-gradient(135deg, #ff8a8a, var(--pink)); }
.tp-ico--4 { background: linear-gradient(135deg, #3a3d48, #1a1a1a); }
.tp-ico--big { width: 56px; height: 56px; border-radius: 16px; }

.tp-btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 26px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.tp-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(234, 163, 10, .3); }
.tp-btn--ghost { background: #fff; color: var(--ink); }
.tp-btn--ghost:hover { box-shadow: 0 8px 20px rgba(26, 31, 51, .08); }

/* ===== Первый экран: крошки, заголовок, подзаголовок. Лента справа сверху уходит под шапку ===== */
.tp-hero { position: relative; padding: 36px 0 44px; }
.tp img.tp-ribbon { width: 1500px; right: -420px; top: -340px; }
/* хвост ленты гасим выше, чтобы он не уходил под боковую колонку */
@media (min-width: 981px) { .tp img.tp-ribbon { -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 75%); mask-image: linear-gradient(to bottom, #000 55%, transparent 75%); } }
.tp-hero__in { z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.tp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.tp-crumbs a { display: inline-flex; color: var(--muted); text-decoration: none; transition: color .2s; }
.tp-crumbs a:hover { color: var(--ink); }
.tp-crumbs__home svg { display: block; }
.tp-crumbs__sep { display: inline-flex; color: #c3c6cf; }
.tp-crumbs [aria-current] { color: var(--ink); }
.tp h1 { max-width: 820px; font-size: 56px; line-height: 1.04; font-weight: 800; letter-spacing: -.035em; }
.tp-lead { max-width: 680px; font-size: 19px; line-height: 1.55; color: var(--slate); }
.tp-updated { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }

/* ===== Тело: основная колонка и боковая ===== */
.tp-body { position: relative; padding: 0 0 112px; }
.tp-grid { display: grid; grid-template-columns: minmax(0, 760px) 300px; justify-content: space-between; align-items: start; gap: 64px; }
.tp-grid--full { grid-template-columns: minmax(0, 820px); }
.tp-main { min-width: 0; display: flex; flex-direction: column; gap: 32px; }

/* Боковая колонка: «On this page» для длинных документов и раздел For customers. Липкая под шапкой */
.tp-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 28px; }
.tp-aside__lbl { margin-bottom: 12px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.tp-side ul { display: flex; flex-direction: column; gap: 4px; }
.tp-side a { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; border-radius: 14px; font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none; transition: background-color .2s, box-shadow .2s; }
.tp-side a:hover { background: var(--soft-bg); }
.tp-side a[aria-current] { background: var(--warm); box-shadow: inset 0 0 0 1px rgba(234, 163, 10, .18); }
.tp-side a .tp-ico { transition: transform .25s var(--ease); }
.tp-side a:hover .tp-ico { transform: rotate(-8deg) scale(1.06); }
.tp-toc ol { display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--line); counter-reset: toc; }
.tp-toc a { display: block; margin-left: -2px; padding: 6px 0 6px 14px; border-left: 2px solid transparent; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--slate); text-decoration: none; transition: color .2s, border-color .2s; }
.tp-toc a:hover, .tp-toc a.is-on { color: var(--ink); border-color: var(--accent); }

/* ===== Вопросы на <details>: карточки, плюс в кружке поворачивается в крестик, раскрытие плавное (site.css) ===== */
.tp-faq { display: flex; flex-direction: column; gap: 10px; }
.tp-faq details { border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .3s, box-shadow .3s; }
.tp-faq details:hover { box-shadow: inset 0 0 0 1px #dfe0e6, 0 10px 24px -14px rgba(26, 31, 51, .18); }
.tp-faq details[open] { background: #fffaf2; box-shadow: inset 0 0 0 1px rgba(234, 163, 10, .28); }
.tp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 20px 20px 24px; list-style: none; cursor: pointer; font-size: 17px; font-weight: 700; line-height: 1.35; border-radius: 18px; }
.tp-faq summary::-webkit-details-marker { display: none; }
.tp-faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tp-faq summary i { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--soft-bg); transition: transform .35s var(--ease), background-color .3s; }
.tp-faq summary i::before, .tp-faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--ink); transition: background-color .3s; }
.tp-faq summary i::after { transform: rotate(90deg); }
.tp-faq details[open] summary i { transform: rotate(135deg); background: var(--accent); }
.tp-faq details[open] summary i::before, .tp-faq details[open] summary i::after { background: #fff; }
.tp-faq details p { padding: 0 72px 22px 24px; font-size: 16px; line-height: 1.6; color: var(--slate); }

/* ===== Тёплая карточка в конце: подсказка и кнопки, без человека и без ленты (карточка низкая, лента в ней обрывается) ===== */
.tp-help { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; margin-top: 8px; padding: 28px 28px 28px 32px; border-radius: 24px; background: var(--warm); }
.tp-help .tp-ico { width: 48px; height: 48px; border-radius: 14px; }
.tp-help__text { display: flex; flex-direction: column; gap: 2px; font-size: 16px; line-height: 1.5; color: var(--slate); }
.tp-help__text b { font-size: 19px; font-weight: 800; color: var(--ink); }
.tp-help__btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ===== Карточка контента (Contacts, блоки Help и документов) ===== */
.tp-card { position: relative; padding: 32px; border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--card); }
.tp-card > h2 { font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }

/* Contacts: почта поддержки крупно, копирование, соцсети */
.tp-contact { display: flex; flex-direction: column; gap: 24px; }
.tp-contact__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 20px; border-radius: 18px; background: var(--warm); }
.tp-contact__row .tp-ico { position: relative; }
.tp-contact__row .tp-ico::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(255, 122, 26, .45); }
.lr-motion .tp-contact__row .tp-ico::after { animation: tp-ring 2.4s ease-out 1s infinite; }
@keyframes tp-ring { 0% { box-shadow: 0 0 0 0 rgba(255, 122, 26, .45); } 70%, 100% { box-shadow: 0 0 0 14px rgba(255, 122, 26, 0); } }
.tp-contact__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tp-contact__lbl { font-size: 13px; font-weight: 700; color: var(--accent-d); }
.tp-contact__mail { overflow-wrap: anywhere; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease); }
.tp-contact__mail:hover { background-size: 100% 2px; }
.tp-copy { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: #fff; font-size: 14px; font-weight: 700; cursor: pointer; transition: box-shadow .2s, color .2s; }
.tp-copy:hover { box-shadow: 0 8px 20px rgba(26, 31, 51, .1); }
.tp-copy.is-done { color: #2e9e5b; }
.tp-copy.is-done .ico { animation: tp-pop .4s var(--ease); }
@keyframes tp-pop { 0% { transform: scale(.5); } 70% { transform: scale(1.15); } 100% { transform: none; } }
.tp-social { display: flex; flex-wrap: wrap; gap: 10px; }
.tp-social a { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 14px; border-radius: 12px; background: var(--soft-bg); font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none; transition: background-color .2s, transform .2s; }
.tp-social a:hover { background: #ececef; transform: translateY(-1px); }
.tp-social svg { width: 18px; height: 18px; fill: currentColor; }

/* ===== Текст документов и статей (.tp-prose): заголовки, списки, таблицы, код, примечание ===== */
.tp-prose { font-size: 17px; line-height: 1.7; color: var(--slate); }
.tp-prose > * + * { margin-top: 16px; }
.tp-prose h2 { margin-top: 48px; scroll-margin-top: 96px; font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.tp-prose h3 { margin-top: 32px; scroll-margin-top: 96px; font-size: 21px; line-height: 1.3; font-weight: 800; color: var(--ink); }
.tp-prose > :first-child { margin-top: 0; }
.tp-prose strong { color: var(--ink); }
.tp-prose a { color: var(--accent-d); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(176, 112, 10, .3); text-underline-offset: 3px; }
.tp-prose a:hover { text-decoration-color: currentColor; }
.tp-prose ul > li, .tp-prose ol > li { position: relative; padding-left: 28px; }
.tp-prose li + li { margin-top: 8px; }
.tp-prose ul > li::before { content: ""; position: absolute; left: 6px; top: .68em; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #f2b632, var(--orange)); }
.tp-prose ol { counter-reset: tp; }
.tp-prose ol > li { counter-increment: tp; }
.tp-prose ol > li::before { content: counter(tp); position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 6px; background: var(--warm); color: var(--accent-d); font-size: 12px; font-weight: 800; line-height: 20px; text-align: center; }
.tp-prose code { padding: 2px 6px; border-radius: 6px; background: var(--soft-bg); font: 600 .88em/1.4 ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink); }
.tp-prose pre { overflow-x: auto; padding: 18px 20px; border-radius: 16px; background: #1a1a1a; color: #f3f3f5; font: 500 14px/1.6 ui-monospace, "SF Mono", Menlo, monospace; }
.tp-prose pre code { padding: 0; background: none; color: inherit; font: inherit; }
.tp-prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.tp-prose th { padding: 10px 12px; text-align: left; font-size: 13px; font-weight: 800; color: var(--ink); background: var(--soft-bg); }
.tp-prose th:first-child { border-radius: 10px 0 0 10px; }
.tp-prose th:last-child { border-radius: 0 10px 10px 0; }
.tp-prose td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tp-prose hr { height: 1px; border: 0; background: var(--line); margin: 40px 0; }
.tp-note { display: flex; gap: 14px; padding: 18px 20px; border-radius: 16px; background: var(--warm); font-size: 16px; line-height: 1.6; color: var(--ink); }
.tp-note .ico { flex: none; margin-top: 2px; color: var(--accent-d); }

/* ===== Адаптив ===== */
@media (max-width: 1180px) {
  .tp-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; }
  .tp-help { grid-template-columns: auto minmax(0, 1fr); }
  .tp-help__btns { grid-column: 2; }
}
@media (max-width: 980px) {
  .tp .bw { max-width: calc(100% - 32px); }
  .tp-hero { padding: 20px 0 32px; }
  .tp img.tp-ribbon { width: 760px; right: -240px; top: -190px; }
  .tp-hero__in { gap: 14px; }
  .tp h1 { font-size: 38px; line-height: 1.08; letter-spacing: -.03em; }
  .tp-lead { font-size: 17px; }
  .tp-body { padding-bottom: 72px; }
  .tp-grid, .tp-grid--full { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .tp-main { gap: 24px; }
  .tp-aside { position: static; }
  .tp-side ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tp-side a { flex-direction: column; align-items: flex-start; gap: 10px; height: 100%; padding: 14px; background: var(--soft-bg); font-size: 14px; line-height: 1.3; }
  .tp-side li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .tp-side li:last-child:nth-child(odd) a { flex-direction: row; align-items: center; }
  .tp-faq summary { padding: 18px 16px 18px 18px; gap: 14px; font-size: 16px; }
  .tp-faq details p { padding: 0 18px 20px; font-size: 15px; }
  .tp-help { padding: 22px; gap: 16px; }
  .tp-help__btns { grid-column: 1 / -1; }
  .tp-help__text { font-size: 15px; }
  .tp-help__text b { font-size: 17px; }
  .tp-card { padding: 22px; border-radius: 20px; }
  .tp-card > h2 { font-size: 24px; }
  .tp-prose { font-size: 16px; }
  .tp-prose h2 { font-size: 25px; margin-top: 36px; }
}
@media (max-width: 560px) {
  .tp-help__btns .tp-btn { flex: 1 1 0; padding: 0 14px; }
  .tp-contact__row { grid-template-columns: auto minmax(0, 1fr); padding: 16px; gap: 14px; }
  .tp-contact__row .tp-ico--big { width: 48px; height: 48px; border-radius: 14px; }
  .tp-contact__mail { font-size: 21px; }
  .tp-copy { grid-column: 1 / -1; justify-content: center; }
  .tp-social { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-social a { width: 100%; }
}
