/* ========================================
   BASSHIM — Блог
   Лёгкая статическая вёрстка без фреймворков: быстрая загрузка и
   чистый HTML для поисковиков и ИИ-агентов.
   Светлая тема по умолчанию, тёмная — html[data-theme="dark"].
   ======================================== */

:root,
[data-theme="light"] {
    color-scheme: light;
    --bg: #F6F9FC;
    --surface: #FFFFFF;
    --surface-2: #EEF3F9;
    --surface-3: #E2EAF3;
    --border: #DCE5EF;
    --border-strong: #C5D3E3;
    --text: #0B1B33;
    --text-2: #334155;
    --muted: #64748B;
    --accent: #0284C7;
    --accent-2: #2563EB;
    --accent-soft: #E0F2FE;
    --accent-ink: #075985;
    --water: #38BDF8;
    --water-soft: #BAE6FD;
    --ok: #059669;
    --ok-soft: #D1FAE5;
    --warn: #B45309;
    --warn-soft: #FEF3C7;
    --danger: #DC2626;
    --danger-soft: #FEE2E2;
    --violet: #7C3AED;
    --violet-soft: #EDE9FE;
    --code-bg: #F1F5F9;
    --btn-from: #0891B2;
    --btn-to: #2563EB;
    --shadow-sm: 0 1px 2px rgba(11, 27, 51, 0.05);
    --shadow: 0 1px 2px rgba(11, 27, 51, 0.04), 0 8px 24px rgba(11, 27, 51, 0.06);
    --shadow-lg: 0 2px 4px rgba(11, 27, 51, 0.04), 0 20px 48px rgba(11, 27, 51, 0.10);
    --header-bg: rgba(246, 249, 252, 0.86);
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #060D1B;
    --surface: #0B172A;
    --surface-2: #10203A;
    --surface-3: #16294A;
    --border: #1C3150;
    --border-strong: #27426A;
    --text: #E8EEF6;
    --text-2: #C3CFDD;
    --muted: #8A9BB0;
    --accent: #22D3EE;
    --accent-2: #60A5FA;
    --accent-soft: rgba(34, 211, 238, 0.12);
    --accent-ink: #A5F3FC;
    --water: #0EA5E9;
    --water-soft: rgba(14, 165, 233, 0.25);
    --ok: #34D399;
    --ok-soft: rgba(52, 211, 153, 0.12);
    --warn: #FBBF24;
    --warn-soft: rgba(251, 191, 36, 0.12);
    --danger: #F87171;
    --danger-soft: rgba(248, 113, 113, 0.12);
    --violet: #A78BFA;
    --violet-soft: rgba(167, 139, 250, 0.14);
    --code-bg: #0E1C33;
    --btn-from: #00B8E6;
    --btn-to: #3B82F6;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 20px 48px rgba(0, 0, 0, 0.35);
    --header-bg: rgba(6, 13, 27, 0.85);
}

/* ---- База ---- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
::selection { background: var(--accent-soft); color: var(--text); }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 16px; top: -48px; z-index: 100;
    background: var(--surface); color: var(--text); padding: 8px 14px; border-radius: 8px;
    box-shadow: var(--shadow); transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* ---- Шапка и подвал — общие для всего сайта: /chrome.css ---- */
.logo__mark {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, var(--btn-from), var(--btn-to));
    display: grid; place-items: center; color: #fff;
}
.logo__mark svg { width: 20px; height: 20px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border-radius: 12px; border: 1px solid transparent;
    font: 600 14.5px/1.2 'Inter', sans-serif; text-decoration: none; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn--primary {
    background: linear-gradient(135deg, var(--btn-from), var(--btn-to));
    color: #fff; box-shadow: 0 4px 16px rgba(2, 132, 199, 0.25);
}
.btn--primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(2, 132, 199, 0.32); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { color: var(--accent); border-color: var(--accent); }
.btn--lg { padding: 14px 24px; font-size: 16px; border-radius: 14px; }

/* Прогресс чтения */
.read-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 60;
    background: linear-gradient(90deg, var(--btn-from), var(--btn-to));
    transition: width 0.1s linear;
}

/* ---- Хлебные крошки ---- */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: 14px; color: var(--muted); }
.breadcrumbs li + li::before { content: '›'; margin-right: 6px; color: var(--border-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

/* ---- Главная блога ---- */
.blog-hero { padding: 56px 0 28px; }
.blog-hero__eyebrow, .eyebrow {
    display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 'Space Grotesk', sans-serif;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
.blog-hero h1 { font-size: clamp(34px, 5vw, 56px); margin: 14px 0 14px; max-width: 900px; }
.blog-hero p { font-size: 19px; color: var(--text-2); max-width: 760px; margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 8px; padding: 0; list-style: none; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
    border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
    font-size: 14px; font-weight: 500; text-decoration: none; transition: all 0.2s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-current="page"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip__count { color: var(--muted); font-weight: 400; }
.chip[aria-current="page"] .chip__count { color: inherit; opacity: 0.7; }

.section-title { font-size: 26px; margin: 48px 0 20px; }

.featured {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; margin: 28px 0 8px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 24px; overflow: hidden;
    box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: box-shadow 0.25s, transform 0.25s;
}
.featured:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); color: inherit; }
.featured__img { aspect-ratio: 16 / 10; background: var(--surface-2); }
.featured__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured__body { padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.featured__body h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 0; }
.featured__body p { color: var(--text-2); margin: 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
    display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
    border-radius: 20px; overflow: hidden; text-decoration: none; color: inherit;
    box-shadow: var(--shadow-sm); transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--border-strong); color: inherit; }
.card__img { aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.card:hover .card__img img { transform: scale(1.04); }
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__title { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 600; line-height: 1.25; margin: 0; color: var(--text); }
.card__excerpt { font-size: 15px; color: var(--text-2); margin: 0; flex: 1; }
.card__meta, .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13.5px; color: var(--muted); }
.cat-badge {
    display: inline-block; align-self: flex-start; padding: 4px 10px; border-radius: 999px;
    background: var(--accent-soft); color: var(--accent-ink); font-size: 12.5px; font-weight: 600; text-decoration: none;
}
a.cat-badge:hover { color: var(--accent-ink); filter: brightness(0.97); }

@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
    .featured { grid-template-columns: 1fr; }
    .featured__body { padding: 22px; }
}
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* Инструменты */
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tool {
    display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px;
    background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.tool:hover { border-color: var(--accent); box-shadow: var(--shadow); color: inherit; }
.tool__icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.tool__icon svg { width: 22px; height: 22px; }
.tool b { display: block; font-size: 15.5px; color: var(--text); }
.tool span { font-size: 13.5px; color: var(--muted); }

/* ---- Статья ---- */
.post-hero { padding: 36px 0 8px; max-width: 860px; }
.post-hero h1 { font-size: clamp(30px, 4.4vw, 48px); margin: 16px 0 16px; }
.post-lead { font-size: 20px; line-height: 1.55; color: var(--text-2); margin: 0 0 20px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 14px; color: var(--muted); }
.post-meta__item { display: inline-flex; align-items: center; gap: 6px; }
.post-meta svg { width: 16px; height: 16px; }

.post-cover { margin: 28px 0 8px; border-radius: 24px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); }
.post-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.post-cover figcaption { padding: 10px 16px; font-size: 13px; color: var(--muted); background: var(--surface); }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; align-items: start; margin-top: 32px; }
.post-layout > .prose { grid-column: 1; grid-row: 1; }
.post-aside { grid-column: 2; grid-row: 1; position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow: auto; padding-bottom: 12px; }

.toc-title { font: 600 12.5px/1 'Space Grotesk', sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.toc li a {
    display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent;
    color: var(--muted); text-decoration: none; font-size: 14px; line-height: 1.4; transition: color 0.2s, border-color 0.2s;
}
.toc li a:hover { color: var(--text); }
.toc li a.is-active { color: var(--accent); border-left-color: var(--accent); font-weight: 500; }

.aside-cta { margin-top: 24px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.aside-cta b { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 16px; margin-bottom: 6px; }
.aside-cta p { font-size: 13.5px; color: var(--text-2); margin: 0 0 12px; }
.aside-cta .btn { width: 100%; }

.toc-mobile { display: none; margin: 0 0 28px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.toc-mobile summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: '+'; color: var(--accent); font-size: 20px; line-height: 1; }
.toc-mobile[open] summary::after { content: '−'; }
.toc-mobile .toc ol { margin: 0 18px 16px; }

@media (max-width: 1080px) {
    .post-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .post-aside { display: none; }
    .toc-mobile { display: block; }
}

/* ---- Типографика статьи ---- */
.prose { max-width: 760px; font-size: 18px; line-height: 1.75; color: var(--text-2); }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose > p + p { margin-top: 1em; }
.prose h2 { font-size: clamp(25px, 2.8vw, 32px); margin: 2.2em 0 0.6em; scroll-margin-top: 100px; }
.prose h3 { font-size: 22px; margin: 1.8em 0 0.5em; scroll-margin-top: 100px; }
.prose h4 { font-size: 18px; margin: 1.5em 0 0.4em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0; }
.prose strong, .prose b { color: var(--text); font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 1em 0 0; }
.prose li { margin: 0.35em 0; }
.prose li::marker { color: var(--accent); }
.prose blockquote {
    margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent);
    font-size: 19px; color: var(--text); font-style: italic;
}
.prose code, .prose kbd {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em;
    background: var(--code-bg); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; color: var(--text);
}
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.5em 0; }
.prose sub, .prose sup { font-size: 0.7em; line-height: 0; }

.heading-anchor {
    margin-left: 8px; color: var(--border-strong); text-decoration: none; font-weight: 400; opacity: 0;
    transition: opacity 0.2s;
}
.prose h2:hover .heading-anchor, .prose h3:hover .heading-anchor { opacity: 1; }
.heading-anchor::before { content: '#'; }
.heading-anchor:hover { color: var(--accent); }

/* Коротко о главном */
.keypoints {
    padding: 22px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
    box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.keypoints::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(var(--btn-from), var(--btn-to)); }
.keypoints__title { font: 600 13px/1 'Space Grotesk', sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.prose .keypoints ul { margin: 0; padding-left: 1.2em; font-size: 16.5px; line-height: 1.6; }

/* Врезки */
.callout {
    display: grid; grid-template-columns: 28px 1fr; gap: 4px 12px; padding: 18px 20px; border-radius: 16px;
    background: var(--accent-soft); border: 1px solid transparent; font-size: 16.5px; line-height: 1.6; color: var(--text);
}
.callout::before {
    content: 'i'; grid-row: 1 / span 9; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
    background: var(--accent); color: #fff; font: 700 14px/1 'Space Grotesk', sans-serif; margin-top: 1px;
}
.callout > * { grid-column: 2; margin: 0; }
.callout > * + * { margin-top: 0.5em; }
.callout__title { font-weight: 700; font-family: 'Space Grotesk', sans-serif; }
.callout--tip { background: var(--ok-soft); }
.callout--tip::before { content: '✓'; background: var(--ok); }
.callout--warn { background: var(--warn-soft); }
.callout--warn::before { content: '!'; background: var(--warn); }
.callout--danger { background: var(--danger-soft); }
.callout--danger::before { content: '!'; background: var(--danger); }
.callout--note { background: var(--violet-soft); }
.callout--note::before { content: '★'; background: var(--violet); font-size: 12px; }
.prose .callout ul, .prose .callout ol { margin-top: 0.4em; }

/* «Простыми словами» — пояснение сложного места без терминов */
.callout--simple { background: var(--surface); border: 1px dashed var(--border-strong); }
.callout--simple::before { content: '≈'; background: var(--accent-2); font-size: 17px; }
.callout--simple .callout__title { color: var(--accent-2); }

/* Иллюстрации в фирменном стиле */
.figure--art { margin: 2.2em 0; }
.figure--art img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); background: var(--surface-2); }
.figure--art.figure--square img { aspect-ratio: 1 / 1; max-width: 520px; margin: 0 auto; }
.figure--art figcaption { text-align: center; }

/* Формулы */
.formula {
    margin: 1.6em 0; padding: 22px 24px; border-radius: 18px; background: var(--surface);
    border: 1px solid var(--border); box-shadow: var(--shadow-sm); text-align: center;
}
.formula__expr {
    font-family: 'Cambria Math', 'STIX Two Math', 'Times New Roman', serif; font-size: 24px; color: var(--text);
    line-height: 1.5; overflow-x: auto; white-space: nowrap; padding: 4px 0;
}
.formula__expr var { font-style: italic; }
.formula__expr .op { margin: 0 0.25em; color: var(--muted); }
.frac { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; margin: 0 0.2em; }
.frac > span:first-child { border-bottom: 1.5px solid currentColor; padding: 0 0.3em 0.05em; }
.frac > span:last-child { padding: 0.05em 0.3em 0; }
.formula__legend {
    margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); text-align: left;
    font-size: 15px; line-height: 1.6; color: var(--text-2);
}
.formula__legend dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; }
.formula__legend dt { font-family: 'Cambria Math', 'Times New Roman', serif; font-style: italic; color: var(--text); font-size: 17px; }
.formula__legend dd { margin: 0; }
.formula__example { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); font-size: 15px; text-align: left; color: var(--text-2); }
math { font-size: 1.15em; }

/* Таблицы */
.table-wrap {
    margin: 1.6em 0; overflow-x: auto; -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm);
}
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; min-width: 520px; }
.prose caption { caption-side: top; text-align: left; padding: 14px 18px 0; font-size: 14px; color: var(--muted); font-weight: 600; }
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.prose thead th { background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 14px; white-space: nowrap; }
.prose tbody tr:last-child td, .prose tbody tr:last-child th { border-bottom: 0; }
.prose tbody tr:hover { background: var(--surface-2); }
.prose td.num, .prose th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prose tr.is-accent td { background: var(--accent-soft); }

/* Иллюстрации */
.figure { margin: 2em 0; }
.figure__box {
    padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border);
    box-shadow: var(--shadow-sm); overflow-x: auto;
}
.figure__box svg { display: block; margin: 0 auto; width: 100%; height: auto; min-width: 480px; }
.figure img { display: block; width: 100%; border-radius: 18px; }
.figure figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; line-height: 1.5; }

/* Цвета для инлайн-SVG (меняются вместе с темой) */
.svg-text { fill: var(--text); font-family: 'Inter', sans-serif; }
.svg-text-2 { fill: var(--text-2); font-family: 'Inter', sans-serif; }
.svg-muted { fill: var(--muted); font-family: 'Inter', sans-serif; }
.svg-line { stroke: var(--border-strong); fill: none; }
.svg-stroke { stroke: var(--text-2); fill: none; }
.svg-accent { fill: var(--accent); }
.svg-accent-stroke { stroke: var(--accent); fill: none; }
.svg-accent2 { fill: var(--accent-2); }
.svg-water { fill: var(--water); }
.svg-water-soft { fill: var(--water-soft); }
.svg-surface { fill: var(--surface); }
.svg-surface-2 { fill: var(--surface-2); }
.svg-surface-3 { fill: var(--surface-3); }
.svg-border { stroke: var(--border-strong); }
.svg-ok { fill: var(--ok); }
.svg-ok-soft { fill: var(--ok-soft); }
.svg-warn { fill: var(--warn); }
.svg-warn-soft { fill: var(--warn-soft); }
.svg-danger { fill: var(--danger); }
.svg-danger-soft { fill: var(--danger-soft); }
.svg-violet { fill: var(--violet); }
.svg-violet-soft { fill: var(--violet-soft); }

/* Анимации для схем — «живые» иллюстрации вместо тяжёлых GIF */
.anim-flow { stroke-dasharray: 8 8; animation: anim-flow 1.2s linear infinite; }
.anim-flow-slow { stroke-dasharray: 6 10; animation: anim-flow 2.4s linear infinite; }
@keyframes anim-flow { to { stroke-dashoffset: -32; } }
.anim-pulse { animation: anim-pulse 2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes anim-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.55; transform: scale(0.92); } }
.anim-bubble { animation: anim-bubble 3s ease-in infinite; transform-box: fill-box; }
@keyframes anim-bubble { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 0.9; } 100% { transform: translateY(-60px); opacity: 0; } }
.anim-spin { animation: anim-spin 6s linear infinite; transform-origin: center; transform-box: fill-box; }
@keyframes anim-spin { to { transform: rotate(360deg); } }
.anim-wave { animation: anim-wave 4s ease-in-out infinite; }
@keyframes anim-wave { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-12px); } }
.anim-fade { animation: anim-fade 3s ease-in-out infinite; }
@keyframes anim-fade { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
.anim-delay-1 { animation-delay: 0.5s; } .anim-delay-2 { animation-delay: 1s; } .anim-delay-3 { animation-delay: 1.5s; } .anim-delay-4 { animation-delay: 2s; }

/* Шаги */
.steps { list-style: none; counter-reset: step; padding: 0 !important; margin: 1.6em 0 0 !important; }
.steps > li {
    counter-increment: step; position: relative; padding: 0 0 22px 58px; margin: 0;
}
.steps > li::before {
    content: counter(step); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 12px;
    display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
    font: 700 16px/1 'Space Grotesk', sans-serif;
}
.steps > li::after { content: ''; position: absolute; left: 18px; top: 42px; bottom: 4px; width: 2px; background: var(--border); }
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps > li > b:first-child, .steps > li > strong:first-child { display: block; color: var(--text); font-family: 'Space Grotesk', sans-serif; font-size: 18.5px; margin-bottom: 2px; }

/* Цифры-факты */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 1.6em 0; }
.stat { padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.stat b { display: block; font: 700 28px/1.1 'Space Grotesk', sans-serif; color: var(--accent); margin-bottom: 6px; }
.stat span { display: block; font-size: 14px; line-height: 1.45; color: var(--text-2); }

/* Плюсы и минусы */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 1.6em 0; }
.pros-cons > div { padding: 18px 20px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.pros-cons h4 { margin: 0 0 8px !important; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.pros-cons .pros h4 { color: var(--ok); }
.pros-cons .cons h4 { color: var(--danger); }
.prose .pros-cons ul { margin: 0; padding-left: 1.1em; font-size: 16px; line-height: 1.55; }
@media (max-width: 640px) { .pros-cons { grid-template-columns: 1fr; } }

/* Сетка карточек внутри статьи */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 1.6em 0; }
.grid-cards > div { padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); font-size: 15.5px; line-height: 1.55; }
.grid-cards h4 { margin: 0 0 6px !important; font-size: 17px; }
.grid-cards p { margin: 0; }

/* Таймлайн */
.timeline { position: relative; margin: 1.6em 0; padding-left: 26px; border-left: 2px solid var(--border); }
.timeline > div { position: relative; padding: 0 0 20px; }
.timeline > div::before {
    content: ''; position: absolute; left: -33px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
    background: var(--surface); border: 3px solid var(--accent);
}
.timeline time, .timeline .tl-label { display: block; font: 600 13px/1.3 'Space Grotesk', sans-serif; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.timeline h4 { margin: 4px 0 4px !important; font-size: 17px; }
.timeline p { margin: 0; font-size: 16px; }

/* FAQ */
.faq details {
    border: 1px solid var(--border); border-radius: 14px; background: var(--surface); margin-top: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.faq details[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.faq summary {
    cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; position: relative;
    font: 600 17px/1.4 'Space Grotesk', sans-serif; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
    width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
    background: var(--accent-soft); color: var(--accent); font-size: 18px;
}
.faq details[open] summary::after { content: '−'; }
.faq details > div { padding: 0 20px 18px; font-size: 16.5px; line-height: 1.65; }
.faq details > div > * + * { margin-top: 0.7em; }

/* Источники */
.sources { font-size: 15px; line-height: 1.55; }
.sources ol { padding-left: 1.3em; }
.sources li { margin: 0.45em 0; color: var(--text-2); }
.sources a { word-break: break-word; }

/* Об авторе */
.author-box {
    display: flex; gap: 16px; align-items: flex-start; margin-top: 3em !important; padding: 22px; border-radius: 18px;
    background: var(--surface); border: 1px solid var(--border);
}
.author-box__mark { flex-shrink: 0; }
.author-box b { color: var(--text); font-family: 'Space Grotesk', sans-serif; font-size: 17px; }
.author-box p { margin: 6px 0 0; font-size: 15px; line-height: 1.6; }

/* Поделиться */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 1.6em !important; font-size: 14px; color: var(--muted); }
.share a, .share button {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: 500 13.5px/1 'Inter', sans-serif;
    text-decoration: none; cursor: pointer;
}
.share a:hover, .share button:hover { border-color: var(--accent); color: var(--accent); }

/* ---- Блок заявки ---- */
.lead-block {
    margin: 64px 0 0; padding: 40px; border-radius: 28px; position: relative; overflow: hidden;
    background: linear-gradient(135deg, #0B2A4A 0%, #0B1B33 60%, #13214A 100%); color: #E8EEF6;
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center;
}
.lead-block::before {
    content: ''; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.35), transparent 70%);
}
.lead-block > * { position: relative; }
.lead-block h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); margin: 10px 0 12px; }
.lead-block p { color: #C3CFDD; margin: 0; font-size: 16.5px; }
.lead-block .eyebrow { color: #67E8F9; }
.lead-block ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15.5px; color: #DCE6F2; }
.lead-block li::before { content: '✓'; color: #34D399; margin-right: 8px; font-weight: 700; }
.lead-form { display: grid; gap: 12px; padding: 24px; border-radius: 20px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
.lead-form label { display: grid; gap: 6px; font-size: 13.5px; color: #C3CFDD; font-weight: 500; }
.lead-form input, .lead-form textarea {
    width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(6, 13, 27, 0.5); color: #fff; font: 400 16px/1.4 'Inter', sans-serif;
}
.lead-form input::placeholder, .lead-form textarea::placeholder { color: #8A9BB0; }
.lead-form input:focus, .lead-form textarea:focus { outline: none; border-color: #22D3EE; box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2); }
.lead-form .btn { width: 100%; }
.lead-block .lead-form__note { font-size: 12.5px; line-height: 1.5; color: #8A9BB0; text-align: center; }
.lead-form__note a { color: #A5F3FC; }
.lead-block .lead-form__status { font-size: 14.5px; text-align: center; min-height: 0; }
.lead-block .lead-form__status:empty { display: none; }
.lead-block .lead-form__status.is-ok { color: #34D399; }
.lead-block .lead-form__status.is-err { color: #FCA5A5; }
.lead-form .hp { position: absolute; left: -9999px; }
@media (max-width: 860px) { .lead-block { grid-template-columns: 1fr; padding: 28px 22px; } }

/* ---- Каталог товаров ---- */
.product-crumbs { padding: 28px 0 18px; }
.product-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 48px; align-items: stretch; }
.product-hero__media {
    position: relative; min-height: 380px; border-radius: 24px; overflow: hidden;
    background: var(--surface-2); box-shadow: var(--shadow);
}
.product-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.product-hero__info { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 8px 0; }
.product-hero h1 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; margin: 0; }
.product-hero__lead { font-size: 18px; line-height: 1.55; color: var(--text-2); margin: 0; }
.price-box {
    padding: 22px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.price-box__value { font: 700 clamp(30px, 3.4vw, 38px)/1.1 'Space Grotesk', sans-serif; color: var(--accent-ink); }
.price-box__value small { font: 500 15px/1 'Inter', sans-serif; color: var(--muted); margin-left: 6px; }
.price-box__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.price-box__actions .btn { flex: 1 1 auto; white-space: nowrap; }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; font-size: 15px; line-height: 1.4; color: var(--text-2); }
.trust-list li { position: relative; padding-left: 28px; }
.trust-list li::before {
    content: ''; position: absolute; left: 0; top: 0; width: 19px; height: 19px; border-radius: 50%;
    background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; margin-top: 56px; }
.product-layout > .prose > :first-child { margin-top: 0; }
.product-aside { position: sticky; top: 104px; }
@media (max-height: 740px) { .product-aside { position: static; } }
.spec-card { padding: 22px 22px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.spec-card__title { font-size: 19px; margin: 0 0 14px; }
.spec-list { margin: 0; display: grid; }
.spec-list > div { padding: 11px 0; border-top: 1px solid var(--border); }
.spec-list > div:first-child { border-top: 0; padding-top: 0; }
.spec-list dt { font-size: 13px; color: var(--muted); margin: 0 0 3px; }
.spec-list dd { margin: 0; font-size: 15px; line-height: 1.45; color: var(--text); font-weight: 500; }
.spec-card__cta { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); display: grid; gap: 12px; }
.spec-card__price { font: 700 24px/1.1 'Space Grotesk', sans-serif; color: var(--accent-ink); }
.spec-card__price small { font: 500 13px/1 'Inter', sans-serif; color: var(--muted); margin-left: 4px; }
.spec-card__cta .btn { width: 100%; }

.product-card__price { font: 700 19px/1.2 'Space Grotesk', sans-serif; color: var(--accent-ink); }
.product-card__price small { font: 500 13px/1 'Inter', sans-serif; color: var(--muted); }

@media (max-width: 1080px) {
    .product-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 40px; }
    .product-aside { position: static; order: -1; }
    .spec-list { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); column-gap: 24px; }
    .spec-list > div:first-child { padding-top: 11px; border-top: 1px solid var(--border); }
    .spec-card__cta { display: none; }
}
@media (max-width: 1080px) {
    .product-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .product-hero__media { order: 2; min-height: 0; aspect-ratio: 16 / 9; }
    .product-hero__info { padding: 0; gap: 18px; }
}
@media (max-width: 560px) {
    .product-crumbs { padding: 18px 0 12px; }
    .price-box { padding: 18px; }
    .price-box__actions .btn { flex-basis: 100%; }
    .trust-list { grid-template-columns: 1fr; }
}

/* Похожие статьи */
.related { margin: 64px 0 0; }
.related h2 { font-size: 28px; margin: 0 0 20px; }

/* ---- Подвал ---- */
/* ---- Виджеты (калькуляторы, графики) ---- */
.widget {
    margin: 2em 0; padding: 0; border-radius: 22px; background: var(--surface); border: 1px solid var(--border);
    box-shadow: var(--shadow); overflow: hidden; font-size: 16px; line-height: 1.5; color: var(--text-2);
}
.widget__head {
    display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.widget__icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.widget__icon svg { width: 20px; height: 20px; }
.widget__title { font: 600 17px/1.3 'Space Grotesk', sans-serif; color: var(--text); margin: 0; }
.widget__badge { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.widget__body { padding: 20px 22px 22px; }
.widget__fallback { padding: 18px 22px; font-size: 15px; }
.widget.is-ready .widget__fallback { display: none; }

.w-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 14px 16px; align-items: start; }
.w-field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.w-field > span { font-size: 13.5px; font-weight: 600; color: var(--text); }
.w-field small { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.w-input, .w-select {
    width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border-strong);
    background: var(--bg); color: var(--text); font: 500 16px/1.3 'Inter', sans-serif; font-variant-numeric: tabular-nums;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.w-select { min-width: 0; text-overflow: ellipsis; }
.w-input:focus, .w-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.w-input-group { display: flex; align-items: stretch; }
.w-input-group .w-input { border-radius: 12px 0 0 12px; min-width: 0; }
.w-input-group .w-unit {
    display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--border-strong); border-left: 0;
    border-radius: 0 12px 12px 0; background: var(--surface-2); color: var(--muted); font-size: 13.5px; white-space: nowrap;
}
.w-range { width: 100%; accent-color: var(--accent); }
.w-range-row { display: flex; align-items: center; gap: 12px; }
.w-range-row output { min-width: 64px; text-align: right; font: 700 18px/1 'Space Grotesk', sans-serif; color: var(--text); font-variant-numeric: tabular-nums; }

.w-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.w-seg button {
    border: 0; background: transparent; padding: 8px 12px; border-radius: 9px; cursor: pointer;
    font: 500 14px/1.2 'Inter', sans-serif; color: var(--text-2);
}
.w-seg button[aria-pressed="true"] { background: var(--surface); color: var(--accent); box-shadow: var(--shadow-sm); font-weight: 600; }

.w-result {
    margin-top: 18px; padding: 18px 20px; border-radius: 16px; background: var(--accent-soft);
    display: grid; gap: 6px;
}
.w-result__label { font-size: 13.5px; color: var(--accent-ink); font-weight: 600; }
.w-result__value { font: 700 clamp(28px, 4vw, 38px)/1.1 'Space Grotesk', sans-serif; color: var(--text); font-variant-numeric: tabular-nums; }
.w-result__value small { font-size: 0.5em; font-weight: 600; color: var(--text-2); margin-left: 4px; }
.w-result__note { font-size: 14px; color: var(--text-2); }
.w-result.is-ok { background: var(--ok-soft); }
.w-result.is-ok .w-result__label { color: var(--ok); }
.w-result.is-warn { background: var(--warn-soft); }
.w-result.is-warn .w-result__label { color: var(--warn); }
.w-result.is-danger { background: var(--danger-soft); }
.w-result.is-danger .w-result__label { color: var(--danger); }

.w-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 14px; }
.w-kpi { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.w-kpi b { display: block; font: 700 21px/1.15 'Space Grotesk', sans-serif; color: var(--text); font-variant-numeric: tabular-nums; }
.w-kpi span { font-size: 12.5px; color: var(--muted); line-height: 1.35; display: block; margin-top: 2px; }

.w-chart { margin-top: 16px; }
.w-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.w-chart .axis line, .w-chart .axis path { stroke: var(--border-strong); }
.w-chart .grid line { stroke: var(--border); stroke-dasharray: 3 4; }
.w-chart text { fill: var(--muted); font: 12px 'Inter', sans-serif; }
.w-chart .label { fill: var(--text-2); font-weight: 600; }
.w-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 13.5px; color: var(--text-2); }
.w-legend i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }

.w-formula { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.w-formula code { font-size: 12.5px; }

.w-gauge { position: relative; height: 14px; border-radius: 999px; margin: 22px 0 8px; background: linear-gradient(90deg, #3B82F6 0%, #22D3EE 35%, #10B981 50%, #F59E0B 65%, #EF4444 100%); }
.w-gauge__mark { position: absolute; top: -8px; width: 4px; height: 30px; border-radius: 2px; background: var(--text); transform: translateX(-2px); transition: left 0.3s; }
.w-gauge__labels { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }

.w-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14.5px; }
.w-table th, .w-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); text-align: left; }
.w-table th { font-size: 12.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.w-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.w-table { min-width: 560px; }
.w-table .w-input, .w-table .w-select { padding: 7px 9px; font-size: 15px; min-width: 76px; }
.w-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.w-status.ok { background: var(--ok-soft); color: var(--ok); }
.w-status.warn { background: var(--warn-soft); color: var(--warn); }
.w-status.bad { background: var(--danger-soft); color: var(--danger); }

.w-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; cursor: pointer;
    border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: 500 14px/1.2 'Inter', sans-serif;
}
.w-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Чек-лист */
.checklist-widget { list-style: none !important; padding: 0 !important; }
.checklist-widget li { margin: 0; }
.checklist-widget label {
    display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; cursor: pointer;
    transition: background 0.2s; font-size: 16px; line-height: 1.5;
}
.checklist-widget label:hover { background: var(--surface-2); }
.checklist-widget input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ok); flex-shrink: 0; }
.checklist-widget input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--border-strong); }
.w-progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 4px 0 12px; }
.w-progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ok), #34D399); transition: width 0.3s; }

/* Диагностика / вкладки */
.w-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.w-tabs button {
    padding: 9px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
    font: 500 14.5px/1.2 'Inter', sans-serif; color: var(--text-2); cursor: pointer; transition: all 0.2s;
}
.w-tabs button:hover { border-color: var(--accent); color: var(--accent); }
.w-tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.w-panel > * + * { margin-top: 0.7em; }
.w-panel h4 { margin: 0 0 4px; font-size: 17px; color: var(--text); }
.w-panel ul, .w-panel ol { margin: 0.4em 0 0; padding-left: 1.2em; }

/* Тест */
.quiz-q { padding: 16px 0; border-bottom: 1px dashed var(--border); }
.quiz-q:last-of-type { border-bottom: 0; }
.quiz-q > p:first-child { font-weight: 600; color: var(--text); margin: 0 0 10px; }
.quiz-opts { display: grid; gap: 8px; }
.quiz-opts button {
    text-align: left; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border-strong);
    background: var(--surface); color: var(--text-2); font: 400 15.5px/1.4 'Inter', sans-serif; cursor: pointer;
}
.quiz-opts button:hover:not([disabled]) { border-color: var(--accent); }
.quiz-opts button.is-right { background: var(--ok-soft); border-color: var(--ok); color: var(--text); }
.quiz-opts button.is-wrong { background: var(--danger-soft); border-color: var(--danger); color: var(--text); }
.quiz-explain { margin-top: 10px !important; font-size: 15px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); }
.quiz-score { margin-top: 14px; font-weight: 600; color: var(--text); }

/* Схема циркуляции */
.circ-svg .node { cursor: pointer; }
.circ-svg .node rect { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1.5; transition: fill 0.2s, stroke 0.2s; }
.circ-svg .node:hover rect, .circ-svg .node.is-active rect { fill: var(--accent-soft); stroke: var(--accent); }
.circ-svg .node text { fill: var(--text); font: 600 13px 'Inter', sans-serif; }
.circ-svg .pipe { stroke: var(--water); stroke-width: 4; fill: none; stroke-linecap: round; }
.circ-svg .pipe-bg { stroke: var(--water-soft); stroke-width: 10; fill: none; stroke-linecap: round; }
.circ-info { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); min-height: 70px; }
.circ-info b { color: var(--text); }

@media (max-width: 560px) {
    .widget__head { padding: 14px 16px; }
    .widget__body { padding: 16px; }
    .w-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .prose { font-size: 17px; }
    .post-lead { font-size: 18px; }
}
@media (max-width: 380px) { .w-grid { grid-template-columns: 1fr; } }

/* ---- Доступность и печать ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
    .site-header, .site-footer, .post-aside, .toc-mobile, .lead-block, .related, .share, .read-progress, .widget { display: none !important; }
    body { background: #fff; color: #000; font-size: 12pt; }
    .prose { max-width: none; color: #000; }
    a { color: #000; }
}
