/* Shared public chrome and reading details. Editorial grids stay untouched. */
.pgm-public {
  --pgm-bg: #111416;
  --pgm-panel: #191c1d;
  --pgm-milk: #f1ede4;
  --pgm-muted: #d2cfc6;
  --pgm-bronze: #c5a178;
  --pgm-rule: #ffffff29;
  --pgm-gutter: clamp(24px, 5.5vw, 88px);
  --pgm-header-height: calc(100px + env(safe-area-inset-top, 0px));
  --bg: var(--pgm-bg);
  --panel: var(--pgm-panel);
  --ink: var(--pgm-milk);
  --muted: var(--pgm-muted);
  --accent: var(--pgm-bronze);
  --line: var(--pgm-rule);
  background: var(--pgm-bg);
  color: var(--pgm-milk);
}
.pgm-public :is(.topbar, .site-bar, .site-bar.is-solid, .pgm-masthead) {
  box-sizing: border-box;
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: var(--pgm-header-height);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: env(safe-area-inset-top, 0px) max(var(--pgm-gutter), env(safe-area-inset-right, 0px)) 0 max(var(--pgm-gutter), env(safe-area-inset-left, 0px));
  background: linear-gradient(#101214f5, #101214e6);
  border-bottom: 1px solid var(--pgm-rule);
  backdrop-filter: blur(12px);
  font: 14px/1.4 Manrope, Arial, sans-serif;
}
.pgm-public :is(.topbar, .site-bar, .pgm-masthead) .brand {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  color: var(--pgm-milk);
  text-decoration: none;
  font: 600 34px/1 'Cormorant Garamond', Georgia, serif;
  letter-spacing: .08em;
}
.pgm-public :is(.topbar, .site-bar, .pgm-masthead) .brand img {width: 28px; height: 37px; object-fit: contain}
.pgm-public :is(.topbar, .site-bar, .pgm-masthead) .brand b {font: inherit}
.pgm-public .site-bar .brand > span {display: flex; align-items: center; gap: 24px}
.pgm-public :is(.topbar, .pgm-masthead) .brand > span {display: block; font: inherit}
.pgm-public :is(.brand-note, .site-bar .brand small) {display: block; color: var(--pgm-muted); font: 12px/1.4 Manrope, Arial, sans-serif; letter-spacing: 0}
.pgm-public :is(.topbar, .site-bar, .pgm-masthead) .desktop-nav {display: flex; align-items: center; gap: 28px; margin-left: auto}
.pgm-public .desktop-nav a {display: inline-flex; align-items: center; min-height: 48px; text-decoration: none}
.pgm-public .desktop-nav .nav-help {padding: 0 20px; border: 1px solid #c5a1788c; border-radius: 2px; background: transparent}
.pgm-public :is(.topbar .menu-trigger, .site-bar .menu-button, .pgm-masthead .menu-button) {display: inline-flex; align-items: center; justify-content: center; gap: 14px; margin-left: 8px; min-width: 44px; min-height: 48px; padding: 8px 0; border: 0; background: transparent; color: inherit; font: 14px/1.4 Manrope, Arial, sans-serif; cursor: pointer}
.pgm-public .pgm-menu-icon {display: grid; gap: 6px; width: 24px; font-style: normal}
.pgm-public .pgm-menu-icon b {display: block; width: 24px; height: 1px; background: currentColor}
.pgm-public :is(#menu, #site-menu) {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: 100%; max-width: none;
  height: 100dvh; max-height: none;
  margin: 0; padding: 0 0 env(safe-area-inset-bottom, 0px);
  border: 0; border-radius: 0;
  background: var(--pgm-bg); color: var(--pgm-milk);
  overflow: auto; overscroll-behavior: contain;
}
.pgm-public :is(#menu, #site-menu)::backdrop {background: #090c0df2}
.pgm-public :is(.menu-top, .menu-head) {box-sizing: border-box; position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--pgm-header-height); padding: env(safe-area-inset-top, 0px) var(--pgm-gutter) 0; border-bottom: 1px solid var(--pgm-rule); background: var(--pgm-bg)}
.pgm-public :is(.menu-top, .menu-head) .brand {font: 600 34px/1 'Cormorant Garamond', Georgia, serif; letter-spacing: .08em; color: inherit; text-decoration: none}
.pgm-public .menu-close {display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 48px; min-width: 100px; padding: 8px 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: 14px/1.4 Manrope, Arial, sans-serif; cursor: pointer}
.pgm-public .menu-close :is(span, i) {font: 28px/1 Arial, sans-serif; border: 0; width: auto; height: auto}
.pgm-public :is(.menu-grid, .menu-body) {display: grid; grid-template-columns: 1.4fr 1fr; gap: 8vw; padding: 44px var(--pgm-gutter) 64px}
.pgm-public :is(.menu-grid nav, .menu-primary) {display: block}
.pgm-public :is(.menu-grid nav, .menu-primary) > a {display: flex; align-items: center; gap: 26px; padding: 15px 0; border-bottom: 1px solid var(--pgm-rule); color: inherit; text-decoration: none; transform: none; font: 500 clamp(36px, 4.4vw, 64px)/1.12 'Cormorant Garamond', Georgia, serif}
.pgm-public :is(.menu-grid nav, .menu-primary) small {flex-shrink: 0; color: var(--pgm-bronze); font: 12px/1.4 Manrope, Arial, sans-serif}
.pgm-public :is(.menu-grid aside, .menu-aside) {display: block; color: var(--pgm-muted); font: 16px/1.65 Manrope, Arial, sans-serif}
.pgm-public :is(.menu-grid aside, .menu-aside) > p:first-child {margin: 0 0 36px; color: var(--pgm-milk); font: 400 clamp(36px, 3.8vw, 56px)/1.08 'Cormorant Garamond', Georgia, serif; letter-spacing: -.02em}
.pgm-public :is(.menu-grid aside, .menu-aside) em {font-weight: 400}
.pgm-public :is(.menu-grid aside, .menu-aside) > a {display: flex; align-items: center; min-height: 48px; padding: 8px 0; margin: 0 0 12px; color: inherit; text-decoration: none; border: 0}
.pgm-public :is(.menu-grid aside, .menu-aside) > span {display: block; margin-top: 30px; font-size: 14px; line-height: 1.7}
.pgm-public :is(.desktop-nav, .menu-grid, .menu-body) a:hover {color: var(--pgm-bronze)}
.pgm-public :is(.topbar, .site-bar, .pgm-masthead, #menu, #site-menu) :is(a, button):focus-visible {outline: 2px solid var(--pgm-milk); outline-offset: 5px}
.pgm-public :is(.skip, .skip-link):focus-visible {position: fixed; top: 12px; left: var(--pgm-gutter); z-index: 160; padding: 14px; background: var(--pgm-milk); color: var(--pgm-bg)}
.pgm-public .pgm-fallback-nav {display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 24px var(--pgm-gutter); margin-top: var(--pgm-header-height); font: 15px/1.5 Manrope, Arial, sans-serif}
.js-ready .pgm-newsroom .pgm-fallback-nav {display: none}
.pgm-newsroom {font-family: Manrope, Arial, sans-serif; --serif: 'Cormorant Garamond', Georgia, serif}
.pgm-newsroom > .shell {padding-top: 0}
.js-ready .pgm-newsroom > .shell {padding-top: var(--pgm-header-height)}
.pgm-newsroom .eyebrow {font-size: 13px; line-height: 1.65}
.pgm-newsroom .prose {font-size: 21px; line-height: 1.65; color: var(--pgm-milk); overflow-wrap: break-word}
.pgm-newsroom .prose :is(h2, h3) {font-family: 'Cormorant Garamond', Georgia, serif; line-height: 1.15; color: var(--pgm-milk)}
.pgm-newsroom .prose blockquote {margin-inline: 0; padding-left: 24px; border-left: 2px solid var(--pgm-bronze); color: var(--pgm-milk)}
.pgm-newsroom .cover {margin-inline: 0}
.pgm-newsroom .cover-zoom {display: block; width: 100%; padding: 0; border: 0; background: #0b0e10; color: inherit; cursor: zoom-in}
.pgm-newsroom .cover-zoom img {width: 100%; height: auto; max-height: 680px; object-fit: contain}
.pgm-newsroom .cover-caption {display: block; padding: 14px 0 0; font: 13px/1.65 Manrope, Arial, sans-serif; color: var(--pgm-muted); overflow-wrap: break-word}
.pgm-newsroom .cover-caption small {display: block; margin-top: 4px; font: inherit; color: var(--pgm-bronze)}
.pgm-newsroom .lightbox {box-sizing: border-box; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); overflow: auto; border: 1px solid #93856a; border-radius: 2px; background: var(--pgm-bg); color: var(--pgm-milk)}
.pgm-newsroom .lightbox img {display: block; max-width: 100%; height: auto}
.pgm-newsroom .lightbox p {font: 14px/1.65 Manrope, Arial, sans-serif}
.pgm-public .reading :is(.caption, figcaption), .pgm-public .editorial-home :is(.media-note, figcaption), .pgm-public .route-source {font: 13px/1.65 Manrope, Arial, sans-serif; color: var(--pgm-muted)}
.pgm-public .reading .image-link {border: 1px solid var(--pgm-rule); border-radius: 2px}
.pgm-public :is(.home-feed-image, .project-showcase-photo, .card-photo) {border: 1px solid var(--pgm-rule); border-radius: 2px; background: #0b0e10}
/* Keep Pavel's CMS photographs complete inside the existing card dimensions. */
.pgm-public :is(.home-feed-image, .project-showcase-photo, .card-photo) img[src^="/news-media/"] {object-fit: contain; transform: none}
.pgm-public .reading .image-link > :is(.image-number, .image-index, span:not([class])) {display: grid; place-items: center; top: 16px; left: 16px; width: 48px; height: 48px; padding: 4px; border: 1px solid #ffffff40; border-radius: 2px; background: #111416df; color: var(--pgm-milk); font: 400 30px/1 'Cormorant Garamond', Georgia, serif}
/* Buttons only: keep the approved header, card frames and reading layout intact.
   Shadows supply the contour without reserving arrow pseudo-elements or clipping focus. */
.pgm-public {--pgm-button-radius: 34px 38px 30px 38px / 30px 27px 36px 29px}
.pgm-public :is(.scene-copy .line-link, .action:not(.action-text), .reading .button, .route-reading-link, .desktop-nav .nav-help, .pgm-support-dock button, .pgm-call-panel .pgm-call-start, .pgm-call-panel .pgm-call-copy, .pgm-call-panel .pgm-call-finished) {
  border-radius: var(--pgm-button-radius);
  transition: background-color .18s, color .18s, border-color .18s, box-shadow .18s;
}
.pgm-public.is-ready.cinema-expanded:not(.story-passed) .cinema-exit {border-radius: var(--pgm-button-radius); transition: background-color .18s, color .18s, border-color .18s, box-shadow .18s}
.pgm-public :is(.scene-copy .line-link, .action:not(.action-text), .reading .button, .route-reading-link, .cinema-exit, .desktop-nav .nav-help, .pgm-support-dock button, .pgm-call-panel .pgm-call-start, .pgm-call-panel .pgm-call-copy, .pgm-call-panel .pgm-call-finished):not(:disabled):not([aria-disabled="true"]):is(:hover, :focus-visible) {
  box-shadow: 0 0 0 3px var(--pgm-bg), 0 0 0 4px var(--pgm-bronze), 0 8px 22px #0000001a;
}
.pgm-public :is(.scene-copy .line-link, .action:not(.action-text), .reading .button, .route-reading-link, .cinema-exit, .desktop-nav .nav-help, .pgm-support-dock button, .pgm-call-panel .pgm-call-start, .pgm-call-panel .pgm-call-copy, .pgm-call-panel .pgm-call-finished):not(:disabled):not([aria-disabled="true"]):active {box-shadow: inset 0 0 0 2px var(--pgm-bronze)}
.pgm-public .film-preview-link {border-radius: 0 0 40% 40%}
@media(prefers-reduced-motion: reduce) {
  .pgm-public :is(.scene-copy .line-link, .action, .reading .button, .route-reading-link, .cinema-exit, .desktop-nav .nav-help, .pgm-support-dock button, .pgm-call-panel .pgm-call-start, .pgm-call-panel .pgm-call-copy, .pgm-call-panel .pgm-call-finished) {transition: none!important}
}
@media(forced-colors: active) {
  .pgm-public :is(.scene-copy .line-link, .action, .reading .button, .route-reading-link, .cinema-exit, .desktop-nav .nav-help, .pgm-support-dock button, .pgm-call-panel .pgm-call-start, .pgm-call-panel .pgm-call-copy, .pgm-call-panel .pgm-call-finished) {box-shadow: none!important}
}
@media(max-width: 1100px) {
  .pgm-public {--pgm-header-height: calc(84px + env(safe-area-inset-top, 0px))}
  .pgm-public :is(.topbar, .site-bar, .pgm-masthead) .desktop-nav {display: none}
  .pgm-public :is(.topbar .menu-trigger, .site-bar .menu-button, .pgm-masthead .menu-button) {margin-left: auto}
}
@media(max-width: 800px) {
  .pgm-public {--pgm-gutter: 24px}
  .pgm-public :is(.topbar, .site-bar, .site-bar.is-solid, .pgm-masthead) {gap: 12px}
  .pgm-public :is(.topbar, .site-bar, .pgm-masthead) .brand {font-size: 30px; gap: 8px}
  .pgm-public :is(.topbar, .site-bar, .pgm-masthead) .brand img {width: 18px; height: 26px}
  .pgm-public .site-bar .brand > span {display: flex; gap: 12px}
  .pgm-public :is(.brand-note, .site-bar .brand small) {display: block; font-size: 10px; line-height: 1.4}
  .pgm-public :is(.menu-grid, .menu-body) {grid-template-columns: 1fr; gap: 40px; padding-top: 26px}
  .pgm-public :is(.menu-grid nav, .menu-primary) > a {font-size: clamp(34px, 7vw, 48px); gap: 20px; min-height: 64px; padding-block: 14px}
  .pgm-public :is(.menu-grid aside, .menu-aside) > p:first-child {font-size: 38px}
}
@media(max-width: 540px) {
  .pgm-newsroom .prose {font-size: 20px}
}
@media(max-width: 420px) {
  .pgm-public {--pgm-gutter: 20px}
  .pgm-public :is(.topbar, .site-bar, .pgm-masthead) .brand {font-size: 28px}
  .pgm-public :is(.topbar .menu-trigger, .site-bar .menu-button, .pgm-masthead .menu-button) > span {position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%)}
}
@media(max-width: 560px) and (max-height: 700px) {
  .pgm-public.cinema-landing:not(.cinema-expanded) .scene.opening h1 {font-size: clamp(46px, 15vw, 60px)!important; margin: 12px 0 18px}
  .pgm-public.cinema-landing:not(.cinema-expanded) .scene.opening .intro {font-size: 16px; line-height: 1.5}
  .pgm-public.cinema-landing:not(.cinema-expanded) .scene.opening .scene-actions {margin-top: 8px; gap: 8px}
}
@media print {
  .pgm-public :is(.topbar, .site-bar, .pgm-masthead, #menu, #site-menu, .pgm-fallback-nav) {display: none!important}
  .pgm-newsroom > .shell, .js-ready .pgm-newsroom > .shell {padding-top: 0}
  .pgm-public {--pgm-bg: white; --pgm-milk: black; --pgm-muted: #444; --pgm-bronze: #333; --bg: white; --ink: black; --muted: #444; --accent: #333; --line: #ccc; background: white; color: black}
  .pgm-newsroom .cover-caption {color: black}
}

/* Utility controls use a precise silhouette, not the organic editorial buttons. */
.pgm-public:not(.pgm-newsroom) .pgm-support-dock {background: var(--pgm-bg, #111416)}
.pgm-public .pgm-support-dock button:is(.pgm-sound-button, .pgm-theme-toggle, .pgm-call-button) {
  box-sizing: border-box; border-radius: 999px; box-shadow: none!important;
  justify-content: center; gap: 8px; line-height: 1; font-family: Manrope, Arial, sans-serif;
  -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
}
.pgm-public .pgm-support-dock button svg {
  display: block; width: 20px; height: 20px; flex: 0 0 20px;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.pgm-public .pgm-support-dock .pgm-sound-muted {display: none}
.pgm-public .pgm-support-dock .pgm-sound-button:is([data-sound-state="off"], [data-sound-state="failed"]) .pgm-sound-muted {display: block}
.pgm-public .pgm-support-dock .pgm-sound-button:is([data-sound-state="off"], [data-sound-state="failed"]) .pgm-sound-waves {display: none}
.pgm-public .pgm-support-dock button:focus-visible {outline: 2px solid currentColor; outline-offset: 3px}
@media(hover: hover) {
  .pgm-public .pgm-support-dock button:hover {border-color: currentColor}
}
@media(max-width: 560px) {
  .pgm-public .pgm-support-dock button:is(.pgm-sound-button, .pgm-theme-toggle, .pgm-call-button) {height: 44px; min-height: 44px; padding: 0 14px}
  .pgm-public .pgm-support-dock button.pgm-theme-toggle {width: 44px; min-width: 44px; padding: 0; border-radius: 50%}
}

/* Distinct, generous links to services with their own conditions. */
.pgm-public .related-spaces .compact-links {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 820px}
.pgm-public .related-spaces .compact-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-width: 0; min-height: 88px; padding: 18px 20px; box-sizing: border-box;
  border: 1px solid #ad936b; border-left: 3px solid #c2a77a; border-radius: 18px;
  background: #25372e; color: #f6f1e6; box-shadow: 0 6px 18px #00000014;
  font: 600 21px/1.3 Manrope, Arial, sans-serif; text-decoration: none;
  transition: background-color .18s, border-color .18s;
}
.pgm-public .related-spaces .compact-links a > span {min-width: 0; overflow-wrap: anywhere}
.pgm-public .related-spaces .compact-links small {display: block; margin-top: 6px; font: 400 14px/1.5 Manrope, Arial, sans-serif; color: #d4d8cc}
.pgm-public .related-spaces .compact-links svg {display: block; width: 40px; height: 40px; flex: 0 0 40px; padding: 8px; box-sizing: border-box; border: 1px solid #c2a77a; border-radius: 50%; background: #c2a77a; color: #18261e; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round}
.pgm-public .related-spaces .compact-links a:focus-visible {outline: 3px solid var(--pgm-bronze); outline-offset: 4px}
html[data-pgm-theme="light"] .pgm-public .related-spaces .compact-links a {background: #faf7ef; color: #24372f; border-color: #9c8158; box-shadow: 0 6px 18px #24372f0d}
html[data-pgm-theme="light"] .pgm-public .related-spaces .compact-links small {color: #56645b}
html[data-pgm-theme="light"] .pgm-public .related-spaces .compact-links svg {background: #ebdfc8; color: #70502f; border-color: #b39b76}
@media(hover: hover) {
  .pgm-public .related-spaces .compact-links a:hover {background: #304b3c; border-color: #e0c394; color: #fffaf0}
  html[data-pgm-theme="light"] .pgm-public .related-spaces .compact-links a:hover {background: #f1e7d3; border-color: #70502f; color: #24372f}
}
@media(max-width: 600px) {
  .pgm-public .related-spaces .compact-links {grid-template-columns: minmax(0, 1fr); gap: 12px}
  .pgm-public .related-spaces .compact-links a {padding: 16px 18px; font-size: 20px}
}
@media(prefers-reduced-motion: reduce) {.pgm-public .related-spaces .compact-links a {transition: none}}

/* Temporarily hide unfinished service promotions, including legacy hydration. */
.pgm-public :is(.related-spaces, .related-services) {display: none!important}
.pgm-public :is(a[href^="https://zapiska.pgmissia.ru/"], a[href^="https://iputnik.ru/"], a[href^="http://zapiska.pgmissia.ru/"], a[href^="http://iputnik.ru/"]) {display: none!important}
