/* LogiRates, гиды (guides2610, T-018): список /guides и статья /guides/<slug>.
   Все селекторы под .gd. Шрифт Manrope (уже подключён на сайте). CSS пакета 1:1; картинки пакета совпадают с уже
   перенесёнными (лента /html/assets/text2610/ribbon.jpg, логотипы /html/assets/usps-logo.png, ups-logo.png,
   how2610/fedex.svg) — пути в разметке Vue. В конце файла — дополнения проекта: картинки и кнопка редактора в .gd-prose
   (синхронно с ContentEditor.vue, app/modules/content/README 6.2) и плашка предпросмотра .article-preview-bar. */
/* ===== Общее для пакета: то, что у нас в /shipping/ лежит в site.css. Всё в рамках .gd ===== */
.gd { overflow-x: clip; background: #fff; font-family: Manrope, "Manrope Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; interpolate-size: allow-keywords; }
.gd a { color: inherit; }
/* Фирменная лента в первом экране: уходит под шапку и растворяется вниз */
.gd 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) {
  .gd 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 initGuides2610): первый экран поднимается, секции, блоки и карточки и вопросы при скролле */
@keyframes lr-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
/* Заголовок и основной текст первого экрана видны сразу (VT-PERF-02): lr-rise только у второстепенных блоков */
.lr-motion .gd > section:first-of-type .bw > :not(.gd-crumbs, .gd-date, h1) { animation: lr-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.lr-motion .gd [data-r] { transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.lr-motion .gd [data-r]:not(.in) { opacity: 0; transform: translateY(28px); }
.lr-motion .gd [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 .gd [data-stagger]:not(.in) > * { opacity: 0; transform: translateY(16px); }
/* Плавное раскрытие вопросов на <details> */
.gd details::details-content { height: 0; overflow: clip; transition: height .35s cubic-bezier(.2, .7, .2, 1), content-visibility .35s allow-discrete; }
.gd details[open]::details-content { height: auto; }
@media (prefers-reduced-motion: reduce) {
  .gd *, .gd ::before, .gd ::after { animation: none !important; transition: none !important; }
}

/* Гиды основного сайта в стиле раздела /shipping/: список (/guides) и статья (/guides/<slug>). Прототипы guides-preview и guide-preview.
   Белый фон, лента в первом экране, Manrope 800, карточки с обложками, тёплая карточка с живой выдачей сбоку статьи.
   Стили ограничены .gd. Переломы 1180px, 980px, 560px */
.gd {
  --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;
}
.gd *, .gd ::before, .gd ::after { box-sizing: border-box; }
.gd :where(h1, h2, h3, h4, p, ul, ol, figure, figcaption) { margin: 0; padding: 0; }
.gd :where(ul, ol) { list-style: none; }
.gd :where(h1, h2, h3) { text-wrap: balance; }
.gd img { display: block; max-width: 100%; }
.gd .nw { white-space: nowrap; }
.gd .bw { position: relative; width: 1198px; max-width: calc(100% - 48px); margin: 0 auto; }

/* Градиентные иконки: 1 жёлтая, 2 оранжевая, 3 розовая */
.gd-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)); }
.gd-ico--2 { background: linear-gradient(135deg, #ff9a4d, var(--orange)); }
.gd-ico--3 { background: linear-gradient(135deg, #ff8a8a, var(--pink)); }
.gd-ico--big { width: 64px; height: 64px; border-radius: 18px; }

.gd-btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 26px; border-radius: 12px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 800; text-decoration: none; white-space: nowrap; transition: transform .15s, box-shadow .15s; }
.gd-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(234, 163, 10, .3); }
.gd-lbl { margin-bottom: 12px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.gd-h2 { font-size: 36px; line-height: 1.1; font-weight: 800; letter-spacing: -.025em; }

/* ===== Первый экран: крошки, дата, заголовок. Лента справа сверху уходит под шапку ===== */
.gd-hero { position: relative; padding: 36px 0 40px; }
.gd img.gd-ribbon { width: 1500px; right: -420px; top: -340px; }
@media (min-width: 981px) { .gd img.gd-ribbon { -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 75%); mask-image: linear-gradient(to bottom, #000 55%, transparent 75%); } }
.gd-hero__in { z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.gd-crumbs { display: flex; align-items: center; gap: 6px; max-width: 100%; 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); white-space: nowrap; }
.gd-crumbs a { flex: none; display: inline-flex; color: var(--muted); text-decoration: none; transition: color .2s; }
.gd-crumbs a:hover { color: var(--ink); }
.gd-crumbs svg { display: block; }
.gd-crumbs__sep { flex: none; display: inline-flex; color: #c3c6cf; }
.gd-crumbs [aria-current] { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.gd h1 { max-width: 900px; font-size: 56px; line-height: 1.04; font-weight: 800; letter-spacing: -.035em; }
.gd--article h1 { font-size: 52px; line-height: 1.06; }

/* Дата: в карточках и над заголовком статьи */
.gd-date { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--muted); }
.gd-date .ico { flex: none; color: var(--accent-d); }
.gd-date--hero { padding: 7px 12px; border-radius: 10px; background: var(--warm); font-size: 14px; color: var(--accent-d); }

/* ===== Карточка гида: обложка, дата, заголовок, анонс. Ссылка растянута на всю карточку ===== */
.gd-card { position: relative; display: flex; flex-direction: column; border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--card); transition: transform .35s var(--ease), box-shadow .35s; }
.gd-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px #e4e1dc, 0 2px 4px rgba(26, 31, 51, .05), 0 24px 44px -12px rgba(60, 30, 0, .16); }
.gd-card__media { position: relative; overflow: hidden; aspect-ratio: 800 / 440; border-radius: 24px 24px 0 0; background: var(--soft-bg); }
.gd-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gd-card:hover .gd-card__media img { transform: scale(1.05); }
/* Без обложки: тёплая заглушка с куском ленты и иконкой */
.gd-card__media--none { display: flex; align-items: center; justify-content: flex-start; padding-left: 22%; background: var(--warm); }
.gd-card__media--none img.gd-card__ribbon { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; mix-blend-mode: multiply; transition: transform .9s var(--ease); }
.gd-card__media--none .gd-ico { position: relative; box-shadow: 0 14px 30px -10px rgba(255, 122, 26, .6); transition: transform .5s var(--ease); }
.gd-card:hover .gd-card__media--none .gd-ico { transform: rotate(-8deg) scale(1.06); }
.gd-card:hover .gd-card__media--none img.gd-card__ribbon { transform: scale(1.06); }
.gd-card__body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; }
.gd-card__title { padding-right: 36px; font-size: 20px; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; }
.gd-card__title a { color: var(--ink); text-decoration: none; }
.gd-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: 24px; }
.gd-card__title a:focus-visible { outline: none; }
.gd-card__title a:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 3px; }
.gd-card__text { font-size: 15px; line-height: 1.55; color: var(--slate); }
.gd-card__go { position: absolute; right: 20px; bottom: 22px; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--soft-bg); color: var(--ink); transition: background-color .3s, color .3s, transform .35s var(--ease); }
.gd-card:hover .gd-card__go { background: var(--accent); color: #fff; transform: translateX(3px); }
.gd-card__body:has(+ .gd-card__go) { padding-bottom: 66px; }

/* ===== Список: сетка в три колонки, первая статья крупно на две колонки ===== */
.gd-list { position: relative; padding: 4px 0 112px; }
.gd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (min-width: 981px) {
  .gd-card--feat { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .gd-card--feat .gd-card__media { aspect-ratio: auto; min-height: 100%; border-radius: 24px 0 0 24px; }
  .gd-card--feat .gd-card__body { justify-content: center; gap: 14px; padding: 36px 36px 80px; }
  .gd-card--feat .gd-card__title { padding-right: 0; font-size: 30px; line-height: 1.15; letter-spacing: -.02em; }
  .gd-card--feat .gd-card__text { font-size: 16px; }
  .gd-card--feat .gd-card__go { right: 32px; bottom: 32px; width: 44px; height: 44px; }
}

/* Страницы: стрелки и номера */
.gd-pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 48px; }
.gd-pager a, .gd-pager span { display: flex; align-items: center; justify-content: center; min-width: 48px; height: 48px; padding: 0 6px; border-radius: 14px; font-size: 16px; font-weight: 800; color: var(--ink); text-decoration: none; background: var(--soft-bg); transition: background-color .2s, color .2s, transform .2s; }
.gd-pager a:hover { background: #ececef; transform: translateY(-1px); }
.gd-pager [aria-current] { background: var(--accent); color: #fff; box-shadow: 0 10px 22px -10px rgba(234, 163, 10, .9); }
.gd-pager [aria-current]:hover { background: var(--accent); }
.gd-pager__step:first-child .ico { transform: rotate(180deg); }
.gd-pager .is-off { color: #c3c6cf; background: transparent; box-shadow: inset 0 0 0 1px var(--line); }

/* ===== Статья: обложка, текст, липкая колонка ===== */
.gd-progress { position: fixed; left: 0; right: 0; top: 0; z-index: 60; height: 3px; pointer-events: none; }
.gd-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--orange) 60%, var(--pink)); transform: scaleX(0); transform-origin: 0 50%; }
.gd-cover { position: relative; z-index: 1; overflow: hidden; margin-top: 36px; aspect-ratio: 1198 / 500; border-radius: 28px; background: var(--soft-bg); box-shadow: var(--card); }
.gd-cover img { width: 100%; height: 100%; object-fit: cover; }
.lr-motion .gd-cover img { animation: gd-zoom 1.6s var(--ease) both; }
@keyframes gd-zoom { from { transform: scale(1.08); } to { transform: none; } }

.gd-body { position: relative; padding: 16px 0 88px; }
.gd-layout { display: grid; grid-template-columns: minmax(0, 720px) 300px; grid-template-areas: "prose aside"; justify-content: space-between; align-items: start; gap: 64px; }
.gd-prose { grid-area: prose; min-width: 0; }
.gd-aside { grid-area: aside; position: sticky; top: 96px; display: flex; flex-direction: column; gap: 28px; }
.gd-layout > .gd-toc { display: none; }

/* Текст статьи: первые абзацы крупнее, заголовки, картинки с подписью */
.gd-prose { font-size: 18px; line-height: 1.75; color: var(--slate); }
.gd-prose > * + * { margin-top: 18px; }
.gd-prose > p:first-child, .gd-prose > p:first-child + p { font-size: 20px; line-height: 1.65; color: var(--ink); }
.gd-prose h2 { margin-top: 56px; scroll-margin-top: 96px; font-size: 32px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.gd-prose h3 { margin-top: 34px; scroll-margin-top: 96px; font-size: 22px; line-height: 1.3; font-weight: 800; color: var(--ink); }
.gd-prose h2 + *, .gd-prose h3 + * { margin-top: 12px; }
.gd-prose strong { color: var(--ink); }
.gd-prose a { color: var(--accent-d); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(176, 112, 10, .3); text-underline-offset: 3px; }
.gd-prose a:hover { text-decoration-color: currentColor; }
.gd-prose ul > li, .gd-prose ol > li { position: relative; padding-left: 28px; }
.gd-prose li + li { margin-top: 8px; }
.gd-prose ul > li::before { content: ""; position: absolute; left: 6px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #f2b632, var(--orange)); }
.gd-prose ol { counter-reset: gd; }
.gd-prose ol > li { counter-increment: gd; }
.gd-prose ol > li::before { content: counter(gd); position: absolute; left: 0; top: .25em; 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; }
.gd-prose blockquote { margin: 32px 0 0; padding: 22px 24px; border-radius: 18px; background: var(--warm); font-size: 19px; font-weight: 600; color: var(--ink); }
.gd-prose figure { margin: 40px 0; }
.gd-prose figure img { width: 100%; height: auto; border-radius: 22px; box-shadow: var(--card); }
.gd-prose figcaption { display: flex; gap: 10px; margin-top: 14px; padding-left: 14px; border-left: 2px solid var(--accent); font-size: 14px; line-height: 1.55; color: var(--muted); }
.gd-prose figure + h2 { margin-top: 0; }

/* Оглавление: сбоку на компьютере (подсветка раздела в экране), раскрывашка над текстом на телефоне */
.gd-toc--side ol { display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--line); }
.gd-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; }
.gd-toc a:hover, .gd-toc a.is-on { color: var(--ink); border-color: var(--accent); }
.gd-toc[hidden] { display: none !important; }

/* Тёплая карточка сбоку: живая выдача (строки въезжают, цены набегают, метка садится), фраза с главной, кнопка */
.gd-promo { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: 24px; background: var(--warm); }
.gd-promo__head { display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 1.3; }
.gd-promo__head b { font-weight: 800; }
.gd-offers { padding: 10px; border-radius: 18px; background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); }
.gd-offers__q { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; margin-bottom: 8px; padding: 9px 10px; border-radius: 12px; background: #fff; font-size: 12px; }
.gd-offers__q span { display: flex; align-items: center; gap: 4px; min-width: 0; white-space: nowrap; }
.gd-offers__q span > .ico { flex: none; color: var(--accent-d); }
.gd-offers__q b { font-weight: 800; }
.gd-offers__q i { flex: none; display: flex; color: #b4b8c2; }
.gd-offers__q em { flex: none; margin-left: auto; padding: 3px 7px; border-radius: 7px; background: var(--soft-bg); font-style: normal; font-size: 11px; font-weight: 800; color: var(--slate); }
.gd-offers ul { display: flex; flex-direction: column; gap: 6px; }
.gd-offer { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 13px; background: #fff; box-shadow: 0 1px 2px rgba(26, 31, 51, .05), 0 6px 16px rgba(60, 30, 0, .06); }
.gd-offer:first-child { box-shadow: inset 0 0 0 1.5px rgba(234, 163, 10, .55), 0 8px 20px rgba(234, 163, 10, .16); }
.gd-offer__logo { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 32px; border-radius: 9px; background: var(--soft-bg); }
.gd-logo { width: auto; height: 18px; }
.gd-logo--fedex { height: 10px; }
.gd-offer__name { flex: 1; min-width: 0; font-size: 12px; line-height: 1.3; font-weight: 800; }
.gd-offer__price { flex: none; min-width: 52px; text-align: right; font-size: 16px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.gd-tag { position: absolute; top: -8px; right: 10px; padding: 2px 7px; border-radius: 6px; font-size: 10px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #f2b632, var(--accent)); }
.gd-promo__from { display: flex; flex-direction: column; gap: 2px; }
.gd-promo__from b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.gd-promo__from small { font-size: 13px; line-height: 1.4; font-weight: 600; color: var(--slate); }
.gd-promo .gd-btn { width: 100%; }
/* Цикл (guides.js): класс is-run запускает въезд строк и метку, без класса строки спрятаны */
.lr-motion .gd-promo[data-promo] .gd-offer { opacity: 0; translate: 0 12px; }
.lr-motion .gd-promo.is-run .gd-offer { opacity: 1; translate: 0 0; transition: opacity .5s calc(var(--i) * 160ms), translate .6s var(--ease) calc(var(--i) * 160ms); }
.lr-motion .gd-promo[data-promo] .gd-tag { opacity: 0; transform: scale(.5); }
.lr-motion .gd-promo.is-run .gd-tag { opacity: 1; transform: none; transition: opacity .3s .9s, transform .45s var(--ease) .9s; }

/* ===== Вопросы на <details>, как в шаблоне текстовой страницы ===== */
.gd-faq-sec { position: relative; padding: 0 0 96px; }
.gd-narrow { display: flex; flex-direction: column; gap: 28px; }
.gd-faq { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.gd-faq details { border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .3s, box-shadow .3s; }
.gd-faq details:hover { box-shadow: inset 0 0 0 1px #dfe0e6, 0 10px 24px -14px rgba(26, 31, 51, .18); }
.gd-faq details[open] { background: #fffaf2; box-shadow: inset 0 0 0 1px rgba(234, 163, 10, .28); }
.gd-faq summary, .gd-layout > .gd-toc 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; }
.gd summary::-webkit-details-marker { display: none; }
.gd summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gd 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; }
.gd summary i::before, .gd 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; }
.gd summary i::after { transform: rotate(90deg); }
.gd details[open] > summary i { transform: rotate(135deg); background: var(--accent); }
.gd details[open] > summary i::before, .gd details[open] > summary i::after { background: #fff; }
.gd-faq details p { padding: 0 72px 22px 24px; font-size: 16px; line-height: 1.6; color: var(--slate); }

/* ===== Read further: три карточки и ссылка на все гиды ===== */
.gd-more { position: relative; padding: 0 0 112px; }
.gd-more__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.gd-more__all { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; color: var(--ink); text-decoration: none; white-space: nowrap; }
.gd-more__all span { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--warm); color: var(--accent-d); transition: transform .35s var(--ease), background-color .3s, color .3s; }
.gd-more__all:hover span { transform: translateX(4px); background: var(--accent); color: #fff; }
.gd-more__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gd-more .gd-card__title { font-size: 18px; }

/* ===== Адаптив ===== */
@media (max-width: 1180px) {
  .gd-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; }
  .gd-grid, .gd-more__list { gap: 20px; }
  .gd-card__body { padding: 20px 20px 24px; }
  .gd-card__title { font-size: 18px; }
}
@media (min-width: 981px) and (max-width: 1180px) { .gd-card--feat .gd-card__title { font-size: 26px; } }
@media (max-width: 980px) {
  .gd .bw { max-width: calc(100% - 32px); }
  .gd-hero { padding: 20px 0 28px; }
  .gd img.gd-ribbon { width: 760px; right: -240px; top: -190px; }
  .gd-hero__in { gap: 14px; }
  .gd h1, .gd--article h1 { font-size: 38px; line-height: 1.08; letter-spacing: -.03em; }
  .gd-h2 { font-size: 28px; }
  .gd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gd-list { padding-bottom: 72px; }
  .gd-pager { margin-top: 36px; }
  .gd-cover { margin-top: 24px; aspect-ratio: 16 / 9; border-radius: 22px; }
  .gd-body { padding: 8px 0 64px; }
  .gd-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "toc" "prose" "aside"; gap: 32px; }
  .gd-layout > .gd-toc { grid-area: toc; display: block; border-radius: 18px; background: var(--soft-bg); }
  .gd-layout > .gd-toc summary { padding: 14px 14px 14px 18px; font-size: 15px; font-weight: 800; }
  .gd-layout > .gd-toc summary i { background: #fff; }
  .gd-layout > .gd-toc ol { padding: 0 18px 14px; }
  .gd-layout > .gd-toc a { margin-left: 0; padding-left: 12px; border-left-color: var(--line); }
  .gd-aside { position: static; }
  .gd-toc--side { display: none !important; }
  .gd-promo { max-width: 520px; }
  .gd-prose { font-size: 17px; }
  .gd-prose > p:first-child, .gd-prose > p:first-child + p { font-size: 18px; }
  .gd-prose h2 { margin-top: 40px; font-size: 26px; }
  .gd-prose h3 { margin-top: 28px; font-size: 20px; }
  .gd-prose figure { margin: 28px 0; }
  .gd-prose figure img { border-radius: 18px; }
  .gd-faq-sec { padding-bottom: 72px; }
  .gd-narrow { gap: 22px; }
  .gd-faq summary { padding: 18px 16px 18px 18px; gap: 14px; font-size: 16px; }
  .gd-faq details p { padding: 0 18px 20px; font-size: 15px; }
  .gd-more { padding-bottom: 72px; }
  .gd-more__head { margin-bottom: 20px; }
  .gd-more__list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  /* Read further на телефоне и планшете: компактные строки, обложка слева */
  .gd-more .gd-card { flex-direction: row; align-items: stretch; border-radius: 20px; }
  .gd-more .gd-card__media { flex: none; width: 34%; max-width: 220px; aspect-ratio: auto; border-radius: 20px 0 0 20px; }
  .gd-more .gd-card__body { gap: 6px; padding: 14px 16px 16px; }
  .gd-more .gd-card__body:has(+ .gd-card__go) { padding-bottom: 16px; }
  .gd-more .gd-card__title { padding-right: 0; font-size: 16px; }
  .gd-more .gd-card__go { display: none; }
  .gd-more .gd-card__title a::after { border-radius: 20px; }
}
@media (max-width: 560px) {
  .gd h1 { font-size: 36px; }
  .gd--article h1 { font-size: 30px; line-height: 1.12; letter-spacing: -.025em; }
  .gd-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .gd-card__title { font-size: 19px; }
  .gd-pager a, .gd-pager span { min-width: 44px; height: 44px; }
  .gd-card__go { display: none; }
  .gd-card__body, .gd-card__body:has(+ .gd-card__go) { padding: 18px 20px 22px; }
  .gd-card__title { padding-right: 0; }
  .gd-cover { aspect-ratio: 4 / 3; }
  .gd-promo { padding: 18px; }
  .gd-more__all { font-size: 0; gap: 0; }
  .gd-more .gd-card__text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; }
  .gd-more .gd-card__media { width: 112px; }
}

/* ==========================================================================
   Дополнения проекта (нет в пакете дизайнера)
   ========================================================================== */

/* Текст статьи из админки (HtmlSanitizer): обычный поток, а не flex+gap — иначе не работает обтекание (float).
   Картинки и кнопка редактора — синхронно с ContentEditor.vue (app/modules/content/README 6.2). */
.gd-prose { display: flow-root; overflow-wrap: break-word; }
.gd-prose hr { border: 0; border-top: 1px solid var(--line); }
.gd-prose table { border-collapse: collapse; }
.gd-prose th, .gd-prose td { padding: 8px 12px; border: 1px solid var(--line); text-align: left; }

/* фиксированная высота с обрезкой (старые классы редактора) */
.gd-prose .article__figure--tall img, .gd-prose .article__figure--short img { object-fit: cover; }
.gd-prose .article__figure--tall img { height: 340px; }
.gd-prose .article__figure--short img { height: 300px; }

/* ширина из редактора (style="width: Npx"): не шире колонки, без обрезки */
.gd-prose > figure[style] { max-width: 100%; }
.gd-prose > figure[style] img { height: auto; }

/* выравнивание: слева по умолчанию, --center / --right */
.gd-prose > .article__figure--center { margin-inline: auto; }
.gd-prose > .article__figure--right { margin-left: auto; }

/* обтекание текстом: float слева / справа с отступом до текста */
.gd-prose > .article__figure--wrap { float: left; margin: 6px 24px 12px 0; }
.gd-prose > .article__figure--wrap.article__figure--right { float: right; margin: 6px 0 12px 24px; }
.gd-prose > .article__figure--wrap:not([style]) { width: 50%; }

/* кнопка из редактора: <a class="article__button"> — не как ссылка текста (.gd-prose a), а как .gd-btn */
.gd-prose a.article__button { display: flex; align-items: center; justify-content: center; width: fit-content; min-height: 52px; padding: 0 26px; border-radius: 12px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 800; line-height: 1.2; text-align: center; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.gd-prose a.article__button:hover { color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(234, 163, 10, .3); }

/* ответы FAQ статьи — текст из админки с переносами строк */
.gd-faq details p { white-space: pre-line; }

/* мобильная версия: обтекания нет (float: none), ширина в px сохраняется, но не больше 100%; --wrap без ширины — 100% */
@media (max-width: 767px) {
  .gd-prose .article__figure--tall img, .gd-prose .article__figure--short img { height: auto; }
  .gd-prose > .article__figure--wrap { float: none; margin: 28px 0; }
  .gd-prose > .article__figure--wrap.article__figure--right { margin-left: auto; }
  .gd-prose > .article__figure--wrap:not([style]) { width: 100%; }
}

/* Плашка предпросмотра статьи из /cp (Show.vue, preview = true) */
.gd .article-preview-bar { position: sticky; top: 0; z-index: 50; padding: 8px 16px; background: #2329a6; color: #fff; font-size: 14px; text-align: center; }
