/* =====================================================================
   ao-blog.css — все блоки блоговой статьи (Этапы 2–8)
   Тема: asnova-online. Кладётся в /assets/css/ao-blog.css
   Бренд-акцент: --ao-accent (#EE4A18). Поверхности — под СВЕТЛЫЙ фон тела
   статьи; если тело тёмное — переопредели --ao-surface/--ao-ink ниже.
   ===================================================================== */

:root{
  --ao-accent:#EE4A18;
  --ao-ink:#23272e;
  --ao-ink-soft:#6b7079;
  --ao-muted:#9aa0a8;
  --ao-line:#eceef1;
  --ao-surface:#ffffff;
}

/* ---------- Этап 2: хлебные крошки + мета-панель ---------- */
.ao-breadcrumbs{font-size:13px;margin:0 0 18px}
.ao-breadcrumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0}
.ao-breadcrumbs li{display:flex;align-items:center;color:var(--ao-muted)}
.ao-breadcrumbs li:not(:last-child)::after{content:"›";margin-left:6px;color:#c2c6cc}
/* ============================================================
   Hero статьи — рефренс-дизайн: 2 колонки на desktop
   (текст+share+meta слева, фото справа в круглой раме).
   Dark-theme premium.
   ============================================================ */
.ao-breadcrumbs{ font-size:14px; margin-bottom:1.5rem; line-height:1.4; }
.ao-breadcrumbs ol{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; align-items:center; gap:.4rem; }
.ao-breadcrumbs li{ display:inline-flex; align-items:center; }
.ao-breadcrumbs li + li::before{
  content:"/"; margin:0 .6rem;
  color:rgba(255,255,255,.25); font-weight:600;
}
.ao-breadcrumbs a{
  color:rgba(255,255,255,.6); text-decoration:none;
  border-bottom:1px solid transparent;
  transition:color .15s, border-color .15s;
}
.ao-breadcrumbs a:hover{ color:var(--ao-accent, #ee802a); border-bottom-color:var(--ao-accent, #ee802a); }
.ao-breadcrumbs [aria-current="page"] span{
  color:var(--ao-accent, #ee802a);
  font-weight:600;
}

/* 2-колоночная сетка hero статьи */
.ao-article__hero-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:2rem;
  align-items:center;
  margin-bottom:2rem;
}
.ao-article__hero-text{ min-width:0; }
.ao-article__hero-media{ display:none; }
@media(min-width:900px){
  .ao-article__hero-grid{
    grid-template-columns:minmax(0, 1.4fr) minmax(280px, 1fr);
    gap:3rem;
  }
  .ao-article__hero-media{
    display:block;
    position:relative;
    aspect-ratio:1/1;
    max-width:380px;
    margin-left:auto;
  }
  .ao-article__hero-media img{
    width:100%; height:100%;
    object-fit:cover; object-position:center 20%;
    border-radius:50%;
    border:6px solid var(--ao-accent, #ee802a);
    box-shadow:
      0 0 0 1px rgba(255,255,255,.05),
      0 20px 60px rgba(238,128,42,.25),
      0 30px 80px rgba(0,0,0,.4);
  }
  /* мягкий глоу-фон за фото */
  .ao-article__hero-media::before{
    content:"";
    position:absolute; inset:-30px;
    background:radial-gradient(closest-side, rgba(238,128,42,.18), transparent 70%);
    z-index:-1; pointer-events:none;
  }
}

/* H1 — крупный, КАПС, Archivo Black (как в рефе) */
.ao-article__title-h1{
  margin:0 0 1.5rem;
  font-family:'Archivo Black','Arial Black',sans-serif;
  font-size:clamp(28px, 4.2vw, 52px);
  font-weight:900;
  line-height:1.05;
  letter-spacing:-0.01em;
  color:#fff;
  text-transform:uppercase;
}

/* Компактный share под H1 (5 круглых иконок 36×36) */
.ao-article__hero-share{
  display:flex; gap:.5rem; flex-wrap:wrap;
  margin:0 0 1.75rem;
}
.ao-article__hero-share a{
  display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:36px; padding:0;
  border-radius:50%;
  color:#fff; text-decoration:none;
  transition:transform .15s, filter .15s, box-shadow .15s;
  box-shadow:0 4px 10px rgba(0,0,0,.25);
  gap:0; /* убираем gap от parent .ao-share__btn */
}
.ao-article__hero-share a:hover{ transform:translateY(-2px); filter:brightness(1.1); }
.ao-article__hero-share a svg{ width:16px; height:16px; flex:none; }
/* В hero-варианте показываем только иконку, текст-подпись скрываем */
.ao-article__hero-share .ao-share__btn-label{
  position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden;
}
/* Brand-цвета */
.ao-article__hero-share .ao-share__btn--vk{ background:#0077ff; }
.ao-article__hero-share .ao-share__btn--telegram{ background:#28a8e9; }
.ao-article__hero-share .ao-share__btn--ok{ background:#ee8208; }
.ao-article__hero-share .ao-share__btn--twitter{ background:#15171a; border:1px solid rgba(255,255,255,.15); }
.ao-article__hero-share .ao-share__btn--whatsapp{ background:#25d366; }

/* Мета-полоса — dark premium с оранжевыми иконками */
.ao-article-meta{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(160px, 1fr));
  gap:24px 32px;
  align-items:center;
  padding:22px 0;
  margin:0;
  border-top:1px solid rgba(255,255,255,.08);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.ao-article-meta__item{ display:flex; align-items:center; gap:14px; min-width:0; }
.ao-article-meta__icon{
  display:grid; place-items:center;
  width:42px; height:42px; flex:none;
  border:1.5px solid var(--ao-accent, #ee802a);
  border-radius:10px;
  color:var(--ao-accent, #ee802a);
  background:rgba(238,128,42,.05);
}
.ao-article-meta__text{ display:flex; flex-direction:column; line-height:1.25; min-width:0; }
.ao-article-meta__label{
  font-size:11px; font-weight:700;
  letter-spacing:.1em; text-transform:uppercase;
  color:rgba(255,255,255,.45);
  margin-bottom:2px;
}
.ao-article-meta__value{
  font-size:15px; font-weight:700; color:#fff;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
@media(max-width:600px){
  .ao-article-meta{ gap:16px 20px; padding:18px 0; }
  .ao-article-meta__icon{ width:36px; height:36px; }
}

/* ---------- Кнопки ---------- */
.ao-btn{display:inline-block;padding:12px 26px;border-radius:999px;font-weight:700;
  text-decoration:none;border:0;cursor:pointer;line-height:1}
.ao-btn--accent{background:var(--ao-accent);color:#fff}
.ao-btn--accent:hover{filter:brightness(.95)}
.ao-btn--teal{background:#159a93;color:#fff}

/* ---------- Этап 3А: callout / quote / tip / keypoints ----------
   Dark-glass карточка под общую тему блога (как .ao-faq__item / .ao-experts__item).
   --c задаётся в модификаторах (--tip / --info / --success / --warning) и красит
   border-icon + accent-line сверху. */
.ao-callout{
  --c:var(--ao-accent, #ee802a);
  position:relative; margin:24px 0;
  padding:22px 26px 22px 66px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  background:linear-gradient(180deg, rgba(28,28,38,.85) 0%, rgba(18,18,26,.92) 100%);
  box-shadow:0 8px 22px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04);
  color:rgba(255,255,255,.82);
  font-size:15.5px; line-height:1.65;
}
.ao-callout::after{
  /* Тонкая accent-полоска сверху — как у .ao-experts__item */
  content:""; position:absolute; left:0; right:0; top:0; height:1px;
  background:linear-gradient(90deg, transparent 0%, var(--c) 50%, transparent 100%);
  opacity:.55;
}
.ao-callout::before{
  content:"i"; position:absolute; left:22px; top:22px;
  width:30px; height:30px; border-radius:50%;
  border:2px solid var(--c); color:var(--c);
  background:rgba(0,0,0,.25);
  display:grid; place-items:center;
  font:700 16px/1 Georgia,serif;
}
.ao-callout h4{margin:0 0 8px; font-size:17px; color:#fff; font-weight:700}
.ao-callout p{color:rgba(255,255,255,.82) !important; margin:0 0 10px}
.ao-callout>:last-child{margin-bottom:0}
.ao-callout--info{--c:#5fa8ff}
.ao-callout--tip{--c:var(--ao-accent, #ee802a)}
.ao-callout--success{--c:#4ade80}
.ao-callout--success::before{content:"✓"; font-family:inherit}
.ao-callout--warning{--c:#fbb142}
.ao-callout--warning::before{content:"!"; font-family:inherit}

/* ---------- Цитата ----------
   Тонкий accent-маркер слева вместо толстой плашки, декоративная « сверху,
   cite на отдельной строке с em-dash в accent-цвете. */
.ao-quote{
  position:relative; margin:28px 0;
  /* top right bottom left — больший left под accent-полосу, больший bottom под cite */
  padding:26px 32px 28px 40px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:14px;
  background:linear-gradient(180deg, rgba(28,28,38,.85) 0%, rgba(18,18,26,.92) 100%);
  box-shadow:0 8px 22px rgba(0,0,0,.28);
  /* Клипает accent-полосу ровно по форме карточки — устраняет «выпирание» углов. */
  overflow:hidden;
}
.ao-quote::before{
  /* Accent-полоса по всей высоте карточки. overflow:hidden у .ao-quote
     обрезает её ровно по скруглению — поэтому border-radius на самой
     полоске не нужен. */
  content:""; position:absolute; left:0; top:0; bottom:0; width:4px;
  background:var(--ao-accent, #ee802a);
}
.ao-quote::after{
  /* Декоративная кавычка в правом верхнем углу — мягкий вижуал-сигнал «это цитата». */
  content:"\201C"; position:absolute; right:20px; top:6px;
  font-family:Georgia, serif; font-size:54px; line-height:1;
  color:rgba(238,128,42,.18);
  pointer-events:none;
}
.ao-quote h4{margin:0 0 10px; font-size:17px; color:#fff; font-weight:700}
.ao-quote p{margin:0 0 12px; color:rgba(255,255,255,.82) !important;
  font-size:16.5px; line-height:1.6; font-style:italic}
.ao-quote p:last-of-type{margin-bottom:0}
.ao-quote cite,
.ao-quote__author{
  display:block; margin-top:14px !important; padding-top:12px;
  border-top:1px solid rgba(255,255,255,.06);
  font-style:normal; font-size:13.5px; font-weight:600;
  color:var(--ao-accent, #ee802a) !important;
  letter-spacing:.01em;
}

/* ---------- Tip — мини-карточка с тонким accent-маркером слева ---------- */
.ao-tip{
  position:relative; margin:20px 0; padding:18px 22px 20px 32px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:12px;
  background:rgba(28,28,38,.55);
  overflow:hidden;
}
.ao-tip::before{
  /* overflow:hidden у .ao-tip обрезает полосу ровно по форме карточки. */
  content:""; position:absolute; left:0; top:0; bottom:0; width:4px;
  background:var(--ao-accent, #ee802a);
}
.ao-tip h4{margin:0 0 8px; font-size:16px; font-weight:700; color:#fff}
.ao-tip p{margin:0; color:rgba(255,255,255,.78) !important; font-size:15px; line-height:1.6}
.ao-tip__author{margin-top:10px !important; text-align:right;
  color:var(--ao-accent, #ee802a) !important; font-size:13px; font-weight:600}

/* ---------- Ключевые тезисы — dark-glass карточка с accent-маркерами ---------- */
.ao-keypoints{
  margin:28px 0; padding:24px 28px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:linear-gradient(180deg, rgba(28,28,38,.85) 0%, rgba(18,18,26,.92) 100%);
}
.ao-keypoints h4{margin:0 0 14px; font-size:17px; color:#fff; font-weight:700}
.ao-keypoints ul{margin:0; padding:0; list-style:none; display:grid; gap:10px}
.ao-keypoints li{
  position:relative; padding-left:22px;
  color:rgba(255,255,255,.82); line-height:1.55; font-size:15px;
}
.ao-keypoints li::before{
  content:""; position:absolute; left:0; top:9px; width:9px; height:9px;
  border-radius:50%; background:var(--ao-accent, #ee802a);
}
.ao-keypoints li::before{content:"";position:absolute;left:0;top:8px;width:9px;height:9px;
  border-radius:50%;background:var(--ao-accent)}

/* ============================================================
   TOC — оглавление статьи. Premium dark под тему сайта.
   Два варианта на странице: --sidebar (sticky aside, desktop)
   и --inline (внутри контента, mobile fallback).
   ============================================================ */

/* Сетка статьи: aside ВСЕГДА видим (TOC всегда доступен).
   Desktop ≥1100px: 2 колонки — main слева (широкая), aside-TOC справа (sticky, узкая).
   Mobile <1100px: aside статикой ВЫШЕ main через order:-1 (на flex). */
.ao-article__grid{
  display:flex;
  flex-direction:column;
  gap:1.5rem;
}
.ao-article__main{ min-width:0; }
/* На мобиле (flex-режим) — aside ПЕРВЫМ через order:-1. На desktop ниже сбрасываем. */
.ao-article__aside{ order:-1; }

@media(min-width:1100px){
  .ao-article__grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) 300px;
    gap:56px;
    align-items:start;
  }
  /* На desktop порядок задаётся DOM-ом: main (DOM 1) → 1fr слева, aside (DOM 2) → 300px справа. */
  .ao-article__aside{
    order:0;
    position:sticky;
    top:96px;
    max-height:calc(100vh - 120px);
    overflow:auto;
    scrollbar-width:thin;
    scrollbar-color:rgba(255,255,255,.18) transparent;
  }
  .ao-article__aside::-webkit-scrollbar{width:6px}
  .ao-article__aside::-webkit-scrollbar-thumb{background:rgba(255,255,255,.18);border-radius:3px}
}

/* ---- Базовый TOC — общая структура (тёмная палитра) ---- */
.ao-toc{
  margin:24px 0;
  padding:20px 22px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:linear-gradient(180deg, rgba(28,28,38,.85) 0%, rgba(20,20,28,.92) 100%);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  box-shadow:0 8px 32px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.02) inset;
  font-family:inherit;
}
.ao-toc__toggle{
  display:flex;align-items:center;justify-content:space-between;width:100%;
  background:none;border:0;padding:0;cursor:pointer;
  font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:rgba(255,255,255,.55);
  transition:color .2s;
}
.ao-toc__toggle:hover{color:rgba(255,255,255,.85)}
.ao-toc__toggle::after{
  content:"";
  width:16px;height:16px;flex-shrink:0;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round'><polyline points='4 6 8 10 12 6'/></svg>");
  background-repeat:no-repeat;background-position:center;
  transition:transform .25s;
  opacity:.7;
}
.ao-toc[data-collapsed] .ao-toc__toggle::after{transform:rotate(-90deg)}
.ao-toc[data-collapsed] .ao-toc__list{display:none}

.ao-toc__list{
  margin:18px 0 0;padding:0;list-style:none;
  border-left:1px solid rgba(255,255,255,.06);
}
.ao-toc__item{
  position:relative;
  margin:0;padding:0;
}
.ao-toc__item a{
  display:block;
  padding:9px 0 9px 18px;
  margin-left:-1px; /* перекрывает родительский border-left активной полоской */
  border-left:2px solid transparent;
  color:rgba(255,255,255,.62);
  text-decoration:none;
  font-size:14.5px;
  line-height:1.45;
  transition:color .2s, border-color .2s, background .2s, padding .2s;
}
.ao-toc__item--h3 a{
  padding-left:32px;
  font-size:13.5px;
  color:rgba(255,255,255,.45);
}
.ao-toc__item a:hover{
  color:#fff;
  background:rgba(255,255,255,.03);
}
.ao-toc__item.is-active a{
  color:var(--ao-accent, #c4964c);
  border-left-color:var(--ao-accent, #c4964c);
  font-weight:600;
}
.ao-toc__item.is-active.ao-toc__item--h3 a{
  color:var(--ao-accent, #c4964c);
}

/* ---- Sidebar-вариант: основной TOC статьи (desktop sticky + mobile сверху) ---- */
.ao-toc--sidebar{ margin:0; }

/* ---- Inline-вариант: только когда автор явно поставил [ao_toc] в контент ---- */
.ao-toc--inline{
  margin:28px auto;
  max-width:680px;
}

/* ---------- Этап 3В: таблица / плюсы-минусы / шаги / цифра / фигура / видео ---------- */
/* ---------- Таблицы сравнения ----------
   Селектор работает И как обёртка (.ao-table — div вокруг таблицы),
   И как класс на самой <table class="ao-table"> (так пишут AI-агенты). */
.ao-table,
table.ao-table{
  display:block; width:100%;
  margin:24px 0;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  background:linear-gradient(180deg, rgba(28,28,38,.85) 0%, rgba(18,18,26,.92) 100%);
  box-shadow:0 8px 22px rgba(0,0,0,.28);
  overflow-x:auto;
}
.ao-table table,
table.ao-table{
  width:100%; border-collapse:collapse; font-size:14.5px;
  color:rgba(255,255,255,.82);
}
.ao-table th,
.ao-table td,
table.ao-table th,
table.ao-table td{
  padding:14px 16px; text-align:left; vertical-align:top;
  border-bottom:1px solid rgba(255,255,255,.06);
  border-right:1px solid rgba(255,255,255,.04);
}
.ao-table th:last-child,
.ao-table td:last-child,
table.ao-table th:last-child,
table.ao-table td:last-child{ border-right:0 }
.ao-table tr:last-child td,
table.ao-table tr:last-child td{ border-bottom:0 }
.ao-table thead th,
table.ao-table thead th{
  background:rgba(238,128,42,.08);
  color:#fff; font-weight:700; font-size:14px;
  letter-spacing:.01em; text-transform:none;
  border-bottom:1px solid rgba(238,128,42,.25);
}
.ao-table tbody tr:hover,
table.ao-table tbody tr:hover{
  background:rgba(255,255,255,.02);
}
.ao-table tbody td:first-child,
table.ao-table tbody td:first-child{
  /* Первая колонка обычно «имя ряда» — слегка выделяем. */
  color:#fff; font-weight:600;
}

.ao-proscons{gap:20px}
.ao-proscons__pros,.ao-proscons__cons{border-radius:14px;padding:18px 20px}
.ao-proscons__pros{background:#e9f7ec}
.ao-proscons__cons{background:#fdeeec}
.ao-proscons h4{margin:0 0 10px}
.ao-proscons ul{margin:0;padding-left:18px}

.ao-howto{counter-reset:step;list-style:none;margin:18px 0;padding:0}
.ao-howto li{position:relative;padding:4px 0 16px 52px;min-height:36px}
.ao-howto li::before{counter-increment:step;content:counter(step);position:absolute;left:0;top:0;
  width:34px;height:34px;border-radius:50%;background:var(--ao-accent);color:#fff;
  display:grid;place-items:center;font-weight:800}

/* ============================================================
   Stat / factoid карточки — premium dark glass.
   .ao-stat — одиночная, .ao-factoid-card — в сетке.
   ============================================================ */
.ao-stat,
.ao-factoid-card{
  position:relative;
  text-align:center;
  margin:24px 0;
  padding:28px 24px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(28,28,38,.85) 0%, rgba(18,18,26,.92) 100%);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  box-shadow:0 10px 30px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.04);
  overflow:hidden;
  transition:transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
/* тонкая верхняя «glow»-полоска */
.ao-stat::before,
.ao-factoid-card::before{
  content:"";
  position:absolute;left:0;right:0;top:0;height:1px;
  background:linear-gradient(90deg, transparent 0%, rgba(238,128,42,.6) 50%, transparent 100%);
  opacity:.7;
}
.ao-stat:hover,
.ao-factoid-card:hover{
  transform:translateY(-3px);
  border-color:rgba(238,128,42,.35);
  box-shadow:0 14px 40px rgba(238,128,42,.18), inset 0 1px 0 rgba(255,255,255,.06);
}
.ao-stat__num,
.ao-factoid-num{
  margin:0;
  font-family:'Archivo Black','Arial Black',sans-serif;
  /* потолок 52→44px + word-break — длинные слова влезают.
     JS auto-fit (ao-theme.js) ужмёт ниже если контейнер уже */
  font-size:clamp(28px, 4.5vw, 44px);
  font-weight:900;
  line-height:1.05;
  color:var(--ao-accent, #ee802a);
  text-shadow:0 0 28px rgba(238,128,42,.28);
  letter-spacing:-0.02em;
  overflow-wrap:anywhere;
  word-break:break-word;
  hyphens:auto;
  max-width:100%;
}
.ao-stat__label,
.ao-factoid-label{
  margin:12px 0 0;
  color:rgba(255,255,255,.6);
  font-size:14px;
  line-height:1.45;
  letter-spacing:.01em;
}

/* Factoid grid — выравнивание высоты + воздух */
.ao-factoid-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:20px;
  margin:32px 0 40px;
  align-items:stretch;
}
.ao-factoid-card{margin:0; display:flex; flex-direction:column; justify-content:center; min-height:160px}

.ao-figure figcaption{color:var(--ao-muted);font-size:14px;text-align:center;margin-top:8px}
.ao-video{margin:24px 0}

/* ============================================================
   Inline CTA — premium dark. Достаточный bottom-margin, чтобы
   следующий блок (например «См. также») не прилипал.
   ============================================================ */
.ao-cta,
.ao-content-cta{
  position:relative;
  display:flex;align-items:center;gap:24px;justify-content:space-between;
  margin:32px 0 32px;
  padding:28px 32px;
  border-radius:20px;
  border:1px solid rgba(238,128,42,.32);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(238,128,42,.14), transparent 65%),
    linear-gradient(180deg, rgba(28,28,38,.92) 0%, rgba(18,18,26,.96) 100%);
  box-shadow:0 14px 40px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.04);
  overflow:hidden;
}
.ao-cta::before,
.ao-content-cta::before{
  content:"";position:absolute;left:0;right:0;top:0;height:1px;
  background:linear-gradient(90deg, transparent 0%, rgba(238,128,42,.7) 50%, transparent 100%);
}
.ao-cta__body h4,
.ao-content-cta-title{
  margin:0 0 6px;
  font-size:22px;font-weight:800;color:#fff;
  font-family:'Archivo Black','Arial Black',sans-serif;
  letter-spacing:.01em;
}
.ao-cta__body p,
.ao-content-cta-desc{
  margin:0;
  color:rgba(255,255,255,.7);
  font-size:15px;line-height:1.55;
}
.ao-cta .wp-block-button__link,
.ao-cta__btn .wp-block-button__link,
.ao-content-cta-btn,
.ao-content-cta .wp-block-button__link{
  background:var(--ao-accent, #ee802a);
  color:#fff;
  border:0;
  border-radius:12px;
  padding:14px 28px;
  font-weight:700;font-size:15px;
  letter-spacing:.02em;
  white-space:nowrap;
  cursor:pointer;
  transition:background .2s, transform .15s, box-shadow .2s;
  box-shadow:0 8px 20px rgba(238,128,42,.32);
}
.ao-cta .wp-block-button__link:hover,
.ao-content-cta .wp-block-button__link:hover,
.ao-content-cta-btn:hover{
  background:#ff8c2e;
  box-shadow:0 10px 26px rgba(238,128,42,.45);
  transform:translateY(-1px);
}
@media(max-width:600px){
  .ao-cta,.ao-content-cta{flex-direction:column;align-items:flex-start;padding:24px;text-align:left}
}

/* ============================================================
   Inline-FAQ (details/summary) — premium dark accordion внутри статьи.
   Класс .ao-faq (контейнер) + .ao-faq__item (details) + .ao-faq__a (ответ).
   Распознаётся автоматически из текстового FAQ (см. blog-patterns-extra.php).
   ============================================================ */
.ao-faq{
  margin:8px 0 24px;
  display:flex; flex-direction:column; gap:6px;
}
.ao-faq__item{
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  background:rgba(28,28,38,.55);
  overflow:hidden;
  transition:border-color .2s, background .2s;
}
.ao-faq__item[open]{
  border-color:rgba(238,128,42,.35);
  background:rgba(28,28,38,.85);
}
.ao-faq__item summary{
  /* display:block убирает нативный list-item-маркер браузера (▶/▼).
     Без него браузер показывает свой ▶ ВЫШЕ нашего chevron'а — получался дубль. */
  display:block;
  list-style:none;
  cursor:pointer;
  padding:14px 56px 14px 18px;
  position:relative;
  color:#fff !important;
  font-size:15.5px; font-weight:600; line-height:1.4;
  transition:color .15s;
}
/* Тройной kill нативного маркера: webkit + standard + Firefox-old */
.ao-faq__item summary::-webkit-details-marker{ display:none; }
.ao-faq__item summary::marker{ content:""; display:none; }
.ao-faq__item summary:hover{ color:var(--ao-accent, #ee802a) !important; }
/* Chevron-vниз через SVG (один polyline `˅`). При open поворачивается на 180°. */
.ao-faq__item summary::after{
  content:"";
  position:absolute; top:50%; right:22px;
  width:18px; height:18px;
  transform:translateY(-50%) rotate(0deg);
  transform-origin:center;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ee802a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat:no-repeat;
  background-position:center;
  background-size:18px 18px;
  transition:transform .25s ease;
  pointer-events:none;
}
.ao-faq__item[open] summary::after{
  transform:translateY(-50%) rotate(180deg);
}
.ao-faq__a{
  padding:4px 18px 16px;
  color:rgba(255,255,255,.78) !important;
  font-size:15px; line-height:1.6;
}
.ao-faq__a > *:first-child{ margin-top:0; }
.ao-faq__a > *:last-child{ margin-bottom:0; }
/* Перебить наследование от .ao-page-content-wrapper p { color: var(--ao-text) } */
.ao-faq__a p{ color:rgba(255,255,255,.78) !important; margin:0 0 .75rem; }
.ao-faq__a p:last-child{ margin-bottom:0; }

/* Строка-сателлит «См. также» — оставлять воздух от CTA, тонкая типографика */
.ao-see-also{
  margin:8px 0 32px;
  padding:0 4px;
  color:rgba(255,255,255,.5);
  font-size:14px;
  line-height:1.5;
}
.ao-see-also a{
  color:var(--ao-accent, #ee802a);
  text-decoration:underline;
  text-decoration-color:rgba(238,128,42,.45);
  text-underline-offset:3px;
}
.ao-see-also a:hover{
  color:#ff9742;
  text-decoration-color:#ff9742;
}

/* ============================================================
   Premium dark — единый стиль для всех послестатейных блоков.
   База: linear-gradient(28→18 alpha) + glass-border + glow-top.
   Текст: rgba(255,255,255,.62) тело, #fff заголовки, var(--ao-accent) акцент.
   ============================================================ */
.ao-author,
.ao-experts,
.ao-vote,
.ao-support,
.ao-comments,
.ao-related,
.ao-postnav,
.ao-share{margin:36px 0}

.ao-author__title,
.ao-experts__title,
.ao-related__title,
.ao-support__title,
.ao-share__title{
  font-family:'Archivo Black','Arial Black',sans-serif;
  /* Чуть крупнее (15px) и контрастнее (.85): на dark-фоне 13px@.55 был нечитаемым */
  font-size:15px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:rgba(255,255,255,.85);
  margin:0 0 18px;
}

/* ---------- общая карточка-обёртка для «инфо-блоков» ---------- */
/* .ao-experts ИСКЛЮЧЁН: эта секция теперь — список самостоятельных карточек-item'ов
   (см. ниже), без общей рамки вокруг всех экспертов. Заголовок «Наши эксперты»
   стоит отдельно над ними. */
.ao-author__card,
.ao-vote,
.ao-support__card,
.ao-share{
  position:relative;
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  background:linear-gradient(180deg, rgba(28,28,38,.85) 0%, rgba(18,18,26,.92) 100%);
  box-shadow:0 10px 30px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.04);
}
.ao-author__card::before,
.ao-vote::before,
.ao-support__card::before,
.ao-share::before{
  content:"";position:absolute;left:0;right:0;top:0;height:1px;
  background:linear-gradient(90deg, transparent 0%, rgba(238,128,42,.6) 50%, transparent 100%);
  opacity:.7;
}

/* ---------- автор (карточка под статьёй) ---------- */
.ao-author{margin-top:48px}
.ao-author__card{display:flex;gap:22px;align-items:flex-start;padding:24px 26px}
/* Форму держит wrapper (.ao-author__media), а img всегда заполняет его на 100%.
   Так HTML-атрибуты width/height на <img> от get_avatar() и любые inline-стили
   не могут перекосить круг — wrapper жёстко 88×88 с border-radius:50%. */
.ao-author__media{
  flex:none;
  width:88px;
  height:88px;
  border-radius:50%;
  overflow:hidden;
  border:2px solid rgba(238,128,42,.35);
  background:rgba(0,0,0,.3);
}
.ao-author__photo{
  width:100% !important;
  height:100% !important;
  display:block;
  object-fit:cover;
  object-position:center 20%;
  border-radius:50%;
}
.ao-author__name{display:inline-block;font-size:19px;font-weight:800;color:#fff;
  text-decoration:none;margin-bottom:6px;letter-spacing:.01em}
.ao-author__name:hover{color:var(--ao-accent, #ee802a)}
/* Бейдж-роль автора («Преподаватель гитары · 14 лет стажа») — между именем и био */
.ao-author__role{
  display:inline-block;
  margin:0 0 12px 14px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(238,128,42,.32);
  background:rgba(238,128,42,.08);
  color:var(--ao-accent, #ee802a);
  font-size:12.5px; font-weight:600;
  letter-spacing:.02em;
}
.ao-author__bio{margin:0 0 12px;color:rgba(255,255,255,.7);line-height:1.6;font-size:15px}

/* ---------- наши эксперты ----------
   Секция = заголовок + список самостоятельных карточек-item'ов с воздухом
   между ними. Каждый эксперт со своей рамкой (без общей оболочки). */
.ao-experts{
  display:flex; flex-direction:column; gap:14px;
  margin:0; padding:0;
  background:none; border:0; box-shadow:none;
}
.ao-experts__title{
  margin:0 0 4px;
  padding:0 4px;
}
.ao-experts__item{
  position:relative;
  padding:20px 22px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:linear-gradient(180deg, rgba(28,28,38,.85) 0%, rgba(18,18,26,.92) 100%);
  box-shadow:0 8px 22px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04);
}
.ao-experts__item::before{
  content:"";position:absolute;left:0;right:0;top:0;height:1px;
  background:linear-gradient(90deg, transparent 0%, rgba(238,128,42,.5) 50%, transparent 100%);
  opacity:.6;
}
.ao-experts__name{display:inline-block;color:#fff;text-decoration:none;
  margin:0 0 4px;font-weight:700;font-size:16px}
.ao-experts__name:hover{color:var(--ao-accent, #ee802a)}
/* Подпись «Преподаватель по [инструмент]» под именем эксперта */
.ao-experts__role{
  display:block;
  margin:0 0 12px;
  color:rgba(255,255,255,.55);
  font-size:13px; font-weight:500; line-height:1.4;
}
.ao-experts__row{display:flex;gap:16px;align-items:flex-start}
.ao-experts__ava img{
  /* !important перебивает width/height-атрибуты от get_the_post_thumbnail() */
  width:64px !important;
  height:64px !important;
  aspect-ratio:1/1;
  border-radius:50%;
  object-fit:cover;
  object-position:center 20%;
  border:2px solid rgba(238,128,42,.3);
  flex:none;
}
.ao-experts__bubble{position:relative;background:rgba(0,0,0,.32);border:1px solid rgba(255,255,255,.05);
  border-radius:14px;padding:16px 18px;flex:1}
.ao-experts__bubble p{margin:0 0 14px;color:rgba(255,255,255,.75);line-height:1.55;font-size:14.5px}
.ao-experts__ask{
  /* Компактная кнопка — раньше во весь ширину пузыря, доминировала. */
  align-self:flex-start;
  display:inline-flex; align-items:center; gap:.4rem;
  background:transparent;
  color:var(--ao-accent, #ee802a);
  font-size:13px; font-weight:600;
  padding:8px 16px;
  border:1px solid var(--ao-accent, #ee802a);
  border-radius:10px;
  text-decoration:none;
  transition:background .2s, color .2s, transform .15s;
  white-space:nowrap;
}
.ao-experts__ask:hover{
  background:var(--ao-accent, #ee802a); color:#fff;
  transform:translateY(-1px);
}
.ao-experts__bubble{ display:flex; flex-direction:column; gap:.85rem; }

/* ---------- рейтинг + голосование ---------- */
.ao-rating{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ao-rating__label{font-weight:700;color:rgba(255,255,255,.78)}
.ao-rating__stars{display:inline-flex;gap:2px}
.ao-rating__star{background:none;border:0;font-size:22px;line-height:1;
  color:rgba(255,255,255,.18);cursor:pointer;padding:0;transition:color .15s}
.ao-rating__star.is-on,.ao-rating__star:hover{color:#f5b50a}
.ao-rating__count{color:rgba(255,255,255,.45)}

.ao-vote{padding:28px;text-align:center}
.ao-vote__q{margin:0 0 20px;font-size:18px;color:#fff;font-weight:700}
.ao-vote__btns{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}
.ao-vote__btn{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.12);
  color:#fff;border-radius:12px;padding:12px 22px;
  font-size:15px;font-weight:600;cursor:pointer;
  transition:background .15s, border-color .15s, transform .1s;
}
.ao-vote__btn:hover{background:rgba(238,128,42,.12);border-color:rgba(238,128,42,.45)}
.ao-vote__btn[disabled]{opacity:.5;cursor:default;pointer-events:none}
.ao-vote__count{color:var(--ao-accent, #ee802a);margin-right:6px;font-weight:800}

/* ---------- «Всё ещё нужна помощь» — support CTA ---------- */
.ao-support__card{display:flex;align-items:center;gap:20px;padding:24px 28px}
.ao-support__icon{
  display:grid;place-items:center;width:48px;height:48px;border-radius:50%;
  background:linear-gradient(135deg, rgba(238,128,42,.25) 0%, rgba(238,128,42,.08) 100%);
  border:1px solid rgba(238,128,42,.35);
  color:var(--ao-accent, #ee802a);font-weight:800;font-size:20px;flex:none;
}
.ao-support__body{flex:1;min-width:0}
.ao-support__body strong{display:block;font-size:17px;font-weight:700;color:#fff;margin-bottom:4px}
.ao-support__body p{margin:0;color:rgba(255,255,255,.65);font-size:14.5px;line-height:1.5}
/* кнопка справа от текста — берёт стиль .ao-btn--accent или встроенной */
.ao-support__card .ao-btn{flex:none;align-self:center;white-space:nowrap}

/* ---------- комментарии (форма + список) ---------- */
.ao-comments .comment-form{
  background:rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.06);
  border-radius:18px;padding:28px;
  display:grid;grid-template-columns:1fr 1fr;gap:16px;
}
.ao-comments__field{margin:0}
.ao-comments__field--full,.ao-comments .form-submit,.ao-comments__consent{grid-column:1 / -1}
.ao-comments input,.ao-comments textarea{
  width:100%;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.1);
  border-radius:10px;
  padding:14px 16px;
  font-size:15px;color:#fff;
  transition:border-color .15s, background .15s;
}
.ao-comments input::placeholder,.ao-comments textarea::placeholder{color:rgba(255,255,255,.35)}
.ao-comments input:focus,.ao-comments textarea:focus{
  outline:none;
  background:rgba(255,255,255,.06);
  border-color:rgba(238,128,42,.45);
}
.ao-comments__consent{font-size:13px;color:rgba(255,255,255,.5);margin:0;line-height:1.5}
.ao-comments__consent a{color:var(--ao-accent, #ee802a);text-decoration:underline;text-underline-offset:3px}
@media(max-width:600px){.ao-comments .comment-form{grid-template-columns:1fr}}

/* ---------- рекомендации ---------- */
.ao-related__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px}
.ao-related__card{
  display:flex;flex-direction:column;gap:10px;text-decoration:none;
  color:#fff;
  padding:14px;border-radius:14px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.02);
  transition:border-color .2s, transform .15s, background .2s;
}
.ao-related__card:hover{
  border-color:rgba(238,128,42,.35);
  background:rgba(238,128,42,.04);
  transform:translateY(-2px);
}
.ao-related__thumb img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:10px;display:block}
/* Усилен контраст: было .ao-related__name fff но в реальности перебивался родительским
   .ao-related__card color:#fff с opacity родителя. Делаем явно белый, важнее наследования. */
.ao-related__name{
  font-size:16px;font-weight:600;line-height:1.4;
  color:#fff !important;     /* перебиваем любую родительскую opacity */
  text-decoration:none;
}
.ao-related__meta{color:rgba(255,255,255,.55);font-size:13px}

/* ---------- пред./след. ---------- */
.ao-postnav{display:flex;gap:16px;margin:28px 0}
.ao-postnav__link{
  flex:1;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;padding:18px 20px;
  text-decoration:none;color:#fff;font-weight:600;font-size:15px;
  background:rgba(255,255,255,.02);
  transition:border-color .2s, background .2s;
}
.ao-postnav__link:hover{border-color:rgba(238,128,42,.4);background:rgba(238,128,42,.05);color:#fff}
.ao-postnav__link span{display:block;color:rgba(255,255,255,.4);font-size:12px;font-weight:600;
  letter-spacing:.06em;text-transform:uppercase;margin-bottom:6px}
.ao-postnav__next{text-align:right}
@media(max-width:600px){.ao-postnav{flex-direction:column}}

/* ---------- шеринг (полный вариант под статьёй) ---------- */
.ao-share{padding:24px 26px}
.ao-share__title{margin-bottom:16px}
.ao-share__row{display:flex;gap:10px;flex-wrap:wrap}
.ao-share__btn{
  padding:10px 18px;border-radius:999px;text-decoration:none;
  font-size:14px;font-weight:600;color:#fff;
  display:inline-flex;align-items:center;gap:.5rem;
  transition:transform .15s, filter .15s, box-shadow .15s;
  box-shadow:0 4px 12px rgba(0,0,0,.25);
}
.ao-share__btn:hover{transform:translateY(-2px);filter:brightness(1.1);color:#fff;
  box-shadow:0 6px 18px rgba(0,0,0,.35)}
.ao-share__btn svg{flex:none}
/* brand colors — узнаваемость соцсетей */
.ao-share__btn--vk{background:#0077ff}
.ao-share__btn--telegram{background:#28a8e9}
.ao-share__btn--ok{background:#ee8208}
.ao-share__btn--twitter{background:#15171a;border:1px solid rgba(255,255,255,.15)}
.ao-share__btn--whatsapp{background:#25d366}

/* #18 FAQ-аккордеон — каноническая версия выше (см. строки ~476–537, .ao-faq + SVG-chevron). */
