/* SEO Drift — стили сайта. Основа — текущий дизайн seo-drift.ru (тёмный неон cyan → blue),
   развитый в систему компонентов: SITE_PLAN_2026-09.md §3.2. */

:root {
  --bg: #060b14;
  --bg-alt: #0a1220;
  --card: #0c1628;
  --card-hover: #12203a;
  --line: rgba(0, 229, 255, 0.12);
  --line-strong: rgba(0, 229, 255, 0.35);
  --cyan: #00e5ff;
  --blue: #0077ff;
  --violet: #8b5cf6;
  --green: #22c55e;
  --amber: #f59e0b;
  --cyan-soft: rgba(0, 229, 255, 0.1);
  --text: #ffffff;
  --text-read: #e6edf6;          /* текст статей — мягче белого */
  --text-muted: #8b9bb4;         /* 7:1 — для мелкого текста */
  --text-dim: #5b6b85;           /* 3,6:1 — только крупные подписи */
  --gradient: linear-gradient(135deg, #00e5ff 0%, #0077ff 100%);
  --gradient-soft: linear-gradient(135deg, rgba(0,229,255,.15) 0%, rgba(0,119,255,.15) 100%);
  --glow: 0 0 20px rgba(0, 229, 255, 0.35);
  --glow-strong: 0 0 40px rgba(0, 229, 255, 0.45);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --s-xs: .5rem; --s-sm: 1rem; --s-md: 1.5rem; --s-lg: 2.5rem; --s-xl: 4rem; --s-2xl: 6rem;
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-pill: 999px;
  --t: .3s ease;
  --header-h: 66px;
  /* цвета направлений — для меток и карточек */
  --c-linkbuilding: #00e5ff;
  --c-seo: #3b8bff;
  --c-geo: #a78bfa;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.6; font-size: 16px; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 15% 10%, rgba(0,119,255,.15) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(0,229,255,.08) 0%, transparent 50%);
}
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
a { color: var(--cyan); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; padding: 8px 14px; background: var(--card); border-radius: var(--r-sm); }
.skip:focus { left: 8px; }
.muted { color: var(--text-muted); }
.anchor-alias { display: block; height: 0; }

/* ---------- типографика ---------- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; }
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 900; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
.lead { color: var(--text-muted); font-size: clamp(1.05rem, 2vw, 1.2rem); max-width: 62ch; margin-top: var(--s-sm); }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- раскладка ---------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--s-sm); }
.container.narrow { max-width: 820px; }
.block { padding: var(--s-xl) 0 0; }
section.block > .container, .page > .block { position: relative; }
.page, .article-page { padding-top: calc(var(--header-h) + var(--s-md)); padding-bottom: var(--s-xl); }
.page-hero + .page { padding-top: var(--s-md); }
.section-head { margin-bottom: var(--s-md); }
.section-eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: .75rem; font-weight: 600;
  color: var(--cyan); text-transform: uppercase; letter-spacing: .15em; margin-bottom: var(--s-xs);
  padding: 4px 12px; background: var(--cyan-soft); border: 1px solid var(--line); border-radius: var(--r-pill);
}
.section-sub { color: var(--text-muted); font-size: 1.05rem; max-width: 62ch; margin-top: var(--s-xs); }
.block-more { margin-top: var(--s-md); }
.grid { display: grid; gap: var(--s-sm); }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 820px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 14px 26px; min-height: 48px; border-radius: var(--r-pill); font-weight: 700; font-size: .95rem;
  white-space: nowrap; border: 1px solid transparent; cursor: pointer;
  transition: transform var(--t), box-shadow var(--t), background var(--t), border-color var(--t);
}
.btn-sm { padding: 9px 18px; min-height: 40px; font-size: .88rem; }
.btn-primary { background: var(--gradient); color: var(--text); box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--glow-strong); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--cyan-soft); border-color: var(--cyan); color: var(--text); transform: translateY(-2px); }

/* ---------- шапка и меню ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h);
  background: rgba(6, 11, 20, .85); backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: var(--s-md); }
.logo { display: flex; align-items: center; margin-right: auto; }
.brand-text {
  font-size: 1.35rem; font-weight: 900; font-style: italic; font-family: "Segoe UI", system-ui, sans-serif;
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.4px var(--cyan); text-shadow: 0 0 12px rgba(0,229,255,.45);
  transition: text-shadow var(--t);
}
.logo:hover .brand-text { text-shadow: 0 0 18px rgba(0,229,255,.7); }
.nav, .header-cta { display: none; }
.burger {
  width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; border-radius: 8px; border: 1px solid var(--line);
}
.burger span { display: block; width: 22px; height: 2px; background: var(--cyan); transition: transform var(--t), opacity var(--t); }
body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); display: flex; flex-direction: column;
  padding: var(--s-md) var(--s-sm) var(--s-xl); gap: var(--s-sm); overflow-y: auto;
  transform: translateX(100%); transition: transform var(--t); z-index: 99;
}
body:not(.menu-open) .mobile-nav { visibility: hidden; }
body.menu-open .mobile-nav { transform: none; }
body.menu-open { overflow: hidden; }
.m-group { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); padding-bottom: var(--s-xs); }
.m-top { color: var(--text); font-size: 1.3rem; font-weight: 800; padding: 10px 0; }
.m-sub { color: var(--text-muted); padding: 7px 0 7px 12px; }

@media (min-width: 1080px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .burger, .mobile-nav { display: none; }
  .logo { margin-right: 0; }
  .nav { margin: 0 auto; }
  .nav-list { display: flex; gap: 4px; list-style: none; align-items: center; }
  .nav-item { position: relative; }
  .nav-item > a {
    display: block; padding: 8px 12px; color: var(--text-muted); font-size: .92rem; font-weight: 600;
    border-radius: var(--r-sm);
  }
  .nav-item > a:hover, .nav-item.is-active > a { color: var(--text); background: var(--cyan-soft); }
  .has-sub > a::after { content: "▾"; font-size: .7em; margin-left: 6px; opacity: .7; }
  .sub {
    list-style: none; position: absolute; top: 100%; left: 0; min-width: 260px; padding: 8px;
    background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--r-md);
    box-shadow: 0 20px 40px rgba(0,0,0,.45); opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.is-open .sub { opacity: 1; visibility: visible; transform: none; }
  .sub a { display: block; padding: 9px 12px; color: var(--text-muted); border-radius: var(--r-sm); font-size: .92rem; }
  .sub a:hover, .sub a[aria-current] { color: var(--text); background: var(--cyan-soft); }
}

.draft-bar {
  position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 150;
  background: var(--amber); color: #111; font-weight: 700; padding: 6px 14px; border-radius: var(--r-pill); font-size: .85rem;
}

/* ---------- первый экран главной ---------- */
.hero {
  padding-top: calc(var(--header-h) + var(--s-xl)); padding-bottom: var(--s-lg);
  min-height: 92vh; display: flex; align-items: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; top: -10%; right: -30%; width: 80%; height: 80%; z-index: -1;
  background: radial-gradient(circle, rgba(0,229,255,.18) 0%, transparent 60%);
  animation: drift 20s ease-in-out infinite;
}
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-5%, 3%); } }
.hero-grid { display: flex; flex-direction: column-reverse; gap: var(--s-lg); align-items: center; text-align: center; }
.hero-text { max-width: 680px; width: 100%; min-width: 0; }
.hero-tag {
  display: inline-flex; align-items: center; gap: .5rem; padding: 6px 14px; margin-bottom: var(--s-sm);
  background: var(--cyan-soft); border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: .78rem; color: var(--cyan);
}
.hero-tag::before, .status-running::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 10px currentColor; animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.hero-sub { color: var(--text-muted); font-size: 1.05rem; margin: var(--s-xs) 0 var(--s-md); }
.hero-offer { font-size: 1.1rem; line-height: 1.55; margin-bottom: var(--s-lg); max-width: 58ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-sm); align-items: center; margin: var(--s-md) 0; }
.hero-grid .hero-cta { justify-content: center; }
.hero-grid .stats { margin-left: auto; margin-right: auto; }
@media (max-width: 479px) { .hero-cta .btn { width: 100%; } .btn { white-space: normal; text-align: center; } }
.hero-photo {
  position: relative; width: min(260px, 64vw); aspect-ratio: 1; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: var(--gradient-soft); border: 3px solid var(--cyan); box-shadow: var(--glow-strong), inset 0 0 30px rgba(0,229,255,.15);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after {
  content: ""; position: absolute; top: 0; left: -100%; width: 60%; height: 100%; pointer-events: none;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.18), transparent); transform: skewX(-20deg);
  animation: shine 4.5s ease-in-out infinite;
}
@keyframes shine { 0% { left: -100%; } 55%, 100% { left: 200%; } }
@media (min-width: 900px) {
  .hero-grid { flex-direction: row; justify-content: space-between; text-align: left; }
  .hero-grid .hero-cta { justify-content: flex-start; }
  .hero-grid .hero-photo { width: 320px; }
}

/* ---------- первый экран внутренних страниц ---------- */
.page-hero { padding: calc(var(--header-h) + var(--s-md)) 0 var(--s-lg); position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; top: -40%; right: -20%; width: 70%; height: 140%; z-index: -1;
  background: radial-gradient(circle, rgba(0,229,255,.12) 0%, transparent 60%);
}
.page-hero .hero-text { max-width: 820px; margin-top: var(--s-md); }
/* картинка справа от заголовка (услуги, хабы): components/hero-visual.php */
.page-hero.has-visual .hero-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-lg); align-items: center; }
@media (min-width: 980px) { .page-hero.has-visual .hero-split { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 48px; } }
.hero-visual { margin: var(--s-md) 0 0; min-width: 0; }
.hero-visual figcaption { color: var(--text-muted); font-size: .8rem; margin-top: 10px; }
.hv-image a { display: block; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 20px 50px #0009; }
.hv-image img { display: block; width: 100%; height: auto; }
.hv-card { background: linear-gradient(160deg, #0d2233, #0a1624); border: 1px solid #2c5566; border-radius: var(--r-md); padding: 20px 22px; box-shadow: 0 24px 60px #000a, 0 0 0 10px rgba(0,229,255,.04); }
.hv-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.hv-engine { display: inline-flex; align-items: center; gap: 8px; font: 700 .72rem/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--cyan); }
.hv-engine i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.hv-head time { font: .72rem var(--font-mono); color: var(--text-muted); }
.hv-query { font-size: .9rem; color: var(--text); background: rgba(0,229,255,.06); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-bottom: 14px; }
.hv-query span { display: block; font-size: .68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.hv-text { font-size: .92rem; line-height: 1.55; color: var(--text-read); border-left: 2px solid var(--cyan); padding-left: 12px; margin: 0 0 16px; }
.hv-sources { border-top: 1px solid var(--line); padding-top: 12px; }
.hv-label { display: block; font: 700 .68rem var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: 8px; }
.hv-sources ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.hv-sources li { font-size: .78rem; padding: 4px 9px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); color: var(--text-read); }
.hv-sources li.hv-more { border-style: dashed; color: var(--text-muted); }
.hv-table table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.hv-table th, .hv-table td { padding: 7px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.hv-table thead th { font: 700 .66rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.hv-table tbody th { font-weight: 500; color: var(--text-read); }
.hv-table td { color: var(--cyan); font-family: var(--font-mono); text-align: right; white-space: nowrap; }
.hv-table thead th + th { text-align: right; }
.hv-summary { margin-top: 12px; font-size: .82rem; color: var(--text-muted); }
.hv-scheme svg { width: 100%; height: auto; display: block; }
.hv-barlist { list-style: none; display: grid; gap: 9px; }
.hv-barlist li { display: grid; grid-template-columns: minmax(0, 150px) 1fr 34px; gap: 10px; align-items: center; font-size: .82rem; }
.hv-bar-label { color: var(--text-read); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hv-bar-track { height: 10px; border-radius: 5px; background: rgba(0,229,255,.07); overflow: hidden; }
.hv-bar { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #0077ff, #00e5ff); }
.hv-barlist b { font-family: var(--font-mono); color: var(--cyan); text-align: right; }
.hv-code pre { margin: 0; max-height: 340px; overflow: auto; font-size: .76rem; line-height: 1.5; background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.hv-code code { white-space: pre; color: var(--text-read); }
/* визуал внутри текста статьи: [[visual имя]] */
.inline-visual { margin: var(--s-md) 0 var(--s-lg); max-width: 640px; }
.inline-visual figcaption { color: var(--text-muted); font-size: .8rem; margin-top: 10px; }
/* статья: визуал справа от заголовка */
.article-head.has-visual { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-md); align-items: center; }
.article-head.has-visual .hero-visual { margin-top: 0; }
@media (min-width: 980px) { .article-head.has-visual { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 44px; } }
.page-head { margin: var(--s-md) 0 var(--s-lg); max-width: 820px; }
.price-tag {
  font-family: var(--font-mono); font-weight: 700; color: var(--cyan); padding: 10px 18px;
  border: 1px dashed var(--line-strong); border-radius: var(--r-pill);
}

/* ---------- цифры ---------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: var(--s-sm); padding: var(--s-md);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); margin: var(--s-md) 0;
}
.hero-text .stats { max-width: 620px; }
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; }
.stat-value { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 900; color: var(--cyan); line-height: 1.1; }
.stat-label { font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }

/* ---------- карточки ---------- */
.card {
  display: flex; flex-direction: column; gap: .55rem; position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-md);
  color: var(--text); transition: transform var(--t), border-color var(--t), background var(--t);
}
a.card:hover, .tool-card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--card-hover); color: var(--text); }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.card-title { font-size: 1.12rem; font-weight: 800; line-height: 1.3; }
.card-text { color: var(--text-muted); font-size: .95rem; }
.card-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-top: .4rem; font-size: .88rem; }
.card-foot .price { font-family: var(--font-mono); font-weight: 700; color: var(--cyan); }
.card-foot .date { color: var(--text-muted); }
.more { color: var(--cyan); font-weight: 600; font-size: .9rem; margin-left: auto; }
.card-metrics { display: flex; flex-wrap: wrap; gap: 14px; font-size: .92rem; color: var(--text-muted); }
.card-metrics b { color: var(--cyan); font-family: var(--font-mono); font-size: 1.1rem; }
.card-list { list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: .92rem; color: var(--text-muted); }
.card-list li::before { content: "→ "; color: var(--cyan); }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: .4rem; }
.tool-stats { display: flex; flex-wrap: wrap; gap: 14px; color: var(--text-muted); font-size: .92rem; }
.tool-stats b { color: var(--text); }
.tool-featured { border-color: var(--line-strong); background: linear-gradient(160deg, rgba(0,229,255,.08), var(--card) 50%); }
.direction-card { border-top: 3px solid var(--cyan); }
.direction-card.chip-seo { border-top-color: var(--c-seo); }
.direction-card.chip-geo { border-top-color: var(--c-geo); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--r-pill);
  font-size: .74rem; font-weight: 600; color: var(--text-muted); border: 1px solid var(--line); background: rgba(255,255,255,.02);
}
.chip-linkbuilding { color: var(--c-linkbuilding); border-color: rgba(0,229,255,.35); }
.chip-seo { color: var(--c-seo); border-color: rgba(59,139,255,.4); }
.chip-geo { color: var(--c-geo); border-color: rgba(167,139,250,.4); }
.status {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill);
  font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.status-running { color: var(--green); background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.35); }
.status-done { color: var(--cyan); background: var(--cyan-soft); border: 1px solid var(--line-strong); }
.status-planned { color: var(--amber); background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.35); }

/* ---------- фильтры ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s-md); }
.pill {
  padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid var(--line-strong);
  color: var(--text-muted); font-size: .9rem; font-weight: 600;
}
.pill:hover { color: var(--text); }
.pill.is-on { background: var(--gradient); color: var(--text); border-color: transparent; }
.card.is-hidden { display: none; }

/* ---------- хлебные крошки ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--text-muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--text-dim); }
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--cyan); }

/* ---------- текст: режим чтения ---------- */
.prose { max-width: 72ch; color: var(--text-read); font-size: 1.075rem; line-height: 1.75; }
.prose-wide { max-width: 820px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2em; font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--text); }
.prose h3 { margin-top: 1.6em; color: var(--text); }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--cyan); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--cyan); }
.prose strong { color: var(--text); }
.prose blockquote { border-left: 3px solid var(--cyan); padding: .4em 0 .4em 1.1em; color: var(--text-muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose img { border-radius: var(--r-md); border: 1px solid var(--line); }
.prose code { font-family: var(--font-mono); font-size: .9em; background: var(--cyan-soft); padding: 2px 6px; border-radius: 5px; color: var(--cyan); }
.code { position: relative; }
.code pre {
  background: #040810; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1em 1.2em;
  overflow-x: auto; font-size: .88rem; line-height: 1.6;
}
.code pre code { background: none; padding: 0; color: #cfe8ff; }
.code-copy {
  position: absolute; top: 8px; right: 8px; font-size: .75rem; padding: 4px 10px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); color: var(--text-muted); background: var(--card);
}
.code-copy:hover { color: var(--text); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: .7em .9em; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--card); color: var(--text); font-weight: 700; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
a.term { text-decoration-style: dotted; }

/* ---------- статья ---------- */
.article-head { margin: var(--s-md) 0 var(--s-lg); max-width: 820px; }
.article-head h1 { margin-top: var(--s-sm); font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
.article-meta { color: var(--text-muted); font-size: .9rem; margin-top: var(--s-sm); }
.article-body { display: grid; gap: var(--s-lg); }
@media (min-width: 1080px) {
  .has-toc .article-body { grid-template-columns: 250px minmax(0, 1fr); align-items: start; }
  .article-toc { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - 110px); overflow-y: auto; }
}
.toc details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: .9em 1.1em; }
.toc summary { cursor: pointer; font-weight: 700; color: var(--text); }
.toc ol { list-style: none; margin-top: .6em; display: flex; flex-direction: column; gap: .35em; font-size: .92rem; }
.toc a { color: var(--text-muted); }
.toc a:hover, .toc a.is-current { color: var(--cyan); }
.toc-l3 { padding-left: 1em; }
.toc-inline { margin: 1.2em 0; max-width: 520px; }
.definition { max-width: 72ch; font-size: 1.15rem; padding: 1.1em 1.3em; border-radius: var(--r-md); background: var(--gradient-soft); border: 1px solid var(--line-strong); margin-bottom: var(--s-lg); }

/* ---------- выделенные блоки ---------- */
.callout { border-radius: var(--r-md); padding: 1em 1.2em; border: 1px solid var(--line-strong); background: var(--cyan-soft); max-width: 72ch; }
.callout > * + * { margin-top: .5em; }
.callout-title { font-weight: 800; color: var(--text); }
.callout-tip { border-color: rgba(34,197,94,.4); background: rgba(34,197,94,.07); }
.callout-warn { border-color: rgba(245,158,11,.45); background: rgba(245,158,11,.07); }
.callout-result { border-color: var(--line-strong); background: var(--gradient-soft); margin-bottom: var(--s-lg); }
/* цитата эксперта в тексте: заголовок мысли, текст, подпись автора */
.prose .expert-quote { margin: 1.4em 0; max-width: 72ch; border: 1px solid rgba(34,197,94,.35); border-left: 3px solid var(--green); border-radius: 4px var(--r-md) var(--r-md) 4px; padding: 1em 1.2em; background: rgba(34,197,94,.06); }
.prose .expert-quote blockquote { border: 0; padding: 0; margin: 0; color: var(--text); }
.prose .expert-quote strong { display: block; margin-bottom: .35em; font-size: 1.05em; }
.prose .expert-quote figcaption { margin-top: .7em; font-size: .88em; color: var(--text-muted); }
.prose .expert-quote cite { font-style: normal; }

/* ---------- вопросы и ответы ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
/* ответы всегда раскрыты: скрытое в аккордеоне нейросети не извлекают */
.faq-question { padding: 1em 1.2em .45em; }
.faq-question h3 { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.4; }
.faq-question h3::before { content: "?"; color: var(--cyan); margin-right: .5em; }
.faq-answer { padding: 0 1.2em 1.1em; color: var(--text-read); }
.faq-answer > * + * { margin-top: .6em; }

/* ---------- вкладки ---------- */
.tabs { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.tab-list { display: flex; overflow-x: auto; background: var(--card); border-bottom: 1px solid var(--line); }
.tab-list button { padding: 12px 18px; white-space: nowrap; color: var(--text-muted); font-weight: 600; border-bottom: 2px solid transparent; }
.tab-list button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--cyan); }
.tab-panel { padding: 1.1em 1.2em; }
.tab-panel > * + * { margin-top: .8em; }

/* ---------- блок следующего шага, автор ---------- */
.cta-block {
  display: flex; flex-direction: column; gap: var(--s-sm); justify-content: space-between; align-items: flex-start;
  margin: var(--s-lg) 0; padding: var(--s-md) var(--s-lg); border-radius: var(--r-lg);
  background: var(--gradient-soft); border: 1px solid var(--line-strong);
}
@media (min-width: 760px) { .cta-block { flex-direction: row; align-items: center; } }
.cta-title { font-size: 1.25rem; font-weight: 800; }
.cta-text { color: var(--text-muted); max-width: 60ch; }
.author { display: flex; gap: var(--s-sm); align-items: flex-start; margin-top: var(--s-lg); padding: var(--s-md); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); max-width: 820px; }
.author-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--cyan); flex-shrink: 0; }
.author-name { font-weight: 800; font-size: 1.05rem; }
.author-name a { color: var(--text); }
.author-role { color: var(--cyan); font-size: .9rem; }
.author-bio { color: var(--text-muted); font-size: .92rem; margin-top: 4px; }
.author-links { font-size: .9rem; margin-top: 6px; }

/* ---------- канал, контакты ---------- */
.channel-card {
  display: flex; flex-direction: column; gap: var(--s-md); padding: var(--s-lg); border-radius: var(--r-lg);
  background: linear-gradient(140deg, rgba(0,229,255,.1), var(--card) 60%); border: 1px solid var(--line-strong);
}
@media (min-width: 900px) { .channel-card { flex-direction: row; align-items: center; justify-content: space-between; } }
.contact-grid { display: grid; gap: var(--s-lg); padding-bottom: var(--s-xl); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.3fr; } }
.contact-list { list-style: none; margin-top: var(--s-md); display: flex; flex-direction: column; gap: 10px; }
.contact-list li { display: flex; gap: 12px; }
.contact-list span { color: var(--text-muted); min-width: 80px; }
.trust-list { list-style: none; display: flex; flex-direction: column; gap: 8px; color: var(--text-muted); }
.trust-list b { color: var(--text); }
.list-rows { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.list-rows > li { padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
.list-rows .date { display: block; font-family: var(--font-mono); font-size: .8rem; color: var(--cyan); }
.list-rows ul { margin: 8px 0 0 1.2em; color: var(--text-muted); }

/* ---------- обо мне ---------- */
.about-head { display: grid; gap: var(--s-lg); margin-top: var(--s-md); align-items: start; }
@media (min-width: 900px) { .about-head { grid-template-columns: 260px 1fr; } }
.about-bio { margin-top: var(--s-sm); }
.about-head .hero-photo { width: min(260px, 64vw); }
@media (max-width: 899px) { .about-head .hero-photo { margin: 0 auto; } }
.timeline { display: flex; flex-direction: column; gap: var(--s-sm); padding-left: var(--s-md); border-left: 2px solid var(--line-strong); }
.timeline-item { position: relative; }
.timeline-item::before {
  content: ""; position: absolute; left: calc(var(--s-md) * -1 - 7px); top: 8px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--cyan); box-shadow: 0 0 8px var(--cyan);
}
.timeline-year { font-family: var(--font-mono); font-size: .85rem; color: var(--cyan); font-weight: 600; }
.timeline-event { color: var(--text-muted); }

/* ---------- форма ---------- */
.lead-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-md); display: flex; flex-direction: column; gap: var(--s-sm); }
.form-grid { display: grid; gap: var(--s-sm); }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.lead-form label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; color: var(--text-muted); }
.lead-form input[type=text], .lead-form select, .lead-form textarea {
  font: inherit; color: var(--text); background: var(--bg-alt); border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); padding: 11px 13px; width: 100%;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-soft); }
.lead-form .consent { flex-direction: row; align-items: flex-start; gap: 10px; }
.lead-form .consent input { margin-top: 4px; accent-color: var(--cyan); }
.lead-form .btn { align-self: flex-start; }
.wl-options { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 16px; }
.wl-options legend { font-size: .88rem; color: var(--text-muted); margin-bottom: 6px; }
.lead-form .wl-options label { flex-direction: row; align-items: flex-start; gap: 10px; color: var(--text); }
.wl-options input { margin-top: 4px; accent-color: var(--cyan); flex: none; }
.form-note { font-size: .88rem; color: var(--text-muted); }
.form-msg { padding: 10px 14px; border-radius: var(--r-sm); font-weight: 600; }
.form-msg.ok { background: rgba(34,197,94,.12); color: var(--green); }
.form-msg.err { background: rgba(245,158,11,.12); color: var(--amber); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-block { max-width: 900px; }

/* ---------- видео, график ---------- */
.video { max-width: 820px; }
.video-play, .video iframe {
  width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-md); display: block;
}
.video-play { background: #000 center / cover no-repeat; position: relative; border: 1px solid var(--line); }
.video-icon {
  position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gradient); box-shadow: var(--glow-strong); font-size: 1.6rem;
}
.video figcaption, .chart figcaption { color: var(--text-muted); font-size: .88rem; margin-top: 8px; }
.chart { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1em; max-width: 820px; }
.chart figcaption { margin: 0 0 .6em; color: var(--text); font-weight: 700; font-size: 1rem; }
.chart svg { width: 100%; height: auto; }
.chart-grid { stroke: rgba(0,229,255,.1); stroke-width: 1; }
.chart-axis { fill: var(--text-muted); font-size: 12px; font-family: var(--font-mono); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .85rem; color: var(--text-muted); margin-top: 8px; }
.chart-legend i { display: inline-block; width: 12px; height: 3px; margin-right: 6px; vertical-align: middle; }

/* ---------- метод, 404 ---------- */
.method-teaser { max-width: 900px; }
.method-teaser .btn { margin-top: var(--s-md); }
.page-404 { text-align: center; }
.page-404 .lead, .page-404 .grid { margin-left: auto; margin-right: auto; }
.page-404 .grid { margin-top: var(--s-lg); text-align: left; }
.big-code { font-family: var(--font-mono); font-size: clamp(4rem, 14vw, 8rem); font-weight: 900; line-height: 1; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- подвал ---------- */
.footer { margin-top: var(--s-xl); padding: var(--s-xl) 0 var(--s-md); border-top: 1px solid var(--line); background: var(--bg-alt); }
.footer-grid { display: grid; gap: var(--s-lg); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } }
.footer-about p { color: var(--text-muted); font-size: .92rem; margin: var(--s-sm) 0; max-width: 46ch; }
.profiles { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: .92rem; }
.profiles span { color: var(--text-muted); }
.footer-title { font-weight: 800; margin-bottom: 10px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--text-muted); font-size: .92rem; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: var(--s-lg); padding-top: var(--s-md); border-top: 1px solid var(--line); color: var(--text-muted); font-size: .85rem; }
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal a { color: var(--text-muted); }

/* ---------- cookie ---------- */
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 120; max-width: 560px; margin: 0 auto;
  display: flex; gap: 14px; align-items: center; padding: 12px 16px; font-size: .88rem; color: var(--text-muted);
  background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.cookie[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- блоки страниц ---------- */
.blocks > .blk { padding-top: var(--s-xl); }
.blocks > .blk:first-child { padding-top: var(--s-md); }
.article-body .blocks > .blk, .page .blocks > .blk-text + .blk-text { padding-top: var(--s-md); }
.blk-text .prose, .blk .prose { max-width: 72ch; }
.tpl-direction-hub .blk-text .prose, .tpl-service .blk-text .prose, .tpl-product .blk-text .prose { max-width: 820px; }
.blk-callout .callout, .blk-faq .faq { margin-top: 0; }
.blk-figure { max-width: 820px; }
.blk-figure img { border-radius: var(--r-md); border: 1px solid var(--line); }
.blk-figure figcaption { color: var(--text-muted); font-size: .88rem; margin-top: 8px; }
.method-name { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.blk-contact .contact-grid { padding-bottom: 0; }
.tpl-home .blocks { padding-bottom: var(--s-xl); }

/* ---------- query fan-out: короткий ответ, факты, вопросы по теме, источники ---------- */
.answer-box { max-width: 820px; margin: 0 0 var(--s-lg); padding: 1.1em 1.3em; border-radius: var(--r-lg); border: 1px solid var(--line-strong); background: var(--gradient-soft); }
.answer-label { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: .4em; }
.answer-label + * { margin-bottom: .9em; }
.answer-text { font-size: 1.1rem; line-height: 1.65; color: var(--text); }
.answer-text > * + * { margin-top: .6em; }
.answer-list { list-style: none; display: flex; flex-direction: column; gap: .45em; }
.answer-list li { padding-left: 1.4em; position: relative; color: var(--text-read); }
.answer-list li::before { content: "→"; position: absolute; left: 0; color: var(--cyan); }
.facts, .fanout, .sources, .faq-section, .term-part { max-width: 820px; margin-top: var(--s-lg); }
.facts h2, .fanout h2, .sources h2, .faq-section h2, .term-part h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-bottom: .6em; }
.facts table { width: 100%; border-collapse: collapse; }
.facts th, .facts td { padding: .7em .9em; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.facts th { color: var(--text-muted); font-weight: 600; width: 45%; background: var(--card); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.fanout-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.fanout-list li { padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
.fanout-list a { font-weight: 600; }
.sources ol { padding-left: 1.3em; color: var(--text-muted); display: flex; flex-direction: column; gap: 6px; }
.article-main { min-width: 0; }
.definition .aliases { font-size: .92rem; color: var(--text-muted); margin-top: .5em; }
.term-part .prose { max-width: 72ch; }

/* ---------- услуга ---------- */
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.check-list, .cross-list { list-style: none; display: flex; flex-direction: column; gap: 8px; color: var(--text-read); }
.check-list li, .cross-list li { padding-left: 1.6em; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.cross-list li::before { content: "✕"; position: absolute; left: 0; color: var(--amber); font-weight: 800; }
.check-list.cols { display: grid; gap: 10px 28px; }
@media (min-width: 760px) { .check-list.cols { grid-template-columns: 1fr 1fr; } }
.fit-yes { border-color: rgba(34,197,94,.35); }
.fit-no { border-color: rgba(245,158,11,.35); }
.steps { list-style: none; display: flex; flex-direction: column; gap: 14px; max-width: 860px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.step-n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 800; color: var(--cyan); border: 1px solid var(--line-strong); background: var(--cyan-soft); }
.step-title { font-weight: 800; font-size: 1.05rem; }
.step-time { font-family: var(--font-mono); font-size: .8rem; font-weight: 600; color: var(--cyan); margin-left: 8px; }
.step-text { color: var(--text-muted); margin-top: 2px; }
.package-price { font-family: var(--font-mono); font-size: 1.3rem; font-weight: 800; color: var(--cyan); }
.package .btn { align-self: flex-start; margin-top: auto; }
.muted-tag { color: var(--text-muted); border-style: solid; font-weight: 600; }
.page > .answer-box { margin-top: var(--s-md); }

/* ---------- глоссарий по алфавиту ---------- */
.az { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s-md); position: sticky; top: var(--header-h); background: var(--bg); padding: 10px 0; z-index: 5; }
.az a { min-width: 36px; text-align: center; padding: 6px 10px; border-radius: var(--r-sm); border: 1px solid var(--line); color: var(--text); font-weight: 700; }
.az a:hover { border-color: var(--cyan); color: var(--cyan); }
.az-group { margin-top: var(--s-md); }
.az-group h2 { font-family: var(--font-mono); color: var(--cyan); font-size: 1.6rem; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 10px; }
.terms { display: grid; gap: 10px; }
@media (min-width: 900px) { .terms { grid-template-columns: 1fr 1fr; } }
.terms > div { padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
.terms dt a { font-weight: 800; font-size: 1.05rem; }
.terms dd { color: var(--text-muted); font-size: .93rem; margin-top: 4px; }

.lead-form .consent span { min-width: 0; overflow-wrap: anywhere; }

/* ---------- статья блога и кейс ---------- */
.learn-box { max-width: 820px; margin: 0 0 var(--s-lg); padding: 1em 1.3em; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); }
.learn-box .check-list { margin-top: .4em; }
.art-part { max-width: 820px; margin-top: var(--s-lg); }
.art-part h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-bottom: .6em; }
.article-main > .prose + .art-part, .article-main > .art-part:first-child { margin-top: var(--s-md); }
.opinion { display: grid; grid-template-columns: 56px 1fr; gap: 6px 14px; padding: 1.1em 1.3em; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line-strong); }
.opinion img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--cyan); grid-row: span 2; }
.opinion blockquote { color: var(--text-read); font-size: 1.05rem; line-height: 1.65; }
.opinion blockquote > * + * { margin-top: .6em; }
.opinion figcaption { color: var(--text-muted); font-size: .9rem; }
.opinion.client { grid-template-columns: 1fr; }
.art-nav { display: grid; gap: var(--s-sm); margin-top: var(--s-lg); max-width: 1100px; }
@media (min-width: 760px) { .art-nav { grid-template-columns: repeat(3, 1fr); } }
.timecodes { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.tc { font-family: var(--font-mono); color: var(--cyan); margin-right: 8px; }
.guests { color: var(--text-muted); margin: var(--s-sm) 0; }
.passport { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; max-width: 1000px; margin: 0 0 var(--s-lg); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--line); }
.passport > div { background: var(--card); padding: 12px 14px; }
.passport dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.passport dd { font-weight: 700; margin-top: 2px; }
.results { width: 100%; }
.results td.before { color: var(--text-muted); }
.results td.after { color: var(--cyan); font-weight: 700; }

/* ---------- исследование и инструкция ---------- */
.passport-sm { grid-template-columns: repeat(auto-fit, minmax(150px, max-content)); }
.passport dd a { color: var(--cyan); }
.article-main .chart { margin: var(--s-sm) 0 var(--s-md); }
.dot-list { list-style: none; display: flex; flex-direction: column; gap: 8px; padding: 0; }
.dot-list li { position: relative; padding-left: 20px; color: var(--text-read); }
.dot-list li::before { content: ''; position: absolute; left: 4px; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }

/* ---------- продукт и хаб ---------- */
.feature p { color: var(--text-muted); margin-top: 6px; }
.gallery { display: grid; gap: var(--s-sm); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; border-radius: var(--r-md); border: 1px solid var(--line); display: block; }
.gallery figcaption { color: var(--text-muted); font-size: .9rem; margin-top: 6px; }
.hub-prices table, .prod-compare table { width: 100%; }
td.nowrap { white-space: nowrap; }
.page > .answer-box, .blocks .answer-box { max-width: 900px; }

/* ---------- обо мне ---------- */
.jump-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s-md); }
.jump-nav .chip { text-decoration: none; }
.jump-nav .chip:hover { border-color: var(--cyan); color: var(--cyan); }
.page > .facts, .page > .fanout, .page > .sources { max-width: 900px; margin-top: var(--s-lg); }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- списки и глоссарий ---------- */
.list-count { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--text-muted); margin-top: var(--s-sm); }
.list-count b { color: var(--text); }
.topics { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: var(--s-md) 0; }
.list-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: var(--s-md) 0; }
.list-tools .filters { margin-bottom: 0; }
.list-search { flex: 1 1 260px; max-width: 420px; padding: 10px 14px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--card); color: var(--text); font: inherit; }
.list-search:focus { outline: none; border-color: var(--cyan); }
.terms > div.is-hidden { display: none; }
.card-pinned { border-color: var(--cyan); }
.card-sub { color: var(--text-muted); font-size: .9rem; }
.page > .answer-box { margin-top: var(--s-md); }

/* ---------- просмотр скринов (site.js): открыть по клику, закрыть — ×, Esc, фон ---------- */
.lb { position: fixed; inset: 0; z-index: 300; background: #02060d; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 64px 70px; }
.lb[hidden] { display: none; }
.lb img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r-sm); box-shadow: 0 20px 60px #000; }
.lb-cap { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: var(--text-read); font-size: 14px; padding: 0 70px; }
.lb-cnt { position: absolute; left: 18px; top: 16px; color: var(--text-muted); font: 600 13px var(--font-mono); }
.lb button { position: absolute; border: 1px solid #3d5a6e; background: var(--card); color: var(--text); border-radius: 50%; width: 46px; height: 46px; font-size: 22px; line-height: 1; display: grid; place-items: center; }
.lb button:hover { border-color: var(--cyan); color: var(--cyan); }
.lb button[hidden] { display: none; }
.lb-x { top: 12px; right: 14px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }
.prose .shot a { cursor: zoom-in; }
.prose .shot figcaption { font-size: .85rem; color: var(--text-muted); margin-top: 6px; }
@media (max-width: 700px) {
  .lb { padding: 56px 8px 80px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-cap { bottom: 24px; padding: 0 64px; font-size: 13px; }
}
