/* ═══════════════════════════════════════════════════════════
   template-info.css — Info-tutorial layout (Stage 2 Variant C)
   Recepty.mobi — 2026-05-23

   Loaded by index.php unconditionally (pattern идентичен
   template-home.css). Active markup: <article class="rcp-info-page">
   rendered by default_info.php для catid 134 (RU) + 206 (EN).

   Source visual prototype: seo_audit/info_redesign_20260522/
   stage1_C/prototype.html (sha256 4610D3D7..., approved 2026-05-22).

   JCH: file is in JCH Optimize "Exclude CSS files" list — loaded
   as separate <link>, not bundled with template.css.
   ═══════════════════════════════════════════════════════════ */

/* ─── Палитра info-page (мягкая paper-like, теплая) ───
   Локальные переменные scoped to .rcp-info-page чтобы
   не пересекаться с template.css vars. */
.rcp-info-page {
  --rcp-i-bg:      #f5f1ea;
  --rcp-i-paper:   #ffffff;
  --rcp-i-cream:   #faf5ec;
  --rcp-i-ink:     #1a1814;
  --rcp-i-ink-2:   #4a463e;
  --rcp-i-muted:   #8e887e;
  --rcp-i-accent:  #c84b1b;
  --rcp-i-line:    #e8e1d4;
  --rcp-i-success: #5b8a3a;
  --rcp-i-warning: #e0820d;
  --rcp-i-info:    #2d6da3;
  --rcp-i-serif:   "Cormorant Garamond", Georgia, serif;
  --rcp-i-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --rcp-i-radius:  14px;
  --rcp-i-radius-sm: 8px;
  --rcp-i-shadow:  0 12px 32px rgba(20, 18, 14, .08);
  --rcp-i-shadow-sm: 0 4px 14px rgba(20, 18, 14, .06);

  display: block;
  background: var(--rcp-i-bg);
  color: var(--rcp-i-ink);
  font-family: var(--rcp-i-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.rcp-info-page *,
.rcp-info-page *::before,
.rcp-info-page *::after { box-sizing: border-box }

/* ─── 2026-05-24 sticky-fix v2 ─────────────────────────────
   На сайте body имеет inline style="overflow: hidden" — выставляется
   каким-то JS-плагином (вероятно plg_system_mininews popup) и не убирается.
   Это classic sticky-killer: body становится clipped scroll container, sticky
   элементы не цепляются к viewport.
   v1 (overflow-y: visible) не сработал — CSS spec coerces mixed visible/hidden
   axes to auto. Auto делает body scroll container — disconnect с window.scrollTo.
   v2 — override BOTH axes to visible. html уже имеет overflow-x: hidden, так
   что горизонтальные overflow всё равно clippится на html-level (нет h-scroll).
   :has() ограничивает override только info-tutorial pages. !important перебивает inline.
   ─────────────────────────────────────────────────────────── */
body:has(.rcp-info-page) {
  overflow: visible !important;
}

/* ─── Breadcrumbs ─── */
.rcp-info-page__breadcrumbs {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 24px 0;
  font-size: 13px;
  color: var(--rcp-i-muted);
}
.rcp-info-page__breadcrumbs a {
  color: var(--rcp-i-muted);
  text-decoration: none;
  padding: 2px 4px;
  transition: color .15s;
}
.rcp-info-page__breadcrumbs a:hover { color: var(--rcp-i-accent) }
.rcp-info-page__breadcrumbs__sep { margin: 0 4px; opacity: .5 }

/* ═══════════════════════════════════════════════════════════
   HERO — Variant B (Side-by-side, TechCrunch / The Verge style)
   Desktop ≥900px: 2-col grid 1.5fr / 1fr (60% text + 40% image).
   Mobile <900px: stacked, image первой (order:-1), max 280px.
   ═══════════════════════════════════════════════════════════ */
.rcp-info-page__hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 24px 28px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
}
.rcp-info-page__hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.rcp-info-page__tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--rcp-i-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rcp-i-accent);
  padding: 5px 12px;
  background: rgba(200, 75, 27, .08);
  border-radius: 999px;
  text-decoration: none;
  margin-bottom: 16px;
}
.rcp-info-page__tag:hover { background: rgba(200, 75, 27, .15) }
.rcp-info-page__title {
  font-family: var(--rcp-i-serif);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--rcp-i-ink);
  margin: 0 0 16px;
}
.rcp-info-page__lede {
  font-family: var(--rcp-i-serif);
  font-style: italic;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.5;
  color: var(--rcp-i-ink-2);
  margin: 0 0 20px;
}
.rcp-info-page__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--rcp-i-line);
  font-size: 13px;
  color: var(--rcp-i-muted);
}
.rcp-info-page__meta-cell {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.rcp-info-page__hero-image { margin: 0 }
.rcp-info-page__hero-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--rcp-i-radius);
  box-shadow: var(--rcp-i-shadow);
  display: block;
}

/* author-mini (avatar + name link to /ob-avtore.html) */
.rcp-author-mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--rcp-i-ink);
}
.rcp-author-mini__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--rcp-i-cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--rcp-i-accent);
  font-size: 12px;
  border: 2px solid var(--rcp-i-line);
}
.rcp-author-mini__name { font-weight: 500; font-size: 13px }

/* Mobile <900px: stack hero vertically, image first */
@media (max-width: 900px) {
  .rcp-info-page__hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 18px 24px;
  }
  .rcp-info-page__hero-image { order: -1 }
  .rcp-info-page__hero-image img {
    aspect-ratio: 16/9;
    max-height: 280px;
    border-radius: var(--rcp-i-radius-sm);
  }
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT — TOC (240px) + Content (1fr) + Share-bar (56px)
   ═══════════════════════════════════════════════════════════ */
.rcp-info-page__layout {
  max-width: 1240px;
  margin: 32px auto 0;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: 240px 1fr 56px;
  gap: 56px;
  align-items: start;
}

/* ─── TOC sticky sidebar ─── */
.rcp-info-toc {
  position: sticky;
  top: 88px;
  background: var(--rcp-i-paper);
  border: 1px solid var(--rcp-i-line);
  border-radius: var(--rcp-i-radius);
  padding: 24px 22px 20px;
  font-family: var(--rcp-i-sans);
}
.rcp-info-toc__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rcp-i-muted);
  margin: 0 0 16px;
}
.rcp-info-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.rcp-info-toc li { font-size: 14px; line-height: 1.45 }
.rcp-info-toc li a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  text-decoration: none;
  color: var(--rcp-i-ink-2);
  border-bottom: 1px dashed var(--rcp-i-line);
  transition: color .15s;
}
.rcp-info-toc li:last-child a { border-bottom: 0 }
.rcp-info-toc li a:hover { color: var(--rcp-i-accent) }
.rcp-info-toc__num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--rcp-i-muted);
  min-width: 22px;
  font-size: 12px;
}
.rcp-info-toc__top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 8px 0;
  font-size: 12px;
  color: var(--rcp-i-muted);
  text-decoration: none;
  border-top: 1px solid var(--rcp-i-line);
  width: 100%;
  justify-content: center;
}
.rcp-info-toc__top:hover { color: var(--rcp-i-accent) }

/* ─── Content column ─── */
.rcp-info-content { max-width: 100% }
.rcp-info-content__intro p { font-family: var(--rcp-i-sans); font-size: 18px; line-height: 1.75; color: var(--rcp-i-ink-2); margin: 0 0 18px }
.rcp-info-content__intro p:first-of-type::first-letter {
  float: left;
  font-family: var(--rcp-i-serif);
  font-size: 72px;
  line-height: .85;
  font-weight: 600;
  color: var(--rcp-i-accent);
  margin: 6px 14px 0 0;
}
.rcp-info-content__intro strong { color: var(--rcp-i-ink); font-weight: 600 }
.rcp-info-content__intro img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 18px auto;
  border-radius: var(--rcp-i-radius-sm);
}

/* ═══ Section cards (H2 как карточка с numbered counter) ═══ */
.rcp-info-section {
  background: var(--rcp-i-paper);
  border: 1px solid var(--rcp-i-line);
  border-radius: var(--rcp-i-radius);
  padding: 40px 44px 38px;
  margin: 32px 0;
  box-shadow: var(--rcp-i-shadow-sm);
  position: relative;
}
.rcp-info-section__header {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 22px;
}
.rcp-info-section__num {
  font-family: var(--rcp-i-serif);
  font-size: 56px;
  line-height: 1;
  font-weight: 600;
  color: var(--rcp-i-accent);
  opacity: .85;
  flex-shrink: 0;
}
.rcp-info-section__title {
  font-family: var(--rcp-i-serif);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
  font-weight: 600;
  color: var(--rcp-i-ink);
  margin: 0;
  padding-top: 8px;
}
.rcp-info-section__body {
  font-family: var(--rcp-i-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--rcp-i-ink-2);
}
.rcp-info-section__body p { margin: 0 0 16px }
.rcp-info-section__body strong { color: var(--rcp-i-ink); font-weight: 600 }
.rcp-info-section__body a {
  color: var(--rcp-i-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.rcp-info-section__body a:hover { text-decoration-thickness: 2px }
.rcp-info-section__body ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 18px;
}
.rcp-info-section__body ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
}
.rcp-info-section__body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rcp-i-accent);
}
.rcp-info-section__body ol {
  counter-reset: rcpinfo-ol;
  list-style: none;
  padding-left: 0;
  margin: 0 0 18px;
}
.rcp-info-section__body ol li {
  counter-increment: rcpinfo-ol;
  position: relative;
  padding-left: 36px;
  margin-bottom: 12px;
}
.rcp-info-section__body ol li::before {
  content: counter(rcpinfo-ol);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--rcp-i-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--rcp-i-accent);
  line-height: 1.3;
}
.rcp-info-section__body figure { margin: 24px 0 }
.rcp-info-section__body figure img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--rcp-i-radius-sm);
  box-shadow: var(--rcp-i-shadow-sm);
  display: block;
}
.rcp-info-section__body figcaption {
  font-family: var(--rcp-i-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--rcp-i-muted);
  text-align: center;
  margin-top: 10px;
}
.rcp-info-section__body blockquote {
  border-left: 3px solid var(--rcp-i-line);
  padding: 8px 0 8px 22px;
  margin: 24px 0;
  font-family: var(--rcp-i-serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  color: var(--rcp-i-ink-2);
}
.rcp-info-section__body blockquote.pull {
  border-left: 3px solid var(--rcp-i-accent);
  padding: 8px 0 8px 22px;
  margin: 28px 0;
  font-size: 22px;
  line-height: 1.5;
  color: var(--rcp-i-ink);
}

/* ═══ Callouts (tip / warning / note) ═══ */
.rcp-callout {
  display: flex;
  gap: 14px;
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--rcp-i-cream);
  border-left: 4px solid var(--rcp-i-accent);
  border-radius: var(--rcp-i-radius-sm);
  font-size: 16px;
  line-height: 1.6;
}
.rcp-callout__icon { font-size: 22px; flex-shrink: 0 }
.rcp-callout__text { margin: 0; color: var(--rcp-i-ink) }
.rcp-callout--tip {
  background: #f0f9f4;
  border-color: var(--rcp-i-success);
}
.rcp-callout--warning {
  background: #fdf4f0;
  border-color: var(--rcp-i-warning);
}
.rcp-callout--note {
  background: #f0f5fb;
  border-color: var(--rcp-i-info);
}

/* ═══ Share-bar (sticky right column, 3 buttons + divider) ═══ */
.rcp-info-share {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rcp-info-share__btn {
  /* 2026-05-28: position: relative — критично для absolute positioning
     .rcp-fav-count badge внутри. Global .rcp-fav-count style из template.css
     apply'ется автоматически (top:-2px right:-2px accent circle). */
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rcp-i-paper);
  border: 1px solid var(--rcp-i-line);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--rcp-i-ink-2);
  transition: all .15s;
  text-decoration: none;
}
.rcp-info-share__btn:hover {
  background: var(--rcp-i-accent);
  color: #fff;
  border-color: var(--rcp-i-accent);
  transform: translateY(-2px);
}
.rcp-info-share__btn svg { width: 18px; height: 18px }

/* 2026-05-24 bookmark-feedback: visual indication of saved state +
   click animation. is-saved class set by template.js when article
   is bookmarked. Without this CSS, button looks identical after click
   and user has no feedback. */
.rcp-info-share__btn[data-rcp-fav].is-saved {
  background: var(--rcp-i-accent);
  border-color: var(--rcp-i-accent);
  color: #fff;
  animation: rcp-fav-pop 0.35s ease;
}
.rcp-info-share__btn[data-rcp-fav].is-saved svg path {
  fill: currentColor;
  stroke: currentColor;
}
@keyframes rcp-fav-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.22); }
  100% { transform: scale(1); }
}

.rcp-info-share__divider {
  height: 1px;
  background: var(--rcp-i-line);
  margin: 6px 0;
}

/* ═══ FAQ accordion ═══ */
.rcp-info-faq {
  max-width: 1240px;
  margin: 60px auto 0;
  padding: 0 24px;
}
.rcp-info-faq__inner {
  background: var(--rcp-i-paper);
  border-radius: var(--rcp-i-radius);
  padding: 48px 52px 44px;
  border: 1px solid var(--rcp-i-line);
  max-width: 880px;
  margin: 0 auto;
}
.rcp-info-faq__title {
  font-family: var(--rcp-i-serif);
  font-size: 34px;
  font-weight: 600;
  margin: 0 0 28px;
  color: var(--rcp-i-ink);
}
.rcp-info-faq__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rcp-info-faq__item {
  background: var(--rcp-i-bg);
  border-radius: var(--rcp-i-radius-sm);
  overflow: hidden;
  border: 1px solid transparent;
}
.rcp-info-faq__item[open] { border-color: var(--rcp-i-line) }
.rcp-info-faq__q {
  cursor: pointer;
  list-style: none;
  padding: 18px 24px;
  font-family: var(--rcp-i-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--rcp-i-ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.rcp-info-faq__q::-webkit-details-marker { display: none }
.rcp-info-faq__plus {
  color: var(--rcp-i-accent);
  font-size: 22px;
  transition: transform .2s;
  flex-shrink: 0;
}
.rcp-info-faq__item[open] .rcp-info-faq__plus { transform: rotate(45deg) }
.rcp-info-faq__a {
  padding: 0 24px 22px;
  font-family: var(--rcp-i-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--rcp-i-ink-2);
}
.rcp-info-faq__a p { margin: 0 0 12px }
.rcp-info-faq__a p:last-child { margin-bottom: 0 }

/* ═══ Author bio block ═══ */
.rcp-info-author {
  max-width: 880px;
  margin: 56px auto 0;
  padding: 0 24px;
}
.rcp-info-author__card {
  background: var(--rcp-i-cream);
  border-radius: var(--rcp-i-radius);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  align-items: center;
}
.rcp-info-author__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--rcp-i-paper);
  border: 3px solid var(--rcp-i-paper);
  box-shadow: var(--rcp-i-shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--rcp-i-accent);
  font-weight: 600;
  font-family: var(--rcp-i-serif);
}
.rcp-info-author__name {
  font-family: var(--rcp-i-serif);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--rcp-i-ink);
}
.rcp-info-author__bio {
  font-size: 15px;
  line-height: 1.55;
  color: var(--rcp-i-ink-2);
  margin: 0 0 12px;
}
.rcp-info-author__link {
  font-family: var(--rcp-i-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--rcp-i-accent);
  text-decoration: none;
}
.rcp-info-author__link:hover { text-decoration: underline }

/* ═══ Related articles grid (4 cards) ═══ */
.rcp-info-related {
  max-width: 1240px;
  margin: 56px auto 60px;
  padding: 0 24px;
}
.rcp-info-related__title {
  font-family: var(--rcp-i-serif);
  font-size: 30px;
  font-weight: 600;
  margin: 0 0 28px;
  color: var(--rcp-i-ink);
}
.rcp-info-related__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.rcp-info-related__card {
  background: var(--rcp-i-paper);
  border-radius: var(--rcp-i-radius);
  overflow: hidden;
  border: 1px solid var(--rcp-i-line);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.rcp-info-related__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rcp-i-shadow);
}
.rcp-info-related__card-img {
  aspect-ratio: 4/3;
  background: var(--rcp-i-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--rcp-i-muted);
}
.rcp-info-related__card-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.rcp-info-related__card-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rcp-i-accent);
  margin-bottom: 8px;
}
.rcp-info-related__card-title {
  font-family: var(--rcp-i-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 12px;
  flex: 1;
  color: var(--rcp-i-ink);
}
.rcp-info-related__card-meta {
  font-size: 13px;
  color: var(--rcp-i-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ═══════════════════════════════════════════════════════════
   FLOATING BACK-TO-TOP BUTTON
   Появляется при scroll > 600px. Smooth scroll to top по клику.
   Не часть .rcp-info-page — отдельный <button> в конце body.
   ═══════════════════════════════════════════════════════════ */
.rcp-back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #c84b1b;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, background .2s ease, visibility .2s ease, box-shadow .2s ease;
  z-index: 1000;
}
.rcp-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.rcp-back-to-top.is-visible:hover {
  background: #a23c14;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.rcp-back-to-top:focus-visible {
  outline: 2px solid #1a1814;
  outline-offset: 3px;
}
.rcp-back-to-top svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤1100px) и Mobile (≤600px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  /* Layout collapses: TOC сверху, share-bar становится floating bottom-bar */
  /* 2026-05-24 grid-minmax-fix: minmax(0, 1fr) вместо 1fr — preventing
     grid track expansion when item min-content > target column. Это
     каноничный fix для Chromium grid quirk где `overflow-wrap: anywhere`
     не редуцирует min-content в grid track sizing algorithm. */
  .rcp-info-page__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .rcp-info-toc {
    position: static;
    margin-bottom: 16px;
    /* 2026-05-24 mobile-toc-fix: prevent grid item from expanding past
       parent column width when long Russian phrases force min-content
       wider than column. min-width:0 unlocks grid 1fr shrinking. */
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .rcp-info-toc a,
  .rcp-info-toc li {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  /* 2026-05-24 corner-pill: mobile floating bar — компактная в правом нижнем углу.
     Стиль Medium/Telegraph: small white-blur pill, dark icons, no divider. */
  .rcp-info-share {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: auto;
    top: auto;
    transform: none;
    width: auto;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    z-index: 50;
  }
  /* Кнопки 36×36 компактные; bookmark тёмная на light pill, Telegram/WhatsApp
     сохраняют свои inline brand-цвета (inline specificity > external). */
  .rcp-info-share .rcp-info-share__btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border-color: transparent;
    color: var(--rcp-i-ink);
  }
  .rcp-info-share .rcp-info-share__btn:hover {
    background: rgba(20, 18, 14, 0.06);
  }
  .rcp-info-share .rcp-info-share__btn svg {
    width: 16px;
    height: 16px;
  }
  /* 2026-05-28: counter badge slightly tighter на 36×36 mobile pill button —
     избегаем clip за pill container edges. */
  .rcp-info-share .rcp-info-share__btn .rcp-fav-count {
    top: -3px;
    right: -3px;
  }
  /* Divider скрыт — между 36px кнопками с gap:8px он избыточен */
  .rcp-info-share__divider {
    display: none;
  }
  /* Related grid 4 → 2 cols */
  .rcp-info-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Back-to-top поднимается выше mobile share-bar */
  .rcp-back-to-top {
    right: 16px;
    bottom: 88px;
  }
}

@media (max-width: 600px) {
  .rcp-info-page__layout {
    padding: 0 16px 48px;
    margin-top: 18px;
  }
  .rcp-info-section {
    padding: 26px 22px 24px;
    margin: 20px 0;
    border-radius: 8px;
  }
  .rcp-info-section__num { font-size: 40px }
  .rcp-info-section__title { font-size: 22px }
  .rcp-info-faq__inner { padding: 28px 22px 24px }
  .rcp-info-faq__title { font-size: 26px }
  .rcp-info-author__card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 28px 24px;
  }
  .rcp-info-author__avatar { margin: 0 auto }
  .rcp-info-related__grid { gap: 14px }
  .rcp-info-related__card-body { padding: 14px 16px 16px }
}

/* ═══════════════════════════════════════════════════════════
   2026-05-24: Стилизация таблиц в info-tutorial layout
   Scope: только .rcp-info-page (recipe-таблицы в .rcp-article не задеты).
   Тёмно-зелёный thead (#1F4E3D, meta-theme-color сайта) — отдельный design
   accent для tables, не путать с .rcp-info-page accent (orange #c84b1b).
   ═══════════════════════════════════════════════════════════ */

.rcp-info-page table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5em 0;
  font-size: 0.95rem;
  line-height: 1.5;
  background: var(--rcp-i-paper);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--rcp-i-line);
}

.rcp-info-page table thead {
  background: #1F4E3D;
}

.rcp-info-page table thead th {
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border: 0;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.rcp-info-page table tbody td {
  padding: 12px 16px;
  border-top: 1px solid var(--rcp-i-line);
  vertical-align: top;
  color: var(--rcp-i-ink);
}

.rcp-info-page table tbody tr:nth-child(even) td {
  background: rgba(20, 18, 14, 0.025);
}

.rcp-info-page table tbody tr:first-child td {
  border-top: 0;
}

/* Mobile: компактнее + горизонтальный scroll если контент длиннее viewport */
@media (max-width: 700px) {
  .rcp-info-page table {
    font-size: 0.85rem;
    border-radius: 8px;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .rcp-info-page table thead th,
  .rcp-info-page table tbody td {
    padding: 8px 10px;
  }
}

/* ─────────────────────────────────────────────────────────────────
   2026-06-05: Legal pages (privacy-policy RU/EN, catid 145/296)
   .rcp-article--legal — added on <article> wrapper в default_article.php
   when $_isLegalPage = in_array((int)$item->catid, [145, 296], true).
   TOC sidebar hidden PHP-side; CSS just polishes typography.
   ───────────────────────────────────────────────────────────────── */
.rcp-article--legal .rcp-prose--article {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.rcp-article--legal .rcp-prose--article h2 {
  margin-top: 2em;
  margin-bottom: 0.75em;
}
.rcp-article--legal .rcp-prose--article ol > li,
.rcp-article--legal .rcp-prose--article ul > li {
  margin-bottom: 0.5em;
  line-height: 1.65;
}
.rcp-article--legal .rcp-prose--article ol ul,
.rcp-article--legal .rcp-prose--article ol ol {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}
/* Without TOC sidebar, info-body is a single column — kill flex/grid gaps */
.rcp-article--legal .rcp-info-body {
  display: block;
}
