/*
Theme Name: Photos Models — журнал
Theme URI: https://photos-models.com/
Author: photos-models.com
Description: Тема онлайн-журнала photos-models.com: «Мода, которую можно надеть сегодня». Палитра «Слоновая кость», шрифты Prata и Onest, бесконечная лента, оглавление статьи, блоки сервисов. Работает вместе с плагином «PM Сервисы».
Version: 1.0.0
Requires PHP: 8.0
Text Domain: pm-magazine
*/

/* ───────── Токены ───────── */
:root {
  --pm-bg: #F5F1E8;
  --pm-surface: #EAE3D4;
  --pm-ink: #121110;
  --pm-muted: #5C554A;
  --pm-line: #DED6C5;
  --pm-field: #121110;
  --pm-field-ink: #F5F1E8;
  --pm-fmuted: #B9B1A3;
  --pm-gold: #CDB487;
  --pm-gold-line: #B39563;
  --pm-tile: #1E1B18;
  --pm-team: #24211D;
  --pm-display: 'Prata', Georgia, 'Times New Roman', serif;
  --pm-text: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pm-ease: cubic-bezier(.16, 1, .3, 1);
  --pm-gut: 32px;
  --pm-max: 1440px;
  color-scheme: light;
}

/* ───────── Основа ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--pm-bg); color: var(--pm-ink); font: 400 17px/1.55 var(--pm-text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, iframe { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
::selection { background: var(--pm-gold); color: var(--pm-ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.pm-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pm-skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; background: var(--pm-gold); color: var(--pm-ink); font-weight: 600; }
.pm-skip:focus { top: 16px; }
.pm-wrap { max-width: var(--pm-max); margin-left: auto; margin-right: auto; padding-left: var(--pm-gut); padding-right: var(--pm-gut); }
.pm-sec { margin-top: 120px; }
main > .pm-sec:first-child, main > article.pm-sec:first-child, main > section.pm-archive { margin-top: 56px; }
.pm-h1 { margin: 16px 0 0; font: 400 clamp(40px, 5.6vw, 72px)/1.02 var(--pm-display); letter-spacing: -0.03em; }
.pm-h1--xl { font-size: clamp(56px, 8.4vw, 120px); line-height: .92; letter-spacing: -0.04em; }
.pm-h2 { margin: 0; font: 400 clamp(36px, 4.6vw, 64px)/1 var(--pm-display); letter-spacing: -0.025em; }
.pm-h3 { margin: 0 0 20px; font: 400 30px/1.1 var(--pm-display); }
.pm-meta { margin: 8px 0 0; font-size: 15px; color: var(--pm-muted); }
.pm-empty { color: var(--pm-muted); }
.pm-link { font-weight: 500; text-decoration: underline; text-underline-offset: 5px; }
.pm-lead-p { font-size: 19px; max-width: 40em; }
.pm-ph { display: block; width: 100%; aspect-ratio: 4 / 5; background: var(--pm-surface); }

/* Кнопки */
.pm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 0; background: var(--pm-field); color: var(--pm-gold);
  font: 600 16px/1.2 var(--pm-text); text-decoration: none !important; cursor: pointer; transition: transform .16s var(--pm-ease); }
.pm-btn:active { transform: scale(.97); }
.pm-btn--gold { background: var(--pm-gold); color: var(--pm-ink); }
.pm-btn--line { background: transparent; color: var(--pm-ink); box-shadow: inset 0 0 0 1px var(--pm-ink); }
.pm-chips { margin-top: 28px; }
.pm-chiplink { min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; background: var(--pm-surface); font-size: 15px; font-weight: 500; text-decoration: none !important; transition: background-color .2s; }
.pm-chiplink:hover { background: var(--pm-line); }

/* ───────── Шапка ───────── */
.pm-head { background: var(--pm-field); color: var(--pm-field-ink); position: relative; z-index: 20; }
.pm-bar { max-width: var(--pm-max); margin: 0 auto; padding: 12px var(--pm-gut); display: flex; align-items: center; gap: 24px; min-height: 68px; }
.pm-logo { font: 400 30px/1 var(--pm-display); letter-spacing: -0.02em; color: var(--pm-gold); white-space: nowrap; text-decoration: none !important; }
.pm-nav { flex: 1; min-width: 0; }
.pm-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: 15px; font-weight: 500; }
.pm-nav__list a { display: inline-block; padding: 8px 0; }
.pm-nav__list a[aria-current="page"], .pm-nav__list .current-menu-item > a { text-decoration: underline; text-underline-offset: 6px; }
.pm-nav__gold, .pm-nav__list li:first-child > a { color: var(--pm-gold); }
.pm-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.pm-tools__link { font-size: 15px; margin-right: 10px; }
.pm-ico { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: inherit; }
.pm-burger { display: none; }
.pm-head--home .pm-bar { justify-content: space-between; }
.pm-mast { max-width: var(--pm-max); margin: 0 auto; padding: 8px var(--pm-gut) 40px; }
.pm-mast__h { margin: 0; display: flex; align-items: baseline; justify-content: space-between; white-space: nowrap; font: 400 min(calc((100vw - 2 * var(--pm-gut)) / 7.4), 186px)/.95 var(--pm-display); letter-spacing: -0.035em; }
.pm-mast__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 28px; }
.pm-mast__motto { margin: 0; max-width: 560px; font-size: 18px; }
.pm-mast__motto span:first-child { display: block; font: 400 30px/1.2 var(--pm-display); color: var(--pm-gold); }
.pm-mast__motto span + span { display: block; margin-top: 10px; }
.pm-mast__act { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.pm-mast__date { font-size: 15px; color: var(--pm-gold); }

/* Поиск */
.pm-search { border: 0; padding: 0; width: min(760px, calc(100vw - 32px)); background: var(--pm-bg); color: var(--pm-ink); margin-top: 12vh; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.pm-search::backdrop { background: rgba(18,17,16,.62); }
.pm-search[open] { animation: pm-pop .28s var(--pm-ease) both; }
.pm-search form { position: relative; display: flex; gap: 8px; padding: 28px; padding-right: 72px; }
.pm-search input, .pm-searchline input { flex: 1; min-width: 0; min-height: 56px; padding: 0 18px; border: 0; box-shadow: inset 0 0 0 1px var(--pm-line); background: #fff; font: 400 19px var(--pm-text); color: var(--pm-ink); border-radius: 0; }
.pm-search__x { position: absolute; top: 34px; right: 16px; width: 44px; height: 44px; border: 0; background: none; font-size: 30px; cursor: pointer; }
.pm-searchline { display: flex; gap: 8px; max-width: 640px; margin-top: 24px; }
@keyframes pm-pop { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }

/* ───────── Главная ───────── */
.pm-lead { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px 32px; padding-top: 64px; }
.pm-lead__img { display: block; overflow: hidden; }
.pm-lead__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; transition: transform .8s var(--pm-ease); }
.pm-lead__img:hover img { transform: scale(1.02); }
.pm-lead__t { margin: 28px 0 0; max-width: 820px; font: 400 clamp(32px, 3.4vw, 48px)/1.08 var(--pm-display); letter-spacing: -0.02em; }
.pm-lead__ex { margin: 18px 0 0; max-width: 680px; font-size: 19px; color: var(--pm-muted); }
.pm-byline { display: flex; align-items: center; gap: 14px; margin: 24px 0 0; font-size: 15px; text-decoration: none !important; }
.pm-byline strong { font-weight: 600; }
.pm-ava { border-radius: 50%; object-fit: cover; flex: none; display: block; }
.pm-ava--txt { display: grid; place-items: center; background: var(--pm-field); color: var(--pm-gold); font: 400 17px var(--pm-display); }
.pm-now { position: relative; min-height: 0; }
.pm-now__in { position: absolute; inset: 0; overflow: hidden; }
.pm-now__list { display: flex; flex-direction: column; gap: 22px; }
.pm-mini { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; text-decoration: none !important; }
.pm-mini img, .pm-mini .pm-ph { width: 96px; height: 120px; object-fit: cover; display: block; }
.pm-mini__t { display: block; font: 400 20px/1.25 var(--pm-display); }
.pm-mini:hover .pm-mini__t { text-decoration: underline; text-underline-offset: 4px; }
.pm-mini .pm-meta { display: block; font-size: 14px; }

.pm-sechead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 32px; align-items: end; }
.pm-sechead p { margin: 0; font-size: 18px; }
.pm-sechead a { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.pm-sechead--end { display: flex; flex-wrap: wrap; justify-content: space-between; }
.pm-today { margin-top: 120px; background: var(--pm-surface); padding: 80px 0; }
.pm-today .pms-chips button { background: var(--pm-bg); }
.pm-today .pms-chips button[aria-pressed="true"] { background: var(--pm-field); color: var(--pm-gold); }
.pm-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 40px; transition: opacity .25s; }
.pm-loading { opacity: .45; }
.pm-adzone { margin-top: 64px; }

.pm-black { margin-top: 120px; }
.pm-band { display: flex; height: 68vh; min-height: 520px; max-height: 760px; margin-top: 40px; }
.pm-band__i { position: relative; overflow: hidden; display: block; flex: 2 1 0; text-decoration: none !important; }
.pm-band__i--0 { flex: 5 1 0; } .pm-band__i--2 { flex: 3 1 0; }
.pm-band__i img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--pm-ease); }
.pm-band__i:hover img { transform: scale(1.04); }
.pm-band__t { position: absolute; left: 0; right: 0; bottom: 0; padding: 120px 28px 28px; background: linear-gradient(transparent, rgba(0,0,0,.66)); color: #F5F1E8; font: 400 22px/1.15 var(--pm-display); opacity: 0; transform: translateY(8px); transition: opacity .35s var(--pm-ease), transform .35s var(--pm-ease); }
.pm-band__i--0 .pm-band__t { font-size: 34px; opacity: 1; transform: none; }
.pm-band__i:hover .pm-band__t, .pm-band__i:focus-visible .pm-band__t { opacity: 1; transform: none; }
.pm-note-s { margin-top: 16px; font-size: 15px; color: var(--pm-muted); }
.pm-promo-band { margin-top: 120px; }

.pm-men { margin-top: 120px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 8.3%; align-items: start; }
.pm-men__lead { margin: 20px 0 0; font-size: 18px; max-width: 440px; }
.pm-tlines { display: flex; flex-direction: column; gap: 4px; margin: 36px 0 24px; }
.pm-tline { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; background: var(--pm-surface); font-weight: 500; text-decoration: none !important; transition: background-color .2s; }
.pm-tline:hover { background: var(--pm-line); }
.pm-tline .pm-meta { margin: 0; white-space: nowrap; font-weight: 400; }
.pm-men__feat { display: block; text-decoration: none !important; }
.pm-men__feat img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.pm-men__ft { display: block; margin-top: 20px; font: 400 34px/1.12 var(--pm-display); }
.pm-men__feat:hover .pm-men__ft { text-decoration: underline; text-underline-offset: 5px; }

.pm-team { margin-top: 120px; background: var(--pm-field); color: var(--pm-field-ink); padding: 96px 0; }
.pm-team .pm-sechead p { color: var(--pm-field-ink); }
.pm-team__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; margin-top: 48px; }
.pm-team__i { display: block; text-decoration: none !important; }
.pm-team__i img, .pm-team__ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: grid; place-items: center; background: var(--pm-team); color: var(--pm-gold); font: 400 56px var(--pm-display); }
.pm-team__n { display: block; margin-top: 18px; font: 400 24px var(--pm-display); }
.pm-team__r { display: block; margin-top: 4px; font-size: 15px; color: var(--pm-gold); }
.pm-team__i:hover .pm-team__n { text-decoration: underline; text-underline-offset: 4px; }

/* Лента */
.pm-feed { margin-top: 48px; }
.pm-feed--row { display: flex; flex-direction: column; gap: 48px; }
.pm-feed--grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; }
.pm-feed--grid .pm-feed__promo { grid-column: 1 / -1; }
.pm-row { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 16px 8.3%; align-items: center; }
.pm-row__img { display: block; overflow: hidden; }
.pm-row__img img, .pm-row__img .pm-ph { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; transition: transform .8s var(--pm-ease); }
.pm-row__img:hover img { transform: scale(1.03); }
.pm-row__t { margin: 0; font: 400 clamp(26px, 2.4vw, 34px)/1.12 var(--pm-display); }
.pm-row__ex { margin: 12px 0 0; font-size: 17px; color: var(--pm-muted); }
.pm-card { position: relative; }
.pm-card__img { display: block; overflow: hidden; }
.pm-card__img img, .pm-card__img .pm-ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; transition: transform .8s var(--pm-ease); }
.pm-card__img:hover img { transform: scale(1.03); }
.pm-card__t { margin: 16px 0 0; font: 400 24px/1.2 var(--pm-display); }
.pm-card .pms-heart, .pm-row .pms-heart { position: absolute; top: 10px; left: 10px; right: auto; }
.pm-row .pms-heart { top: 10px; left: 10px; }
.pm-more { margin-top: 48px; display: grid; justify-items: center; gap: 16px; }
.pm-more__t { margin: 0; font-size: 15px; color: var(--pm-muted); }
.pm-skel { display: none; width: 100%; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 8.3%; }
.pm-skel span { display: block; background: var(--pm-surface); }
.pm-skel span:first-child { aspect-ratio: 3 / 2; grid-row: span 2; }
.pm-skel span:nth-child(2) { height: 30px; width: 80%; align-self: end; }
.pm-skel span:nth-child(3) { height: 18px; width: 55%; }
.pm-more--js .pm-skel { display: grid; }
.pm-more--js .pm-btn { display: none; }
.pm-more--busy .pm-skel span { animation: pm-pulse 1.2s ease-in-out infinite; }
@keyframes pm-pulse { 50% { opacity: .5; } }
.pm-js .pm-reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--pm-ease), transform .55s var(--pm-ease); }
.pm-js .pm-reveal.pm-on { opacity: 1; transform: none; }

/* ───────── Статья ───────── */
.pm-article__head { padding-top: 56px; }
.pm-crumbs { font-size: 14px; color: var(--pm-muted); }
.pm-crumbs a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--pm-line); }
.pm-article__t { margin: 20px 0 0; max-width: 1080px; font: 400 clamp(38px, 5vw, 72px)/1.02 var(--pm-display); letter-spacing: -0.03em; text-wrap: balance; }
.pm-article__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 32px; }
.pm-article__meta .pm-byline { margin: 0; }
.pm-article__meta .pm-byline > span { display: flex; flex-direction: column; }
.pm-article__meta .pm-byline strong { font-size: 16px; }
.pm-article__meta .pm-byline span span { color: var(--pm-muted); }
.pm-article__info { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--pm-muted); }
.pm-article__info .pms-heart { position: static; background-color: var(--pm-surface); }
.pm-hero { margin-top: 40px; margin-bottom: 0; }
.pm-hero img { width: 100%; aspect-ratio: 21 / 10; object-fit: cover; display: block; }
.pm-article__grid { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px 32px; }
.pm-article__grid .pm-body { max-width: 720px; width: 100%; margin: 0 auto; }
.pm-article__grid.has-toc { grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); }
.pm-article__grid.has-toc .pm-body { grid-column: 2; margin: 0; max-width: none; }
.pm-article__grid.has-rail { grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); }
.pm-article__grid.has-rail .pm-body { grid-column: 2; margin: 0; max-width: none; }
.pm-article__grid.has-rail .pm-rail { grid-column: 3; }
.pm-toc { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow: auto; }
.pm-toc__t { margin: 0 0 14px; font: 400 22px var(--pm-display); }
.pm-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.pm-toc a { display: block; padding: 8px 12px; text-decoration: none !important; color: var(--pm-muted); box-shadow: inset 2px 0 0 transparent; transition: color .2s, background-color .2s; }
.pm-toc a:hover { color: var(--pm-ink); background: var(--pm-surface); }
.pm-toc a[aria-current] { color: var(--pm-ink); background: var(--pm-surface); font-weight: 500; }
.pm-rail { position: sticky; top: 24px; align-self: start; }
.pm-widget + .pm-widget { margin-top: 24px; }
.pm-widget__t { font: 400 22px var(--pm-display); margin: 0 0 12px; }

/* Текст статьи */
.pm-body { font-size: 19px; line-height: 1.65; overflow-wrap: break-word; }
.pm-body > *:first-child { margin-top: 0; }
.pm-body p { margin: 0 0 22px; }
.pm-body > p:first-of-type { font: 400 23px/1.5 var(--pm-display); }
.pm-body a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--pm-gold-line); }
.pm-body a:hover { text-decoration-thickness: 2px; }
.pm-body h2 { margin: 56px 0 16px; font: 400 clamp(28px, 3vw, 38px)/1.12 var(--pm-display); letter-spacing: -0.015em; scroll-margin-top: 24px; }
.pm-body h3 { margin: 36px 0 12px; font: 600 21px/1.3 var(--pm-text); }
.pm-body ul, .pm-body ol { margin: 0 0 22px; padding-left: 24px; }
.pm-body li { margin-bottom: 8px; }
.pm-body li::marker { color: var(--pm-muted); }
.pm-body blockquote { margin: 36px 0; padding: 0; font: 400 28px/1.3 var(--pm-display); }
.pm-body blockquote p { margin: 0; }
.pm-body table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 16px; display: block; overflow-x: auto; }
.pm-body th { text-align: left; font-weight: 600; padding: 12px 14px; background: var(--pm-surface); }
.pm-body td { padding: 11px 14px; border-bottom: 1px solid var(--pm-line); vertical-align: top; }
.pm-body figure, .pm-body .pm-photo { margin: 36px 0; text-align: left; }
.pm-body figure img, .pm-body .pm-photo img { width: 100%; height: auto; display: block; border-radius: 0; }
.pm-body figcaption, .pm-body .wp-caption-text { margin-top: 10px; font-size: 15px; color: var(--pm-muted); text-align: left; }
.pm-body .pm-credit { display: none; }
.pm-body img.alignleft, .pm-body .alignleft { float: left; margin: 6px 24px 16px 0; max-width: 50%; }
.pm-body img.alignright, .pm-body .alignright { float: right; margin: 6px 0 16px 24px; max-width: 50%; }
.pm-body .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.pm-body .wp-caption { max-width: 100%; }
.pm-body .gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 28px 0; }
.pm-body .gallery-item { margin: 0; }
.pm-body .gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.pm-body iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.pm-body::after { content: ''; display: table; clear: both; }
/* Фирменные блоки авторов (перекрывают светлые стили старой версии) */
.pm-body .pm-note, .pm-body .pm-checklist { margin: 36px 0; padding: 28px 32px; border: 0; border-radius: 0; background: var(--pm-surface); font-size: 17px; }
.pm-body .pm-note--rule { background: var(--pm-field); color: var(--pm-field-ink); }
.pm-body .pm-note--rule a { color: var(--pm-gold); }
.pm-body .pm-note__title { margin: 0 0 12px !important; font: 400 24px/1.2 var(--pm-display) !important; letter-spacing: 0 !important; text-transform: none !important; color: inherit !important; }
.pm-body .pm-note--rule .pm-note__title { color: var(--pm-gold) !important; }
.pm-body .pm-note ul, .pm-body .pm-note ol, .pm-body .pm-checklist ul { margin-bottom: 0; }
.pm-body .pm-note p:last-child { margin-bottom: 0; }
.pm-body .pm-checklist ul { list-style: none; padding: 0; }
.pm-body .pm-checklist li { position: relative; padding-left: 32px; }
.pm-body .pm-checklist li::before { content: ''; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; box-shadow: inset 0 0 0 1.5px var(--pm-ink); }
.pm-body .pm-also { margin: 28px 0; padding: 18px 24px; border: 0; background: var(--pm-surface); font: 400 17px var(--pm-text); }
.pm-body .pm-also a { font-weight: 600; }
.pm-pages { margin: 28px 0; font-size: 16px; }

.pm-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 48px; }
.pm-share__t { font-size: 15px; font-weight: 600; margin-right: 6px; }
.pm-share a, .pm-share button { min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; background: var(--pm-surface); border: 0; font: 500 15px var(--pm-text); text-decoration: none !important; cursor: pointer; transition: background-color .2s; }
.pm-share a:hover, .pm-share button:hover { background: var(--pm-line); }
.pm-authorcard { margin-top: 48px; padding: 32px; background: var(--pm-field); color: var(--pm-field-ink); display: flex; gap: 24px; align-items: flex-start; }
.pm-authorcard .pm-ava { width: 96px; height: 96px; font-size: 32px; background: #2A2622; }
.pm-authorcard__n { margin: 0; font: 400 26px var(--pm-display); }
.pm-authorcard__r { margin: 4px 0 12px; font-size: 15px; color: var(--pm-gold); }
.pm-authorcard__b { margin: 0; font-size: 16px; color: var(--pm-fmuted); }
.pm-authorcard__s { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 18px; font-size: 15px; }
.pm-authorcard__s a { text-decoration: underline; text-underline-offset: 4px; }
.pm-strip-wrap { margin-top: 120px; }
.pm-more-from__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: 32px; margin-top: 40px; }
.pm-mf { display: block; text-decoration: none !important; }
.pm-mf img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.pm-mf--0 img { aspect-ratio: 3 / 2; }
.pm-mf__t { display: block; margin-top: 16px; font: 400 22px/1.2 var(--pm-display); }
.pm-mf--0 .pm-mf__t { font-size: 30px; line-height: 1.15; }
.pm-mf:hover .pm-mf__t { text-decoration: underline; text-underline-offset: 4px; }

/* Комментарии */
.pm-cmts__list { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 16px; max-width: 760px; }
.pm-cmts__list .comment-body { padding: 20px 24px; background: var(--pm-surface); }
.pm-cmts__list .children { list-style: none; padding-left: 24px; margin-top: 12px; }
.pm-cmts .avatar { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-form { max-width: 760px; display: grid; gap: 12px; }
.comment-form textarea, .comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url] { width: 100%; padding: 14px 16px; border: 0; box-shadow: inset 0 0 0 1px var(--pm-line); background: #fff; font: 400 17px var(--pm-text); }

/* ───────── Архивы, страницы ───────── */
.pm-archhead .pm-chips { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.pm-archhead__d { max-width: 760px; margin-top: 20px; font-size: 18px; color: var(--pm-muted); }
.pm-authorhead { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 32px; align-items: center; }
.pm-authorhead .pm-ava { width: 160px; height: 160px; font-size: 48px; }
.pm-authorhead .pm-h1 { margin-top: 0; }
.pm-authorhead__r { margin: 8px 0 0; font-size: 17px; color: var(--pm-gold-line); font-weight: 500; }
.pm-authorhead__b { margin: 16px 0 0; max-width: 760px; font-size: 18px; }
.pm-page .pm-body--page { max-width: 760px; margin-top: 32px; }
.pm-tool__head { max-width: 1000px; }
.pm-tool__body { margin-top: 24px; }
.pm-tool__body > p, .pm-tool__body > ul, .pm-tool__body > h2, .pm-tool__body > ol { max-width: 760px; }
.pm-tool__body > h2 { font: 400 clamp(28px, 3vw, 38px)/1.12 var(--pm-display); margin: 56px 0 16px; }
.pm-tool__body .pms-lead { font: 400 21px/1.5 var(--pm-display); max-width: 820px; }
.pm-full { padding-top: 0; }
.pm-fullhead { padding: 72px 0 56px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 32px; align-items: end; }
.pm-fullhead .pm-h1 { margin: 0; }
.pm-fullhead__l { margin: 0; font-size: 19px; }
.pm-404 .pm-h2 { margin-top: 96px; }

/* ───────── Подвал ───────── */
.pm-foot { margin-top: 140px; background: var(--pm-field); color: var(--pm-field-ink); overflow: hidden; }
.pm-foot__in { max-width: var(--pm-max); margin: 0 auto; padding: 64px var(--pm-gut) 0; }
.pm-foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; font-size: 15px; }
.pm-foot__cols div { display: flex; flex-direction: column; gap: 10px; }
.pm-foot__word { margin: 72px 0 0; font: 400 clamp(60px, 12.4vw, 190px)/.8 var(--pm-display); letter-spacing: -0.035em; color: var(--pm-gold); white-space: nowrap; }
.pm-foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 28px 0 32px; font-size: 14px; color: var(--pm-fmuted); }
.pm-foot__legal { display: flex; flex-wrap: wrap; gap: 24px; }

/* ───────── Адаптив ───────── */
@media (max-width: 1100px) {
  .pm-article__grid.has-toc.has-rail { grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); }
  .pm-article__grid.has-toc.has-rail .pm-rail { grid-column: 2; position: static; }
  .pm-nav__list { gap: 4px 18px; }
  .pm-tools__link { display: none; }
}
@media (max-width: 900px) {
  :root { --pm-gut: 16px; }
  body { font-size: 16px; }
  .pm-sec, .pm-today, .pm-black, .pm-promo-band, .pm-men, .pm-team, .pm-strip-wrap { margin-top: 80px; }
  .pm-today, .pm-team { padding: 56px 0; }
  .pm-burger { display: grid; }
  .pm-bar { min-height: 60px; gap: 12px; }
  .pm-logo { font-size: 26px; }
  .pm-nav { position: fixed; inset: 60px 0 0 0; background: var(--pm-field); padding: 24px var(--pm-gut) 40px; overflow: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s var(--pm-ease), transform .25s var(--pm-ease), visibility 0s .25s; }
  .pm-menu-open .pm-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--pm-ease), transform .25s var(--pm-ease); }
  .pm-menu-open body { overflow: hidden; }
  .pm-nav__list { flex-direction: column; gap: 0; font: 400 32px/1.2 var(--pm-display); }
  .pm-nav__list a { padding: 10px 0; }
  .pm-head--home .pm-nav { inset: 60px 0 0 0; }
  .pm-mast { padding-bottom: 32px; }
  .pm-mast__motto span:first-child { font-size: 24px; }
  .pm-mast__act { width: 100%; justify-content: space-between; }
  .pm-lead, .pm-sechead, .pm-men, .pm-fullhead, .pm-authorhead { grid-template-columns: 1fr; }
  .pm-lead { padding-top: 40px; }
  .pm-now__in { position: static; }
  .pm-grid3, .pm-feed--grid { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .pm-card__t { font-size: 20px; }
  .pm-band { flex-wrap: wrap; height: auto; min-height: 0; max-height: none; }
  .pm-band__i { flex: 1 1 45% !important; height: 260px; }
  .pm-band__i--0 { flex-basis: 100% !important; height: 380px; }
  .pm-band__t { opacity: 1; transform: none; font-size: 18px; padding: 80px 16px 16px; }
  .pm-band__i--0 .pm-band__t { font-size: 26px; }
  .pm-team__grid { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .pm-row { grid-template-columns: 1fr; }
  .pm-article__head { padding-top: 32px; }
  .pm-article__grid, .pm-article__grid.has-toc, .pm-article__grid.has-rail, .pm-article__grid.has-toc.has-rail { grid-template-columns: 1fr; margin-top: 32px; }
  .pm-article__grid .pm-body, .pm-article__grid.has-rail .pm-rail { grid-column: auto !important; }
  .pm-toc { position: static; max-height: none; padding: 20px; background: var(--pm-surface); }
  .pm-toc a:hover, .pm-toc a[aria-current] { background: var(--pm-bg); }
  .pm-rail { position: static; }
  .pm-hero { padding: 0; margin-top: 28px; }
  .pm-hero img { aspect-ratio: 4 / 3; }
  .pm-body { font-size: 18px; }
  .pm-body > p:first-of-type { font-size: 21px; }
  .pm-body .pm-note, .pm-body .pm-checklist { padding: 22px 20px; }
  .pm-body .gallery { grid-template-columns: 1fr 1fr; }
  .pm-authorcard { flex-direction: column; padding: 24px; }
  .pm-more-from__grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .pm-mf--0 { grid-column: 1 / -1; }
  .pm-foot__cols { grid-template-columns: 1fr 1fr; }
  .pm-skel { grid-template-columns: 1fr; }
  .pm-search { margin-top: 0; }
  .pm-search form { flex-wrap: wrap; padding: 20px; padding-right: 64px; }
}
@media (max-width: 520px) {
  .pm-grid3, .pm-feed--grid { grid-template-columns: 1fr; }
  .pm-body img.alignleft, .pm-body img.alignright, .pm-body .alignleft, .pm-body .alignright { float: none; margin: 24px 0; max-width: 100%; }
  .pm-article__meta { flex-direction: column; align-items: flex-start; }
  .pm-searchline { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .pm-js .pm-reveal { opacity: 1; transform: none; }
}
@media print {
  .pm-head, .pm-foot, .pm-toc, .pm-rail, .pm-share, .pm-strip-wrap, .pm-more-from, .pms-heart { display: none !important; }
  body { background: #fff; }
}

/* Битая картинка не должна раздувать карточку: размер задаёт рамка, а не файл */
.pm-row__img, .pm-card__img, .pm-lead__img, .pm-mini > img, .pm-mf, .pm-men__feat { background: var(--pm-surface); }
.pm-row__img { aspect-ratio: 3 / 2; }
.pm-card__img { aspect-ratio: 4 / 5; }
.pm-row__img img, .pm-card__img img { height: 100%; }
.pm-row__img img, .pm-card__img img, .pm-lead__img img, .pm-mini img, .pm-mf img, .pm-men__feat img, .pm-band__i img, .pms-card img { color: transparent; font-size: 0; }
