/*
 * Merchant Properbaits — blog.css
 * Блог: лента (/blog/, рубрики) и статья. Источник: design/Properbaits Blog.dc.html, Post.dc.html.
 */

.pb-btn--white { background: #fff; color: var(--pb-ink); }
.pb-btn--white:hover { background: var(--pb-blue); color: #fff; }

/* ============================== Лента ============================== */
.pb-blog, .pb-single { gap: clamp(24px, 3vw, 40px); }
.pb-single { gap: clamp(32px, 4vw, 56px); }
.pb-blog__head { display: flex; flex-direction: column; gap: 24px; }
.pb-blog__titles { display: flex; flex-direction: column; gap: 6px; padding: 0 4px; }
.pb-blog__h1 { margin: 0; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
.pb-blog__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pb-blog__chips .pb-chip { padding: 0 18px; font-size: 15px; }
.pb-chip.is-active:hover { background: var(--pb-blue); }

/* Крупная запись */
.pb-feat { min-width: 0; }
.pb-feat__link {
	background: #fff; border-radius: 32px; padding: 14px; display: flex; flex-wrap: wrap; gap: clamp(16px, 3vw, 40px); align-items: stretch; text-decoration: none; color: var(--pb-ink);
}
.pb-feat__link:hover { text-decoration: none; color: var(--pb-ink); }
.pb-feat__cover { flex: 1 1 380px; min-width: 0; aspect-ratio: 16 / 10; position: relative; border-radius: 22px; overflow: hidden; background: var(--pb-bg2); display: block; }
.pb-feat__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-feat__body { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: clamp(8px, 2vw, 28px); }
.pb-feat__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.pb-feat__date { font-size: 14px; color: var(--pb-muted); }
.pb-feat__title { margin: 0; font-size: clamp(26px, 3vw, 38px); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.pb-feat__text { font-size: 17px; line-height: 1.55; color: #4A5054; text-wrap: pretty; }
.pb-feat__more { align-self: flex-start; }
.pb-feat__link:hover .pb-feat__title { text-decoration: underline; text-decoration-color: var(--pb-blue); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* Карточки */
.pb-blog__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.pb-bcard { min-width: 0; display: flex; }
.pb-bcard__link {
	flex: 1; background: #fff; border-radius: 32px; padding: 14px 14px 24px; display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: var(--pb-ink); min-width: 0;
}
.pb-bcard__link:hover { text-decoration: none; color: var(--pb-ink); }
.pb-bcard__cover { aspect-ratio: 4 / 3; position: relative; border-radius: 22px; overflow: hidden; background: var(--pb-bg2); display: block; }
.pb-bcard__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-bcard__body { display: flex; flex-direction: column; gap: 10px; padding: 0 8px; flex: 1; }
.pb-bcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.pb-bcard__tag { font-size: 12px; font-weight: 500; line-height: 1.3; padding: 5px 10px; border-radius: var(--pb-pill); background: var(--pb-bg2); color: var(--pb-ink); text-decoration: none; }
.pb-bcard__tag--l { font-size: 13px; padding: 6px 12px; }
a.pb-bcard__tag:hover { background: var(--pb-blue); color: #fff; text-decoration: none; }
.pb-bcard__date { font-size: 13px; color: var(--pb-muted); }
.pb-bcard__title { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
.pb-bcard--compact .pb-bcard__title { font-size: 19px; line-height: 1.25; letter-spacing: 0; }
.pb-bcard__link:hover .pb-bcard__title { text-decoration: underline; text-decoration-color: var(--pb-blue); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pb-bcard__text { font-size: 15px; line-height: 1.5; color: #4A5054; text-wrap: pretty; flex: 1; }
.pb-bcard__more { align-self: flex-start; margin: 0 8px; }
.pb-bcard__arrow { width: 36px; height: 36px; border-radius: 50%; background: var(--pb-blue); display: flex; align-items: center; justify-content: center; flex: none; }

/* ============================== Статья ============================== */
.pb-art { background: #fff; border-radius: 32px; padding: clamp(20px, 4vw, 56px); display: flex; flex-direction: column; gap: clamp(24px, 3vw, 40px); min-width: 0; }
.pb-art__head { max-width: 900px; display: flex; flex-direction: column; gap: 20px; }
.pb-art__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; color: var(--pb-muted); }
.pb-art__title { margin: 0; font-size: clamp(30px, 4.6vw, 56px); line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
.pb-art__cover { aspect-ratio: 21 / 9; min-height: 200px; position: relative; border-radius: 28px; overflow: hidden; background: var(--pb-bg2); }
.pb-art__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-art__row { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 64px); align-items: flex-start; }
.pb-art__body { flex: 1 1 520px; min-width: 0; max-width: 760px; font-size: 18px; line-height: 1.65; color: #2B3033; display: flex; flex-direction: column; gap: 20px; }
.pb-art__body > * { margin: 0; }
.pb-art__body > p:first-child { font-size: 21px; line-height: 1.55; color: var(--pb-ink); }
.pb-art__body h2 { margin-top: 16px; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; scroll-margin-top: 16px; }
.pb-art__body h2 + * { margin-top: 0; }
.pb-art__body h3 { margin-top: 8px; }
.pb-art__body ul { gap: 12px; }
.pb-art__body ul > li { padding-left: 24px; }
.pb-art__body ul > li::before { width: 10px; height: 10px; top: .65em; }
.pb-art__body ol { gap: 14px; }
.pb-art__body ol > li { padding-left: 52px; }
.pb-art__body ol > li::before { width: 36px; height: 36px; background: var(--pb-ink); font-size: 15px; line-height: 36px; top: -1px; }
.pb-art__body figure { margin: 8px 0; }
.pb-art__body figure img { border-radius: 24px; width: 100%; }
.pb-art__body .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
.pb-art__body .wp-block-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.pb-art__body blockquote { font-size: 18px; }
.pb-art__body .wp-block-table { margin: 4px 0; }
.pb-art__body table { font-size: 16px; }
/* Врезка «Важно» (группа с классом pb-callout) */
.pb-art__body .pb-callout { background: var(--pb-bg2); border-radius: 24px; padding: 24px 28px; display: flex; flex-direction: column; gap: 8px; }
.pb-art__body .pb-callout > * { margin: 0; }
.pb-art__body .pb-callout > :first-child { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #4A5054; }
.pb-art__body .pb-callout > :not(:first-child) { font-size: 17px; line-height: 1.55; color: var(--pb-ink); }

/* Оглавление */
.pb-art__toc { flex: 0 0 280px; position: sticky; top: 16px; background: var(--pb-bg); border-radius: 24px; padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.pb-art__toc .pb-eyebrow { margin-bottom: 6px; }
.pb-art__toc a { min-height: 44px; display: flex; align-items: center; font-size: 15px; font-weight: 500; line-height: 1.3; text-decoration: none; padding: 6px 0; }
.pb-art__toc a:hover { color: var(--pb-blue-ink); text-decoration: none; }
@media (max-width: 1100px) { .pb-art__toc { display: none; } }

/* Плашка в каталог */
.pb-art__cta {
	background: #202020; color: #fff; border-radius: 28px; padding: clamp(22px, 3vw, 32px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
	text-decoration: none; max-width: 760px;
}
.pb-art__cta:hover { color: #fff; text-decoration: none; }
.pb-art__cta-t { display: flex; flex-direction: column; gap: 6px; }
.pb-art__cta-e { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--pb-blue); }
.pb-art__cta-h { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.pb-art__cta-b { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; background: var(--pb-blue); border-radius: var(--pb-pill); font-size: 15px; font-weight: 600; transition: background .15s; }
.pb-art__cta:hover .pb-art__cta-b { background: var(--pb-blue-h); }

/* Читайте также */
.pb-rel { display: flex; flex-direction: column; gap: 20px; }
.pb-rel > .pb-head { padding: 0 4px; }
.pb-rel__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.pb-rel .pb-bcard__link { padding-bottom: 24px; }

@media (max-width: 700px) {
	.pb-art__body { font-size: 17px; }
	.pb-art__body > p:first-child { font-size: 19px; }
	.pb-art__cover { aspect-ratio: 16 / 9; min-height: 0; border-radius: 22px; }
}

/* Кнопки «Читать» — как «Смотреть формы» на главной (.pb-cta); вся карточка — ссылка, поэтому ховер от карточки */
.pb-bcard__link:hover .pb-cta, .pb-feat__link:hover .pb-cta { border-color: var(--pb-blue); background: var(--pb-blue); color: #fff; }
.pb-bcard__link:hover .pb-cta__ic, .pb-feat__link:hover .pb-cta__ic { background: rgba(255, 255, 255, .24); color: #fff; }
