/*
Theme Name: Alter для бизнеса: блог
Theme URI: https://alter-business.ru/blog/
Author: Alter
Description: Тема блога alter-business.ru/blog. Вид статей и списка повторяет alter.ru/business-blog, шапка и футер как на сайте alter-business.ru (header.php и footer.php собирает alter-business/blog/sobrat-temu.py из шапки сайта; руками их не править).
Version: 1.7
Text Domain: alter-business-blog
*/

:root {
  --ink: #282C3E;
  --text: #4C516B;
  --muted: #8A90A6;
  --green: #239266;
  --green-bright: #29B981;
  --green-soft: #EAF7F0;
  --line: #ECEFEA;
  --bg: #FBFCFB;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Futura PT', 'Futura Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
::selection { background: #A1E1C8; color: var(--ink); }

.ab-wrap { max-width: 1180px; margin: 0 auto; padding: 0 40px; }
.ab-crumbs { display: flex; flex-wrap: wrap; gap: 5px; font-size: 11.5px; color: #A3A9BC; padding-top: 24px; }
.ab-crumbs a { color: #A3A9BC; text-decoration: none; }
.ab-crumbs a:hover { color: var(--green); }
.ab-crumbs span.sep { color: #D8DBE3; }
.ab-crumbs span.cur { color: var(--muted); }

/* ── список статей ─────────────────────────────────────────── */
.ab-hero { padding: 64px 0 40px; }
.ab-hero h1 { font-weight: 700; font-size: 52px; line-height: 1.12; letter-spacing: -1.2px; max-width: 820px; }
.ab-hero h1 em { font-style: normal; color: var(--green); }
.ab-hero p { font-size: 20px; line-height: 1.55; color: var(--text); margin-top: 18px; max-width: 680px; }

.ab-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 36px; }
.ab-pill { display: inline-flex; align-items: center; padding: 9px 18px; border-radius: 30px; border: 1.5px solid #CFE6DA; color: var(--green); font-size: 14px; font-weight: 600; text-decoration: none; transition: background .16s, color .16s; }
.ab-pill:hover { background: var(--green-soft); }
.ab-pill.is-active { background: var(--green); border-color: var(--green); color: #fff; }

.ab-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }
.ab-card { display: flex; flex-direction: column; text-decoration: none; }
.ab-card__cover { display: block; aspect-ratio: 16 / 11; border-radius: 22px; overflow: hidden; background: radial-gradient(130% 130% at 18% 0%, #F2FAF5 0%, #DFF1E7 100%); }
.ab-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.ab-card:hover .ab-card__cover img { transform: scale(1.03); }
.ab-card__cover--empty { display: flex; align-items: center; justify-content: center; }
.ab-card__cover--empty span { font-weight: 700; font-size: 22px; color: var(--green); opacity: .55; }
.ab-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ab-tag { font-size: 11.5px; color: var(--muted); border: 1px solid #DDE1E6; border-radius: 20px; padding: 3px 9px; }
.ab-card__title { font-weight: 600; font-size: 20px; line-height: 1.3; color: var(--ink); margin-top: 12px; }
.ab-card:hover .ab-card__title { color: var(--green); }
.ab-card__text { font-size: 15px; line-height: 1.55; color: var(--text); margin-top: 8px; }

.ab-pager { display: flex; justify-content: center; gap: 8px; margin: 56px 0 0; }
.ab-pager .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 44px; border: 1.5px solid #CFE6DA; color: var(--green); font-weight: 600; text-decoration: none; }
.ab-pager .page-numbers.current { background: var(--green); border-color: var(--green); color: #fff; }

/* ── статья ─────────────────────────────────────────────────── */
.ab-post-head { padding: 48px 0 8px; max-width: 900px; }
.ab-post-head h1 { font-weight: 700; font-size: 52px; line-height: 1.12; letter-spacing: -1.2px; }
.ab-post-head .ab-card__tags { margin-top: 24px; }
.ab-author { display: flex; align-items: center; gap: 12px; margin-top: 32px; font-size: 14px; color: var(--muted); }
.ab-author__ava { width: 40px; height: 40px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ab-author b { color: var(--ink); font-weight: 600; }

.ab-post { max-width: 760px; margin: 0 auto; padding: 40px 0 0; }
.ab-meta { display: flex; gap: 22px; font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.ab-toc { background: #F4F6F5; border-radius: 20px; padding: 24px 28px; margin: 28px 0 40px; }
.ab-toc__title { font-weight: 700; font-size: 18px; display: flex; align-items: baseline; gap: 10px; }
.ab-toc__title button { background: none; border: none; color: var(--muted); font-size: 12px; cursor: pointer; }
.ab-toc ol { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.ab-toc li a { text-decoration: none; font-weight: 600; font-size: 15.5px; line-height: 1.35; color: var(--ink); }
.ab-toc li a:hover { color: var(--green); }
.ab-toc li.h3 { padding-left: 18px; }
.ab-toc li.h3 a { font-weight: 400; font-size: 14px; color: var(--text); }
.ab-toc.is-closed ol { display: none; }

.ab-content { font-size: 18px; line-height: 1.65; color: var(--text); }
.ab-content > * + * { margin-top: 20px; }
.ab-content h2 { font-weight: 700; font-size: 36px; line-height: 1.2; letter-spacing: -0.6px; color: var(--ink); margin-top: 56px; scroll-margin-top: 96px; }
.ab-content h3 { font-weight: 600; font-size: 24px; line-height: 1.3; color: var(--ink); margin-top: 36px; scroll-margin-top: 96px; }
.ab-content h4 { font-weight: 600; font-size: 20px; color: var(--ink); margin-top: 28px; }
.ab-content strong { color: var(--ink); }
.ab-content a { color: var(--green); }
.ab-content ul, .ab-content ol { padding-left: 24px; }
.ab-content li + li { margin-top: 8px; }
.ab-content blockquote { border-left: 3px solid var(--green-bright); padding: 4px 0 4px 20px; color: var(--ink); }
.ab-content figure { margin: 32px 0; }
.ab-content figure img { border-radius: 18px; }
.ab-content figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.ab-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ab-content td, .ab-content th { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }

.ab-cta { margin: 64px auto 0; max-width: 1180px; background: linear-gradient(135deg, #1C7F58 0%, #239266 55%, #29B981 100%); border-radius: 28px; padding: 44px 48px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.ab-cta h3 { font-weight: 700; font-size: 28px; line-height: 1.2; max-width: 620px; }
.ab-cta p { font-size: 16px; opacity: .9; margin-top: 10px; max-width: 620px; }
.ab-cta a { flex: 0 0 auto; background: #fff; color: var(--green); font-weight: 700; font-size: 16px; padding: 16px 30px; border-radius: 44px; text-decoration: none; }

.ab-more { padding: 80px 0 0; }
.ab-more h2 { font-weight: 700; font-size: 36px; letter-spacing: -0.6px; margin-bottom: 28px; }

@media (max-width: 1024px) {
  .ab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-hero h1, .ab-post-head h1 { font-size: 40px; }
}
@media (max-width: 680px) {
  .ab-wrap { padding: 0 18px; }
  .ab-grid { grid-template-columns: 1fr; }
  .ab-hero { padding: 40px 0 28px; }
  .ab-hero h1, .ab-post-head h1 { font-size: 30px; letter-spacing: -0.6px; }
  .ab-hero p { font-size: 17px; }
  .ab-content { font-size: 16.5px; }
  .ab-content h2 { font-size: 27px; margin-top: 44px; }
  .ab-content h3 { font-size: 21px; }
  .ab-cta { flex-direction: column; align-items: flex-start; padding: 30px 22px; border-radius: 22px; margin: 48px 18px 0; }
  .ab-cta h3 { font-size: 22px; }
}
