/* Внутренние страницы: шапка страницы, список статей, текст статьи, кейсы. Общее — site.css. */

/* ——— шапка страницы ——— */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-d); }
.page-hero .wrap { position: relative; z-index: 1; padding-top: calc(var(--top-h) + 72px); padding-bottom: 72px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute-d); }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: .5; }
.crumbs a { transition: color .25s; }
.crumbs a:hover { color: #fff; }
.page-hero h1 { font-family: var(--serif); font-weight: 400; letter-spacing: -.025em; font-size: clamp(40px, 6.4vw, 92px); line-height: .98; margin: 0 0 28px; max-width: 16ch; }
.page-hero .lead { font-size: 19px; line-height: 1.6; color: var(--text-d); max-width: 58ch; margin: 0; }
.page-hero .meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 36px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute-d); }
.page-hero-media { position: relative; margin-top: 56px; aspect-ratio: 21 / 8; overflow: hidden; background: #000; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); opacity: .85; }

/* ——— список статей ——— */
.pub-list { border-top: 1px solid var(--ink); }
.pub { position: relative; display: grid; grid-template-columns: 180px minmax(0, 1fr) 40px; gap: 32px; align-items: start; padding: 34px 0; border-bottom: 1px solid var(--line); isolation: isolate; transition: color .45s var(--ease), padding .6s var(--ease); }
.pub::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--gut)); z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.pub:hover { color: #fff; padding-left: 16px; }
.pub:hover::before { transform: none; }
.pub-meta { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); line-height: 1.6; transition: color .45s; }
.pub h2, .pub h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; margin: 0 0 12px; }
.pub p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text); max-width: 64ch; transition: color .45s; }
.pub:hover .pub-meta, .pub:hover p { color: rgba(255, 255, 255, .65); }
.pub-arr { font-size: 26px; justify-self: end; transition: transform .6s var(--ease); }
.pub:hover .pub-arr { transform: translateX(8px); }

/* ——— статья ——— */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 80px; align-items: start; }
.toc { position: sticky; top: 100px; font-size: 14px; }
.toc .eyebrow { margin-bottom: 16px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); line-height: 1.4; transition: color .25s, border-color .25s; }
.toc li a:hover, .toc li a.on { color: var(--ink); border-color: var(--ink); }
.toc-cta { margin-top: 32px; padding: 22px; background: var(--ink); color: #fff; }
.toc-cta p { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: var(--text-d); }
.toc-cta strong { display: block; margin-bottom: 8px; font-family: var(--serif); font-weight: 400; font-size: 22px; color: #fff; }
.toc-cta .btn { width: 100%; background: #fff; color: var(--ink); border-color: #fff; }
.toc-cta .btn::before { background: var(--paper); }
.toc-cta .btn:hover { color: var(--ink); }

.prose { max-width: 720px; font-size: 18px; line-height: 1.72; color: var(--text); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; font-size: clamp(30px, 3vw, 40px); line-height: 1.1; color: var(--ink); margin: 72px 0 22px; scroll-margin-top: 100px; }
.prose h3 { font-size: 21px; font-weight: 600; line-height: 1.3; color: var(--ink); margin: 40px 0 14px; }
.prose p { margin: 0 0 20px; }
.prose ul, .prose ol { margin: 0 0 24px; padding-left: 22px; }
.prose li { margin-bottom: 10px; }
.prose li::marker { color: var(--muted); }
.prose strong, .prose b { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(0, 0, 0, .3); text-underline-offset: 3px; transition: text-decoration-color .25s; }
.prose a:hover { text-decoration-color: var(--ink); }
.prose blockquote { margin: 32px 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--ink); font-family: var(--serif); font-size: 23px; line-height: 1.45; color: var(--ink); }
.prose blockquote p { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 28px; font-size: 16px; }
.prose th, .prose td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 400; border-bottom-color: var(--ink); }
.prose figure { margin: 36px 0; }
.prose figure img { width: 100%; filter: grayscale(1); }
.prose figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.callout { margin: 32px 0; padding: 26px 28px; background: var(--white); border-left: 2px solid var(--ink); font-size: 17px; }
.callout > :last-child { margin-bottom: 0; }
.callout-title { display: block; margin-bottom: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 36px 0; border-top: 1px solid var(--ink); }
.stats > div { padding: 22px 20px 0 0; }
.stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; color: var(--ink); margin-bottom: 8px; }
.stats span { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ——— кейсы и автор ——— */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cases.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case { display: grid; gap: 14px; align-content: start; padding: 32px; background: var(--white); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.case:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .35); }
.case-tag { justify-self: start; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border: 1px solid var(--ink); }
.case h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; margin: 0; color: var(--ink); }
.case blockquote { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text); }
.case blockquote p { margin: 0 0 10px; }
.case-meta { font-size: 13px; color: var(--muted); }
.case .review-link { margin-top: 4px; }
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 64px; align-items: start; }
.split > .side { position: sticky; top: 100px; }
.split > .side h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.05; margin: 14px 0 0; }
.portrait { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #0a0a0a; max-width: 420px; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--dark) 0%, rgba(13, 14, 15, 0) 32%); }
.hero-split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 420px); gap: 72px; align-items: end; }

@media (prefers-reduced-motion: no-preference) {
  .js .pub { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease), color .45s var(--ease), padding .6s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
  .js .pub.in { opacity: 1; transform: none; }
  .js .portrait { clip-path: inset(100% 0 0 0); animation: portrait-in 1.6s var(--ease-io) .4s both; }
}
@keyframes portrait-in { to { clip-path: inset(0); } }

@media (max-width: 1000px) {
  .article-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .toc { position: static; }
  .toc ol { display: none; }
}
@media (max-width: 900px) {
  .page-hero .wrap { padding-top: calc(var(--top-h) + 40px); padding-bottom: 48px; }
  .page-hero .lead { font-size: 17px; }
  .pub { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; }
  .pub:hover { padding-left: 0; }
  .pub-arr { display: none; }
  .prose { font-size: 17px; }
  .stats { grid-template-columns: 1fr; }
  .cases, .cases.c3 { grid-template-columns: 1fr; }
  .case { padding: 24px; }
  .split, .hero-split { grid-template-columns: 1fr; gap: 28px; }
  .split > .side { position: static; }
  .page-hero-media { aspect-ratio: 16 / 9; }
}

.stairs-sec { padding: 1px 0 40px; }
.stairs-sec .stairs { margin-top: 56px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 36px; }
.head[data-gap] { margin-top: 96px; }
.page-hero .meta strong { color: #fff; font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: 0; text-transform: none; }
.prose h4 { font-size: 18px; font-weight: 600; line-height: 1.35; color: var(--ink); margin: 32px 0 10px; }
.callout img { width: 96px; height: 96px; object-fit: cover; object-position: center top; border-radius: 50%; filter: grayscale(1); margin: 0 0 16px; }
.page-hero-media + .caption, .page-hero figcaption { margin-top: 10px; font-size: 13px; color: var(--mute-d); }
@media (max-width: 1000px) {
  .toc { order: 2; }
  .toc > .eyebrow { display: none; }
}
