/* ================= HERO: oversized заголовок + наплывающее фото + статистика ================= */

.pbn-hero-stage {
    position: relative;
    min-height: 460px;
}

.pbn-hero-title {
    position: relative;
    z-index: 2;
    max-width: 54%;
    margin: 0 !important;
}

.pbn-hero-title em,
.pbn-hero-title i {
    color: var(--wp--preset--color--accent);
    font-style: italic;
}

.pbn-hero-photo {
    position: absolute;
    top: -10px;
    right: 0;
    width: 560px;
    max-width: 39%;
    margin: 0 !important;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 24px 60px -20px rgba(46, 21, 18, 0.35);
}

.pbn-hero-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 5/4;
    object-fit: cover;
}

.pbn-hero-sub-row {
    align-items: flex-end;
    margin-top: 32px;
    flex-wrap: wrap;
    gap: 24px;
}

.pbn-hero-subtitle {
    max-width: 460px;
    color: var(--wp--preset--color--text-muted);
    margin: 0 !important;
}

.pbn-hero-cta .wp-block-button__link {
    background: none !important;
    color: var(--wp--preset--color--text) !important;
    border-bottom: 2px solid var(--wp--preset--color--text);
    border-radius: 0;
    padding: 0 0 6px !important;
    font-weight: 700;
    font-size: 15px;
}

.pbn-hero-stats {
    border-top: 2px solid var(--wp--preset--color--text);
    border-bottom: 2px solid var(--wp--preset--color--text);
    margin-top: 56px !important;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.pbn-hero-stat {
    padding: 26px 28px;
    border-right: 2px solid var(--wp--preset--color--text);
    margin-top: 0 !important;
}

.pbn-hero-stat:first-child {
    padding-left: 0;
}

.pbn-hero-stat:last-child {
    border-right: none;
}

.pbn-hero-stat-num {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 46px;
    font-weight: 600;
    color: var(--wp--preset--color--accent);
    margin: 0 !important;
}

.pbn-hero-stat-label {
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wp--preset--color--text-muted);
    margin: 4px 0 0 !important;
}

@media (max-width: 900px) {
    .pbn-hero-title { font-size: 52px !important; max-width: 100%; }
    .pbn-hero-photo { position: static; width: 100%; max-width: 100%; margin-top: 24px !important; }
    .pbn-hero-stats { grid-template-columns: 1fr 1fr; }
    .pbn-hero-stat:nth-child(2) { border-right: none; }
}

/* ================= РАЗДЕЛЫ БЛОГА: нумерованный editorial-список ================= */

.pbn-cat-index-eyebrow {
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wp--preset--color--text-muted);
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}

.pbn-cat-index-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid var(--wp--preset--color--border);
    margin: 0 !important;
}

.pbn-cat-index-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--wp--preset--color--accent);
    margin-right: 22px;
}

.pbn-cat-index-name {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 28px;
    color: var(--wp--preset--color--text);
    flex-grow: 1;
}

.pbn-cat-index-arrow {
    font-size: 20px;
    color: var(--wp--preset--color--text-muted);
}

/* ================= SEO-БЛОК: крупная курсивная цитата ================= */

.pbn-seo-pull-quote {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 30px;
    line-height: 1.35;
    font-style: italic;
    color: var(--wp--preset--color--text);
    max-width: 900px;
    /* margin-left/right НЕ трогать шорткатом — соседний .pbn-seo-closing
       остаётся центрирован WP-ядром (is-layout-constrained auto-margin),
       а обнуление "margin: 24px 0" убивало центрирование только у цитаты,
       и она съезжала к левому краю относительно закрывающего абзаца. */
    margin-top: 24px !important;
    margin-bottom: 24px !important;
}

.pbn-seo-closing {
    color: var(--wp--preset--color--text-muted);
    max-width: 640px;
}

/* ================= ПОСЛЕДНИЕ СТАТЬИ: асимметричная сетка ================= */

.pbn-latest-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: repeat(3, auto);
    gap: 8px 44px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pbn-latest-grid > li {
    margin: 0;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--wp--preset--color--border);
}

.pbn-latest-grid > li:first-child {
    grid-row: 1 / 4;
    grid-column: 1;
    border-bottom: none;
    padding-right: 20px;
}

.pbn-latest-grid > li:not(:first-child) {
    grid-column: 2;
}

.pbn-latest-thumb {
    display: none;
    margin: 0 0 20px !important;
    border-radius: 4px;
    overflow: hidden;
}

.pbn-latest-grid > li:first-child .pbn-latest-thumb {
    display: block;
}

.pbn-latest-grid > li:first-child .pbn-latest-thumb img {
    aspect-ratio: 5/4;
    object-fit: cover;
}

.pbn-latest-cat {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--wp--preset--color--accent) !important;
    margin-bottom: 8px;
}

.pbn-latest-title {
    font-size: 19px;
    line-height: 1.3;
    margin: 0 0 8px !important;
}

.pbn-latest-grid > li:first-child .pbn-latest-title {
    font-size: 30px;
}

.pbn-latest-excerpt {
    color: var(--wp--preset--color--text-muted);
    display: none;
}

.pbn-latest-grid > li:first-child .pbn-latest-excerpt {
    display: block;
}

@media (max-width: 900px) {
    .pbn-latest-grid {
        grid-template-columns: 1fr;
    }
    .pbn-latest-grid > li:first-child {
        grid-row: auto;
        grid-column: 1;
        padding-right: 0;
        border-bottom: 1px solid var(--wp--preset--color--border);
    }
    .pbn-latest-grid > li:not(:first-child) {
        grid-column: 1;
    }
}

/* ================= АВТОР: портрет в край + oversized имя ================= */

.pbn-author2-stage {
    position: relative;
    min-height: 600px;
    padding-top: 24px;
}

.pbn-author2-photo {
    position: absolute;
    top: 0;
    right: 0;
    width: 520px;
    max-width: 42%;
    margin: 0 !important;
}

.pbn-author2-photo img {
    display: block;
    width: 100%;
    height: 600px;
    max-height: 100%;
    object-fit: cover;
    background: var(--wp--preset--color--surface);
}

.pbn-author2-text {
    max-width: 820px;
    padding: 40px var(--wp--preset--spacing--50, 48px);
    position: relative;
    z-index: 2;
}

.pbn-author2-eyebrow {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wp--preset--color--accent);
    font-weight: 700;
    margin: 0 0 18px !important;
}

.pbn-author2-name {
    font-size: 80px;
    line-height: 0.98;
    letter-spacing: -0.02em;
    margin: 0 0 22px !important;
}

.pbn-author2-role {
    font-size: 16px;
    color: var(--wp--preset--color--text-muted);
    margin: 0 0 32px !important;
}

.pbn-author2-body {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pbn-author2-body > * {
    margin-top: 0 !important;
}

.pbn-author2-quote {
    font-family: var(--wp--preset--font-family--heading);
    font-style: italic;
    font-size: 30px;
    line-height: 1.35;
    color: var(--wp--preset--color--accent);
    max-width: 760px;
    margin: 0 !important;
}

@media (max-width: 900px) {
    .pbn-author2-stage { min-height: 0; padding-top: 0; }
    .pbn-author2-photo { position: static; width: 100%; max-width: 100%; }
    .pbn-author2-photo img { height: auto; aspect-ratio: 1/1; }
    .pbn-author2-name { font-size: 44px; }
}

/* ================= СТАТЬЯ: заголовок наплывает на фото, крупная цитата ================= */

.pbn-article2-stage {
    position: relative;
}

.pbn-article2-photo {
    margin: 0 !important;
}

.pbn-article2-photo img {
    width: 100%;
    aspect-ratio: 16/7;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.pbn-article2-titlebox {
    position: relative;
    margin-top: -64px !important;
    background: var(--wp--preset--color--background);
    display: inline-block;
    max-width: 900px;
    padding: 16px 28px 0 0;
}

.pbn-article2-cat {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--wp--preset--color--accent) !important;
    margin-bottom: 10px;
}

.pbn-article2-title {
    font-size: 46px;
    line-height: 1.06;
    margin: 0 !important;
}

.pbn-article2-content {
    margin-top: 24px;
}

.pbn-article2-content p,
.pbn-article2-content li {
    font-size: 17px;
    line-height: 1.75;
}

.pbn-article2-content .wp-block-quote {
    border: none;
    margin: 56px -80px !important;
    padding: 0 !important;
}

.pbn-article2-content .wp-block-quote p {
    font-family: var(--wp--preset--font-family--heading);
    font-style: italic;
    font-size: 34px !important;
    line-height: 1.28;
    color: var(--wp--preset--color--accent);
}

@media (max-width: 900px) {
    .pbn-article2-title { font-size: 30px; }
    .pbn-article2-titlebox { margin-top: -36px !important; padding: 12px 16px 0 0; }
    .pbn-article2-content .wp-block-quote { margin: 32px 0 !important; }
    .pbn-article2-content .wp-block-quote p { font-size: 24px !important; }
}

/* ================= КАТЕГОРИЯ: гигантский номер + editorial-список ================= */

.pbn-cat2-header .wp-block-group {
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 24px;
}

.pbn-cat2-num {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 110px;
    font-weight: 600;
    color: var(--wp--preset--color--accent);
    line-height: 0.9;
    margin: 0 !important;
}

.pbn-cat2-title {
    margin-top: 8px !important;
    font-size: 44px !important;
}

.pbn-cat2-desc {
    max-width: 420px;
    text-align: right;
}

.pbn-cat2-desc p {
    color: var(--wp--preset--color--text-muted);
    font-size: 15.5px;
}

.pbn-cat2-count {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--wp--preset--color--accent);
}

.pbn-archive-count-num {
    display: inline;
}

.pbn-archive-count-label {
    display: inline;
    margin-left: 6px;
}

.pbn-cat2-row {
    display: grid;
    grid-template-columns: 110px 1fr 240px;
    gap: 28px;
    align-items: center;
    padding: 26px 0;
    border-bottom: 1px solid var(--wp--preset--color--border);
}

.pbn-cat2-row > * {
    margin-top: 0 !important;
}

.pbn-cat2-row-date {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 14px;
    color: var(--wp--preset--color--text-muted) !important;
}

.pbn-cat2-row-thumb {
    margin: 0 !important;
    border-radius: 4px;
    overflow: hidden;
}

.pbn-cat2-row-thumb img {
    aspect-ratio: 5/4;
    object-fit: cover;
}

@media (max-width: 900px) {
    .pbn-cat2-num { font-size: 64px; }
    .pbn-cat2-title { font-size: 30px !important; }
    .pbn-cat2-desc { text-align: left; max-width: 100%; }
    .pbn-cat2-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .pbn-cat2-row-thumb { order: -1; aspect-ratio: 5/4; }
}

/* ================= ФОРМА ОБРАТНОЙ СВЯЗИ: подчёркнутые поля ================= */

.pbn-contact-form input,
.pbn-contact-form textarea {
    border: none;
    border-bottom: 2px solid var(--wp--preset--color--text);
    border-radius: 0;
    background: transparent;
    padding: 10px 0;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
}

.pbn-contact-form label {
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--wp--preset--color--text-muted);
    display: block;
    margin-bottom: 8px;
}

.pbn-contact-form p {
    margin-bottom: 28px !important;
}

.pbn-contact-form button {
    background: var(--wp--preset--color--accent);
    color: #fff;
    border: none;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    font-size: 14px;
    padding: 15px 28px;
    cursor: pointer;
}

/* ================= ПОСЛЕДНИЕ КОММЕНТАРИИ: цитаты без рамок =================
   max-width стоит на карточке (grandchild .is-layout-constrained), а НЕ на
   .pbn-recent-comments (прямой потомок) — иначе ядро WP её центрирует на
   широких экранах, см. урок с plazmennye-sterilizatory.ru. */

.pbn-recent-comments {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pbn-recent-comments .pbn-recent-comment-card {
    background: none;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--wp--preset--color--border);
    padding: 26px 0 !important;
    flex-direction: column;
    gap: 10px;
    margin-top: 0;
    max-width: 820px;
    width: 100%;
}

.pbn-recent-comments .pbn-recent-comment-card:first-child {
    padding-top: 0 !important;
}

.pbn-recent-comments .pbn-recent-comment-card:last-child {
    border-bottom: none;
}

.pbn-recent-comment-card__post-title {
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--wp--preset--color--text-muted) !important;
    font-weight: 700;
}

.pbn-recent-comment-card__comment p:last-child {
    font-family: var(--wp--preset--font-family--heading);
    font-style: italic;
    font-size: 17px !important;
    color: var(--wp--preset--color--text) !important;
}

.pbn-recent-comment-card__reply {
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}
