/* Журнал ПолковЪ — стандартные записи WordPress.
 * Изолирован от handmade, страниц личного кабинета и других разделов.
 */
.polk-blog,
.polk-blog * { box-sizing: border-box; }
.polk-blog {
    --blog-ink: #311f19;
    --blog-muted: #827269;
    --blog-accent: #d9433a;
    --blog-accent-dark: #ac3029;
    --blog-cream: #fff9ee;
    --blog-border: #f1e7dd;
    color: var(--blog-ink);
    padding: 28px 0 90px;
    background: linear-gradient(180deg, #fffcf7 0, #fff 370px);
}
/* Ширину задаёт стандартный .container темы (max-width: 1850px).
 * Отдельного ограничения ширины для журнала нет. */
.polk-blog a { text-decoration: none; }
.polk-blog a:focus-visible { outline: 3px solid var(--blog-accent); outline-offset: 4px; }

/* Светлая обложка каталога с небольшими фирменными акцентами. */
.polk-blog-intro {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 220px;
    overflow: hidden;
    margin: 0 0 35px;
    padding: 42px clamp(26px, 5vw, 74px);
    border: 1px solid #ffead2;
    border-radius: 26px;
    background:
        radial-gradient(ellipse at 96% 95%, rgba(253, 157, 127, .26), transparent 42%),
        linear-gradient(112deg, #fff4d6 0%, #fff9ed 58%, #fff0e6 100%);
}
.polk-blog-intro__copy { position: relative; z-index: 1; min-width: 0; max-width: 850px; }
.polk-blog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    color: #a64430;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.polk-blog-eyebrow__dot { width: 9px; height: 9px; border-radius: 50%; background: #ef6a4b; box-shadow: 0 0 0 5px #f7d7b7; }
.polk-blog-intro__title { margin: 0; font-size: clamp(31px, 3.1vw, 53px); line-height: 1.12; font-weight: 790; letter-spacing: -.045em; color: #3e251b; }
.polk-blog-intro__description { margin: 14px 0 0 !important; max-width: 690px; font-size: 15px; line-height: 1.7; color: #795b4d; }
.polk-blog-intro__ornament { position: relative; flex: 0 0 235px; height: 160px; align-self: center; color: #de7254; opacity: .7; pointer-events: none; }
.polk-blog-intro__ornament::before { content: ''; position: absolute; top: 5px; left: 18px; width: 132px; height: 132px; border: 2px dashed #e5a36d; border-radius: 50%; }
.polk-blog-intro__ornament::after { content: ''; position: absolute; top: 41px; left: 69px; width: 91px; height: 91px; border-radius: 50%; background: rgba(255, 196, 103, .38); }
.polk-blog-intro__ornament span { position: absolute; z-index: 1; line-height: 1; }
.polk-blog-intro__ornament span:nth-child(1) { top: 29px; left: 40px; font-size: 90px; color: #d14d44; transform: rotate(-17deg); }
.polk-blog-intro__ornament span:nth-child(2) { top: 0; right: 10px; font-size: 57px; color: #efb34e; }
.polk-blog-intro__ornament span:nth-child(3) { bottom: 0; right: 34px; font-size: 38px; color: #e88e66; }

/* Узкая колонка категорий + основной каталог карточек. */
.polk-blog-layout { display: grid; grid-template-columns: minmax(210px, 252px) minmax(0, 1fr); align-items: start; gap: clamp(24px, 3.15vw, 50px); }
.polk-blog-sidebar { min-width: 0; }
.polk-blog-sidebar__inner { position: sticky; top: 24px; overflow: hidden; padding: 20px 13px 14px; border: 1px solid var(--blog-border); border-radius: 20px; background: #fff; box-shadow: 0 9px 34px rgba(96, 56, 28, .045); }
.polk-blog-sidebar__heading { display: flex; align-items: center; gap: 10px; padding: 0 10px 13px; border-bottom: 1px solid #f1eae3; margin-bottom: 10px; }
.polk-blog-sidebar__heading h2 { margin: 0; color: var(--blog-ink); font-size: 17px; line-height: 1.3; font-weight: 780; }
.polk-blog-sidebar__heading-icon { display: flex; justify-content: center; align-items: center; width: 30px; height: 30px; border-radius: 10px; background: #fff2de; color: var(--blog-accent); font-size: 22px; }
.polk-blog-sidebar__nav { display: flex; flex-direction: column; gap: 4px; }
.polk-blog-sidebar__item { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 45px; padding: 9px 11px; border-radius: 11px; color: #554940; font-size: 13px; font-weight: 560; line-height: 1.4; transition: background .2s ease, color .2s ease; }
.polk-blog-sidebar__item > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.polk-blog-sidebar__item:hover { color: #bc372c; background: #fff7ed; }
.polk-blog-sidebar__item.is-active { color: #b7332d; background: #fff0e7; font-weight: 770; }
.polk-blog-sidebar__item--child { padding-left: 23px; }
.polk-blog-sidebar__count { flex: 0 0 auto; min-width: 24px; padding: 4px 6px; border-radius: 7px; text-align: center; background: #f8f5f1; color: #988a7e; font-size: 11px; font-weight: 750; line-height: 1.2; }
.polk-blog-sidebar__item.is-active .polk-blog-sidebar__count { color: #af3c30; background: #ffe0d5; }
.polk-blog-archive { min-width: 0; }
.polk-blog-archive__heading, .polk-blog-related__heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 1px 0 22px; }
.polk-blog-archive__overline { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 780; letter-spacing: .1em; text-transform: uppercase; color: #c36149; }
.polk-blog-archive__heading h2, .polk-blog-related__heading h2 { margin: 0; font-size: clamp(23px, 2.2vw, 31px); font-weight: 790; letter-spacing: -.03em; line-height: 1.2; }
.polk-blog-archive__flourish { color: #e4a655; font-size: 30px; }
.polk-blog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

/* Карточка — кликабельна целиком и переиспользуется в похожих записях. */
.polk-blog-card { min-width: 0; height: 100%; overflow: hidden; border: 1px solid #f0e9e2; border-radius: 19px; background: #fff; box-shadow: 0 6px 22px rgba(75, 48, 30, .045); transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.polk-blog-card:hover { transform: translateY(-4px); border-color: #edd2c0; box-shadow: 0 16px 35px rgba(103, 58, 35, .11); }
.polk-blog-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.polk-blog-card__link:hover { color: inherit; }
.polk-blog-card__media { position: relative; aspect-ratio: 1.48; overflow: hidden; background: #f9ead4; isolation: isolate; }
.polk-blog-card__image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .4s ease; }
.polk-blog-card:hover .polk-blog-card__image { transform: scale(1.055); }
.polk-blog-card__media--empty { display: grid; place-items: center; background: radial-gradient(circle at 23% 20%, #fff4d8, transparent 52%), linear-gradient(130deg, #ffdca8, #f7aaa1); }
.polk-blog-card__media--empty::before { content: ''; position: absolute; inset: 18px; border: 1px solid rgba(255, 255, 255, .62); border-radius: 50%; transform: scaleX(.65); }
.polk-blog-card__placeholder { color: #fff8ea; font-size: 92px; line-height: 1; text-shadow: 0 8px 30px rgba(201, 88, 62, .2); }
.polk-blog-card__category { position: absolute; z-index: 1; left: 14px; bottom: 14px; max-width: calc(100% - 28px); padding: 7px 11px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 9px; background: rgba(255, 253, 248, .94); color: #874333; font-size: 11px; font-weight: 770; line-height: 1.2; overflow-wrap: anywhere; }
.polk-blog-card__content { display: flex; flex: 1; flex-direction: column; align-items: start; padding: 19px 19px 18px; }
.polk-blog-card__date { color: #9a8b7f; font-size: 11px; font-weight: 550; }
.polk-blog-card__title { margin: 10px 0 9px; color: #382820; font-size: 17px; font-weight: 760; line-height: 1.42; letter-spacing: -.023em; overflow-wrap: anywhere; }
.polk-blog-card__excerpt { margin: 0 0 20px !important; color: #7a706a; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.polk-blog-card__footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; margin-top: auto; padding-top: 12px; border-top: 1px solid #f3ece6; color: var(--blog-accent); font-size: 12px; font-weight: 770; }
.polk-blog-card__arrow { display: flex; align-items: center; justify-content: center; width: 29px; height: 29px; border-radius: 50%; background: #fff0e4; color: #bc3b31; font-size: 19px; transition: color .2s ease, background .2s ease, transform .2s ease; }
.polk-blog-card:hover .polk-blog-card__arrow { color: white; background: var(--blog-accent); transform: translateX(2px); }

/* Штатная пагинация WordPress на домашней странице записей и в рубриках. */
.polk-blog-archive .navigation.pagination { margin-top: 34px; }
.polk-blog-archive .navigation.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.polk-blog-archive .navigation.pagination .page-numbers { display: inline-flex; justify-content: center; align-items: center; gap: 5px; min-width: 42px; min-height: 42px; padding: 10px 14px; border: 1px solid #eee1d5; border-radius: 11px; background: #fff; color: #62493e; font-size: 13px; font-weight: 710; line-height: 1.2; transition: background .2s ease, color .2s ease; }
.polk-blog-archive .navigation.pagination a.page-numbers:hover { background: #fff0e5; color: #aa352c; }
.polk-blog-archive .navigation.pagination .page-numbers.current { border-color: var(--blog-accent); color: #fff; background: var(--blog-accent); }
.polk-blog-empty { padding: 60px 25px; border: 1px dashed #ecd6c1; border-radius: 19px; text-align: center; background: #fff9f0; }
.polk-blog-empty__symbol { display: inline-block; margin-bottom: 8px; font-size: 48px; color: #e4a655; }
.polk-blog-empty h3 { margin: 8px 0 12px; font-size: 21px; }
.polk-blog-empty p { margin: 0 0 20px !important; font-size: 14px; line-height: 1.6; color: var(--blog-muted); }
.polk-blog-empty a { color: var(--blog-accent-dark); font-size: 14px; font-weight: 750; }

/* Страница записи: ширина ограничена общим контейнером темы. */
.polk-blog.polk-blog--single { padding-top: 8px; }
.polk-blog-breadcrumbs { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; min-height: 24px; overflow: hidden; margin: 0 0 9px; color: #98877b; font-size: 12px; }
.polk-blog-breadcrumbs a { flex: 0 0 auto; color: #ad6551; }
.polk-blog-breadcrumbs a:hover { color: #c63830; }
.polk-blog-breadcrumbs__current { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.polk-blog-story-hero { position: relative; display: flex; align-items: center; justify-content: center; min-height: clamp(355px, 34vw, 520px); isolation: isolate; overflow: hidden; border-radius: 26px; background: #a75d4f; }
.polk-blog-story-hero__image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.polk-blog-story-hero__shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(36, 20, 16, .57), rgba(34, 22, 18, .53)), linear-gradient(0deg, rgba(31, 16, 13, .3), transparent 55%); }
.polk-blog-story-hero--no-image { background: radial-gradient(circle at 80% 20%, #ffa56c 0%, transparent 42%), linear-gradient(120deg, #8e3e32, #d87e58 65%, #f5c078); }
.polk-blog-story-hero--no-image .polk-blog-story-hero__shade { background: rgba(50, 25, 20, .3); }
.polk-blog-story-hero__content { width: 100%; max-width: 1100px; padding: 72px 36px; text-align: center; color: #fff; }
.polk-blog-story-hero__category { display: inline-flex; align-items: center; max-width: 100%; min-height: 31px; padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .56); border-radius: 99px; background: rgba(255, 255, 255, .15); font-size: 11px; font-weight: 780; letter-spacing: .07em; text-transform: uppercase; }
.polk-blog-story-hero h1 { margin: 20px auto; max-width: 1010px; color: #fff; font-size: clamp(30px, 4vw, 58px); font-weight: 810; line-height: 1.17; letter-spacing: -.038em; text-wrap: balance; overflow-wrap: anywhere; text-shadow: 0 2px 15px rgba(0, 0, 0, .16); }
.polk-blog-story-hero__meta { display: flex; justify-content: center; gap: 12px; color: rgba(255, 255, 255, .9); font-size: 13px; font-weight: 520; }
.polk-blog-article__body { width: calc(100% - clamp(8px, 1vw, 20px)); max-width: none; margin: -24px auto 0; position: relative; padding: clamp(18px, 1.8vw, 28px) clamp(16px, 1.8vw, 32px) 24px; border: 1px solid #f0e7de; border-radius: 21px; background: #fff; box-shadow: 0 12px 40px rgba(89, 56, 40, .045); }
.polk-blog-article__content { color: #4b3d35; font-size: 16px; line-height: 1.84; overflow-wrap: anywhere; }
.polk-blog-article__content > :first-child { margin-top: 0 !important; }
.polk-blog-article__content > :last-child { margin-bottom: 0 !important; }
.polk-blog-article__content p { margin: 0 0 1.3em !important; }
.polk-blog-article__content h2, .polk-blog-article__content h3, .polk-blog-article__content h4, .polk-blog-article__content h5 { margin: 1.6em 0 .7em; color: #33221c; line-height: 1.28; letter-spacing: -.026em; }
.polk-blog-article__content h2 { font-size: clamp(24px, 2.2vw, 31px); }
.polk-blog-article__content h3 { font-size: clamp(20px, 1.75vw, 25px); }
.polk-blog-article__content h4 { font-size: 19px; }
.polk-blog-article__content a { color: #c44034; text-decoration: underline; text-underline-offset: 3px; }
.polk-blog-article__content a:hover { color: #8e2d28; }
.polk-blog-article__content ul, .polk-blog-article__content ol { margin: 15px 0 24px; padding-left: 27px; }
.polk-blog-article__content li { margin: 0 0 9px; }
.polk-blog-article__content blockquote, .polk-blog-article__content .wp-block-quote { margin: 25px 0; padding: 18px 24px; border-left: 4px solid #dd6851; border-radius: 0 13px 13px 0; background: #fff7ed; color: #634b3d; }
.polk-blog-article__content blockquote p:last-child { margin-bottom: 0 !important; }
.polk-blog-article__content img { max-width: 100%; height: auto; border-radius: 12px; }
.polk-blog-article__content figure { max-width: 100%; margin: 26px auto; }
.polk-blog-article__content figcaption { margin-top: 8px; color: #8b7d72; font-size: 12px; text-align: center; }
.polk-blog-article__content .aligncenter { display: block; margin-right: auto; margin-left: auto; text-align: center; }
.polk-blog-article__content .alignleft { float: left; max-width: 44%; margin: 6px 20px 14px 0; }
.polk-blog-article__content .alignright { float: right; max-width: 44%; margin: 6px 0 14px 20px; }
.polk-blog-article__content::after { content: ''; display: block; clear: both; }
.polk-blog-article__content .wp-block-image, .polk-blog-article__content .wp-block-gallery { max-width: 100%; }
.polk-blog-article__content .wp-block-gallery { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; }
.polk-blog-article__content .wp-block-gallery > * { flex: 1 1 180px; margin: 0; min-width: 0; }
.polk-blog-article__content .wp-block-columns { display: flex; flex-wrap: wrap; gap: 24px; }
.polk-blog-article__content .wp-block-column { flex: 1 1 220px; min-width: 0; }
.polk-blog-article__content .wp-block-button__link { display: inline-flex; padding: 12px 20px; border-radius: 11px; color: #fff; background: var(--blog-accent); text-decoration: none; }
.polk-blog-article__content iframe, .polk-blog-article__content video { max-width: 100%; }
.polk-blog-article__content .wp-block-embed__wrapper { position: relative; max-width: 100%; }
.polk-blog-article__content table { width: 100%; margin: 20px 0; border-collapse: collapse; font-size: 14px; }
.polk-blog-article__content th, .polk-blog-article__content td { padding: 10px 12px; border: 1px solid #f0e4d8; text-align: left; }
.polk-blog-article__content th { background: #fff7ed; }
.polk-blog-article__content pre { max-width: 100%; padding: 18px; overflow-x: auto; border-radius: 12px; background: #f9f4ed; }
.polk-blog-article__page-links { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; font-size: 14px; }
.polk-blog-article__bottom { display: flex; justify-content: flex-start; margin-top: 32px; padding-top: 22px; border-top: 1px solid #f1e9e3; }
.polk-blog-article__back { display: inline-flex; align-items: center; gap: 9px; color: #bc4337; font-size: 13px; font-weight: 770; }
.polk-blog-article__back:hover { color: #87241e; }
.polk-blog-article__back span { font-size: 19px; }

/* Двенадцать похожих публикаций: шесть карточек в строке на десктопах. */
.polk-blog-related { margin-top: clamp(55px, 6.5vw, 94px); }
.polk-blog-related__heading { margin-bottom: 25px; }
.polk-blog-related__all { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: #b84439; font-size: 13px; font-weight: 730; }
.polk-blog-related__all:hover { color: #852a23; }
.polk-blog-related__all span { font-size: 20px; }
.polk-blog-grid--related { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.polk-blog-grid--related .polk-blog-card { border-radius: 15px; }
.polk-blog-grid--related .polk-blog-card__category { left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 6px 8px; font-size: 10px; }
.polk-blog-grid--related .polk-blog-card__content { padding: 13px; }
.polk-blog-grid--related .polk-blog-card__title { font-size: 14px; line-height: 1.42; }
.polk-blog-grid--related .polk-blog-card__excerpt { font-size: 12px; line-height: 1.5; }
.polk-blog-grid--related .polk-blog-card__footer { font-size: 11px; }

/* Адаптивная сетка архивов и категорий (по ширине экрана).
 * Блок похожих публикаций имеет независимые точки переключения. */
@media (max-width: 1550px) {
    .polk-blog--archive .polk-blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .polk-blog-grid--related { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1150px) {
    .polk-blog--archive .polk-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1035px) {
    .polk-blog-grid--related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
    .polk-blog { padding-bottom: 60px; }
    .polk-blog-layout { grid-template-columns: minmax(0, 1fr); gap: 29px; }
    .polk-blog-sidebar__inner { position: static; }
    /* Категории на планшетах и телефонах — каждая на отдельной строке, без скролла. */
    .polk-blog-sidebar__nav { flex-direction: column; flex-wrap: nowrap; gap: 5px; max-width: 100%; overflow: visible; }
    .polk-blog-sidebar__item, .polk-blog-sidebar__item--child { flex: 0 1 auto; width: 100%; min-height: 40px; gap: 12px; padding: 8px 11px; white-space: normal; background: #fffaf5; }
    .polk-blog-sidebar__heading { margin-bottom: 13px; }
    .polk-blog--archive .polk-blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 750px) {
    .polk-blog--archive .polk-blog-grid,
    .polk-blog-grid--related { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 550px) {
    .polk-blog--archive .polk-blog-grid,
    .polk-blog-grid--related { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
    .polk-blog { padding-top: 15px; padding-bottom: 45px; }
    .polk-blog-intro { min-height: 185px; margin-bottom: 21px; padding: 28px 23px; border-radius: 19px; }
    .polk-blog-intro__ornament { position: absolute; top: 20px; right: -120px; opacity: .23; }
    .polk-blog-intro__description { font-size: 13px; line-height: 1.65; }
    .polk-blog-sidebar__inner { padding: 14px 11px; border-radius: 15px; }
    .polk-blog-sidebar__heading { padding-bottom: 9px; }
    .polk-blog-sidebar__nav { padding-bottom: 0; }
    .polk-blog-sidebar__item { white-space: normal; }
    .polk-blog-archive__heading { margin-bottom: 16px; }
    .polk-blog-card__media { aspect-ratio: 1.68; }
    .polk-blog-card__title { font-size: 18px; }
    .polk-blog-card__content { padding: 18px; }
    .polk-blog-breadcrumbs { gap: 6px; min-height: 21px; margin-bottom: 8px; }
    .polk-blog-story-hero { min-height: 325px; border-radius: 18px; }
    .polk-blog-story-hero__content { padding: 52px 17px; }
    .polk-blog-story-hero h1 { margin: 17px auto; font-size: clamp(27px, 6.4vw, 39px); }
    .polk-blog-article__body { width: calc(100% - 10px); margin-top: -15px; padding: 22px 16px 20px; border-radius: 16px; }
    .polk-blog-article__content { font-size: 15px; line-height: 1.78; }
    .polk-blog-article__content .alignleft, .polk-blog-article__content .alignright { float: none; display: block; max-width: 100%; margin: 14px auto; }
    .polk-blog-related { margin-top: 50px; }
    .polk-blog-related__heading { align-items: start; }
    .polk-blog-related__all { margin-top: 5px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .polk-blog-card, .polk-blog-card__image, .polk-blog-card__arrow, .polk-blog-sidebar__item { transition: none; }
}
