/* =====================================================
   БЛОГ CYBERDEF — список статей и страница статьи
   (подключается после site.css)
===================================================== */

/* ---------- общий первый экран внутренних страниц ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; margin-top: -76px; padding: 148px 0 56px; }
.page-hero .hero__grid { -webkit-mask: radial-gradient(ellipse 80% 70% at 50% 20%, #000 20%, transparent 75%); mask: radial-gradient(ellipse 80% 70% at 50% 20%, #000 20%, transparent 75%); }
@media (max-width: 640px) { .page-hero { margin-top: -64px; padding: 104px 0 40px; } }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 28px; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.crumbs a { color: var(--ink-muted); text-decoration: none; transition: color 0.2s ease; }
.crumbs a:hover { color: var(--accent-text); }
.crumbs i { font-style: normal; color: var(--border-strong); }
.crumbs span { color: var(--ink); font-weight: 600; }

/* ---------- обложка по умолчанию (рисуется скриптом) ---------- */
.gcover { position: relative; overflow: hidden; background: #06103F; isolation: isolate; }
.gcover::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(80% 70% at 50% 110%, rgba(23,162,248,0.45), transparent 60%),
    radial-gradient(60% 60% at 0% 0%, rgba(40,70,200,0.5), transparent 60%),
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px, 32px 32px;
}
.gcover svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.gcover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gcover .gc-pulse { animation: gcPulse 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes gcPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.gcover .gc-spin { animation: gcSpin 60s linear infinite; transform-origin: 400px 640px; }
@keyframes gcSpin { to { transform: rotate(360deg); } }
.gcover .gc-sweep { animation: gcSpin 7s linear infinite; transform-origin: 400px 225px; }

/* =====================================================
   СПИСОК СТАТЕЙ
===================================================== */
.bhero__head { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: end; }
.bhero__title { margin: 0; font-size: 72px; line-height: 76px; letter-spacing: -0.04em; }
.bhero__lead { margin: 0; max-width: 46ch; }
.bhero__stat { display: flex; align-items: baseline; gap: 10px; margin-top: 20px; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.bhero__stat b { font-size: 32px; line-height: 36px; letter-spacing: -0.03em; color: var(--ink); }

.btool { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 10px; border-radius: 20px; background: rgba(255,255,255,0.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-md); }
.bchips { display: flex; flex-wrap: wrap; gap: 6px; }
.bchip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 12px; cursor: pointer; background: transparent; color: var(--ink); font-size: 14px; line-height: 20px; font-weight: 600; transition: background 0.2s ease, color 0.2s ease; }
.bchip span { font-size: 12px; color: var(--ink-muted); }
.bchip:hover { background: var(--surface-sunken); }
.bchip.is-active { background: var(--brand-navy); color: #FFFFFF; }
.bchip.is-active span { color: var(--accent-text-on-brand); }
.bsearch { position: relative; flex: 0 1 320px; }
.bsearch svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ink-muted); pointer-events: none; }
.bsearch input { width: 100%; height: 44px; padding: 0 16px 0 42px; border: 0; border-radius: 12px; background: var(--surface-sunken); color: var(--ink); font: inherit; font-size: 14px; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow 0.2s ease, background 0.2s ease; }
.bsearch input::placeholder { color: var(--ink-muted); }
.bsearch input:focus { outline: none; background: #FFFFFF; box-shadow: inset 0 0 0 1.5px var(--brand-blue); }

.blist { padding: 32px 0 112px; }
.bgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bgrid:empty { display: none; }
.bempty { padding: 64px 24px; text-align: center; border-radius: var(--r-panel); background: var(--surface-sunken); color: var(--ink-muted); }
.bempty b { display: block; margin-bottom: 8px; font-size: 20px; color: var(--ink); }

/* карточка */
.pcard2 {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-card); background: #FFFFFF;
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.35s ease;
  animation: modIn 0.55s var(--ease) both;
}
.pcard2:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(23,162,248,0.55), var(--shadow-md); }
.pcard2__cover { position: relative; display: block; aspect-ratio: 16 / 9; margin: 8px 8px 0; border-radius: 14px; overflow: hidden; }
.pcard2__cover .gcover, .pcard2__cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.pcard2:hover .pcard2__cover .gcover, .pcard2:hover .pcard2__cover > img { transform: scale(1.05); }
.pcard2__cat { position: absolute; left: 12px; top: 12px; z-index: 1; padding: 5px 10px; border-radius: var(--r-pill); background: rgba(255,255,255,0.92); color: var(--brand-navy); font-size: 12px; line-height: 16px; font-weight: 700; }
.pcard2__body { flex: 1; display: flex; flex-direction: column; padding: 20px 22px 22px; }
.pcard2__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 10px; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.pcard2__meta span + span::before { content: "·"; margin-right: 14px; color: var(--border-strong); }
.pcard2__title { margin: 0 0 10px; font-size: 20px; line-height: 26px; font-weight: 700; letter-spacing: -0.015em; }
.pcard2__title a { color: inherit; text-decoration: none; }
.pcard2__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.pcard2__title a:focus-visible { outline: none; }
.pcard2:focus-within { box-shadow: inset 0 0 0 2px var(--focus), var(--shadow-md); }
.pcard2__excerpt { margin: 0 0 20px; font-size: 14px; line-height: 21px; color: var(--ink-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard2__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pcard2__author { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 18px; font-weight: 600; }
.avatar { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--brand-navy), #1D3BC0); color: #FFFFFF; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.pcard2__go { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface-sunken); color: var(--ink); transition: background 0.3s ease, transform 0.45s var(--ease); }
.pcard2__go svg { width: 14px; height: 14px; }
.pcard2:hover .pcard2__go { background: var(--brand-blue); color: var(--brand-navy); transform: rotate(-45deg); }

/* главная (свежая) статья */
.pcard2--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; }
.pcard2--featured .pcard2__cover { aspect-ratio: auto; min-height: 380px; margin: 10px; }
.pcard2--featured .pcard2__body { padding: 40px 40px 32px 28px; justify-content: center; }
.pcard2--featured .pcard2__title { font-size: 36px; line-height: 42px; letter-spacing: -0.03em; margin-bottom: 16px; }
.pcard2--featured .pcard2__excerpt { font-size: 16px; line-height: 25px; -webkit-line-clamp: 5; margin-bottom: 28px; }
.pcard2__new { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; margin-bottom: 16px; padding: 5px 12px 5px 10px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-text); font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.pcard2__new::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-blue); animation: live 1.8s ease-out infinite; }

@media (max-width: 1024px) {
  .bhero__head { grid-template-columns: 1fr; gap: 20px; }
  .bhero__title { font-size: 56px; line-height: 60px; }
  .bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcard2--featured { grid-template-columns: 1fr; }
  .pcard2--featured .pcard2__cover { min-height: 0; aspect-ratio: 16 / 9; margin: 8px 8px 0; }
  .pcard2--featured .pcard2__body { padding: 24px 24px 22px; }
  .pcard2--featured .pcard2__title { font-size: 28px; line-height: 34px; }
}
@media (max-width: 640px) {
  .bhero__title { font-size: 40px; line-height: 44px; }
  .btool { flex-direction: column; align-items: stretch; padding: 8px; }
  .bchips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .bchips::-webkit-scrollbar { display: none; }
  .bchip { flex-shrink: 0; }
  .bsearch { flex-basis: auto; }
  .bgrid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pcard2--featured .pcard2__title { font-size: 24px; line-height: 30px; }
  .blist { padding-bottom: 72px; }
}

/* =====================================================
   СТРАНИЦА СТАТЬИ
===================================================== */
.ahero { padding-bottom: 0; }
.ahero__top { max-width: 980px; }
.ahero .pill { text-decoration: none; }
.ahero__title { margin: 0 0 28px; font-size: 60px; line-height: 64px; letter-spacing: -0.04em; max-width: 20ch; }
.ahero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-bottom: 40px; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.ahero__author { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.ahero__author .avatar { width: 44px; height: 44px; font-size: 14px; }
.ahero__author b { display: block; font-size: 15px; line-height: 20px; }
.ahero__author small { display: block; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.ahero__meta-item { display: inline-flex; align-items: center; gap: 8px; }
.ahero__meta-item svg { width: 16px; height: 16px; color: var(--accent-text); }
.ahero__cover-wrap { perspective: 1600px; }
.ahero__cover { height: 440px; border-radius: var(--r-panel) var(--r-panel) 0 0; box-shadow: inset 0 0 0 1px rgba(108,196,255,0.2), var(--shadow-lg); transform-origin: 50% 100%; transform: rotateX(var(--tilt, 0deg)); }
.ahero__cover.has-img { background: var(--surface-sunken); }
@media (max-width: 1024px) { .ahero__title { font-size: 44px; line-height: 50px; } .ahero__cover { height: 320px; } }
@media (max-width: 640px) { .ahero__title { font-size: 30px; line-height: 36px; letter-spacing: -0.03em; } .ahero__cover { height: 200px; border-radius: 20px 20px 0 0; } .ahero__meta { gap: 10px 18px; margin-bottom: 28px; } }

/* сетка статьи */
.article { position: relative; background: #FFFFFF; padding: 64px 0 96px; box-shadow: 0 -1px 0 var(--border); }
.article__grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 72px; align-items: start; }

/* содержание */
.toc { position: sticky; top: 100px; padding: 22px; border-radius: var(--r-card); background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--border), var(--shadow-md); }
.toc__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.toc__title { margin: 0; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.toc__pct { font-size: 12px; line-height: 16px; font-weight: 700; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.toc__bar { height: 4px; border-radius: 2px; background: var(--surface-sunken); overflow: hidden; margin-bottom: 14px; }
.toc__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand-navy), var(--brand-blue)); border-radius: 2px; }
.toc__toggle { display: none; }
.toc__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; counter-reset: toc; }
.toc__list a { display: grid; grid-template-columns: 26px 1fr; gap: 8px; padding: 9px 10px; border-radius: 10px; color: var(--ink-muted); text-decoration: none; font-size: 14px; line-height: 19px; font-weight: 500; transition: background 0.2s ease, color 0.2s ease; }
.toc__list a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); font-size: 11px; line-height: 19px; font-weight: 700; color: var(--border-strong); font-variant-numeric: tabular-nums; }
.toc__list a:hover { background: var(--surface-sunken); color: var(--ink); }
.toc__list a.is-active { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.toc__list a.is-active::before { color: var(--accent-text); }
.toc__list a.is-done::before { color: var(--accent-text); }

/* текст */
.prose { max-width: 740px; min-width: 0; font-size: 17px; line-height: 29px; color: #26325E; }
.prose p { margin: 0 0 20px; }
.prose strong, .prose b { color: var(--ink); font-weight: 700; }
.prose a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.a-lead {
  position: relative; margin: 0 0 16px !important; padding: 4px 0 4px 28px;
  font-size: 21px; line-height: 34px; font-weight: 500; color: var(--ink);
}
.a-lead::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; border-radius: 2px; background: linear-gradient(180deg, var(--brand-blue), var(--brand-navy)); }
.a-sec { padding-top: 56px; scroll-margin-top: 100px; }
.a-sec + .a-sec { margin-top: 8px; border-top: 1px solid var(--border); }
.a-sec__tag { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px !important; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }
.a-sec__tag::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--brand-navy), var(--brand-blue)); }
.a-sec__title { margin: 0 0 20px; font-size: 32px; line-height: 38px; font-weight: 700; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.a-sub { margin: 28px 0 14px !important; font-weight: 700; color: var(--ink); }
.a-list { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.a-list li { position: relative; padding: 12px 16px 12px 48px; border-radius: 14px; background: var(--surface-sunken); font-size: 16px; line-height: 25px; }
.a-list li::before { content: ""; position: absolute; left: 14px; top: 14px; width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230572B6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 13px no-repeat; box-shadow: inset 0 0 0 1px #CFE7FB; }
.prose ol.a-list { counter-reset: al; }
.prose ol.a-list li::before { counter-increment: al; content: counter(al); background: var(--brand-navy); color: #FFFFFF; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: none; }
.a-quote { margin: 32px 0; padding: 28px 32px; border-radius: var(--r-card); background: linear-gradient(135deg, var(--accent-soft), #FFFFFF 80%); box-shadow: inset 0 0 0 1px #CFE7FB; font-size: 22px; line-height: 32px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.a-quote cite { display: block; margin-top: 14px; font-size: 14px; line-height: 20px; font-style: normal; font-weight: 500; color: var(--ink-muted); }

/* иллюстрации и изображения */
.a-fig { margin: 32px 0; }
.a-fig > img { display: block; width: 100%; height: auto; border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-md); }
.a-fig figcaption { margin-top: 12px; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.mock { border-radius: var(--r-card); background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--border), var(--shadow-md); overflow: hidden; font-size: 14px; line-height: 20px; }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--surface-sunken); border-bottom: 1px solid var(--border); }
.mock__bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.mock__bar b { margin-left: 10px; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.mono { font-family: var(--mono); font-size: 13px; }
.mock-domain__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px 20px 6px; }
.mock-domain__url { font-family: var(--mono); font-size: 16px; font-weight: 600; color: var(--threat-text); }
.mock-domain__grid { margin: 0; padding: 12px 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mock-domain__grid div { padding: 10px 12px; border-radius: 10px; background: var(--surface-sunken); min-width: 0; }
.mock-domain__grid dt { font-size: 11px; line-height: 14px; color: var(--ink-muted); margin-bottom: 4px; }
.mock-domain__grid dd { margin: 0; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.mock-domain__code { margin: 0 20px 20px; padding: 12px 14px; border-radius: 10px; background: #0B1340; color: var(--ink-on-brand-muted); font-size: 12px; line-height: 18px; }
.mock-domain__code .mono { color: var(--accent-text-on-brand); margin-right: 8px; font-size: 12px; }
.mock-alerts__list { list-style: none; margin: 0; padding: 12px 16px 4px; display: flex; flex-direction: column; gap: 8px; }
.mock-alerts__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--surface-sunken); }
.mock-alerts__list .mono { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-alerts__list em { font-style: normal; font-size: 12px; color: var(--ink-muted); }
.mock-alerts__cap { margin: 12px 16px 8px !important; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.mock-alerts__ch { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0 16px 16px; }
.mock-alerts__ch span { position: relative; padding: 10px 10px 10px 30px; border-radius: 10px; background: var(--ok-soft); color: var(--ok-text); font-size: 12px; line-height: 16px; font-weight: 700; }
.mock-alerts__ch span::before { content: ""; position: absolute; left: 10px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23067647' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3 3 7-7'/%3E%3C/svg%3E") center / contain no-repeat; }
.is-visible .mock-alerts__ch span { animation: chIn 0.5s var(--ease) both; }
.is-visible .mock-alerts__ch span:nth-child(2) { animation-delay: 0.1s; }
.is-visible .mock-alerts__ch span:nth-child(3) { animation-delay: 0.2s; }
.is-visible .mock-alerts__ch span:nth-child(4) { animation-delay: 0.3s; }
@keyframes chIn { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: none; } }

/* метрика */
.a-metric { margin: 32px 0 8px; padding: 40px; border-radius: var(--r-panel); }
.prose .a-metric p { margin: 0; }
.a-metric__label { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-on-brand-muted); }
.a-metric__value { margin: 10px 0 12px !important; font-size: 64px; line-height: 64px; font-weight: 700; letter-spacing: -0.045em; background: linear-gradient(90deg, #FFFFFF, var(--accent-text-on-brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.a-metric__sub { font-size: 15px; line-height: 22px; color: var(--ink-on-brand-muted); }
.a-metric__track { position: relative; margin-top: 28px; display: flex; justify-content: space-between; padding-top: 22px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-on-brand-muted); }
.a-metric__track::before { content: ""; position: absolute; left: 6px; right: 6px; top: 5px; height: 2px; background: rgba(255,255,255,0.15); }
.a-metric__track::after { content: ""; position: absolute; left: 6px; right: 6px; top: 5px; height: 2px; background: linear-gradient(90deg, var(--accent-text-on-brand), var(--brand-blue)); transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease) 0.3s; }
.a-metric.is-visible .a-metric__track::after { transform: scaleX(1); }
.a-metric__track span { position: relative; }
.a-metric__track span::before { content: ""; position: absolute; top: -22px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand-blue); box-shadow: 0 0 0 4px rgba(23,162,248,0.25); }
.a-metric__track span:first-child::before { left: 0; }
.a-metric__track span:nth-child(2)::before { left: 50%; margin-left: -6px; }
.a-metric__track span:last-child::before { right: 0; }

/* кейс */
.a-case { padding: 28px; border-radius: var(--r-card); background: var(--surface-sunken); }
.a-case p:last-child { margin-bottom: 0; }
.a-case__facts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.a-case__facts span { display: inline-flex; flex-direction: column; padding: 10px 14px; border-radius: 12px; background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--border); font-size: 15px; line-height: 20px; font-weight: 700; color: var(--ink); }
.a-case__facts i { font-style: normal; font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 2px; }

/* FAQ внутри статьи */
.prose .faq__list { margin-top: 8px; }
.prose .faq__item { background: var(--surface-sunken); box-shadow: none; }
.prose .faq__item:hover:not(.is-open) { box-shadow: inset 0 0 0 1px var(--border-strong); }
.prose .faq__item.is-open { background: #FFFFFF; }
.prose .faq__q { font-size: 17px; line-height: 24px; }
.prose .faq__a { font-size: 16px; line-height: 26px; margin: 0; }

/* автор и поделиться */
.a-author { margin-top: 56px; padding: 28px; border-radius: var(--r-card); background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm); display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.a-author .avatar { width: 64px; height: 64px; font-size: 20px; }
.a-author__name { margin: 0 0 2px !important; font-size: 17px; line-height: 24px; font-weight: 700; color: var(--ink); }
.a-author__role { margin: 0 !important; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.a-author__meta { text-align: right; font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.a-author__meta .pill { margin: 6px 0 0; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.share__label { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-muted); margin-right: 4px; }
.share__btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 0; border-radius: var(--r-pill); cursor: pointer; background: var(--surface-sunken); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; transition: background 0.2s ease, color 0.2s ease; }
.share__btn svg { width: 16px; height: 16px; }
.share__btn:hover { background: var(--accent-soft); color: var(--accent-text); }
.share__btn.is-done { background: var(--ok-soft); color: var(--ok-text); }

/* читайте также */
.related .bgrid { margin-top: 0; }

@media (max-width: 1100px) { .article__grid { grid-template-columns: 260px minmax(0, 1fr); gap: 40px; } }
@media (max-width: 960px) {
  .article { padding-top: 32px; }
  .article__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: sticky; top: 72px; z-index: 5; padding: 12px 16px; border-radius: 16px; background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .toc__head { margin-bottom: 8px; }
  .toc__bar { margin-bottom: 0; }
  .toc__toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 8px 0 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); text-align: left; gap: 12px; }
  .toc__toggle span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .toc__toggle svg { width: 14px; height: 14px; flex-shrink: 0; transition: transform 0.3s var(--ease); }
  .toc.is-open .toc__toggle svg { transform: rotate(180deg); }
  .toc__list { display: none; max-height: 60vh; overflow-y: auto; margin-top: 8px; }
  .toc.is-open .toc__list { display: flex; }
  .prose { max-width: none; }
}
@media (max-width: 640px) {
  .toc { top: 68px; }
  .prose { font-size: 16px; line-height: 27px; }
  .a-lead { font-size: 18px; line-height: 29px; padding-left: 20px; }
  .a-sec { padding-top: 40px; }
  .a-sec__title { font-size: 25px; line-height: 31px; }
  .mock-domain__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
  .mock-domain__head { padding: 14px 12px 4px; }
  .mock-domain__code { margin: 0 12px 12px; }
  .mock-alerts__list li { grid-template-columns: minmax(0, 1fr) auto; }
  .mock-alerts__list em { display: none; }
  .mock-alerts__ch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a-metric { padding: 28px 22px; }
  .a-metric__value { font-size: 44px; line-height: 46px; }
  .a-case { padding: 20px; }
  .a-author { grid-template-columns: 52px minmax(0, 1fr); padding: 20px; }
  .a-author .avatar { width: 52px; height: 52px; font-size: 16px; }
  .a-author__meta { grid-column: 1 / -1; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .gcover .gc-spin, .gcover .gc-sweep, .gcover .gc-pulse { animation: none; }
  .pcard2 { animation: none; }
}
@keyframes modIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.bempty button { border: 0; background: none; padding: 0; font: inherit; color: var(--accent-text); text-decoration: underline; cursor: pointer; }
