/* blog.css — типографика статей ABD. Поверх style.css (переменные/шапка/футер оттуда). */

.article-wrap { padding-top: clamp(92px, 11vw, 124px); padding-bottom: clamp(48px, 7vw, 88px); }

/* Хлебные крошки */
.crumbs { font-size: 13px; letter-spacing: .02em; color: #8a8a8a; margin-bottom: 22px; }
.crumbs a { color: #8a8a8a; text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { color: var(--line); margin: 0 8px; }

/* Шапка статьи */
.article-head { max-width: 760px; margin: 0 auto; }
.article-eyebrow { font-family: 'Geologica', sans-serif; font-weight: 700; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--acid-deep); margin-bottom: 14px; }
.article-h1 { font-family: 'Geologica', sans-serif; font-weight: 800; letter-spacing: -.03em;
  font-size: clamp(30px, 5vw, 52px); line-height: 1.06; margin-bottom: 18px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 14px; color: #8a8a8a;
  padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.article-meta b { color: var(--ink); font-weight: 600; }

/* Счётчик просмотров — скрыт, пока JS не получит число (защита от «пустого глаза») */
.views-stat { display: none; }
.views-stat.is-ready { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.views-stat svg { display: block; opacity: .7; }
.article-meta .views-stat b { color: var(--ink); font-weight: 600; }
.jcard-m .views-stat { color: #9a9a9a; }
.jcard-m .views-stat.is-ready { display: inline-flex; }

/* Тело статьи — читаемая колонка */
.article-body { max-width: 760px; margin: 0 auto; font-size: 18px; line-height: 1.72; color: #1c1c1c; }
.article-body > * + * { margin-top: 1.15em; }
.article-body h2 { font-family: 'Geologica', sans-serif; font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(23px, 3.4vw, 32px); line-height: 1.18; margin-top: 1.8em; scroll-margin-top: 96px; }
.article-body h3 { font-family: 'Geologica', sans-serif; font-weight: 700;
  font-size: clamp(19px, 2.6vw, 23px); margin-top: 1.5em; }
.article-body p { color: #222; }
.article-body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--acid);
  text-decoration-thickness: 2px; text-underline-offset: 3px; }
/* кислотная подсветка — только для текстовых ссылок (без класса), не для карточек */
.article-body a:not([class]):hover { background: var(--acid); }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li { margin-top: .5em; }
.article-body ul li::marker { color: var(--acid-deep); }
.article-body strong { font-weight: 700; }
.article-body blockquote { border-left: 3px solid var(--acid); padding: 4px 0 4px 22px; margin-left: 0;
  font-size: 1.06em; color: #111; font-style: normal; }

/* Врезка-ключевик / факт */
.article-body .callout { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px 22px; font-size: 16px; line-height: 1.6; }
.article-body .callout b { color: var(--ink); }

/* Перелинковка-карточка на услугу/кейс */
.inline-link { display: block; text-decoration: none !important; background: var(--ink); color: #fff;
  border-radius: var(--radius-sm); padding: 20px 22px; margin-top: 1.6em; transition: transform .2s var(--ez); }
.inline-link:hover { transform: translateY(-2px); background: var(--dark-soft); }
.inline-link .il-k, .inline-link .il-t, .inline-link .il-s { display: block; }
.inline-link .il-k { color: var(--acid); font-size: 13px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; }
.inline-link .il-t { color: #fff; font-family: 'Geologica', sans-serif; font-weight: 700; font-size: 19px; margin-top: 6px; }
.inline-link .il-s { color: #b6b6b6; font-size: 14.5px; margin-top: 4px; }

/* Встроенный кейс по теме — тёмная карточка с обложкой слева */
.article-body .inline-case { display: flex; align-items: stretch; text-decoration: none !important; color: #fff;
  background: var(--ink); border-radius: var(--radius-sm); overflow: hidden; margin-top: 1.6em;
  transition: transform .2s var(--ez), background .2s var(--ez); }
.article-body .inline-case:hover { transform: translateY(-2px); background: var(--dark-soft); }
.inline-case .ic-cover { width: 200px; flex: none; background: #222; }
.inline-case .ic-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inline-case .ic-b { flex: 1; min-width: 0; align-self: center; padding: 22px 24px; }
.inline-case .ic-k { display: block; color: var(--acid); font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; }
.inline-case .ic-t { display: block; font-family: 'Geologica', sans-serif; font-weight: 700;
  font-size: 20px; line-height: 1.2; margin-top: 8px; }
.inline-case .ic-s { display: block; color: #b6b6b6; font-size: 14.5px; margin-top: 8px; }
.inline-case .ic-cta { color: #fff; text-decoration: underline; text-decoration-color: var(--acid);
  text-decoration-thickness: 2px; text-underline-offset: 2px; }
.inline-case .arw { color: #fff; margin-left: 7px; vertical-align: middle; }
.inline-case:hover .arw .shaft { width: 26px; }
@media (max-width: 600px) {
  .inline-case .ic-cover { width: 110px; }
  .inline-case .ic-b { padding: 16px 18px; }
  .inline-case .ic-t { font-size: 17px; }
}

/* Финальный CTA */
.article-cta { max-width: 760px; margin: clamp(40px, 6vw, 64px) auto 0; background: var(--acid); color: var(--ink);
  border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); }
.article-cta h2 { font-family: 'Geologica', sans-serif; font-weight: 800; font-size: clamp(22px, 3.2vw, 30px);
  letter-spacing: -.02em; line-height: 1.12; }
.article-cta p { margin-top: 10px; font-size: 16px; color: #2a3208; }
.article-cta .btn { display: inline-flex; margin-top: 20px; background: var(--ink); color: #fff;
  padding: 14px 26px; border-radius: 100px; font-weight: 700; text-decoration: none; font-size: 15px; }
.article-cta .btn:hover { background: var(--dark-soft); }

@media (max-width: 600px) {
  .article-body { font-size: 17px; }
}

/* ---------- Индекс журнала ---------- */
.journal-hero { padding-top: clamp(96px, 12vw, 132px); padding-bottom: clamp(20px, 3vw, 36px); }
.journal-hero .article-eyebrow { color: var(--acid-deep); }
.journal-h1 { font-family: 'Geologica', sans-serif; font-weight: 800; letter-spacing: -.03em;
  font-size: clamp(34px, 6vw, 64px); line-height: 1.04; }
.journal-sub { max-width: 620px; margin-top: 14px; font-size: 18px; line-height: 1.6; color: #555; }

.journal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.5vw, 26px);
  padding-bottom: clamp(48px, 7vw, 88px); }
.jcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; overflow: hidden; text-decoration: none; color: var(--ink); background: #fff;
  transition: border-color .2s var(--ez), transform .2s var(--ez); min-width: 0; }
.jcard:hover { border-color: var(--acid); transform: translateY(-3px); }
.jcard-pad { display: flex; flex-direction: column; flex: 1; padding: clamp(18px, 2.5vw, 24px); }

/* Обложка-знак (кислотный глиф на графите, текст белый — без зелёного на зелёном) */
.cover { position: relative; background: var(--ink); overflow: hidden; display: flex; align-items: flex-end; }
.cover .cg { position: absolute; font-family: 'Geologica', sans-serif; font-weight: 900; color: var(--acid);
  line-height: 1; user-select: none; }
.cover .cl { position: relative; z-index: 2; font-family: 'Geologica', sans-serif; font-weight: 800; color: #fff; }
.jcard-cover { aspect-ratio: 16/10; padding: 14px 16px; }
.jcard-cover .cg { top: -16%; right: -3%; font-size: 128px; }
.jcard-cover .cl { font-size: 14px; letter-spacing: .01em; }

/* Обложка в шапке статьи */
.article-cover { max-width: 760px; margin: 0 auto 30px; aspect-ratio: 40/13; border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px); }
.article-cover .cg { top: -22%; right: -1%; font-size: clamp(180px, 32vw, 360px); }
.article-cover .cl { font-size: clamp(15px, 2vw, 18px); }
@media (max-width: 600px){ .article-cover{ aspect-ratio: 16/9; } }
.jcard-k { font-family: 'Geologica', sans-serif; font-weight: 700; font-size: 12.5px; letter-spacing: .07em;
  text-transform: uppercase; color: var(--acid-deep); }
.jcard-t { font-family: 'Geologica', sans-serif; font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(20px, 2.6vw, 25px); line-height: 1.16; margin-top: 12px; }
.jcard-d { font-size: 15px; line-height: 1.55; color: #555; margin-top: 12px; flex: 1; }
.jcard-m { font-size: 13px; color: #9a9a9a; margin-top: 18px; }
.jcard-m b { color: var(--ink); font-weight: 600; }
.jcard-go { margin-top: 14px; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.jcard:hover .jcard-go { color: var(--acid-deep); }

@media (max-width: 680px) { .journal-grid { grid-template-columns: 1fr; } }
