/*
Theme Name: Kadence Child — Marina Drawing
Theme URI: https://marinadrawing.com
Description: Child theme of Kadence for pillowandblanket.com. Crochet & knit blanket blog: patterns, stitches, yarn. Pinterest-optimised, mobile-first. Design lives in Kadence Customizer; this child only adds palette variables + CTA/card styles. Monetisation logic lives in the pb-affiliate-core plugin.
Template: kadence
Version: 2026-08-22-ff75d258
Author: Pillow & Blanket
Text Domain: pillow-child
*/

/* ══════════════════════════════════════════
   ШКАЛЫ — одинаковы у всех сайтов кита.
   Цвет, шрифты и знак логотипа — в блоке PB:TOKENS ниже.
══════════════════════════════════════════ */
:root {
  /* Цвета и шрифты объявлены один раз в блоке PB:TOKENS ниже — он
     генерируется из site.json. Здесь только то, что одинаково у всех сайтов. */
  --pb-radius:      14px;
  --pb-shadow:      0 4px 18px rgba(58,50,56,.10);

  /* Шкала отступов. Новый компонент берёт значения отсюда и ниоткуда больше —
     иначе появляются 18/20/22/26px, между которыми нет разницы, кроме случайной. */
  --pb-space-1: 4px;
  --pb-space-2: 8px;
  --pb-space-3: 12px;
  --pb-space-4: 16px;
  --pb-space-5: 20px;
  --pb-space-6: 24px;
  --pb-space-7: 32px;   /* вертикальный зазор между блоками статьи */
  --pb-space-8: 48px;

  --pb-radius-sm:   10px;
  --pb-radius-pill: 999px;

  /* Кегль. Крупные три — заголовочным шрифтом, остальные — текстовым. */
  --pb-text-xs:   .82rem;   /* лейблы, дисклеймер */
  --pb-text-sm:   .93rem;   /* подписи, мета, био */
  --pb-text-base: 1.02rem;  /* кнопки, выноски */
  --pb-text-lg:   1.06rem;  /* тело статьи */
  --pb-text-xl:   1.2rem;   /* H3 */
  --pb-text-2xl:  1.35rem;  /* заголовок карточки-CTA */
  --pb-text-3xl:  clamp(1.5rem, 5.2vw, 2rem);  /* H2 — на 390px иначе уходит в 4 строки */

  --pb-measure: 68ch;       /* мера строки основного текста */
}

/* ══════════════════════════════════════════
   CTA BUTTONS  (rendered by [cta] shortcode)
══════════════════════════════════════════ */
.pb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  padding: 14px 26px;
  border-radius: var(--pb-radius);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  cursor: pointer;
}
.pb-btn:hover { transform: translateY(-1px); box-shadow: var(--pb-shadow); }
.pb-btn-primary   { background: var(--pb-accent);    color: #fff; }
.pb-btn-primary:hover   { background: var(--pb-accent-deep); color: #fff; }
.pb-btn-secondary { background: transparent; color: var(--pb-accent-deep); border: 2px solid var(--pb-accent); }
.pb-btn-secondary:hover { background: var(--pb-accent); color: #fff; }

/* ══════════════════════════════════════════
   MEGA CTA  (single.php hero block)
══════════════════════════════════════════ */
.pb-mega-cta {
  background: var(--pb-cream);
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-radius);
  padding: var(--pb-space-5) var(--pb-space-6);
  margin: var(--pb-space-7) 0;
  text-align: center;
}
.pb-mega-cta h3 { margin: 0 0 8px; font-size: 1.35rem; color: var(--pb-ink); }
.pb-mega-cta p  { margin: 0 0 18px; color: var(--pb-accent-deep); }

/* ══════════════════════════════════════════
   STICKY BOTTOM CTA  (mobile-first, Pinterest traffic)
══════════════════════════════════════════ */
.pb-sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 999;
  background: #fff;
  border-top: 1px solid var(--pb-line);
  box-shadow: 0 -4px 18px rgba(58,50,56,.10);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100%);
  transition: transform .25s ease;
}
.pb-sticky-cta.is-visible { transform: translateY(0); }
.pb-sticky-cta .pb-sticky-label { flex: 1; font-weight: 600; font-size: .95rem; color: var(--pb-ink); }
.pb-sticky-cta .pb-btn { padding: 11px 20px; font-size: .95rem; }
.pb-sticky-close {
  background: none; border: none; font-size: 1.4rem; line-height: 1;
  color: var(--pb-accent-deep); cursor: pointer; padding: 4px 8px;
}
@media (min-width: 900px) {
  .pb-sticky-cta { left: auto; right: 24px; bottom: 24px; max-width: 420px; border-radius: var(--pb-radius); border: 1px solid var(--pb-line); }
}

/* ══════════════════════════════════════════
   OFFER TABLE  ([offer_table] shortcode)
══════════════════════════════════════════ */
.pb-offer-table { width: 100%; border-collapse: collapse; margin: var(--pb-space-7) 0; font-size: .98rem; }
.pb-offer-table th, .pb-offer-table td { padding: 12px 14px; border-bottom: 1px solid var(--pb-line); text-align: left; vertical-align: top; }
.pb-offer-table thead th { background: var(--pb-cream); color: var(--pb-ink); font-weight: 700; }
.pb-offer-table tr:last-child td { border-bottom: none; }
.pb-offer-table .pb-btn { padding: 9px 16px; font-size: .9rem; }
.pb-offer-table-wrap { overflow-x: auto; }

/* ══════════════════════════════════════════
   POST CARD  (pb_post_card — archives / related)
══════════════════════════════════════════ */
.pb-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-radius);
  overflow: hidden;
  transition: box-shadow .15s ease, transform .15s ease;
}
.pb-card:hover { box-shadow: var(--pb-shadow); transform: translateY(-2px); }
.pb-card-img { display: block; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; }
.pb-card-body { padding: 14px 16px 18px; }
.pb-card-title { margin: 0 0 6px; font-size: 1.08rem; line-height: 1.3; }
.pb-card-title a { color: var(--pb-ink); text-decoration: none; }
.pb-card-title a:hover { color: var(--pb-accent); }
.pb-card-excerpt { margin: 0; color: var(--pb-accent-deep); font-size: .92rem; }

/* ══════════════════════════════════════════
   AUTHOR BOX  ([author_box] shortcode)
══════════════════════════════════════════ */
.pb-author-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--pb-cream);
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-radius);
  padding: var(--pb-space-5);
  margin: var(--pb-space-7) 0;
}
.pb-author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.pb-author-box .pb-author-name { margin: 0 0 4px; font-size: 1.05rem; color: var(--pb-ink); }
.pb-author-box .pb-author-bio  { margin: 0; color: var(--pb-accent-deep); font-size: .93rem; }

/* ══════════════════════════════════════════
   POST META  (visible "Last updated" — CSS["post_meta"])
══════════════════════════════════════════ */
.pb-post-meta { color: var(--pb-accent-deep); font-size: .88rem; margin: 6px 0 20px; }

/* ══════════════════════════════════════════
   TABLE OF CONTENTS  ([toc] shortcode / pb_render_toc())
══════════════════════════════════════════ */
.pb-toc {
  background: var(--pb-cream);
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-radius);
  padding: var(--pb-space-5) var(--pb-space-6);
  margin: var(--pb-space-7) 0;
}
.pb-toc-label { margin: 0 0 10px; font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--pb-accent-deep); }
.pb-toc ul { margin: 0; padding: 0; list-style: none; }
.pb-toc li { margin: 0 0 8px; }
.pb-toc li:last-child { margin-bottom: 0; }
.pb-toc a { color: var(--pb-ink); text-decoration: none; font-size: .96rem; border-bottom: 1px solid transparent; }
.pb-toc a:hover { color: var(--pb-accent); border-bottom-color: var(--pb-accent); }

/* ══════════════════════════════════════════
   PRODUCT CARD  ([product_card] shortcode — image + hook + CTA)
══════════════════════════════════════════ */
.pb-product-card {
  background: #fff;
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-radius);
  padding: var(--pb-space-5) var(--pb-space-6);
  margin: var(--pb-space-7) 0;
  text-align: center;
}
.pb-product-card h3 { margin: 0 0 8px; font-size: 1.15rem; color: var(--pb-ink); }
.pb-product-card p { margin: 0 0 16px; color: var(--pb-accent-deep); font-size: .96rem; }
.pb-product-card-img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: var(--pb-radius-sm);
  margin: 0 auto 16px;
  object-fit: cover;
}

/* Two product cards side by side on wider screens ("картинки по две штуки в строчку") */
.pb-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--pb-space-5);
  margin: var(--pb-space-7) 0;
}
.pb-product-grid .pb-product-card { margin: 0; }
@media (min-width: 640px) {
  .pb-product-grid { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════
   QUICK ANSWER  (.quick-answer — первый блок статьи)
══════════════════════════════════════════ */
.quick-answer {
  background: #fff;
  border: 1px solid var(--pb-accent);
  border-left-width: 5px;
  border-radius: var(--pb-radius);
  padding: var(--pb-space-5) var(--pb-space-6);
  margin: 0 0 var(--pb-space-7);
}
.quick-answer p { margin: 0; color: var(--pb-ink); }
.quick-answer strong { color: var(--pb-accent-deep); }

/* ══════════════════════════════════════════
   KEY INSIGHT  (.key-insight — выноска внутри текста)
══════════════════════════════════════════ */
.key-insight {
  background: none;
  border: 0;
  border-left: 3px solid var(--pb-secondary);
  border-radius: 0;
  padding: var(--pb-space-1) 0 var(--pb-space-1) var(--pb-space-6);
  margin: var(--pb-space-7) 0;
  max-width: 62ch;
  font-style: italic;
  font-size: var(--pb-text-base);
}
.key-insight p { margin: 0; color: var(--pb-ink); }

/* ══════════════════════════════════════════
   LAST UPDATED  (.last-updated — freshness signal)
══════════════════════════════════════════ */
.last-updated { color: var(--pb-accent-deep); font-size: var(--pb-text-sm); margin-top: var(--pb-space-7); }

/* ══════════════════════════════════════════
   ARTICLE TABLES  (обычные таблицы в контенте — размеры, гейдж)
══════════════════════════════════════════ */
.entry-content table { width: 100%; border-collapse: collapse; margin: var(--pb-space-7) 0; font-size: .98rem; }
.entry-content table th,
.entry-content table td { padding: 11px 14px; border-bottom: 1px solid var(--pb-line); text-align: left; vertical-align: top; }
.entry-content table thead th { background: var(--pb-cream); color: var(--pb-ink); font-weight: 700; }

/* ══════════════════════════════════════════
   FOOTER DISCLOSURE  (wp_footer, все страницы)
══════════════════════════════════════════ */
.pb-footer-disclosure {
  max-width: 900px;
  margin: 0 auto;
  padding: 18px 20px 26px;
  text-align: center;
  font-size: .82rem;
  color: var(--pb-accent-deep);
}
.pb-footer-disclosure a { color: var(--pb-accent); }

/* ══════════════════════════════════════════
   SHARE ROW  (.pb-share — два блока: над телом статьи и под ним)
   Pinterest первый и в фирменном красном: он — источник трафика сайта.
══════════════════════════════════════════ */
.pb-share {
  margin: var(--pb-space-7) 0 var(--pb-space-2);
  padding: var(--pb-space-5) var(--pb-space-6);
  background: var(--pb-cream);
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-radius);
}
.pb-share-label {
  display: block;
  margin-bottom: 12px;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--pb-accent-deep);
}
.pb-share .pb-share-list {
  display: flex; flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pb-share-list li { margin: 0; }
.pb-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-radius-pill);
  background: #fff;
  color: var(--pb-ink);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pb-share-btn svg { width: 17px; height: 17px; fill: currentColor; flex-shrink: 0; }
.pb-share-btn:hover,
.pb-share-btn:focus-visible { background: var(--pb-ink); border-color: var(--pb-ink); color: #fff; }

.pb-share-pinterest {
  background: #E60023;
  border-color: #E60023;
  color: #fff;
}
.pb-share-pinterest:hover,
.pb-share-pinterest:focus-visible { background: #AD001A; border-color: #AD001A; }

@media (max-width: 480px) {
  .pb-share-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pb-share-btn { padding: 11px 13px; }
  .pb-share-pinterest span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}

/* ══════════════════════════════════════════
   ОБЛИК САЙТА  (777/rules/site-design-standard.md)

   Палитра Kadence (--global-palette1..9) объявлена родителем на :root
   инлайном в <head>. Переопределяем на body: у переменной, объявленной ниже
   по дереву, приоритет выше независимо от порядка подключения стилей.
══════════════════════════════════════════ */
/* PB:TOKENS START — генерируется build_site.py из site.json, руками не править */
body {
  --global-palette1: #D9527A;   /* акцент: ссылки, рубрика, кнопки */
  --global-palette2: #A8365A;   /* акцент hover */
  --global-palette3: #24243E;   /* заголовки */
  --global-palette4: #1B1B30;
  --global-palette5: #4A4A63;   /* текст */
  --global-palette6: #8A8AA0;
  --global-palette7: #F6E7E2;   /* подложки */
  --global-palette8: #FDF5F2;   /* фон блоков */
  --global-palette9: #ffffff;
  --global-palette-highlight: #D9527A;
  --global-palette-highlight-alt: #A8365A;
  --global-palette-btn-bg: #D9527A;
  --global-palette-btn-bg-hover: #A8365A;

  --global-heading-font-family: 'Baloo 2', Georgia, serif;
  --global-body-font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;

  --pb-accent:      #D9527A;
  --pb-accent-deep: #A8365A;
  --pb-secondary:   #B98A9A;
  --pb-cream:       #FDF5F2;
  --pb-ink:         #24243E;
  --pb-line:        #E5DDD8;

  --pb-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='%23D9527A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 26l3-8L22 5l5 4-13 13-8 4z'/%3E%3Cpath d='M20 7l5 4'/%3E%3Cpath d='M6 26l4-1'/%3E%3C/g%3E%3C/svg%3E");
}
/* PB:TOKENS END */

.entry-title,
h1, h2, h3, .site-title {
  font-family: var(--global-heading-font-family);
  letter-spacing: -.01em;
}
h2 { font-weight: 600; }

/* ── Логотип: вордмарк заголовочным шрифтом + знак-клубок ────────────── */
.site-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.site-title::before {
  content: "";
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  background: var(--pb-mark) center/contain no-repeat;
}

/* ── Сайдбар ─────────────────────────────────────────────────────────── */
.primary-sidebar .widget {
  margin-bottom: var(--pb-space-6);
  padding: var(--pb-space-5);
  background: var(--pb-cream);
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-radius);
}
.primary-sidebar .widget-title,
.primary-sidebar .widgettitle {
  margin: 0 0 12px;
  font-family: var(--global-heading-font-family);
  font-size: 1.02rem;
  letter-spacing: .02em;
}
.primary-sidebar ul { margin: 0; padding: 0; list-style: none; }
.primary-sidebar li + li { margin-top: 9px; }
.primary-sidebar a { color: var(--pb-ink); text-decoration: none; }
.primary-sidebar a:hover { color: var(--pb-accent); text-decoration: underline; }
.primary-sidebar .search-field { width: 100%; }

.pb-side-author { text-align: center; }
.pb-side-author img {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
}
.pb-side-author p { font-size: .93rem; line-height: 1.55; margin: 0 0 12px; }
.pb-side-author a { color: var(--pb-accent); font-weight: 600; }

/* «Начните отсюда»: маршрут из трёх шагов, поэтому номер и строка пользы —
   без них блок читается как «свежие записи» под чужим заголовком. */
.pb-start-sub {
  margin: -4px 0 14px;
  font-size: .88rem;
  line-height: 1.5;
  color: var(--pb-ink-soft);
}
.pb-start-list { margin: 0; padding: 0; list-style: none; counter-reset: none; }
.pb-start-list li + li {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--pb-line);
}
.pb-start-list a {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-weight: 600;
  line-height: 1.35;
}
.pb-start-n {
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pb-accent);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  text-align: center;
  line-height: 22px;
}
.pb-start-note {
  display: block;
  margin: 5px 0 0 32px;
  font-size: .85rem;
  line-height: 1.5;
  color: var(--pb-ink-soft);
}

.primary-sidebar .widget.pb-side-pin,
.pb-side-pin {
  background: var(--pb-accent-deep, var(--pb-ink));
  border-color: var(--pb-accent-deep, var(--pb-ink));
  color: #fff;
  text-align: center;
}
.primary-sidebar .widget.pb-side-pin .widget-title,
.primary-sidebar .widget.pb-side-pin p { color: #fff; }
.pb-side-pin a {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 18px;
  border-radius: var(--pb-radius-pill);
  background: #fff;
  color: var(--pb-accent-deep, var(--pb-ink));
  font-weight: 700;
}

/* Рубрика над заголовком — оставалась дефолтной синей Kadence. */
.entry-taxonomies a,
.entry-taxonomies .category-style-normal a { color: var(--pb-accent); }
.entry-taxonomies a:hover { color: var(--pb-accent-deep); }

/* Восемь пунктов меню + вордмарк не влезали в строку. */
.header-navigation .header-menu-container > ul > li > a { font-size: .95rem; }

/* Портрет на About растягивался во всю колонку. */
.page .entry-content > figure.wp-block-image:first-of-type img {
  max-width: 300px;
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
  margin-inline: auto;
  display: block;
}

/* ══════════════════════════════════════════
   ВЁРСТКА СТАТЬИ — разбор 16.08.2026
   Четыре дефекта: правая треть пустеет после сайдбара, мера строки 88 знаков,
   H2 и H3 неразличимы, спецблоки — четыре оттенка одного крема.
══════════════════════════════════════════ */

/* 1. Мера строки. Текст держит 68ch, доказательства (картинки, таблицы,
   карточки товара) остаются во всю колонку — узкий текст и широкий факт
   дают статье ритм вместо ровного полотна. */
.entry-content {
  font-size: var(--pb-text-lg);
  line-height: 1.72;
  font-variant-numeric: tabular-nums;
}
.entry-content > p,
.entry-content > ul,
.entry-content > ol,
.entry-content > h2,
.entry-content > h3,
.entry-content section > p,
.entry-content section > ul,
.entry-content section > ol,
.entry-content section > h3 { max-width: var(--pb-measure); }
.entry-content > p { margin-bottom: 1.35em; }

/* 2. Иерархия. H2 — раздел со своей чертой, H3 — шаг внутри него.
   Было 28 против 24 в одном начертании, читалось как один уровень. */
.entry-content h2 {
  font-size: var(--pb-text-3xl);
  line-height: 1.18;
  margin: 3.2rem 0 1rem;
  padding-top: 1.4rem;
  border-top: 2px solid var(--pb-accent);
}
.entry-content h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.entry-content h3 {
  font-size: var(--pb-text-xl);
  font-weight: 600;
  line-height: 1.3;
  margin: 2.1rem 0 .5rem;
  color: var(--pb-accent-deep);
}

/* 3. Сайдбар липкий — правая треть больше не пустует на пятнадцати экранах. */
@media (min-width: 1025px) {
  .primary-sidebar .sidebar-inner-wrap {
    position: sticky;
    top: 96px;
  }
}

/* 4. Оглавление — порядок разделов несёт информацию, поэтому нумеруется;
   в две колонки, чтобы не быть стеной из девяти строк. */
.pb-toc ul {
  list-style: none;
  counter-reset: pbtoc;
  columns: 2;
  column-gap: 32px;
}
@media (max-width: 700px) { .pb-toc ul { columns: 1; } }
.pb-toc li {
  counter-increment: pbtoc;
  break-inside: avoid;
  padding-left: 1.9em;
  position: relative;
  line-height: 1.4;
}
.pb-toc li::before {
  content: counter(pbtoc, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-size: .78rem;
  font-weight: 700;
  color: var(--pb-accent);
  font-variant-numeric: tabular-nums;
}

/* 5. Сайдбар: заголовки виджетов Kadence шли мимо наших карточек,
   а белый текст на красном тонул. */
.primary-sidebar .widget > h2,
.primary-sidebar .widget > .widget-title {
  font-family: var(--global-heading-font-family);
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.primary-sidebar .widget.pb-side-pin p { color: #fff; opacity: 1; font-weight: 500; }

/* 6. Подписи под картинками — по левому краю, единообразно. */
.entry-content figcaption {
  text-align: left;
  font-size: .86rem;
  color: var(--pb-muted, #8C8375);
  margin-top: 8px;
}

/* ══════════════════════════════════════════
   7. ГЛАВНАЯ, АРХИВЫ, ПОДВАЛ — 16.08.2026
   Голая архивная лента Kadence читалась как дефолт темы:
   трёхколоночная сетка с крупными заголовками, пустая ячейка
   справа внизу и никакого входа в сайт сверху.
   ══════════════════════════════════════════ */

/* 7.1 Первый экран главной. */
.pb-hero {
  background: var(--pb-cream);
  border-bottom: 1px solid var(--pb-line);
  padding: var(--pb-space-8) var(--pb-space-6);
  margin-bottom: var(--pb-space-8);
}
.pb-hero-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.pb-hero-eyebrow {
  margin: 0 0 var(--pb-space-3);
  font-size: var(--pb-text-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pb-accent);
  font-weight: 700;
}
.pb-hero-title {
  font-family: var(--global-heading-font-family);
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.12;
  margin: 0 0 var(--pb-space-5);
  color: var(--pb-ink);
}
.pb-hero-sub {
  margin: 0 auto;
  max-width: 56ch;
  font-size: var(--pb-text-lg);
  line-height: 1.6;
  color: var(--pb-ink);
}
.pb-hero-label {
  margin: var(--pb-space-7) 0 var(--pb-space-3);
  font-size: var(--pb-text-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pb-accent-deep);
  font-weight: 700;
}
.pb-hero-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--pb-space-3) var(--pb-space-5);
}
.pb-hero-links a {
  color: var(--pb-ink);
  text-decoration: none;
  border-bottom: 2px solid var(--pb-accent);
  padding-bottom: 2px;
  font-size: var(--pb-text-base);
}
.pb-hero-links a:hover { color: var(--pb-accent); }

@media (max-width: 767px) {
  .pb-hero { padding: var(--pb-space-7) var(--pb-space-5); margin-bottom: var(--pb-space-7); }
  .pb-hero-links { flex-direction: column; align-items: center; gap: var(--pb-space-3); }
}

/* 7.2 Карточки архива: две колонки вместо трёх, заголовок в размер
   карточки, одинаковая высота, анонс в три строки. */
.post-archive.grid-lg-col-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-archive .entry.loop-entry {
  height: 100%;
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-radius);
  overflow: hidden;
  background: #fff;
  transition: box-shadow .18s ease, transform .18s ease;
}
.post-archive .entry.loop-entry:hover { box-shadow: var(--pb-shadow); transform: translateY(-2px); }
.post-archive .entry-content-wrap { padding: var(--pb-space-5) var(--pb-space-6) var(--pb-space-6); }
.post-archive .entry-title {
  font-size: var(--pb-text-xl);
  line-height: 1.25;
  margin: 0 0 var(--pb-space-3);
}
.post-archive .entry-title a { color: var(--pb-ink); text-decoration: none; }
.post-archive .entry-title a:hover { color: var(--pb-accent); }
.post-archive .entry-taxonomies {
  font-size: var(--pb-text-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.post-archive .entry-summary {
  font-size: var(--pb-text-sm);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-archive .more-link-wrap a {
  font-size: var(--pb-text-sm);
  font-weight: 600;
  color: var(--pb-accent);
  text-decoration: none;
}

@media (max-width: 719px) {
  .post-archive.grid-lg-col-3 { grid-template-columns: minmax(0, 1fr); }
}

/* 7.3 «Читать дальше» — три карточки в конце статьи. */
.pb-related {
  margin: var(--pb-space-8) 0 0;
  padding-top: var(--pb-space-7);
  border-top: 1px solid var(--pb-line);
}
.pb-related > h2 {
  font-family: var(--global-heading-font-family);
  font-size: var(--pb-text-2xl);
  margin: 0 0 var(--pb-space-6);
  border: 0;
  padding: 0;
}
.pb-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--pb-space-6);
}
.pb-related .pb-card-title { font-size: var(--pb-text-base); }
@media (max-width: 719px) {
  .pb-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--pb-space-5); }
}
@media (max-width: 479px) {
  .pb-related-grid { grid-template-columns: minmax(0, 1fr); }
}

/* 7.4 Подвал: свои ссылки вместо «WordPress Theme by Kadence WP». */
.pb-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--pb-space-3) var(--pb-space-5);
  margin: 0 0 var(--pb-space-4);
  font-size: var(--pb-text-sm);
}
.pb-footer-nav a { text-decoration: none; }
.pb-footer-nav a:hover { text-decoration: underline; }
.pb-footer-copy {
  margin: 0;
  text-align: center;
  font-size: var(--pb-text-xs);
  opacity: .8;
}

/* 7.5 Поиск в сайдбаре. */
.pb-side-search form { display: flex; gap: var(--pb-space-2); }
.pb-side-search .search-field,
.pb-side-search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-radius-sm);
  padding: var(--pb-space-3) var(--pb-space-4);
  font-size: var(--pb-text-sm);
}
.pb-side-search .search-submit {
  background: var(--pb-accent);
  color: #fff;
  border: 0;
  border-radius: var(--pb-radius-sm);
  padding: var(--pb-space-3) var(--pb-space-4);
  font-size: var(--pb-text-sm);
  cursor: pointer;
}

/* 7.6 Счётчики шеров. Считается клик по нашей кнопке — публичных счётчиков
   у Facebook и Pinterest больше нет. До пяти число скрыто. */
.pb-share-total {
  display: block;
  margin: -6px 0 var(--pb-space-4);
  font-size: var(--pb-text-sm);
  color: var(--pb-accent-deep);
}
.pb-share-total b { font-variant-numeric: tabular-nums; }
/* `display` у обоих элементов перебивает браузерное [hidden]{display:none},
   и скрытый счётчик всё равно рисовался как «0 shares». */
.pb-share-total[hidden],
.pb-share-count[hidden] { display: none; }

/* Верхний блок — строка, а не карточка: он стоит до первого абзаца и не должен
   отодвигать текст вниз. Карточкой остаётся только нижний. */
.pb-share--top {
  margin: var(--pb-space-4) 0;
  padding: 0;
  background: none;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px var(--pb-space-4);
}
.pb-share--top .pb-share-list { flex: 1 0 auto; }
.pb-share--top .pb-share-label { margin: 0; }
.pb-share--top .pb-share-total { margin: 0; }
.pb-share--top .pb-share-btn { padding: 7px 11px; font-size: var(--pb-text-xs); }
.pb-share--top .pb-share-btn svg { width: 15px; height: 15px; }
@media (max-width: 640px) {
  .pb-share--top .pb-share-label { flex-basis: 100%; }
}
.pb-share-count {
  margin-left: var(--pb-space-2);
  font-style: normal;
  font-size: var(--pb-text-xs);
  font-variant-numeric: tabular-nums;
  opacity: .75;
}

/* ══════════════════════════════════════════════════════════════════════
   8. СТРАНИЦА ABOUT — 16.08.2026

   Было: колонка текста прижата влево в тысячепиксельном белом поле, портрет
   одиноким кругом по центру между абзацами. Читается как страница без автора.
   Стало: портрет рядом с текстом, три проверяемых числа строкой, абзац «на чём
   сайт зарабатывает» отдельным блоком.
══════════════════════════════════════════════════════════════════════ */

/* 8.1 Колонка страницы центрируется целиком, а не поэлементно: у заголовка
   мера 68ch считается его собственным кеглем и даёт полторы тысячи пикселей,
   поэтому центрирование каждого блока по отдельности разъезжает — заголовок
   уходит левее текста. */
.page .entry-content {
  max-width: calc(var(--pb-measure) + 220px + var(--pb-space-7));
  margin-left: auto;
  margin-right: auto;
}

/* 8.2 Вступление: портрет и текст рядом. */
.pb-about-intro {
  display: grid;
  gap: var(--pb-space-7);
  align-items: start;
  max-width: var(--pb-measure);
  margin: 0 auto var(--pb-space-8);
}
.pb-about-intro img {
  width: 100%;
  border-radius: var(--pb-radius);
  border: 1px solid var(--pb-line);
  display: block;
}
/* wpautop оставляет пустой <p> после картинки — как элемент грида он занимает
   вторую колонку и сбрасывает текст на строку ниже. */
.pb-about-intro > p:empty,
.pb-about-facts > p:empty,
.pb-about-cta > p:empty { display: none; }
.pb-about-intro p { margin: 0 0 1.1em; }
.pb-about-intro p:last-child { margin-bottom: 0; }
.pb-about-lede {
  font-family: var(--global-heading-font-family);
  font-size: var(--pb-text-2xl);
  line-height: 1.35;
  color: var(--pb-accent);
}
@media (min-width: 720px) {
  .pb-about-intro {
    grid-template-columns: 220px 1fr;
    max-width: calc(var(--pb-measure) + 220px + var(--pb-space-7));
  }
}

/* 8.3 Три числа строкой. Только проверяемое: срок, счёт готовых пледов,
   привычка. Ни одного придуманного показателя. */
.pb-about-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--pb-space-6);
  max-width: calc(var(--pb-measure) + 220px + var(--pb-space-7));
  margin: 0 auto var(--pb-space-8);
  padding: var(--pb-space-6) 0;
  border-top: 1px solid var(--pb-line);
  border-bottom: 1px solid var(--pb-line);
  text-align: center;
}
.pb-about-fact b {
  display: block;
  font-family: var(--global-heading-font-family);
  font-size: var(--pb-text-3xl);
  line-height: 1.1;
  color: var(--pb-accent);
  font-variant-numeric: tabular-nums;
}
.pb-about-fact span {
  display: block;
  margin-top: var(--pb-space-2);
  font-size: var(--pb-text-sm);
  color: var(--pb-accent-deep);
}
@media (max-width: 599px) {
  .pb-about-facts { grid-template-columns: 1fr; gap: var(--pb-space-5); }
}

/* 8.4 «На чём сайт зарабатывает» — единственный блок страницы с подложкой:
   это то место, где читатель ищет подвох. */
.pb-about-money {
  max-width: var(--pb-measure);
  margin: 0 0 var(--pb-space-8);
  padding: var(--pb-space-5) var(--pb-space-6);
  background: var(--pb-cream);
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-radius);
}
.pb-about-money h2 { margin-top: 0 !important; }
.pb-about-money p:last-child { margin-bottom: 0; }

/* 8.5 Финальный переход. */
.pb-about-cta {
  margin: 0;
  padding-top: var(--pb-space-6);
  border-top: 1px solid var(--pb-line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--pb-space-4);
  align-items: center;
}
.pb-about-cta p { margin: 0; flex: 1 1 100%; font-size: var(--pb-text-sm); max-width: var(--pb-measure); }

/* 8.6 Ссылки в тексте страницы. Без этого Kadence красит их своим синим —
   единственное синее пятно на всём сайте. */
.page .entry-content a:not(.pb-btn) { color: var(--pb-accent); }
.page .entry-content a:not(.pb-btn):hover { color: var(--pb-accent-deep); }

/* ══════════════════════════════════════════
   PRODUCT CARD — вариант с картинкой навылет (сетка подборки)
   .pb-product-card > .pb-product-media + .pb-product-card-body
══════════════════════════════════════════ */
.pb-product-card:has(.pb-product-card-body) {
  padding: 0;
  text-align: left;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pb-product-media { position: relative; display: block; line-height: 0; }
.pb-product-media img {
  width: 100%; height: auto; aspect-ratio: 3 / 2;
  object-fit: cover; display: block;
}
.pb-product-grid--vertical .pb-product-media img { aspect-ratio: 2 / 3; }
.pb-product-card-body { padding: var(--pb-space-5); display: flex; flex-direction: column; flex: 1; }
.pb-product-card-body h3 { margin: 0 0 var(--pb-space-3); font-size: var(--pb-text-xl); }
.pb-product-card-body p { font-size: var(--pb-text-sm); margin: 0 0 var(--pb-space-4); }
.pb-product-card-body p:last-child { margin: auto 0 0; }

/* ══════════════════════════════════════════
   BADGE  (.pb-badge — метка поверх картинки: лицензия, «free», «bestseller»)
══════════════════════════════════════════ */
.pb-badge {
  position: absolute; top: var(--pb-space-3); right: var(--pb-space-3); z-index: 2;
  background: var(--pb-accent); color: #fff;
  padding: var(--pb-space-1) var(--pb-space-2);
  border-radius: var(--pb-radius-sm);
  font-size: var(--pb-text-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  /* .pb-product-media держит line-height: 0, чтобы картинка не давала отбивку;
     метка это наследует и схлопывается в полоску в 8px. */
  line-height: 1.3;
  white-space: nowrap;
}

/* ══════════════════════════════════════════
   POST TAGS  (.pb-post-tags — теги под текстом статьи)
══════════════════════════════════════════ */
.pb-post-tags { display: flex; flex-wrap: wrap; gap: var(--pb-space-2); margin-top: var(--pb-space-7); }
.pb-post-tag {
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-radius-sm);
  padding: var(--pb-space-1) var(--pb-space-3);
  font-size: var(--pb-text-xs);
  text-decoration: none;
  color: var(--pb-accent-deep);
}
.pb-post-tag:hover { border-color: var(--pb-accent); color: var(--pb-accent); }

/* ══════════════════════════════════════════
   FAQ  (.pb-faq — блок вопросов, размечается FAQPage)
══════════════════════════════════════════ */
.pb-faq { margin: var(--pb-space-7) 0; }
.pb-faq h3 { margin: var(--pb-space-6) 0 var(--pb-space-2); font-size: var(--pb-text-xl); }
.pb-faq h3:first-child { margin-top: 0; }
.pb-faq p { margin: 0; }

/* ══════════════════════════════════════════
   POPULAR  (.pb-popular — короткий список ссылок внутри текста)
══════════════════════════════════════════ */
.pb-popular {
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-radius);
  padding: var(--pb-space-4) var(--pb-space-5);
  margin: var(--pb-space-7) 0;
  background: var(--pb-cream);
}
.pb-popular h2 { font-size: var(--pb-text-2xl); margin: 0 0 var(--pb-space-3) !important; }
.pb-popular ul { margin: 0; padding-left: var(--pb-space-4); }
.pb-popular li { font-size: var(--pb-text-sm); margin-bottom: var(--pb-space-2); }
.pb-popular a { color: var(--pb-ink); text-decoration: none; }
.pb-popular a:hover { color: var(--pb-accent); }

/* ══════════════════════════════════════════
   STEP  (.pb-step — нумерованный шаг инструкции;
   .pb-step-head + .pb-step-num, дальше текст и .pb-step-img)
══════════════════════════════════════════ */
.pb-step { scroll-margin-top: 90px; margin-top: var(--pb-space-8); }
.pb-step:first-child { margin-top: 0; }
.pb-step-head { display: flex; align-items: center; gap: var(--pb-space-4); margin-bottom: var(--pb-space-5); }
.pb-step-num {
  font-family: var(--global-heading-font-family);
  font-size: var(--pb-text-base);
  font-weight: 700;
  background: var(--pb-accent);
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pb-step-head h2 { margin: 0 !important; font-size: var(--pb-text-2xl); }
.pb-step p { margin: 0 0 var(--pb-space-5); }
.pb-step-img { border-radius: var(--pb-radius); overflow: hidden; margin: 0 0 var(--pb-space-5); }
.pb-step-img img { display: block; width: 100%; height: auto; border-radius: inherit; }
