/* ===== Гайды Abramotti — светлая тема «Claude Light» (бренд abramotti.ru) ===== */
@view-transition { navigation: auto; }
html { scrollbar-gutter: stable; }
::view-transition-old(root) { animation-duration: .28s; }
::view-transition-new(root) { animation-duration: .28s; }
:root {
  --bg: #faf9f5;
  --bg-section: #f4f2ea;
  --bg-card: #ffffff;
  --bg-card2: #f7f5ee;
  --border: #e9e6dc;
  --border-strong: #ddd8ca;
  --text: #3d3a34;          /* мягкий графит Claude (не чёрный) */
  --text-sub: #53514c;
  --text-dim: #8a877e;
  --accent: #d97757;
  --accent-hover: #bd5d3a;  /* на светлом hover темнее */
  --accent-soft: rgba(217,119,87,.10);
  --ink: #3d3a34;           /* заливка кнопок */
  --ink-hover: #2b2924;
  --code-bg: #f4f2ea;
  --code-text: #3d3a34;
  --maxw: 720px;
  --wide: 1080px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --sh: 0 1px 2px rgba(31,30,29,.04), 0 8px 24px rgba(31,30,29,.06);
  --sh2: 0 2px 4px rgba(31,30,29,.05), 0 20px 48px rgba(31,30,29,.10);
  --btn-sh: 0 2px 8px rgba(31,30,29,.16);
  --btn-sh-h: 0 12px 28px rgba(31,30,29,.22);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 18px; line-height: 1.72;
  -webkit-font-smoothing: antialiased; position: relative; overflow-x: hidden;
}
body::before {
  content: ""; position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 700px; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse, rgba(217,119,87,.06) 0%, transparent 70%);
}
body > * { position: relative; z-index: 1; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.wide { max-width: var(--wide); }

/* ===== Шапка (sticky) ===== */
/* ===== ЕДИНЫЙ хедер uhdr (идентичен на club/статьях/листинге/story; не перерисовывается при переходе) ===== */
.uhdr { position: sticky; top: 0; z-index: 1000; background: rgba(250,249,245,.85); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid #e9e6dc; font-family: 'Inter',system-ui,sans-serif; view-transition-name: site-header; }
.uhdr-row { max-width: 1080px; margin: 0 auto; padding: 13px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.uhdr-brand { display: flex; align-items: center; gap: 11px; font-family: 'Fraunces',Georgia,serif; font-weight: 700; font-size: 19px; color: #3d3a34; letter-spacing: -.01em; text-decoration: none; }
.uhdr-brand img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: center top; border: 1.5px solid rgba(217,119,87,.5); }
.uhdr-brand b { color: #d97757; font-weight: 700; }
.uhdr-pill { display: inline-flex; align-items: center; gap: 3px; padding: 4px; border-radius: 999px; background: rgba(244,242,234,.7); border: 1px solid #e9e6dc; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.uhdr-pill a { padding: 8px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #53514c; transition: color .2s, background .2s; white-space: nowrap; text-decoration: none; }
.uhdr-pill a:hover { color: #3d3a34; }
.uhdr-pill a.active { background: #fff; color: #3d3a34; box-shadow: 0 1px 2px rgba(31,30,29,.08), 0 2px 6px rgba(31,30,29,.06); }
.uhdr-pill a.soon { opacity: .5; cursor: default; pointer-events: none; }
.uhdr-pill a.soon::after { content: "🔒"; font-size: 11px; margin-left: 5px; }
.uhdr-cta { display: inline-flex; align-items: center; gap: 8px; background: #3d3a34; color: #fff !important; font-weight: 700; padding: 11px 20px; border-radius: 12px; font-size: 15px; transition: background .2s, transform .15s, box-shadow .25s; white-space: nowrap; text-decoration: none; }
.uhdr-cta:hover { background: #2b2924; transform: translateY(-1px); box-shadow: 0 10px 30px rgba(31,30,29,.22); }
@media (max-width: 760px) { .uhdr-pill { display: none; } .uhdr-row { padding: 11px 14px; } .uhdr-brand { font-size: 16px; } .uhdr-cta { padding: 9px 14px; font-size: 13px; } }
.btn-lg { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff !important; font-weight: 700; padding: 17px 32px; font-size: 17px; border-radius: 14px; transition: background .2s, transform .15s, box-shadow .25s; box-shadow: var(--btn-sh); }
.btn-lg:hover { background: var(--ink-hover); transform: translateY(-1px); box-shadow: var(--btn-sh-h); }

/* ===== Профиль-герой (каталог) ===== */
.profile { text-align: center; padding: 56px 0 18px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.profile .avatar {
  width: 116px; height: 116px; border-radius: 50%; object-fit: cover; object-position: center top;
  border: 2.5px solid rgba(217,119,87,.55); box-shadow: 0 0 0 8px rgba(217,119,87,.06);
}
.profile .name { font-family: var(--serif); font-size: 34px; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
.profile .sub { font-size: 12.5px; font-weight: 600; color: var(--text-dim); letter-spacing: .18em; text-transform: uppercase; }
.profile .tg {
  display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff !important;
  font-weight: 700; font-size: 16px; padding: 15px 30px; border-radius: 14px; margin-top: 4px;
  transition: background .2s, transform .15s, box-shadow .25s; box-shadow: var(--btn-sh);
}
.profile .tg:hover { background: var(--ink-hover); transform: translateY(-1px); box-shadow: var(--btn-sh-h); }

/* Мастерская-хедер листинга (левое выравнивание, как в утверждённом макете) */
.hero { text-align: left; padding: 60px 0 30px; }
.hero .eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.hero h1 { font-family: var(--serif); font-size: clamp(38px,5.2vw,58px); font-weight: 700; line-height: 1.04; letter-spacing: -.02em; }
.hero .tg { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff !important; font-weight: 700; font-size: 16px; padding: 14px 26px; border-radius: 14px; margin-top: 28px; box-shadow: var(--btn-sh); transition: background .2s, transform .15s, box-shadow .25s; }
.hero .tg:hover { background: var(--ink-hover); transform: translateY(-2px); box-shadow: var(--btn-sh-h); }
.hero p { color: var(--text-sub); font-size: 19px; margin: 26px 0 0; max-width: 620px; }

/* ===== Фильтры ===== */
.filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-start; margin: 36px 0 36px; }
.filters button {
  background: var(--bg-card); color: var(--text-sub); border: 1px solid var(--border);
  padding: 9px 18px; border-radius: 999px; cursor: pointer; font-family: var(--sans); font-size: 15px; transition: all .15s;
}
.filters button:hover { border-color: var(--border-strong); color: var(--text); }
.filters button.active { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; box-shadow: 0 2px 8px rgba(217,119,87,.28); }

/* ===== Карточки ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px,1fr)); gap: 24px; padding-bottom: 8px; }
.card {
  position: relative; border-radius: 22px; overflow: hidden; display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--sh);
  transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px);
  box-shadow: var(--sh2);
  border-color: rgba(217,119,87,.35); }
.card .thumb { aspect-ratio: 1200/630; overflow: hidden; background: radial-gradient(130% 130% at 50% 28%, #2a1b10 0%, #1a130d 55%, #14100b 100%); position: relative; }
.card .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,15,11,.35), transparent 45%); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.card:hover .thumb img { transform: scale(1.05); }
.card .body { padding: 24px 26px 26px; }
.card .tag { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.card .tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.card h3 { font-family: var(--serif); font-size: 22px; font-weight: 700; line-height: 1.22; margin: 0 0 10px; color: var(--text); letter-spacing: -.01em; }
.card p { color: var(--text-sub); font-size: 14.5px; line-height: 1.62; margin: 0 0 16px; }
.card .read { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 700; color: var(--accent); }
.card:hover .read svg { transform: translateX(5px); }
.card .read svg { transition: transform .25s; }
.card .meta { color: var(--text-dim); font-size: 13px; margin-top: 14px; }
.meta span + span::before { content: "·"; margin: 0 8px; }

/* Featured (крупная) карточка */
.featured { display: grid; grid-template-columns: 1.15fr 1fr; margin-bottom: 24px; }
.featured .thumb { aspect-ratio: auto; height: 100%; min-height: 340px; }
.featured .thumb::after { background: linear-gradient(to right, transparent 60%, rgba(20,15,11,.28)); }
.featured .body { padding: 40px 42px; display: flex; flex-direction: column; justify-content: center; }
.featured .kick { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px; }
.featured h3 { font-size: 32px; line-height: 1.14; margin-bottom: 14px; }
.featured p { font-size: 16px; margin-bottom: 20px; }
@media (max-width: 760px) { .featured { grid-template-columns: 1fr; } .featured .thumb { aspect-ratio: 1200/630; min-height: 0; } .featured .body { padding: 26px; } .featured h3 { font-size: 25px; } }

/* ===== Промо-карточка практикума ===== */
.promo {
  margin: 40px 0 72px; background: linear-gradient(135deg, #ffffff, #f6f1ea);
  border: 1px solid rgba(217,119,87,.4); border-radius: 24px; padding: 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; box-shadow: var(--sh);
}
.promo .left { flex: 1 1 320px; }
.promo .tag { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.promo h2 { font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1.2; margin-bottom: 10px; }
.promo p { color: var(--text-sub); font-size: 16px; margin-bottom: 0; }
.promo .right { text-align: center; }
.promo .price { font-family: var(--serif); font-size: 46px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.promo .price span { color: var(--accent); }
.promo .old { font-size: 14px; color: var(--text-dim); text-decoration: line-through; margin: 6px 0 16px; }

/* ===== Прогресс чтения ===== */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; background: transparent; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #e58a6b, #d97757); }

/* ===== Хлебные крошки ===== */
.crumbs { font-size: 13px; color: var(--text-dim); margin: 22px 0 4px; }
.crumbs a { color: var(--text-dim); }
.crumbs a:hover { color: var(--accent); }
.crumbs i { margin: 0 8px; opacity: .5; font-style: normal; }

/* ===== Двухколоночная раскладка статьи ===== */
.article-wrap { max-width: 820px; margin: 0 auto; padding: 0 22px; }
.article-wrap article { max-width: 100%; }
.side { display: none; }
.mobile-toc { display: block; }

/* ===== Строка автора ===== */
.author { display: flex; align-items: center; gap: 13px; margin: 0 0 26px; }
.author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: center top; border: 1.5px solid rgba(217,119,87,.5); }
.author .who { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.3; }
.author .when { font-size: 14px; color: var(--text-dim); }
.engage { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; color: var(--text-dim); font-size: 14px; margin: -10px 0 26px; }
.engage span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.engage svg { opacity: .75; }
.badge { display: inline-block; background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(217,119,87,.3); padding: 2px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }

/* ===== Шеринг и фидбэк ===== */
.share { display: flex; gap: 10px; flex-wrap: wrap; }
.share a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-sub); transition: all .15s; box-shadow: var(--sh); }
.share a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.feedback { border-top: 1px solid var(--border); margin-top: 40px; padding-top: 26px; text-align: center; }
.feedback p { color: var(--text-sub); margin-bottom: 14px; }
.feedback .row { display: flex; gap: 12px; justify-content: center; }
.feedback button { background: var(--bg-card); border: 1px solid var(--border); color: var(--text); padding: 10px 20px; border-radius: 12px; cursor: pointer; font-family: var(--sans); font-size: 15px; transition: all .15s; box-shadow: var(--sh); }
.feedback button:hover { border-color: var(--accent); }

/* ===== Статья ===== */
article { padding: 22px 0 24px; }
article h1 { font-family: var(--serif); font-size: 44px; font-weight: 700; line-height: 1.12; letter-spacing: -.02em; margin: 12px 0 18px; }
article h2 { font-family: var(--serif); font-size: 31px; font-weight: 600; line-height: 1.2; margin: 48px 0 16px; letter-spacing: -.01em; }
article h3 { font-size: 22px; font-weight: 700; margin: 32px 0 10px; }
article p, article ul, article ol { margin: 0 0 20px; color: #4a4741; }
article ul, article ol { padding-left: 26px; }
article li { margin-bottom: 9px; }
article strong { font-weight: 700; color: var(--text); }
article blockquote { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 14px 20px; border-radius: 0 10px 10px 0; margin: 0 0 22px; color: var(--text-sub); }
.article-meta { color: var(--text-dim); font-size: 15px; margin-bottom: 6px; }
.lead { font-size: 21px; line-height: 1.6; color: var(--text-sub); margin-bottom: 28px; }

.toc { background: var(--bg-section); border: 1px solid var(--border); border-radius: 14px; padding: 20px 24px; margin: 28px 0 36px; }
.toc strong { display: block; margin-bottom: 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--text-sub); }
.toc a:hover { color: var(--accent); }

.callout { background: var(--bg-card); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; padding: 22px 24px; margin: 0 0 28px; box-shadow: var(--sh); }
.callout strong { display: block; margin-bottom: 10px; color: var(--text); }
.callout ul { margin: 0; }
.callout li:last-child { margin-bottom: 0; }

pre { background: var(--code-bg); color: var(--code-text); border: 1px solid var(--border); border-radius: 12px; padding: 20px; overflow-x: auto; margin: 0 0 24px; font-size: 14.5px; line-height: 1.6; }
code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
:not(pre) > code { background: var(--bg-section); color: var(--accent-hover); padding: 2px 7px; border-radius: 6px; font-size: .9em; }

.table-wrap { overflow-x: auto; margin: 0 0 24px; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { border: 1px solid var(--border); padding: 11px 14px; text-align: left; vertical-align: top; }
th { background: var(--bg-section); font-weight: 700; color: var(--text); }
td { color: #4a4741; }

.faq { margin: 32px 0; }
.faq details { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; color: var(--text); }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--text-sub); }

.cta { background: linear-gradient(135deg, #ffffff, #f6f1ea); border: 1px solid rgba(217,119,87,.45); border-radius: 18px; padding: 36px 30px; margin: 44px 0; text-align: center; box-shadow: var(--sh); }
.cta h3 { font-family: var(--serif); font-size: 26px; font-weight: 700; margin: 0 0 10px; color: var(--text); }
.cta p { color: var(--text-sub); margin: 0 auto 20px; max-width: 460px; }

.related { border-top: 1px solid var(--border); padding: 36px 0 0; margin-top: 44px; }
.related h2 { font-family: var(--serif); font-size: 24px; margin-bottom: 18px; }

.site-footer { border-top: 1px solid var(--border); padding: 34px 20px; text-align: center; color: var(--text-dim); font-size: 14px; }
.site-footer a { color: var(--accent); }

/* Кликабельное имя автора в мете */
.author .who a { color: var(--text); }
.author .who a:hover { color: var(--accent); }

/* Верхний Telegram-CTA */
.tg-cta { display: flex; align-items: center; gap: 16px; background: var(--bg-card); border: 1px solid var(--border); border-left: 4px solid #2aabee; border-radius: 12px; padding: 16px 20px; margin: 0 0 28px; box-shadow: var(--sh); }
.tg-cta svg { flex: 0 0 auto; color: #2aabee; }
.tg-cta .t { flex: 1; }
.tg-cta .t b { color: var(--text); display: block; }
.tg-cta .t span { color: var(--text-sub); font-size: 15px; }
.tg-cta a.mini { flex: 0 0 auto; background: #2aabee; color: #fff !important; font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 9px; white-space: nowrap; }
.tg-cta a.mini:hover { background: #1f97d6; }

/* Prompt-блок (готовый промпт для Claude) — тёмный для контраста кода (по ТЗ) */
.prompt { position: relative; background: #1e1b17; border: 1px solid #33302a; border-radius: 12px; margin: 0 0 24px; overflow: hidden; box-shadow: var(--sh); }
.prompt-copy { position: absolute; top: 7px; right: 10px; display: inline-flex; align-items: center; gap: 6px; background: rgba(217,119,87,.16); color: #e9b79f; border: 1px solid rgba(217,119,87,.4); border-radius: 8px; font: 600 12.5px var(--sans); letter-spacing: 0; text-transform: none; padding: 6px 11px; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .1s; }
.prompt-copy:hover { background: rgba(217,119,87,.28); color: #fff; }
.prompt-copy:active { transform: scale(.96); }
.prompt-copy.done { background: rgba(110,190,130,.22); color: #bfe6c6; border-color: rgba(110,190,130,.45); }
.prompt-copy svg { flex: 0 0 auto; }
.prompt .ph { display: flex; align-items: center; gap: 8px; padding: 11px 16px; background: #16130f; border-bottom: 1px solid #33302a; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.prompt .ph::before { content: "⌘"; font-size: 13px; }
.prompt .pb { padding: 16px 18px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 14px; line-height: 1.6; color: #f0ebe4; white-space: pre-wrap; }

/* Пошаговые шаги */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 24px; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 18px 52px; margin: 0; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); border: 1px solid rgba(217,119,87,.4); color: var(--accent); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.steps > li b { color: var(--text); }

/* Плавающий CTA при скролле */
.float-cta { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 140%); z-index: 80; display: flex; align-items: center; gap: 16px; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border: 1px solid rgba(217,119,87,.5); border-radius: 14px; padding: 12px 14px 12px 20px; box-shadow: 0 16px 50px rgba(31,30,29,.18); transition: transform .35s cubic-bezier(.2,.8,.2,1); max-width: calc(100vw - 32px); }
.float-cta.show { transform: translate(-50%, 0); }
.float-cta .ft { font-size: 14.5px; color: var(--text); line-height: 1.35; }
.float-cta .ft b { color: var(--accent); }
.float-cta a.fbtn { background: var(--ink); color: #fff !important; font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 10px; white-space: nowrap; }
.float-cta a.fbtn:hover { background: var(--ink-hover); }
.float-cta .fx { background: none; border: none; color: var(--text-dim); font-size: 20px; cursor: pointer; line-height: 1; padding: 0 2px; }
.float-cta .fx:hover { color: var(--text); }

/* Нижний блок автора */
.author-bio { display: flex; gap: 20px; align-items: flex-start; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 26px; margin: 40px 0 0; box-shadow: var(--sh); }
.author-bio img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: center top; border: 2px solid rgba(217,119,87,.5); flex: 0 0 auto; }
.author-bio .ab-name { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--text); }
.author-bio .ab-role { color: var(--accent); font-size: 14px; margin: 2px 0 10px; }
.author-bio p { color: var(--text-sub); font-size: 15.5px; margin: 0 0 14px; }
.author-bio .ab-links a { display: inline-block; background: var(--bg-section); border: 1px solid var(--border); color: var(--text-sub); font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 9px; margin: 0 8px 8px 0; }
.author-bio .ab-links a:hover { color: var(--text); border-color: var(--accent); }

/* ===== Анимированные SVG-фигуры в статье ===== */
.fig { margin: 34px 0; background: linear-gradient(180deg, var(--bg-card), var(--bg-card2)); border: 1px solid var(--border); border-radius: 16px; padding: 26px 28px 20px; box-shadow: var(--sh); }
.fig svg { width: 100%; height: auto; display: block; }
.fig figcaption { color: var(--text-dim); font-size: 13px; text-align: center; margin-top: 14px; }
.fig .axis { stroke: var(--border-strong); stroke-width: 1; }
.fig .grid-l { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 5; }
.fig .lbl { fill: var(--text-sub); font: 600 13px var(--sans); }
.fig .lbl-dim { fill: var(--text-dim); font: 500 12px var(--sans); }
.fig .ceil { stroke: var(--text-dim); stroke-width: 1.5; stroke-dasharray: 5 5; opacity: .6; }
/* линии-графики: рисуются по приходе в зону видимости (pathLength=1) */
.fig .line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.fig .line.svc { stroke: var(--text-dim); }
.fig .line.base { stroke: var(--border-strong); }
.fig .line.prod { stroke: var(--accent); stroke-width: 3.5; }
.fig .dot { opacity: 1; }
.fig.in .line { animation: figdraw 1.7s cubic-bezier(.4,0,.2,1); }
.fig.in .line.prod { animation-delay: .5s; }
.fig.in .dot { animation: figfade .5s ease backwards; animation-delay: 1.9s; }
@keyframes figdraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes figfade { from { opacity: 0; } to { opacity: 1; } }
/* поток-связка */
.fig .node rect { fill: var(--bg-section); stroke: var(--border-strong); stroke-width: 1.5; }
.fig .node text { fill: var(--text); font: 700 13px var(--sans); }
.fig .node.accent rect { stroke: var(--accent); fill: rgba(217,119,87,.10); }
.fig .node.accent text { fill: var(--accent); }
.fig .arrow { stroke: var(--border-strong); stroke-width: 2; marker-end: url(#ah); }
.fig .flow-node { opacity: 1; transform: none; }
.fig.in .flow-node { animation: figrise .55s ease backwards; }
.fig .pulse { fill: var(--accent); opacity: 0; }
.fig.in .pulse { animation: figpulse 2.6s ease-in-out infinite; animation-delay: 1.4s; }
@keyframes figrise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes figpulse { 0% { opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; transform: translateX(560px); } }
@media (prefers-reduced-motion: reduce) { .fig .line { stroke-dashoffset: 0; } .fig .dot, .fig .flow-node { opacity: 1; transform: none; } .fig .pulse { display: none; } }

/* Hero-иллюстрация статьи — ТЁМНАЯ обложка (по ТЗ: стартовые изображения тёмные, читаемы на креме) */
.hero-illu { margin: 24px 0 32px; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: radial-gradient(130% 130% at 50% 28%, #2a1b10 0%, #1a130d 55%, #14100b 100%); box-shadow: var(--sh2); }
.hero-illu svg { width: 100%; height: auto; display: block; }
.illu-glow { transform-origin: 600px 300px; animation: illuPulse 4s ease-in-out infinite; }
.illu-rays { transform-origin: 600px 300px; animation: illuRot 60s linear infinite; }
.illu-float { animation: illuFloat 6s ease-in-out infinite; }
.illu-float.b { animation-delay: -2s; } .illu-float.c { animation-delay: -3.5s; } .illu-float.d { animation-delay: -5s; }
@keyframes illuPulse { 0%,100% { opacity:.5; } 50% { opacity:1; } }
@keyframes illuRot { to { transform: rotate(360deg); } }
@keyframes illuFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .illu-glow, .illu-rays, .illu-float { animation: none; } }
/* карточка-каталог с инлайн-иллюстрацией */
.card .thumb svg { width: 100%; height: 100%; display: block; }

/* CTA «два пути» */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 36px 0; }
.path { border: 1px solid var(--border); border-radius: 16px; padding: 24px 24px 22px; background: var(--bg-card); min-width: 0; overflow-wrap: anywhere; box-shadow: var(--sh); }
.path.hl { border-color: var(--accent); background: linear-gradient(180deg, rgba(217,119,87,.08), var(--bg-card)); box-shadow: var(--sh2); }
.path .pn { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; }
.path.hl .pn { color: var(--accent); }
.path h4 { font-family: var(--serif); font-size: 20px; font-weight: 700; margin: 0 0 12px; color: var(--text); }
.path ul { margin: 0 0 18px; padding-left: 20px; color: var(--text-sub); font-size: 15px; }
.path li { margin-bottom: 7px; }
.path .btn { width: 100%; justify-content: center; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .fig { padding: 18px 14px 14px; }
  .profile .name { font-size: 28px; }
  .hero h1 { font-size: 32px; }
  article h1 { font-size: 31px; }
  article h2 { font-size: 25px; }
  .nav a:not(.btn) { display: none; }
  .promo { padding: 28px; flex-direction: column; text-align: center; }
  .promo .price { font-size: 38px; }
  .tg-cta { flex-wrap: wrap; }
  .tg-cta a.mini { margin-left: auto; }
  .author-bio { flex-direction: column; }
  .paths { display: block; }
  .paths .path + .path { margin-top: 16px; }
  .path .btn, .cta .btn { white-space: normal; font-size: 15px; padding: 14px 16px; line-height: 1.3; }
  .table-wrap { -webkit-overflow-scrolling: touch; position: relative; }
  .table-wrap table { font-size: 14px; min-width: 600px; }
  .table-wrap code { white-space: nowrap; }
  th, td { padding: 9px 11px; overflow-wrap: normal; word-break: normal; hyphens: none; }
  pre { font-size: 13px; padding: 14px; }
  pre, pre code { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
  .hero-illu { margin: 16px 0 24px; }
  /* break-word (не anywhere): длинные ссылки/код переносятся, но обычные слова и числа не рвутся по буквам */
  article { overflow-wrap: break-word; }
  .engage { gap: 10px 16px; font-size: 13px; flex-wrap: wrap; margin: -6px 0 22px; }
  .engage span { white-space: nowrap; }
  .engage b { font-variant-numeric: tabular-nums; }
  .float-cta { left: 16px; right: 16px; transform: translateY(140%); bottom: 14px; }
  .float-cta.show { transform: translateY(0); }
  .float-cta .ft { font-size: 13px; }
}

/* Закрытая вкладка (Видео — пока недоступно) */
.navpill a.soon { opacity: .5; cursor: default; pointer-events: none; }
.navpill a.soon::after { content: "🔒"; font-size: 11px; margin-left: 5px; }
