/* Modern House blog — design «Блог / Статья cdproject в стиле сайта», 2026-11-12.
   Header and footer come from the site; everything here is scoped to .mh-blog. */
body.mh26-blog-page { margin:0; background:var(--mh26-paper); color:var(--mh26-ink); font:400 16px/1.45 var(--mh26-ui); --mh26-shell:calc(100% - var(--mh-site-gutter,80px) * 2); }
body.mh26-blog-page *,body.mh26-blog-page *::before,body.mh26-blog-page *::after { box-sizing:border-box; }
body.mh26-blog-page a { color:inherit; text-decoration:none; }
body.admin-bar.mh26-blog-page .mh-header { top:32px; }
@media(max-width:782px){body.admin-bar.mh26-blog-page .mh-header{top:46px}}

.mh-blog {
  --mh-bg:#f1ece2; --mh-ink:#1f1c18; --mh-text:#4a443c; --mh-prose:#2e2a24; --mh-muted:#6b645a;
  --mh-line:rgba(31,28,24,.14); --mh-ph:#e4ddd0; --mh-accent:#8a6a45;
  --mh-serif:var(--mh26-serif,"Times New Roman",Georgia,serif); --mh-sans:var(--mh26-ui,Arial,sans-serif);
  --mh-pad:var(--mh-site-gutter,clamp(20px,4vw,56px)); --mh-header:78px;
  padding-top:var(--mh-header); background:var(--mh-bg); color:var(--mh-ink); font-family:var(--mh-sans); -webkit-font-smoothing:antialiased;
}
.mh-blog *,.mh-blog *::before,.mh-blog *::after { box-sizing:border-box; }
.mh-blog a { color:var(--mh-ink); text-decoration:none; transition:color .2s; }
.mh-blog a:hover { color:var(--mh-accent); }
.mh-blog a:focus-visible { outline:2px solid var(--mh-accent); outline-offset:4px; }
.mh-blog img { display:block; max-width:100%; height:auto; }
.mh-blog .screen-reader-text { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.mh-blog__container { max-width:1440px; margin:0 auto; padding:0 var(--mh-pad); }

/* Шапка раздела */
.mh-blog__hero { padding:clamp(40px,6vw,88px) 0 clamp(28px,4vw,48px); display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr)); gap:16px 64px; align-items:end; border-bottom:1px solid var(--mh-line); }
.mh-blog__eyebrow { font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--mh-muted); margin-bottom:20px; }
.mh-blog__title { margin:0; font-family:var(--mh-serif); font-weight:400; font-size:clamp(44px,4.4vw,64px); line-height:1.05; letter-spacing:-.01em; }
.mh-blog__lead { margin:0; max-width:460px; font-size:17px; line-height:1.6; color:var(--mh-text); text-wrap:pretty; }
.mh-blog__lead p { margin:0; }
.mh-blog__back { display:inline-block; margin-bottom:20px; font-size:12px; letter-spacing:.1em; text-transform:uppercase; }

/* Общие элементы */
.mh-blog__num { font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--mh-muted); }
.mh-blog__media { overflow:hidden; background:var(--mh-ph); }
.mh-blog__media img { width:100%; height:100%; object-fit:cover; transition:transform .8s ease; }
.mh-blog__more { align-self:flex-start; font-size:12px; letter-spacing:.1em; text-transform:uppercase; padding-bottom:4px; border-bottom:1px solid currentColor; }
.mh-blog__more-short { display:none; }
.mh-blog a:hover .mh-blog__media img { transform:scale(1.03); }

/* Новая статья */
.mh-blog__featured { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,460px),1fr)); gap:clamp(24px,4vw,72px); padding:clamp(28px,5vw,64px) 0 clamp(40px,5vw,64px); border-bottom:1px solid var(--mh-line); align-items:center; }
.mh-blog__featured .mh-blog__media { aspect-ratio:3/2; }
.mh-blog__featured-body { display:flex; flex-direction:column; gap:20px; max-width:540px; }
.mh-blog__featured-title { margin:0; font-family:var(--mh-serif); font-weight:400; font-size:clamp(32px,3vw,44px); line-height:1.08; text-wrap:balance; }
.mh-blog__featured .mh-blog__more { margin-top:8px; }

/* Сетка анонсов */
.mh-blog__grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr)); gap:clamp(48px,5vw,72px) clamp(20px,2.4vw,36px); padding:clamp(40px,6vw,80px) 0; }
.mh-blog__item { display:flex; min-width:0; }
.mh-blog__card { display:flex; flex-direction:column; gap:24px; width:100%; }
.mh-blog__card .mh-blog__media { aspect-ratio:4/5; }
.mh-blog__card-body { display:flex; flex-direction:column; gap:12px; }
.mh-blog__card-title { margin:0; font-family:var(--mh-serif); font-weight:400; font-size:clamp(26px,1.9vw,28px); line-height:1.12; text-wrap:balance; }
.mh-blog__card .mh-blog__more { margin-top:auto; }
.mh-blog__card--compact .mh-blog__card-body { flex:1; }
.mh-blog__excerpt { margin:0; font-size:15px; line-height:1.6; color:var(--mh-text); text-wrap:pretty; }

/* Пагинация / «Показать ещё» */
.mh-blog__pager { display:flex; justify-content:center; gap:12px; flex-wrap:wrap; padding:8px 0 clamp(64px,8vw,120px); }
.mh-blog__pager a { display:inline-flex; align-items:center; justify-content:center; min-height:56px; padding:0 40px; border:1px solid var(--mh-ink); font-size:12px; letter-spacing:.12em; text-transform:uppercase; background:transparent; color:var(--mh-ink); transition:background .2s,color .2s; }
.mh-blog__pager a:hover { background:var(--mh-ink); color:var(--mh-bg); }
.mh-blog__empty { padding:80px 0 120px; text-align:center; font-family:var(--mh-serif); font-size:32px; color:var(--mh-muted); }

/* ── Статья ─────────────────────────────────────────────── */
.mh-article__crumbs { display:flex; gap:10px; flex-wrap:nowrap; min-width:0; padding-top:clamp(28px,3vw,40px); font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--mh-muted); }
.mh-blog .mh-article__crumbs a { color:var(--mh-muted); }
.mh-blog .mh-article__crumbs a:hover { color:var(--mh-accent); }
.mh-article__crumbs > * { flex:0 0 auto; }
.mh-article__crumbs [aria-current] { flex:1 1 auto; min-width:0; color:var(--mh-ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mh-article__header { max-width:980px; margin:0 auto; padding:clamp(48px,6vw,88px) 0 clamp(40px,5vw,64px); display:flex; flex-direction:column; align-items:center; gap:28px; text-align:center; }
.mh-article__title { margin:0; font-family:var(--mh-serif); font-weight:400; font-size:clamp(38px,4.4vw,64px); line-height:1.05; letter-spacing:-.01em; text-wrap:balance; overflow-wrap:anywhere; }
.mh-article__lead { margin:0; max-width:680px; font-size:clamp(17px,1.4vw,19px); line-height:1.6; color:var(--mh-text); text-wrap:pretty; }
.mh-article__byline { display:flex; align-items:center; gap:14px; font-size:14px; line-height:1.4; color:var(--mh-text); text-align:left; }
.mh-article__byline-line { flex:0 0 40px; height:1px; background:var(--mh-ink); }
.mh-article__cover { max-width:1440px; margin:0 auto; padding:0 var(--mh-pad); }
.mh-article__cover .mh-blog__media { aspect-ratio:21/9; min-height:280px; }
.mh-article__cover figcaption { margin-top:14px; font-size:13px; line-height:1.5; color:var(--mh-muted); }

/* Текст статьи */
.mh-article__prose { max-width:760px; margin:0 auto; padding:clamp(56px,7vw,96px) 20px 0; font-size:18px; line-height:1.75; color:var(--mh-prose); overflow-wrap:break-word; }
.mh-article__prose > * { margin-top:0; margin-bottom:28px; }
.mh-article__prose > p:first-child { font-family:var(--mh-serif); font-size:clamp(24px,2.2vw,30px); line-height:1.4; color:var(--mh-ink); }
.mh-article__prose p { text-wrap:pretty; }
.mh-article__prose h2 { margin:56px 0 24px; font-family:var(--mh-serif); font-weight:400; font-size:clamp(30px,2.8vw,40px); line-height:1.1; color:var(--mh-ink); text-wrap:balance; scroll-margin-top:110px; }
.mh-article__prose h3 { margin:40px 0 16px; font-family:var(--mh-sans); font-weight:600; font-size:15px; line-height:1.4; letter-spacing:.1em; text-transform:uppercase; color:var(--mh-ink); }
.mh-article__prose h4 { margin:32px 0 14px; font-family:var(--mh-serif); font-weight:400; font-size:24px; line-height:1.3; color:var(--mh-ink); }
body.mh26-blog-page .mh-article__prose a:not(.wp-block-button__link) { color:var(--mh-accent); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:4px; }
body.mh26-blog-page .mh-article__prose a:not(.wp-block-button__link):hover { color:var(--mh-ink); }
.mh-article__prose strong,.mh-article__prose b { color:var(--mh-ink); font-weight:600; }
.mh-article__prose ul,.mh-article__prose ol { padding:0; list-style:none; display:flex; flex-direction:column; gap:14px; }
.mh-article__prose ol { counter-reset:mh-ol; }
.mh-article__prose li { position:relative; }
.mh-article__prose ol > li { counter-increment:mh-ol; padding-left:46px; }
.mh-article__prose ol > li::before { content:counter(mh-ol,decimal-leading-zero); position:absolute; left:0; top:.35em; font-size:13px; line-height:1.4; color:var(--mh-muted); }
.mh-article__prose ul { gap:12px; }
.mh-article__prose ul > li { padding-left:30px; }
.mh-article__prose ul > li::before { content:""; position:absolute; left:0; top:.85em; width:14px; height:1px; background:var(--mh-ink); }
.mh-article__prose li > ul,.mh-article__prose li > ol { margin-top:12px; }
.mh-article__prose :where(.wp-block-table,figure.wp-block-table) { overflow-x:auto; }
.mh-article__prose table { width:100%; min-width:520px; border-collapse:collapse; font-size:16px; line-height:1.5; }
.mh-article__prose :where(table,thead,tbody,tfoot,tr) { border:0; }
.mh-article__prose table,.mh-article__prose thead,.mh-article__prose tfoot { border:0; }
.mh-article__prose th { border:0; text-align:left; padding:0 20px 14px 0; border-bottom:1px solid var(--mh-ink); font-size:12px; font-weight:500; letter-spacing:.12em; text-transform:uppercase; color:var(--mh-muted); }
.mh-article__prose td { border:0; padding:18px 20px 18px 0; border-bottom:1px solid var(--mh-line); vertical-align:top; }
.mh-article__prose td:first-child { font-weight:500; color:var(--mh-ink); }
.mh-article__prose :where(th,td):last-child { padding-right:0; }
.mh-article__prose tr > :last-child:not(:first-child) { text-align:right; white-space:nowrap; }
.mh-article__prose table[data-mh-cards]:not(#mh-x) tr > :last-child:not(:first-child) { text-align:left; white-space:normal; }
.mh-article__prose figure { margin-left:0; margin-right:0; }
.mh-article__prose figcaption { margin-top:14px; font-size:13px; line-height:1.5; color:var(--mh-muted); text-align:left; }
.mh-article__prose figure.wp-block-image, .mh-article__prose .wp-block-gallery, .mh-article__prose .alignwide, .mh-article__prose .alignfull, .mh-article__prose figure.wp-block-video, .mh-article__prose figure.wp-block-embed { width:min(1040px,calc(100vw - 40px)); max-width:none; margin:clamp(48px,6vw,72px) 0 clamp(48px,6vw,72px) calc(50% - min(520px,50vw - 20px)); }
.mh-article__prose figure.wp-block-image img { width:100%; height:auto; }
.mh-article__prose figure.wp-block-image.aligncenter { display:block; width:min(620px,100%); margin:clamp(40px,5vw,64px) auto; }
.mh-article__prose figure.wp-block-image.aligncenter figcaption { display:block; }
.mh-article__prose figure.wp-block-image.alignleft,.mh-article__prose figure.wp-block-image.alignright,.mh-article__prose figure.wp-block-image.is-resized { width:auto; max-width:100%; margin-left:0; }
.mh-article__prose blockquote { width:min(900px,calc(100vw - 40px)); max-width:none; margin:clamp(48px,6vw,80px) 0 clamp(48px,6vw,80px) calc(50% - min(450px,50vw - 20px)); padding:clamp(32px,4vw,48px) 20px; border:0; border-top:1px solid rgba(31,28,24,.2); border-bottom:1px solid rgba(31,28,24,.2); text-align:center; display:flex; flex-direction:column; gap:20px; }
.mh-article__prose blockquote p { margin:0; font-family:var(--mh-serif); font-style:italic; font-size:clamp(28px,3vw,42px); line-height:1.2; color:var(--mh-ink); text-wrap:balance; }
.mh-article__prose blockquote cite { font-style:normal; font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--mh-muted); }
.mh-article__prose hr { border:0; border-top:1px solid var(--mh-line); margin:48px 0; }
.mh-article__prose pre { max-width:100%; overflow-x:auto; font-size:15px; padding:20px; background:#f7f2e9; }
.mh-article__prose :where(video,iframe) { max-width:100%; }
.mh-article__prose .wp-block-button__link { background:var(--mh-ink); color:var(--mh-bg); border-radius:0; padding:16px 28px; text-decoration:none; font-size:12px; letter-spacing:.12em; text-transform:uppercase; }
.mh-article__prose > :last-child { margin-bottom:0; }

/* Конец статьи */
.mh-article__end { max-width:760px; margin:0 auto; padding:48px 20px clamp(64px,8vw,104px); display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap; font-size:12px; letter-spacing:.1em; text-transform:uppercase; }
.mh-article__end::before { content:""; flex:0 0 100%; height:1px; background:var(--mh-line); margin-bottom:8px; }
.mh-article__end a { padding-bottom:4px; border-bottom:1px solid var(--mh-ink); }
.mh-article__end .mh-article__share { order:2; }

/* Читайте также */
.mh-article__related { border-top:1px solid var(--mh-line); }
.mh-article__related .mh-blog__container { padding-top:clamp(56px,7vw,96px); padding-bottom:clamp(56px,7vw,96px); }
.mh-article__related-title { margin:0; font-family:var(--mh-serif); font-weight:400; font-size:clamp(34px,3.4vw,48px); line-height:1.05; }
.mh-blog__grid--related { padding:clamp(36px,4vw,56px) 0 0; gap:48px clamp(20px,2.4vw,36px); }
.mh-blog__grid--related .mh-blog__card-title { font-size:clamp(24px,1.9vw,28px); }

/* Цвета и размеры из редактора Gutenberg */
.mh-blog .has-mh-paper-color{color:#f1ece2}.mh-blog .has-mh-paper-light-color{color:#f7f2e9}.mh-blog .has-mh-ink-color{color:#1b1916}.mh-blog .has-mh-muted-color{color:#655f56}.mh-blog .has-mh-red-color{color:#a80509}
.mh-blog .has-mh-paper-background-color{background-color:#f1ece2}.mh-blog .has-mh-paper-light-background-color{background-color:#f7f2e9}.mh-blog .has-mh-ink-background-color{background-color:#1b1916}.mh-blog .has-mh-muted-background-color{background-color:#655f56}.mh-blog .has-mh-red-background-color{background-color:#a80509}
.mh-blog .has-small-font-size{font-size:15px}.mh-blog .has-normal-font-size{font-size:18px}.mh-blog .has-large-font-size{font-size:26px}

/* Мобильная версия */
@media (max-width:767px) {
  .mh-blog__hero { gap:16px; }
  .mh-blog__eyebrow { font-size:11px; margin-bottom:12px; }
  .mh-blog__lead { font-size:15px; }
  .mh-blog__featured { gap:20px; }
  .mh-blog__featured .mh-blog__media { aspect-ratio:4/5; }
  .mh-blog__featured-body { gap:16px; }
  .mh-blog__grid { gap:48px; }
  .mh-blog__card { gap:18px; }
  .mh-blog__card .mh-blog__media { aspect-ratio:3/2; }
  .mh-blog__pager { padding-bottom:64px; }
  .mh-blog__pager a { width:100%; }

  .mh-article__crumbs { gap:8px; padding-top:20px; font-size:11px; }
  .mh-article__header { padding:32px 0 28px; align-items:flex-start; gap:18px; text-align:left; }
  .mh-article__title { font-size:38px; line-height:1.06; }
  .mh-article__lead { font-size:16px; }
  .mh-article__byline { gap:12px; font-size:13px; }
  .mh-article__byline-line { flex-basis:28px; }
  .mh-article__cover { padding:0 20px; }
  .mh-article__cover .mh-blog__media { aspect-ratio:4/5; min-height:0; }
  .mh-article__prose { padding-top:40px; font-size:16px; line-height:1.7; }
  .mh-article__prose > * { margin-bottom:24px; }
  .mh-article__prose > p:first-child { font-size:23px; line-height:1.38; }
  .mh-article__prose h2 { margin:44px 0 18px; font-size:30px; }
  .mh-article__prose h3 { margin:32px 0 14px; font-size:13px; }
  .mh-article__prose ol > li { padding-left:38px; }
  .mh-article__prose ol > li::before { font-size:12px; top:.3em; }
  .mh-article__prose ul { gap:10px; }
  .mh-article__prose ul > li { padding-left:26px; }
  .mh-article__prose ul > li::before { width:12px; }
  .mh-article__prose figure.wp-block-image, .mh-article__prose .wp-block-gallery, .mh-article__prose .alignwide, .mh-article__prose .alignfull, .mh-article__prose figure.wp-block-video, .mh-article__prose figure.wp-block-embed { width:100%; margin:36px 0; }
  .mh-article__prose figure.wp-block-image:not(.aligncenter) img { aspect-ratio:4/3; object-fit:cover; }
  /* Таблица из трёх колонок — карточками: название и срок сверху, описание ниже */
  .mh-article__prose table { min-width:0; border:0; border-top:1px solid var(--mh-ink); }
  .mh-article__prose thead { display:none; }
  .mh-article__prose tbody,.mh-article__prose tr,.mh-article__prose td { display:block; }
  .mh-article__prose tr { padding:16px 0; border-bottom:1px solid var(--mh-line); }
  .mh-article__prose td { padding:0; border:0; text-align:left !important; white-space:normal !important; }
  .mh-article__prose tr:has(> td:nth-child(3):last-child) { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px 12px; align-items:baseline; }
  .mh-article__prose tr:has(> td:nth-child(3):last-child) > td:nth-child(2) { grid-column:1 / -1; grid-row:2; font-size:15px; line-height:1.5; }
  .mh-article__prose tr:has(> td:nth-child(3):last-child) > td:nth-child(3) { grid-row:1; grid-column:2; font-size:14px; color:var(--mh-muted); white-space:nowrap !important; }
  /* Текстовые таблицы (data-mh-cards: 4+ колонки или длинный последний столбец) — карточками с подписями столбцов */
  .mh-article__prose table[data-mh-cards]:not(#mh-x) tr { display:block !important; }
  .mh-article__prose table[data-mh-cards]:not(#mh-x) td { display:block; font-size:15px !important; line-height:1.5; color:var(--mh-ink) !important; white-space:normal !important; }
  .mh-article__prose table[data-mh-cards]:not(#mh-x) td:first-child { font-size:18px !important; font-weight:500; }
  .mh-article__prose table[data-mh-cards]:not(#mh-x) td + td { margin-top:10px; }
  .mh-article__prose table[data-mh-cards]:not(#mh-x) td + td[data-label]::before { content:attr(data-label); display:block; margin-bottom:2px; font-size:11px; font-weight:500; letter-spacing:.12em; text-transform:uppercase; color:var(--mh-muted); }
  .mh-article__prose blockquote { width:auto; margin:40px 0; padding:28px 0; text-align:left; gap:16px; }
  .mh-article__prose blockquote p { font-size:28px; }
  .mh-article__prose blockquote cite { font-size:11px; }
  .mh-article__end { flex-direction:column; align-items:stretch; gap:10px; padding:12px 20px 56px; }
  .mh-article__end::before { display:none; }
  .mh-article__end a { height:56px; display:flex; align-items:center; justify-content:center; padding:0; border:1px solid var(--mh-ink); }
  .mh-blog .mh-article__end .mh-article__share { order:-1; background:transparent; color:var(--mh-ink); }
  .mh-article__related .mh-blog__container { padding-top:48px; padding-bottom:56px; }
  .mh-article__related-title { font-size:34px; }
  .mh-blog__grid--related { gap:0; padding-top:16px; }
  .mh-blog__card--compact { display:grid; grid-template-columns:112px minmax(0,1fr); gap:16px; padding:20px 0; border-bottom:1px solid var(--mh-line); align-items:start; }
  .mh-blog__card--compact .mh-blog__media { aspect-ratio:4/5; }
  .mh-blog__card--compact .mh-blog__card-body { gap:10px; }
  .mh-blog__card--compact .mh-blog__card-title { font-size:21px; line-height:1.15; }
  .mh-blog__card--compact .mh-blog__more { font-size:11px; padding-bottom:3px; }
  .mh-blog__card--compact .mh-blog__more-full { display:none; }
  .mh-blog__card--compact .mh-blog__more-short { display:inline; }
}
