/* ============================================================
   PAGE SHARED — общие стили для внутренних страниц.
   page-hero, breadcrumbs, inline-TOC, CTA-rail, prose-блок.
   ============================================================ */

/* ─── breadcrumbs ─────────────────────────────── */
.crumbs {
  padding: 28px 0 0;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.crumbs a { color: var(--ink-3); transition: color .2s; }
.crumbs a:hover { color: var(--red-0); }
.crumbs .sep { opacity: 0.5; }
.crumbs .now { color: var(--ink-1); }

/* ─── page hero ──────────────────────────────── */
.ph {
  padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}
.ph::before {
  content: "";
  position: absolute;
  inset: -100px -100px auto auto;
  width: 600px; height: 600px;
  background: radial-gradient(closest-side, rgba(251,26,38,0.18), transparent 70%);
  pointer-events: none; z-index: 0;
}
.ph .inner { position: relative; z-index: 1; max-width: 880px; }
.ph .eyebrow { margin-bottom: 24px; display: inline-block; }
.ph h1 {
  font-size: clamp(48px, 6vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0;
  text-wrap: balance;
}
.ph h1 em {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--red-0);
  text-shadow: 0 0 60px rgba(251, 26, 38, 0.35);
}
.ph .lead {
  margin-top: 26px;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--ink-1);
  max-width: 680px;
  text-wrap: pretty;
}
.ph .meta {
  margin-top: 28px;
  display: flex; gap: 14px; flex-wrap: wrap;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.ph .meta .pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  color: var(--ink-1);
}
.ph .meta .pill.accent { color: var(--red-0); border-color: var(--red-line); background: var(--red-soft); }

/* ─── CTA rail (повторяющийся внизу) ──────────── */
.cta-rail {
  padding: clamp(56px, 8vw, 104px) 0;
  border-top: 1px solid var(--line);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-rail::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 900px; height: 900px;
  background: radial-gradient(closest-side, rgba(251,26,38,0.14), transparent 65%);
  transform: translate(-50%, -50%);
  pointer-events: none; z-index: 0;
}
.cta-rail .inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.cta-rail h2 {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}
.cta-rail h2 em {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--red-0);
}
.cta-rail .lead {
  margin-top: 20px;
  color: var(--ink-2);
}
.cta-rail .ctas {
  margin-top: 28px;
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}

/* ─── prose (статья, кейс, privacy) ─────────── */
.prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-1);
}
.prose > * + * { margin-top: 1.2em; }
.prose h2 {
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-top: 2em;
  color: var(--ink-0);
  text-wrap: balance;
}
.prose h2 em { font-family: var(--ff-serif); font-style: italic; font-weight: 400; color: var(--red-0); }
.prose h3 {
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.015em;
  margin-top: 1.6em;
  color: var(--ink-0);
}
.prose p { color: var(--ink-1); }
.prose a { color: var(--red-0); border-bottom: 1px solid var(--red-line); transition: border-color .2s; }
.prose a:hover { border-color: var(--red-0); }
.prose strong { color: var(--ink-0); font-weight: 600; }
.prose blockquote {
  margin: 1.6em 0;
  padding: 18px 24px;
  border-left: 2px solid var(--red-0);
  background: var(--bg-2);
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(20px, 1.8vw, 24px);
  color: var(--ink-0);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  letter-spacing: -0.005em;
}
.prose blockquote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--ff-mono);
  font-style: normal;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.prose ul, .prose ol {
  margin-left: 0;
  padding-left: 0;
  list-style: none;
}
.prose li {
  padding: 6px 0 6px 28px;
  position: relative;
}
.prose ul li::before {
  content: "";
  position: absolute; left: 0; top: 16px;
  width: 14px; height: 1px;
  background: var(--red-0);
}
.prose ol { counter-reset: ol; }
.prose ol li {
  counter-increment: ol;
}
.prose ol li::before {
  content: counter(ol);
  position: absolute; left: 0; top: 4px;
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--red-0);
  letter-spacing: 0.08em;
  font-weight: 500;
}
.prose code {
  font-family: var(--ff-mono);
  font-size: 0.92em;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--ink-0);
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.4em 0;
}
.prose figure {
  margin: 2em 0;
  padding: 0;
}
.prose figcaption {
  margin-top: 10px;
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── TOC (table of contents, sticky на больших экранах) ── */
.with-toc {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(40px, 5vw, 80px);
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 920px) {
  .with-toc { grid-template-columns: 1fr; }
}
.toc {
  position: sticky;
  top: 96px;
  align-self: start;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
@media (max-width: 920px) {
  .toc { position: static; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-2); }
}
.toc .lbl {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc li { padding: 8px 0; border-top: 1px solid var(--line); }
.toc li:first-child { border-top: 0; }
.toc a {
  color: var(--ink-1);
  display: block;
  transition: color .2s;
}
.toc a:hover, .toc a.is-on { color: var(--red-0); }

/* ─── Generic card grid ──────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 920px) { .cards-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards-grid { grid-template-columns: 1fr; } }

.gcard {
  padding: 28px 26px;
  border-radius: var(--r-lg);
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  min-height: 260px;
  position: relative;
  overflow: hidden;
  transition: border-color .25s, transform .25s;
  text-decoration: none;
  color: inherit;
}
.gcard:hover { border-color: var(--red-line); transform: translateY(-2px); }
.gcard .gn {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-0);
  margin-bottom: 16px;
}
.gcard h3 {
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 10px;
  color: var(--ink-0);
}
.gcard p {
  font-size: 14px;
  color: var(--ink-2);
  flex: 1;
}
.gcard .glink {
  margin-top: 18px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-0);
  display: inline-flex; align-items: center; gap: 6px;
}
.gcard .corner {
  position: absolute; right: -8px; bottom: -10px;
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 96px;
  line-height: 1;
  color: rgba(251,26,38,0.06);
  pointer-events: none;
}

/* ─── Use-case стенды (situation → voice → result) ──── */
.uc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: clamp(40px, 5vw, 56px);
}
@media (max-width: 720px) { .uc-grid { grid-template-columns: 1fr; } }

.uc {
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.uc h3 {
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 18px;
  color: var(--ink-0);
}
.uc-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.uc-step {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--bg-1);
  border: 1px solid var(--line);
}
.uc-step.voice { background: rgba(251,26,38,0.04); border-color: var(--red-line); }
.uc-step .stage {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
  display: block;
}
.uc-step.voice .stage { color: var(--red-0); }
.uc-step .txt {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-1);
  white-space: pre-line;
}
.uc-step.raw .txt { color: var(--ink-2); font-style: italic; }
.uc-where {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.uc-where .lbl { color: var(--red-0); margin-right: 8px; }

/* ─── two-col split ──────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } }
.split h2 {
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
.split h2 em { font-family: var(--ff-serif); font-style: italic; font-weight: 400; color: var(--red-0); }
.split .lead { margin-top: 22px; }

/* ─── Stat row ───────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: clamp(40px, 5vw, 56px) 0;
}
@media (max-width: 720px) { .stats { grid-template-columns: 1fr; } }
.stats .stat {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
}
.stats .stat:last-child { border-right: 0; }
@media (max-width: 720px) {
  .stats .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats .stat:last-child { border-bottom: 0; }
}
.stats .n {
  font-family: var(--ff-sans);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink-0);
}
.stats .n .unit {
  font-size: 16px;
  font-weight: 500;
  color: var(--red-0);
  margin-left: 6px;
  letter-spacing: 0;
}
.stats .l {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-2);
}
