/* Блог AVAT в новом дизайне: список статей (/blog/) и страница статьи. Общие части (шапка, подвал, вопросы, окно заявки)
   из /shared-assets/avat-service.css и avat-service-v2.css. Здесь только своё. Цвета фонов, панелей и линий строго из брендбука:
   Paper, White, Mist, Ink, Muted, Line, Depth, Steel, Oxide. Внутри макетов продуктов (окно браузера, калькуляторы) цвета остаются как были. */

.nowrap { white-space: nowrap; }
.bl-main { padding-bottom: 0; }
.bl-main .mono { font-family: var(--mono, ui-monospace, Menlo, monospace); }

/* ───────────── Список статей ───────────── */
.bl-hero { padding: clamp(120px, 11vw, 168px) 0 clamp(32px, 4vw, 56px); background: var(--paper); }
.bl-label { margin: 0 0 20px; font: 500 13px/1.3 var(--mono, ui-monospace, monospace); letter-spacing: .1em; text-transform: uppercase; color: var(--link); }
.bl-hero h1 { margin: 0; font: 400 clamp(38px, 4.6vw, 68px)/1.06 var(--head); font-variation-settings: var(--heading-variation); letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.bl-hero .bl-lead { margin: 24px 0 0; max-width: none; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--muted); }

.bl-list { padding: 0 0 var(--space-section, 96px); background: var(--paper); }
.bl-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.bl-filter .blog-filter-pill { min-height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font: 500 14px/1 var(--body); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.bl-filter .blog-filter-pill:hover { border-color: var(--ink); }
.bl-filter .blog-filter-pill.is-active { background: var(--depth); border-color: var(--depth); color: var(--depth-text); }
.bl-filter .blog-filter-pill:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.blog-filter-empty { margin: 0 0 32px; color: var(--muted); }
.bl-grid-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.blog-card { display: flex; flex-direction: column; min-width: 0; padding: clamp(22px, 2.2vw, 30px); border: 1px solid var(--line); border-radius: var(--radius-panel, 4px); background: var(--white); color: var(--ink); text-decoration: none; transition: border-color .2s; }
.blog-card[hidden] { display: none; }
.blog-card:hover { border-color: var(--link); }
.blog-card:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.blog-card-meta { margin: 0 0 14px; font: 500 12px/1.4 var(--mono, ui-monospace, monospace); letter-spacing: .08em; color: var(--muted); }
.blog-card-meta .bl-new { color: var(--oxide); }
.blog-card-title { margin: 0 0 14px; font: 400 clamp(20px, 1.6vw, 24px)/1.25 var(--head); font-variation-settings: var(--heading-variation); letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.blog-card-desc { margin: 0 0 22px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.blog-card-link { margin-top: auto; color: var(--link); font: 500 15px/1.3 var(--body); }
@media (max-width: 1100px) { .bl-grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .bl-grid-cards { grid-template-columns: minmax(0, 1fr); }
  /* ряд тем в одну строку с прокруткой, чтобы не занимать пол-экрана */
  .bl-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .bl-filter::-webkit-scrollbar { display: none; }
  .bl-filter .blog-filter-pill { flex: none; }
}

/* ───────────── Страница статьи ───────────── */
.bl-article { padding: clamp(112px, 10vw, 152px) 0 var(--space-section, 96px); background: var(--paper); }
.breadcrumbs { margin: 0 0 28px; font: 400 14px/1.5 var(--body); color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--link); text-decoration: underline; }
.article-header { margin: 0 0 clamp(32px, 4vw, 56px); }
.article-meta { margin: 0 0 20px; font: 500 13px/1.4 var(--mono, ui-monospace, monospace); letter-spacing: .08em; color: var(--link); }
.article-h1 { margin: 0 0 24px; font: 400 clamp(34px, 4.2vw, 62px)/1.08 var(--head); font-variation-settings: var(--heading-variation); letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.article-lead { margin: 0 0 28px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.65; color: var(--ink); }

/* текст слева, содержание статьи справа и прилипает при прокрутке */
.bl-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.bl-text { min-width: 0; }
.bl-side { position: sticky; top: 104px; }
.article-toc { padding: 22px 22px 18px; border: 1px solid var(--line); border-radius: var(--radius-panel, 4px); background: var(--white); }
.article-toc-label { margin: 0 0 14px; font: 500 12px/1.3 var(--mono, ui-monospace, monospace); letter-spacing: .1em; color: var(--muted); }
.article-toc-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.article-toc-list a { display: block; text-align: left; hyphens: manual; padding: 8px 0 8px 12px; border-left: 2px solid var(--mist); color: var(--muted); font-size: 14px; line-height: 1.4; text-decoration: none; transition: color .2s, border-color .2s; }
.article-toc-list a:hover { color: var(--ink); }
.article-toc-list a.is-active { border-left-color: var(--oxide); color: var(--ink); font-weight: 500; }
@media (max-width: 1000px) {
  .bl-grid { grid-template-columns: minmax(0, 1fr); }
  .bl-side { position: static; order: -1; }
}

/* выноски: «Коротко», «Главное в одном предложении», «Полная версия» */
.article-callout { display: flex; gap: 16px; margin: 0 0 28px; padding: clamp(18px, 2vw, 26px); border: 1px solid var(--line); border-radius: var(--radius-panel, 4px); background: var(--white); }
.article-callout.is-mint { border-color: var(--mist); background: var(--mist); }
.article-callout.is-key { margin-bottom: 8px; border-color: var(--depth); background: var(--depth); color: var(--depth-text); }
.article-callout-icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--depth); color: var(--depth-text); font: 600 14px/1 var(--body); }
.article-callout.is-key .article-callout-icon { background: var(--depth-text); color: var(--depth); }
.article-callout-body { min-width: 0; }
.article-callout-title { margin: 0 0 6px; font: 600 16px/1.3 var(--body); color: var(--ink); }
.article-callout.is-key .article-callout-title { color: var(--depth-text); }
.article-callout p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink); }
.article-callout.is-key p { color: var(--depth-text); }
.article-callout a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.article-callout.is-key a { color: var(--depth-text); }

/* цифры статьи */
.article-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 32px; }
.article-stat { padding: 22px; border-radius: var(--radius-panel, 4px); background: var(--mist); }
.article-stat-num { margin: 0 0 8px; font: 400 clamp(28px, 2.6vw, 38px)/1.05 var(--head); font-variation-settings: var(--heading-variation); letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.article-stat-label { font-size: 14px; line-height: 1.45; color: var(--muted); }
@media (max-width: 680px) { .article-stats { grid-template-columns: minmax(0, 1fr); } }

/* основной текст */
.article-body { font-size: 18px; line-height: 1.72; color: var(--ink); }
.article-body > :first-child { margin-top: 0; }
.article-body p, .article-body li { text-align: justify; hyphens: auto; overflow-wrap: break-word; }
.article-body p { margin: 0 0 20px; }
.article-body h2 { margin: clamp(44px, 5vw, 64px) 0 20px; scroll-margin-top: 104px; font: 400 clamp(26px, 2.5vw, 38px)/1.18 var(--head); font-variation-settings: var(--heading-variation); letter-spacing: -.025em; color: var(--ink); text-wrap: balance; }
.article-body h3 { margin: 32px 0 12px; font: 400 clamp(20px, 1.7vw, 25px)/1.25 var(--head); font-variation-settings: var(--heading-variation); letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.article-body strong, .article-body b { font-weight: 600; }
.article-body a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--ink); }
.article-body :is(ul, ol) { margin: 0 0 24px; padding-left: 0; list-style: none; counter-reset: bl; }
.article-body :is(ul, ol) > li { position: relative; margin: 0 0 10px; padding-left: 26px; }
.article-body ul > li::before { content: ""; position: absolute; left: 3px; top: .72em; width: 8px; height: 8px; border-radius: 2px; background: var(--oxide); }
.article-body ol > li { counter-increment: bl; }
.article-body ol > li::before { content: counter(bl) "."; position: absolute; left: 0; top: 0; font: 500 15px/1.9 var(--mono, ui-monospace, monospace); color: var(--oxide); }
/* пункты со своей разметкой маркера не дублируем */
.article-body li[style*="position: relative"]::before { display: none; }
.article-body blockquote, .article-body .case-quote { margin: 28px 0; padding: 6px 0 6px 22px; border-left: 3px solid var(--oxide); color: var(--ink); font-size: 19px; line-height: 1.6; }
.article-body code { padding: 2px 6px; border-radius: 3px; background: var(--mist); font: 500 .88em/1.4 var(--mono, ui-monospace, monospace); }
.article-body pre { margin: 0 0 24px; padding: 18px 20px; overflow-x: auto; border-radius: var(--radius-panel, 4px); background: var(--depth); color: var(--depth-text); font: 400 14px/1.65 var(--mono, ui-monospace, monospace); }
.article-body pre code { padding: 0; background: none; color: inherit; }
.article-body img { max-width: 100%; height: auto; }
.article-body figure { margin: 28px 0; }
.article-shot { text-align: center; }
.article-shot img { width: 100%; max-width: 380px; border: 1px solid var(--line); border-radius: 12px; }
.article-shot figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* таблицы: на телефоне прокручиваются внутри своего блока */
.table-scroll { max-width: 100%; margin: 28px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-panel, 4px); background: var(--white); }
.article-table { width: 100%; min-width: 560px; margin: 0; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.article-table th { padding: 14px 16px; background: var(--mist); text-align: left; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.article-table td { padding: 13px 16px; text-align: left; vertical-align: top; color: var(--ink); border-bottom: 1px solid var(--line); }
.article-table tr:last-child td { border-bottom: 0; }
.article-table td p, .article-table td li { text-align: left; hyphens: manual; }

/* карточки внутри статьи: форматы, цены, этапы, итоги */
.article-grid-2, .article-pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; margin: 24px 0 32px; }
.article-format-card, .pricing-mini, .timeline-day, .article-summary-item { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-panel, 4px); background: var(--white); }
.article-format-icon { margin-bottom: 10px; font-size: 22px; line-height: 1; }
.article-format-title, .timeline-day-title { margin: 0 0 8px; font: 600 16px/1.3 var(--body); color: var(--ink); }
.article-format-text, .timeline-day-text { font-size: 15px; line-height: 1.55; color: var(--muted); }
.pricing-mini-label { margin: 0 0 8px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.pricing-mini-price { font: 400 clamp(22px, 2vw, 28px)/1.15 var(--head); font-variation-settings: var(--heading-variation); letter-spacing: -.02em; color: var(--ink); }
.article-timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0 32px; }
.timeline-day-num { margin: 0 0 8px; font: 500 12px/1 var(--mono, ui-monospace, monospace); letter-spacing: .14em; color: var(--oxide); }
.article-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0 20px; }
.article-summary-item { display: flex; gap: 14px; background: var(--mist); border-color: var(--mist); }
.article-summary-num { flex: none; font: 500 14px/1.6 var(--mono, ui-monospace, monospace); color: var(--oxide); }
.article-summary-text { font-size: 15px; line-height: 1.6; color: var(--ink); text-align: left; }
@media (max-width: 760px) { .article-timeline, .article-summary { grid-template-columns: minmax(0, 1fr); } }

/* «Подходит / Не подходит» */
.article-fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0 32px; }
.article-fit-col { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-panel, 4px); background: var(--white); }
.article-fit-col.is-no { background: var(--mist); border-color: var(--mist); }
.article-fit-head { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.article-fit-icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font: 700 14px/1 var(--body); }
.is-yes .article-fit-icon { background: var(--depth); color: var(--depth-text); }
.is-no .article-fit-icon { background: var(--oxide); color: var(--paper); }
.article-fit-title { font: 600 17px/1.3 var(--body); color: var(--ink); }
.article-body .article-fit-list { margin: 0; }
.article-body .article-fit-list li { margin: 0 0 8px; padding-left: 20px; font-size: 16px; line-height: 1.55; text-align: left; hyphens: manual; }
.article-body .is-yes .article-fit-list li::before { background: var(--depth); }
.article-body .is-no .article-fit-list li::before { background: var(--oxide); }
@media (max-width: 760px) { .article-fit { grid-template-columns: minmax(0, 1fr); } }

/* вопросы внутри статьи */
.article-body details, .article-faq-item { margin: 0 0 10px; padding: 0 20px; border: 1px solid var(--line); border-radius: var(--radius-panel, 4px); background: var(--white); }
.article-body details summary, .article-faq-item summary { position: relative; display: block; padding: 16px 32px 16px 0; font-weight: 600; font-size: 17px; line-height: 1.4; color: var(--ink); cursor: pointer; list-style: none; }
.article-body details summary::-webkit-details-marker, .article-faq-item summary::-webkit-details-marker { display: none; }
.article-body details summary::after, .article-faq-item summary::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--muted); }
.article-body details[open] summary::after, .article-faq-item[open] summary::after { content: "−"; }
.article-body details > :not(summary) { padding-bottom: 6px; }
.article-faq { display: grid; gap: 10px; margin: 8px 0; }
.article-faq-item { margin: 0; }

/* призыв, поделиться, автор, связанные статьи */
.article-cta { margin: clamp(40px, 5vw, 64px) 0 32px; padding: clamp(28px, 3.4vw, 44px); border-radius: var(--radius-panel, 4px); background: var(--depth); color: var(--depth-text); }
.article-cta h3 { margin: 0 0 12px; font: 400 clamp(24px, 2.4vw, 34px)/1.15 var(--head); font-variation-settings: var(--heading-variation); letter-spacing: -.02em; color: var(--depth-text); }
.article-cta p { margin: 0 0 24px; max-width: none; color: var(--depth-text); font-size: 17px; line-height: 1.6; text-align: left; }
.bl-cta-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--depth-text); border-radius: var(--radius-button, 2px); background: var(--depth-text); color: var(--depth); font: 500 15px/1 var(--body); text-decoration: none; transition: background .2s, color .2s; }
.bl-cta-btn:hover { background: transparent; color: var(--depth-text); }
.bl-cta-btn:focus-visible { outline: 2px solid var(--ice, #d5e7ee); outline-offset: 3px; }

.article-share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 28px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.article-share-label { margin-right: 8px; font: 500 12px/1 var(--mono, ui-monospace, monospace); letter-spacing: .1em; color: var(--muted); }
.article-share-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius-button, 2px); background: var(--white); color: var(--ink); font: 500 14px/1 var(--body); text-decoration: none; cursor: pointer; transition: border-color .2s; }
.article-share-btn:hover { border-color: var(--ink); }
.article-share-btn:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.article-share-btn.is-copied { border-color: var(--depth); background: var(--depth); color: var(--depth-text); }
.article-author { display: flex; align-items: center; gap: 16px; margin: 0 0 40px; }
.article-author-avatar { flex: none; width: 56px; height: 56px; overflow: hidden; border-radius: 50%; background: var(--mist); }
.article-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.article-author-name { font: 600 17px/1.3 var(--body); color: var(--ink); }
.article-author-role { margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.article-author-role a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.article-related { margin: 0 0 32px; }
.section-label { margin: 0 0 16px; font: 500 12px/1.3 var(--mono, ui-monospace, monospace); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.related-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.related-card { display: block; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-panel, 4px); background: var(--white); color: var(--ink); text-decoration: none; transition: border-color .2s; }
.related-card:hover { border-color: var(--link); }
.related-meta { margin: 0 0 10px; font: 500 12px/1.3 var(--mono, ui-monospace, monospace); letter-spacing: .08em; color: var(--muted); }
.related-title { font: 400 18px/1.35 var(--head); font-variation-settings: var(--heading-variation); letter-spacing: -.015em; color: var(--ink); }

/* ───────────── Макеты продуктов и калькуляторы внутри статей: тёмная сцена, цвета как были ───────────── */
.article-mockup, .bl-article .calc-widget, .bl-article .avat-calc, .calc-wrap {
  --accent-gold: #e5c77d; --accent-mint: #3ccf91; --accent-cyan: #3ccf91; --accent-blue: #7aa7ff; --accent-violet: #a855f7; --accent-magenta: #ff5a9d;
  --text-primary: #f4f5f7; --text-secondary: #b4bcc4; --text-tertiary: #aab3bb; --border-subtle: rgba(255,255,255,.1);
  --bg-card: transparent; --radius-md: 12px; --font-display: var(--head); --font-body: var(--body); --font-mono: var(--mono, ui-monospace, monospace);
  color: var(--text-primary);
}
.article-mockup { margin: 28px 0 36px; overflow: hidden; border-radius: 14px; background: var(--depth); border: 1px solid rgba(255,255,255,.08); }
.article-mockup p, .article-mockup li, .bl-article .calc-widget :is(p, li), .bl-article .avat-calc :is(p, li) { text-align: left; hyphens: manual; }
.bl-article .calc-widget, .bl-article .avat-calc { background: var(--depth); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-panel, 4px); }
.amk-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: rgba(0,0,0,.3); border-bottom: 1px solid rgba(255,255,255,.06); }
.amk-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.amk-dot.r { background: #ff5a5a; } .amk-dot.y { background: #ffbd2e; } .amk-dot.g { background: #3ccf91; }
.amk-url { flex: 1; margin-left: 10px; text-align: center; font-size: 12px; letter-spacing: .04em; color: rgba(255,255,255,.7); }
.amk-live { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--mono, monospace); letter-spacing: .14em; text-transform: uppercase; color: #3ccf91; }
.amk-livedot { width: 6px; height: 6px; border-radius: 50%; background: #3ccf91; animation: amkPulse 1.6s infinite; }
@keyframes amkPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.amk-body { display: grid; grid-template-columns: 180px minmax(0, 1fr); min-height: 260px; }
.amk-side { display: flex; flex-direction: column; gap: 4px; padding: 18px 12px; background: rgba(0,0,0,.18); border-right: 1px solid rgba(255,255,255,.05); }
.amk-side-item { padding: 9px 12px; border-radius: 8px; font-size: 13px; color: rgba(255,255,255,.72); }
.amk-side-item.is-active { background: rgba(229,199,125,.1); border: 1px solid rgba(229,199,125,.22); color: #e5c77d; }
.amk-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; padding: 22px 24px; }
.amk-kpi-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.amk-kpi { padding: 12px 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(255,255,255,.03); }
.amk-kpi-label { margin-bottom: 4px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.amk-kpi-val { margin-bottom: 8px; font-size: 22px; font-weight: 600; color: #f4f5f7; }
.amk-kpi-bar { height: 4px; overflow: hidden; border-radius: 4px; background: rgba(255,255,255,.08); }
.amk-kpi-bar span { display: block; height: 100%; border-radius: 4px; }
.amk-albert { padding: 14px 16px; border: 1px solid rgba(168,85,247,.25); border-left: 3px solid #a855f7; border-radius: 10px; background: linear-gradient(135deg, rgba(168,85,247,.1), rgba(229,199,125,.04)); }
.amk-albert-tag { margin-bottom: 6px; font-size: 11px; letter-spacing: .18em; color: #c396f5; }
.amk-albert-msg { font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.88); }
.amk-finrow { display: flex; flex-direction: column; gap: 8px; }
.amk-finline { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; background: rgba(255,255,255,.03); font-size: 13.5px; color: rgba(255,255,255,.82); }
.amk-finline .g { color: #3ccf91; } .amk-finline .r { color: #ff7a7a; }
.amk-finline.is-warn { background: rgba(255,90,90,.07); border-color: rgba(255,90,90,.25); }
.amk-treelist { display: flex; flex-direction: column; gap: 6px; font: 400 13px/1.5 var(--mono, monospace); color: rgba(255,255,255,.82); }
.amk-treelist .lvl1 { color: #e5c77d; } .amk-treelist .lvl2 { padding-left: 18px; } .amk-treelist .lvl3 { padding-left: 36px; color: rgba(255,255,255,.7); }
.amk-portfolio-row { display: grid; grid-template-columns: minmax(0, 1fr) 80px 80px; gap: 12px; padding: 8px 14px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 13.5px; }
.amk-portfolio-row:last-child { border-bottom: 0; }
.amk-portfolio-row .name { color: rgba(255,255,255,.88); }
.amk-portfolio-row .val, .amk-portfolio-row .delta { text-align: right; font-family: var(--mono, monospace); }
.amk-portfolio-row .val { color: rgba(255,255,255,.75); }
.amk-portfolio-row .delta.up { color: #3ccf91; } .amk-portfolio-row .delta.down { color: #ff7a7a; }
@media (max-width: 680px) {
  .amk-body { grid-template-columns: minmax(0, 1fr); }
  .amk-side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.05); }
  .amk-side-item { flex: none; }
  .amk-kpi-row { grid-template-columns: minmax(0, 1fr); }
  .amk-main { padding: 18px 16px; }
}

@media (prefers-reduced-motion: reduce) { .amk-livedot { animation: none; } }

/* телефон: мелкие подписи не меньше 13 px, ссылки хлебных крошек удобно нажимать */
.breadcrumbs a { display: inline-block; padding: 9px 0; }
.article-body pre, .article-body pre code, .article-body code { font-size: max(13.5px, .86em); }
.article-share-label, .section-label, .related-meta, .blog-card-meta, .article-toc-label { font-size: 13px; }
/* калькулятор зарплаты: подписи не мельче 13,5 px (в исходных стилях было 10-12) */
.bl-article .calc-widget :is(.calc-num-unit, .calc-variant-hint, .calc-result-title, .calc-result-note, .calc-result-row span, .calc-compare-label, .calc-compare-hint, .calc-compare-reset, .calc-disclaimer, .calc-variant-tab-val, .calc-variant-tab) { font-size: 13.5px !important; }

/* ═══ Список статей: тёмный первый экран и цветные карточки в шахматном порядке (правка Полины 06.11) ═══
   Цвета карточек считаются по ВИДИМЫМ карточкам (после фильтра порядок пересчитывается). Цикл на 3 колонки: белая, тёмно-синяя, серая, кирпичная. */
.bl-hero { background: var(--depth); padding-bottom: clamp(36px, 4vw, 56px); }
.bl-hero .bl-label { color: var(--brass-label-on-depth); }
.bl-hero h1 { color: var(--paper); }
.bl-hero .bl-lead { color: var(--depth-muted); }
.bl-hero .bl-filter { margin: clamp(28px, 3vw, 40px) 0 0; }
.bl-hero .bl-filter .blog-filter-pill { background: transparent; border-color: rgba(246, 247, 247, .3); color: var(--paper); }
.bl-hero .bl-filter .blog-filter-pill:hover { border-color: var(--paper); }
.bl-hero .bl-filter .blog-filter-pill.is-active { background: var(--paper); border-color: var(--paper); color: var(--depth); }
.bl-hero .bl-filter .blog-filter-pill:focus-visible { outline-color: var(--paper); }
.bl-list { padding-top: clamp(32px, 4vw, 56px); }
.blog-card { --c-bg: var(--white); --c-line: var(--line); --c-title: var(--ink); --c-text: var(--muted); --c-link: var(--link); --c-new: var(--oxide);
  background: var(--c-bg); border-color: var(--c-line); transition: border-color .2s ease, transform .2s ease; }
.blog-card .blog-card-title { color: var(--c-title); }
.blog-card .blog-card-desc, .blog-card .blog-card-meta { color: var(--c-text); }
.blog-card .blog-card-link { color: var(--c-link); text-decoration: underline; text-underline-offset: 4px; }
.blog-card .blog-card-meta .bl-new { color: var(--c-new); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .blog-card:hover { transform: translateY(-2px); } }
/* 3 колонки: белая, тёмно-синяя, серая, кирпичная по кругу (по диагонали соседи разные) */
.blog-card:nth-child(4n+2 of .blog-card:not([hidden])) { --c-bg: var(--depth); --c-line: var(--depth); --c-title: var(--paper); --c-text: var(--line); --c-link: var(--paper); --c-new: var(--brass-label-on-depth); }
.blog-card:nth-child(4n+3 of .blog-card:not([hidden])) { --c-bg: var(--mist); --c-line: var(--mist); }
.blog-card:nth-child(4n+4 of .blog-card:not([hidden])) { --c-bg: var(--oxide); --c-line: var(--oxide); --c-title: var(--paper); --c-text: var(--line); --c-link: var(--paper); --c-new: var(--paper); }
.blog-card:nth-child(4n+2 of .blog-card:not([hidden])):hover, .blog-card:nth-child(4n+4 of .blog-card:not([hidden])):hover { border-color: var(--brass-label-on-depth); }
.blog-card:nth-child(4n+2 of .blog-card:not([hidden])):focus-visible, .blog-card:nth-child(4n+4 of .blog-card:not([hidden])):focus-visible { outline-color: var(--paper); }
/* 2 колонки: белая, тёмно-синяя / кирпичная, серая (две тёмные не стоят друг под другом) */
@media (max-width: 1100px) and (min-width: 681px) {
  .blog-card:nth-child(4n+3 of .blog-card:not([hidden])) { --c-bg: var(--oxide); --c-line: var(--oxide); --c-title: var(--paper); --c-text: var(--line); --c-link: var(--paper); --c-new: var(--paper); }
  .blog-card:nth-child(4n+4 of .blog-card:not([hidden])) { --c-bg: var(--mist); --c-line: var(--mist); --c-title: var(--ink); --c-text: var(--muted); --c-link: var(--link); --c-new: var(--oxide); }
  .blog-card:nth-child(4n+3 of .blog-card:not([hidden])):hover { border-color: var(--brass-label-on-depth); }
  .blog-card:nth-child(4n+4 of .blog-card:not([hidden])):hover { border-color: var(--link); }
}
/* 1 колонка: чередуем белая / тёмно-синяя / серая / кирпичная подряд (как в трёх колонках) */

/* правки Полины 06.11: синяя полоса сверху ниже, после карточек сразу подвал */
.bl-hero { padding-top: clamp(40px, 4vw, 64px); }
.bl-list { padding-bottom: clamp(48px, 5vw, 72px); }
