/* Внутренние страницы проектов — та же система «Грани кубика», что и на главной */
body.pj-page{ background:#fff; color:var(--ink); }
body.pj-page header{ position:sticky !important; top:0; z-index:60; padding:12px 0 !important; }
body.pj-page header .logo{ text-decoration:none; }
.pj-top{ padding-top:clamp(20px,2.4vw,36px); }
body.pj-page nav.pj-crumbs{ padding:0 !important; justify-content:flex-start !important; mask:none !important; -webkit-mask:none !important; display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; font-size:14px; line-height:1.3; color:var(--subtle); margin:0 0 clamp(24px,3vw,40px); }
body.pj-page .pj-crumbs a{ font-size:14px !important; color:var(--c-muted); text-decoration:none; display:inline-flex; align-items:center; gap:8px; padding:8px 14px 8px 10px; margin:-8px 0 -8px -10px; border-radius:999px; font-weight:600; transition:background .2s,color .2s; }
.pj-crumbs a:first-child::before{ content:""; width:16px; height:16px; background:currentColor; -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 11.5L12 4l9 7.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z' fill='black'/%3E%3C/svg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 11.5L12 4l9 7.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z' fill='black'/%3E%3C/svg%3E") center/contain no-repeat; }
.pj-crumbs a:hover{ background:var(--surface); color:var(--ink); }
.pj-crumbs i{ font-style:normal; color:#C3C9D2; }
body.pj-page .pj-crumbs span{ color:var(--ink); font-weight:600; }
.pj-eyebrow{ display:inline-flex; align-items:center; gap:10px; margin:0 0 16px; font-family:var(--f-sign); font-size:var(--t-cap); letter-spacing:.08em; text-transform:uppercase; color:var(--c-muted); }
.pj-eyebrow::before{ content:""; width:12px; height:12px; border-radius:4px; background:#0055FF; box-shadow:0 2px 0 #0040C2; }
body.pj-page h1{ margin:0; font-family:var(--f-text); font-weight:800; font-size:clamp(34px,5.4vw,80px); line-height:1.04; letter-spacing:-.03em; max-width:16ch; text-transform:none; color:var(--ink); }
body.pj-page h1.pj-title-wide{max-width:none;font-size:clamp(30px,4.2vw,76px);}

.pj-facts{ margin-top:clamp(24px,3.2vw,44px); display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,240px)); gap:clamp(10px,1.2vw,16px); }
.pj-fact{ background:#F8F9FB; border:1px solid #EDF0F4; border-radius:var(--r-tile); padding:18px 22px; box-shadow:none; }
.pj-fact span{ display:block; font-size:var(--t-cap); letter-spacing:.08em; text-transform:uppercase; color:var(--c-muted); margin-bottom:6px; font-weight:600; }
.pj-fact b{ font-family:var(--f-text); font-weight:700; font-size:var(--t-lead); line-height:1.25; color:var(--ink); }

.pj-cover{ margin:clamp(24px,3vw,40px) 0 0; border-radius:var(--r-card); overflow:hidden; aspect-ratio:21/9; background:var(--surface) center/cover no-repeat; box-shadow:var(--k-shadow); }
@media(max-width:700px){ .pj-cover{ aspect-ratio:4/3; } }

.pj-sec{ padding:clamp(48px,6.5vw,96px) 0 0; }
.pj-sec .section-head{ margin-bottom:clamp(24px,3vw,40px); }
.pj-video-player {
  display: block;
  width: min(100%, 760px);
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--r-card);
  background: var(--surface);
}
.pj-video-link { margin: 12px 0 0; }
.pj-video-link a { text-decoration: underline; }
.pj-intro{ font-size:var(--t-lead); line-height:1.55; max-width:46ch; color:var(--ink); margin:0; }
.pj-cols{ display:grid; grid-template-columns:1.1fr 1fr; gap:clamp(24px,5vw,96px); align-items:start; }
.pj-did{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.pj-did li{ font-size:var(--t-body); line-height:1.45; padding:16px 20px 16px 56px; background:var(--surface); border-radius:var(--r-tile); position:relative; color:var(--ink); }
.pj-did li::before{ content:""; position:absolute; left:18px; top:50%; width:20px; height:20px; margin-top:-10px; border-radius:6px; background:var(--accent2); box-shadow:0 2px 0 var(--accent2-edge); }
.pj-did li:nth-child(4n+2)::before{ background:#FB4903; box-shadow:0 2px 0 #D9481A; } .pj-did li:nth-child(4n+3)::before{ background:#1FA24A; box-shadow:0 2px 0 #178039; } .pj-did li:nth-child(4n)::before{ background:#FFD21F; box-shadow:0 2px 0 #D9B000; }

.pj-gal{ display:grid; grid-template-columns:repeat(2,1fr); gap:clamp(16px,2vw,28px); }
.pj-work{ margin:0; }
.pj-work:first-child:nth-last-child(odd), .pj-work.is-wide{ grid-column:1/-1; }
.pj-work:nth-child(even):last-child{ grid-column:1/-1; }
.pj-ph{ position:relative; width:100%; aspect-ratio:4/3; border:0; padding:0; border-radius:var(--r-card); overflow:hidden; background:var(--surface) center/cover no-repeat; box-shadow:var(--k-shadow); cursor:zoom-in; display:block; transition:transform .4s cubic-bezier(.2,.9,.3,1); }
@media(hover:hover){ .pj-ph:not(.is-empty):hover{ transform:translateY(-4px); } }
:where(.pj-work.is-wide, .pj-work:nth-child(even):last-child) .pj-ph{ aspect-ratio:16/9; }
.pj-ph.is-empty{ cursor:default; }
.pj-ph.is-empty::after{ content:'ФОТО'; position:absolute; inset:0; display:grid; place-items:center; font-family:var(--f-sign); font-size:var(--t-cap); letter-spacing:.14em; color:var(--subtle); }
.pj-work figcaption{ padding:14px 4px 0; }
.pj-work figcaption b{ display:block; font-family:var(--f-text); font-weight:700; font-size:var(--t-lead); color:var(--ink); line-height:1.25; margin-bottom:4px; }
.pj-work figcaption span{ font-size:var(--t-body); line-height:1.5; color:var(--c-muted); }
.pj-quote{ background:var(--surface); border-radius:var(--r-card); padding:clamp(28px,4vw,56px); max-width:1040px; box-shadow:var(--k-shadow); }
.pj-quote p{ font-size:var(--t-lead); line-height:1.55; margin:0 0 24px; color:var(--ink); }
.pj-quote b{ display:block; font-size:var(--t-body); font-weight:700; color:var(--ink); }
.pj-quote span{ font-size:var(--t-body); color:var(--c-muted); }

.pj-next{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(12px,1.6vw,24px); }
.pj-nx{ display:block; text-decoration:none; color:var(--ink); background:#F8F9FB; border:1px solid #E3E6EC; border-radius:var(--r-card); padding:22px 26px 24px; box-shadow:none; transition:background-color .2s ease,border-color .2s ease; }
@media(hover:hover){ .pj-nx:hover{ background:#fff; border-color:#AEB8C8; } }
.pj-nx span{ display:block; font-size:var(--t-cap); letter-spacing:.08em; text-transform:uppercase; color:var(--c-muted); margin-bottom:10px; font-weight:600; }
.pj-nx b{ font-family:var(--f-text); font-weight:700; font-size:var(--t-h3); line-height:1.2; letter-spacing:-.01em; }
.pj-nx.is-next{ text-align:right; }
.pj-all{ display:flex; justify-content:center; margin-top:clamp(16px,2vw,24px); }
.pj-all a{ display:inline-flex; align-items:center; gap:10px; padding:14px 24px; border-radius:999px; border:1px solid #D5D9E0; color:var(--ink); text-decoration:none; font-weight:600; font-size:15px; transition:background .2s,border-color .2s; }
.pj-all a:hover{ background:var(--surface); border-color:var(--ink); }
.pj-cta{ margin:clamp(40px,5vw,72px) 0 clamp(48px,7vw,104px); background:#0055FF; color:#fff; border-radius:var(--r-card); padding:clamp(28px,4vw,56px); display:flex; justify-content:space-between; align-items:center; gap:24px 48px; flex-wrap:wrap; position:relative; overflow:hidden; }
.pj-cta::after{ content:""; position:absolute; right:-6%; top:-40%; width:36%; aspect-ratio:1; border-radius:28%; background:rgba(255,255,255,.1); transform:rotate(18deg); pointer-events:none; }
.pj-cta > *{ position:relative; z-index:1; }
.pj-cta h2{ font-family:var(--f-text); font-size:var(--t-h2); line-height:1.1; letter-spacing:-.02em; max-width:18ch; margin:0 0 12px; font-weight:800; color:#fff; }
.pj-cta p{ font-size:var(--t-body); color:rgba(255,255,255,.85); margin:0; max-width:44ch; line-height:1.5; }
.pj-cta .btn{ background:#fff !important; color:var(--ink) !important; border-color:#fff !important; }

.pj-lb{ position:fixed; inset:0; z-index:100; background:rgba(10,14,22,.92); display:none; align-items:center; justify-content:center; padding:24px; }
.pj-lb.is-on{ display:flex; }
.pj-lb img{ max-width:100%; max-height:100%; border-radius:12px; }
.pj-lb button{ position:absolute; top:20px; right:24px; background:#fff; border:0; width:44px; height:44px; border-radius:50%; font-size:20px; cursor:pointer; }
@media(max-width:800px){
  .pj-cols, .pj-gal, .pj-next{ grid-template-columns:1fr; }
  .pj-nx.is-next{ text-align:left; }
  .pj-cta h2{ font-size:28px; }
}

.pj-sec:nth-of-type(1){ --accent2:#0055FF; --accent2-edge:#0040C2; }
.pj-sec:nth-of-type(2){ --accent2:#1FA24A; --accent2-edge:#178039; }
.pj-sec:nth-of-type(3){ --accent2:#FB4903; --accent2-edge:#D9481A; }
.pj-did li:nth-child(4n+2)::before{ background:#FB4903; box-shadow:0 2px 0 #D9481A; } .pj-did li:nth-child(4n+3)::before{ background:#1FA24A; box-shadow:0 2px 0 #178039; } .pj-did li:nth-child(4n)::before{ background:#FFD21F; box-shadow:0 2px 0 #D9B000; }

.pj-did li::before, .pj-eyebrow::before{ box-shadow:none !important; }

/* Страницы направлений и каталог муралов */
.pj-eyebrow::before{ background:var(--ec,#0055FF) !important; }
.pj-rel{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; margin-top:clamp(24px,3vw,40px); }
.pj-rel .pj-nx{ display:block; }
.pj-catlink{ margin:clamp(20px,2.4vw,32px) 0 0; }
.mu-chips{ display:flex; flex-wrap:wrap; gap:8px; margin:clamp(20px,2.4vw,32px) 0; }
.mu-chip{ font:inherit; font-weight:600; font-size:14px; padding:10px 16px; border-radius:999px; border:0; background:var(--surface); color:var(--ink); cursor:pointer; }
.mu-chip.is-on{ background:var(--ink); color:#fff; }
.mu-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(12px,1.6vw,22px); }
.mu-card{ margin:0; }
.mu-card[hidden]{ display:none; }
.mu-ph{ display:block; width:100%; aspect-ratio:4/3; border:0; padding:0; border-radius:var(--r-card,24px); background:var(--surface) center/cover no-repeat; cursor:zoom-in; }
a.mu-ph{ cursor:pointer; }
.mu-card figcaption{ padding:12px 4px 0; }
.mu-card figcaption b{ display:block; font-size:var(--t-body,16px); line-height:1.3; color:var(--ink); }
.mu-card figcaption span{ display:block; margin-top:4px; font-size:14px; color:var(--c-muted,#5B6472); }
@media(max-width:900px){ .mu-grid{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:560px){ .mu-grid{ grid-template-columns:1fr; } }
@media(max-width:560px){ #muGrid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 12px; } }

/* Многостраничность: списки шагов, вопросы, хаб */
.pj-steps li b{ display:block; margin-bottom:4px; }
.pj-steps li span{ display:block; color:var(--c-muted,#5B6472); }
.pj-q{ background:var(--surface); border-radius:var(--r-card,24px); padding:clamp(18px,2.4vw,30px); margin:0 0 12px; }
.pj-q summary{cursor:pointer;font-weight:700;font-size:var(--t-lead);line-height:1.35;letter-spacing:-.01em;}
.pj-q summary::marker{color:#0055ff;}
.pj-q[open] summary{margin-bottom:12px;}
.pj-q summary:focus-visible{outline:3px solid #0055ff;outline-offset:4px;}
.pj-q p{ margin:0 0 10px; line-height:1.55; } .pj-q p:last-child{ margin-bottom:0; }
.pj-more a{ color:var(--ink); text-decoration:none; font-weight:600; } .pj-more a:hover{ text-decoration:underline; }
.hub-grid .mu-card figcaption b a{ color:var(--ink); text-decoration:none; }
.mu-card figcaption b a{ color:inherit; text-decoration:none; }

/* Страницы о команде и ходе проекта */
body.pj-page .story-page h1{max-width:16ch;font-size:clamp(38px,4.2vw,68px);line-height:1.07;}
.story-page .story-lead{max-width:48ch;margin:22px 0 0;color:var(--ink);font-size:clamp(17px,1.5vw,22px);line-height:1.5;}
.story-page figure{margin:0;}
.story-page .story-photo img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:16px;}
.story-photo figcaption{margin-top:9px;color:var(--c-muted);font-size:14px;line-height:1.45;}
.story-section{padding:clamp(54px,6vw,88px) 0 0;}
.story-section h2{font:800 clamp(25px,2.6vw,38px)/1.16 var(--f-text);letter-spacing:-.03em;margin:0;}
.story-link{display:inline-block;padding-block:7px;color:#004cca;font-weight:700;font-size:16px;text-decoration:none;}
.story-link:is(:hover,:focus-visible),.process-projects a:is(:hover,:focus-visible) strong{text-decoration:underline;text-underline-offset:.2em;}
.process-layout,.company-intro,.company-team,.story-answer{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(36px,6vw,90px);align-items:start;}
.process-intro .story-photo{margin-top:clamp(24px,3vw,42px);}
.process-steps{margin:0;list-style:none;counter-reset:step;padding:0;display:grid;gap:clamp(17px,1.6vw,24px);}
.process-steps li{counter-increment:step;display:grid;grid-template-columns:32px 1fr;column-gap:12px;}
.process-steps li::before{content:counter(step,decimal-leading-zero);grid-row:span 2;color:#004cca;font-size:16px;font-weight:700;font-variant-numeric:tabular-nums;padding-top:3px;}
.process-steps h2{font:750 clamp(18px,1.45vw,22px)/1.28 var(--f-text);letter-spacing:-.015em;margin:0;}
.process-steps p,.company-team p,.story-answer p{margin:6px 0 0;font-size:clamp(16px,1.15vw,18px);line-height:1.55;color:#444d58;}
.story-heading{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:10px 24px;margin-bottom:24px;}
.process-projects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;}
.process-projects > :is(a,div){min-width:0;display:block;color:var(--ink);text-decoration:none;}
.process-projects img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;display:block;border-radius:12px;}
.process-projects strong,.process-projects span{display:block;line-height:1.4;}
.process-projects strong{margin-top:10px;font-size:18px;}
.process-projects span{margin-top:2px;font-size:14px;color:var(--c-muted);}
.process-project-without-photo{min-width:0;}
.process-project-without-photo .pj-ph{aspect-ratio:16/9;border-radius:12px;box-shadow:none;}
.process-project-without-photo .pj-ph::after{color:var(--c-muted);}
.process-project-without-photo h2{margin:10px 0 0;font:700 18px/1.4 var(--f-text);}
.process-project-without-photo p{margin:2px 0 0;font-size:14px;line-height:1.4;color:var(--c-muted);}
.pj-collection-page .process-projects + .pj-next,
.pj-project-page .pj-sec:has(> .pj-gal) + .pj-next{margin-top:clamp(24px,3vw,40px);}
.company-intro{align-items:center;}
.company-numbers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px;max-width:460px;margin:26px 0 0;}
.company-numbers div{display:flex;flex-direction:column-reverse;align-items:start;justify-content:end;}
.company-numbers dt{font-size:14px;line-height:1.35;color:var(--c-muted);}
.company-numbers dd{margin:0 0 2px;font-size:clamp(23px,2.25vw,34px);font-weight:750;line-height:1.15;letter-spacing:-.035em;}
.company-team{align-items:center;}
.company-team p,.story-answer p + p{margin-top:14px;}
.company-team .story-link,.story-answer .story-link{margin-top:12px;}
.company-review blockquote{font-size:clamp(19px,1.5vw,24px);line-height:1.5;letter-spacing:-.01em;margin:0;}
.company-review figcaption{margin-top:12px;font-size:16px;}
.company-review figcaption span{display:block;margin-top:3px;color:var(--c-muted);font-size:14px;line-height:1.45;}
.company-contact{display:flex;gap:0 22px;flex-wrap:wrap;}
@media(max-width:820px){
  .process-layout,.company-intro,.company-team,.story-answer{grid-template-columns:1fr;gap:24px;}
  .process-intro .story-photo,.company-intro .story-photo,.company-team .story-photo{max-width:610px;}
  .company-team .story-photo{order:1;}
  .story-page .story-lead{margin-top:16px;}
  .process-steps{gap:18px;margin-top:4px;}
  .story-answer{gap:12px;}
}
@media(max-width:600px){
  .process-projects{grid-template-columns:1fr;gap:16px;}
  .process-projects > :is(a,div),.process-project-without-photo{display:grid;grid-template-columns:minmax(95px,32%) 1fr;gap:0 14px;align-items:end;}
  .process-project-without-photo{align-items:start;}
  .process-project-without-photo h2{margin:0;font-size:16px;}
  .process-projects img{grid-row:span 2;align-self:center;}
  .process-projects strong{margin:0;font-size:16px;}
  .process-projects span{align-self:start;}
  .story-heading{margin-bottom:16px;}
  .company-numbers{gap:12px 20px;}
}

/* Отступ между описанием раздела и галереей проектов. */
.pj-intro + .mu-grid{ margin-top:clamp(24px, 3vw, 40px); }

/* Подробный состав работ на страницах проектов */
html body.pj-page .pj-description{max-width:90ch;}
html body.pj-page .pj-description .pj-intro{max-width:72ch;margin:0 0 24px;}
html body.pj-page .pj-project-works{margin:0;padding:0 0 0 1.6em;list-style:decimal;font-size:clamp(16px,1.4vw,20px);line-height:1.65;}
html body.pj-page .pj-project-works li{padding-left:.4em;margin:0 0 14px;}
html body.pj-page .pj-project-works li::marker{color:#0055FF;font-weight:700;}
html body.pj-page .pj-project-term{margin:24px 0 0;font-size:clamp(16px,1.4vw,20px);line-height:1.6;font-weight:600;}

/* Путь посетителя: каталог → проект → фотографии → обращение. */
html body.pj-page .pj-project-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:center;margin:24px 0 0;}
html body.pj-page .pj-project-actions a{min-height:44px;display:inline-flex;align-items:center;padding:12px 18px;border-radius:12px;font-size:16px;font-weight:700;text-decoration:none;}
html body.pj-page .pj-back{background:var(--surface,#F3F4F6);color:var(--ink,#16191B);}
html body.pj-page .pj-discuss{background:#0055FF;color:white;}
html body.pj-page .pj-jump{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px;}
html body.pj-page .pj-jump a{display:inline-flex;align-items:center;min-height:44px;padding:10px 16px;border:1px solid #D5D9E0;border-radius:99px;color:var(--ink,#16191B);font-weight:600;text-decoration:none;}
html body.pj-page main section[id]{scroll-margin-top:100px;}
html body.pj-page.pj-project-page h1{max-width:24ch;font-size:clamp(30px,4vw,56px);line-height:1.12;}
html body.pj-page.pj-project-page .pj-cover{max-height:480px;}
html body.pj-page .pj-filters{display:flex;flex-wrap:wrap;gap:16px;margin-top:32px;}
html body.pj-page .pj-filters label{display:grid;gap:8px;font-size:15px;font-weight:700;flex:1 1 260px;}
html body.pj-page .pj-filters label:last-child{flex:0 1 240px;}
html body.pj-page .pj-filters input,html body.pj-page .pj-filters select{width:100%;min-height:48px;padding:12px 16px;border:1px solid #B7BFCD;border-radius:12px;background:#fff;color:var(--ink,#16191B);font:inherit;font-weight:400;box-sizing:border-box;}
html body.pj-page .pj-result-count{font-size:15px;margin:20px 0;color:#5B6472;}
html body.pj-page #projectCatalog{scroll-margin-top:84px;}
html body.pj-page .pj-catalog-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:30px 20px;}
html body.pj-page .pj-catalog-card{display:flex;flex-direction:column;min-width:0;color:var(--ink,#16191B);text-decoration:none;}
html body.pj-page .pj-catalog-card[hidden]{display:none;}
html body.pj-page .pj-card-photo{aspect-ratio:16/9;overflow:hidden;background:#E9EDF3;border-radius:12px;}
html body.pj-page .pj-card-photo img{width:100%;height:100%;display:block;object-fit:cover;}
html body.pj-page .pj-card-body{min-width:0;padding-top:10px;display:grid;gap:3px;}
html body.pj-page .pj-card-meta{font-size:14px;line-height:1.4;color:#596372;}
html body.pj-page .pj-catalog-text-card .pj-card-body{
  box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;
  aspect-ratio:16/9;padding:clamp(16px,2.2vw,32px);border-radius:12px;background:#EEF3FC;
}
html body.pj-page .pj-catalog-text-card .pj-card-body h2{font-size:clamp(18px,1.5vw,26px);}
@media(max-width:520px){
  html body.pj-page .pj-catalog-text-card .pj-card-body{width:100%;min-height:88px;aspect-ratio:auto;}
}

html body.pj-page .pj-card-body h2{font-family:var(--f-text);font-size:clamp(16px,1.3vw,18px);font-weight:600;line-height:1.3;overflow-wrap:break-word;margin:0;}
html body.pj-page .pj-catalog-card:is(:hover,:focus-visible) h2{color:#004CCA;text-decoration:underline;text-underline-offset:3px;}

/* Текстовые обложки тематических подборок */
.pj-category-museum{--cover-bg:#126839;--cover-ink:#fff;--cover-line:#70c68c;}
.pj-category-sport{--cover-bg:#ffd21f;--cover-ink:#16191b;--cover-line:#da8e00;}
.pj-category-symbols{--cover-bg:#064edb;--cover-ink:#fff;--cover-line:#8db3ff;}
html body.pj-page .pj-category-cover .pj-card-body{
  container-type:inline-size;
  position:relative;isolation:isolate;overflow:hidden;
  display:flex;flex-direction:column-reverse;align-items:flex-start;justify-content:space-between;
  width:100%;aspect-ratio:16/9;box-sizing:border-box;
  padding:clamp(14px,1.55vw,28px);border-radius:12px;
  color:var(--cover-ink);background:var(--cover-bg);
}
.pj-category-cover .pj-card-body::before{
  content:"";position:absolute;z-index:-1;pointer-events:none;
  width:38%;aspect-ratio:1;right:-11%;top:-32%;border-radius:50%;
  border:clamp(8px,1vw,18px) solid var(--cover-line);
}
html body.pj-page .pj-category-cover .pj-card-meta{
  color:inherit;font-size:clamp(10px,3.1cqi,14px);font-weight:700;letter-spacing:.07em;text-transform:uppercase;
}
html body.pj-page .pj-category-cover .pj-card-body h2{
  width:min-content;max-width:100%;color:inherit;
  font-family:var(--f-sign);font-size:clamp(14px,9.5cqi,48px);
  line-height:1.09;letter-spacing:-.035em;font-weight:400;
}
@media(max-width:560px){
  html body.pj-page .pj-category-cover .pj-card-body{aspect-ratio:auto;min-height:136px;gap:18px;padding:18px;}
}
html body.pj-page a:focus-visible,html body.pj-page button:focus-visible,html body.pj-page input:focus-visible,html body.pj-page select:focus-visible{outline:3px solid #0055FF;outline-offset:4px;}
html body.pj-page .pj-lb[hidden]{display:none;}
html body.pj-page .pj-lb{z-index:200;background:rgba(10,14,22,.97);padding:64px 80px 28px;}
html body.pj-page .pj-view-figure{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;margin:0;max-width:100%;width:100%;max-height:100%;color:#fff;}
html body.pj-page .pj-view-figure img{display:block;max-width:100%;max-height:calc(100dvh - 200px);object-fit:contain;border-radius:8px;}
html body.pj-page .pj-view-figure figcaption{text-align:center;font-size:16px;line-height:1.45;max-width:80ch;}
html body.pj-page .pj-view-count{margin:0;font-size:14px;color:#D5D9E0;}
.pj-project-page .pj-gal figcaption,
.pj-project-page .pj-view-figure figcaption,
.pj-project-page .pj-view-count{display:none;}
/* Opaque surfaces also keep these headings clean in exported PDFs. */
.pj-eco-page .section-head.sh-plate{background:#fff;}
.pj-eco-page .section-head h2.plate-h{box-shadow:none!important;border:1px solid #eceef1;}
.pj-eco-page .pj-gal figcaption{display:block;padding:9px 2px 0;font:600 14px/1.4 var(--f-text);}
.pj-eco-page .pj-view-figure figcaption{display:block;}
html body.pj-page .pj-lb button{width:48px;height:48px;display:grid;place-items:center;font-size:24px;color:#16191B;border-radius:50%;}
html body.pj-page .pj-lb .pj-view-close{top:16px;right:20px;}
html body.pj-page .pj-lb .pj-view-prev{left:16px;right:auto;top:50%;transform:translateY(-50%);}
html body.pj-page .pj-lb .pj-view-next{right:16px;top:50%;transform:translateY(-50%);}
@media(max-width:1023px){html body.pj-page .pj-catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:760px){html body.pj-page .pj-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:560px){
 html body.pj-page .pj-catalog-grid{grid-template-columns:1fr;gap:14px;}
 html body.pj-page .pj-catalog-grid .pj-catalog-card{flex-direction:row;align-items:center;gap:14px;}
 html body.pj-page .pj-card-photo{width:clamp(88px,25vw,112px);flex:none;aspect-ratio:4/3;border-radius:8px;}
 html body.pj-page .pj-card-body{padding-top:0;}
 html body.pj-page .pj-filters label:last-child{flex:1 1 100%;}
 html body.pj-page .pj-project-actions{align-items:stretch;}
 html body.pj-page .pj-project-actions a{justify-content:center;flex:1 1 auto;}
 html body.pj-page .pj-lb{padding:70px 12px 88px;}
 html body.pj-page .pj-view-figure img{max-height:calc(100dvh - 240px);}
 html body.pj-page .pj-lb .pj-view-prev,html body.pj-page .pj-lb .pj-view-next{top:auto;bottom:18px;transform:none;}
 html body.pj-page .pj-lb .pj-view-prev{left:calc(50% - 64px);}
 html body.pj-page .pj-lb .pj-view-next{right:calc(50% - 64px);}
}

/* Компактный обзор работ: одинаковые превью, полный размер по нажатию. */
html body:is(.pj-project-page,.pj-service-page) .pj-gal{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 18px;max-width:1200px;margin-inline:0 auto;align-items:start;}
html body:is(.pj-project-page,.pj-service-page) .pj-gal > .pj-work{grid-column:auto;min-width:0;}
html body:is(.pj-project-page,.pj-service-page) .pj-gal .pj-ph{aspect-ratio:4/3;border-radius:16px;box-shadow:none;}
html body:is(.pj-project-page,.pj-service-page) .pj-work figcaption{padding:10px 0 0;}
html body:is(.pj-project-page,.pj-service-page) .pj-work figcaption b{font-size:16px;line-height:1.35;margin-bottom:4px;}
html body:is(.pj-project-page,.pj-service-page) .pj-work figcaption span{font-size:14px;line-height:1.45;}
html body.pj-project-page .pj-cover{max-height:300px;aspect-ratio:3/1;}
@media(max-width:1100px){html body:is(.pj-project-page,.pj-service-page) .pj-gal{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:800px){
 html body:is(.pj-project-page,.pj-service-page) .pj-gal{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px;}
 html body.pj-project-page .pj-cover{max-height:220px;aspect-ratio:16/9;}
}
@media(max-width:400px){
 html body:is(.pj-project-page,.pj-service-page) .pj-gal .pj-ph{border-radius:12px;}
 html body:is(.pj-project-page,.pj-service-page) .pj-work figcaption b{font-size:14px;}
 html body:is(.pj-project-page,.pj-service-page) .pj-work figcaption span{font-size:13px;}
}

/* Обложка с исходными пропорциями фотографии. */
html body.pj-page.pj-project-page img.pj-cover-full-frame {
  display: block;
  width: min(100%, 1120px);
  height: auto;
  max-height: none;
  aspect-ratio: auto;
}

/* Галерея на всю ширину с компактными превью на больших экранах. */
html body.pj-project-page .pj-gal.is-full-width{max-width:none;}
@media(min-width:1500px){
 html body.pj-project-page .pj-gal.is-full-width{grid-template-columns:repeat(6,minmax(0,1fr));}
}
@media(min-width:2050px){
 html body.pj-project-page .pj-gal.is-full-width{grid-template-columns:repeat(8,minmax(0,1fr));}
}

/* Исправления каталога и страниц по комментариям. */
html body.pj-page .pj-filters{align-items:end;}
html body.pj-page .pj-filters input,html body.pj-page .pj-filters select{height:48px;min-height:48px;line-height:24px;}
html body.pj-page .pj-filters select{appearance:none;-webkit-appearance:none;padding:10px 48px 10px 16px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' viewBox='0 0 20 20'%3E%3Cpath d='m5 7 5 5 5-5' stroke='%235B6472' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 16px center/20px no-repeat;cursor:pointer;}
html body.pj-project-page .pj-museum-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;margin-bottom:24px;}
html body.pj-project-page .pj-museum-heading h2{font-size:clamp(24px,2.5vw,34px);line-height:1.2;margin:0;}
html body.pj-project-page .pj-museum-heading > a{font-size:16px;line-height:1.4;font-weight:700;color:#0055FF;text-decoration:none;min-height:44px;display:inline-flex;align-items:center;}
html body.pj-project-page .pj-museum-gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(8px,1vw,16px);}
.pj-project-page .pj-gal .pj-ph > img{position:absolute;inset:0;}
.pj-project-page .pj-gal .pj-ph > img,.pj-murals-page .mu-ph img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit;}

body.pj-solutions-page h1{font-size:clamp(34px,4vw,52px);max-width:24ch;line-height:1.15;}
.solution-layout{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:clamp(32px,6vw,96px);margin-top:clamp(28px,4vw,48px);}
.solution-layout > section{padding:0;}
.solution-layout h2{margin:0 0 16px;font:700 clamp(21px,2vw,28px)/1.2 var(--f-text);letter-spacing:-.025em;}
.solution-turnkey{display:block;color:var(--ink);text-decoration:none;}
.solution-turnkey img{display:block;width:100%;height:auto;aspect-ratio:1.9;object-fit:cover;border-radius:12px;}
.solution-turnkey p{max-width:44ch;margin:14px 0 6px;font-size:16px;line-height:1.5;}
.solution-turnkey span{color:#004CCA;font-size:16px;font-weight:600;}
.solution-turnkey i{font-style:normal;}
.solution-services ul{display:grid;gap:4px;margin:0;padding:0;list-style:none;}
.solution-services a{display:flex;align-items:center;justify-content:space-between;gap:1em;min-height:48px;padding:8px 4px;color:var(--ink);font-size:clamp(16px,1.4vw,19px);line-height:1.35;text-decoration:none;}
.solution-services a::after{content:"";flex:none;width:7px;height:7px;margin-right:3px;border:solid #657084;border-width:1.5px 1.5px 0 0;transform:rotate(45deg);}
.solution-services a:is(:hover,:focus-visible),.solution-turnkey:is(:hover,:focus-visible) span{color:#004CCA;text-decoration:underline;text-underline-offset:3px;}
.solution-contact{margin-block:clamp(28px,4vw,52px);}
@media(max-width:680px){
  .solution-layout{grid-template-columns:1fr;gap:28px;}
  .solution-turnkey{display:grid;grid-template-columns:minmax(86px,30%) minmax(0,1fr);gap:14px;align-items:center;}
  .solution-turnkey img{aspect-ratio:1.15;}
  .solution-turnkey p{margin:0 0 6px;font-size:15px;}
}

.pj-collection-cover {
  display:block;
  width:100%;
  height:auto;
  max-height:300px;
  margin-top:clamp(18px,2vw,28px);
  object-fit:cover;
  object-position:center 40%;
}
@media(max-width:700px){
  .pj-collection-cover { aspect-ratio:16/9; }
}

/* Каталог начинается с поиска и первых работ. */
body.pj-catalog-page .pj-top { padding-top:20px; }
body.pj-catalog-page .pj-top .pj-crumbs { margin-bottom:14px; }
body.pj-catalog-page h1 { font-size:clamp(32px,3.6vw,52px); }
body.pj-catalog-page main > .pj-sec { padding-top:18px; }
body.pj-catalog-page .pj-intro { max-width:75ch; font-size:16px; line-height:1.5; }
html body.pj-catalog-page .pj-filters {
  margin:clamp(24px,3vw,40px) 0 clamp(28px,3vw,44px);
  padding-block:clamp(16px,1.6vw,24px);
  gap:16px;
}
html body.pj-catalog-page .pj-result-count { margin:0 0 18px; }
html body.pj-catalog-page .pj-result-count:empty { margin:0; }
.pj-service-links {
  margin-top:clamp(40px,5vw,80px);
  padding-block:clamp(22px,2.4vw,36px);
}
.pj-service-links-head { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:8px 24px; }
.pj-service-links-head h2 { margin:0; font:700 clamp(22px,2vw,30px)/1.25 var(--f-text); }
.pj-service-links a { display:inline-flex; align-items:center; gap:8px; min-height:44px; font-weight:600; text-decoration:none; }
.pj-service-links-head a { color:#004CCA; }
.pj-service-links ul { display:flex; flex-wrap:wrap; gap:0 32px; margin:12px 0 0; padding:0; list-style:none; }
.pj-service-links li a { color:var(--ink); }
.pj-service-links li span { color:#0055FF; }
.pj-service-links a:is(:hover,:focus-visible) { text-decoration:underline; text-underline-offset:4px; }
@media(max-width:600px){
  .pj-service-links ul { display:grid; gap:4px; }
  .pj-service-links li a { display:flex; justify-content:space-between; }
}
.pj-reset { min-height:44px; padding:8px 16px; border:1px solid #B7BFCD; border-radius:10px; color:var(--ink); background:#fff; font:inherit; cursor:pointer; }
@media(max-width:700px){
  body.pj-project-page .pj-facts { display:flex; flex-wrap:wrap; gap:8px 16px; margin-top:16px; }
  body.pj-project-page .pj-fact { display:flex; align-items:baseline; gap:6px; padding:0; background:none; box-shadow:none; }
  body.pj-project-page .pj-fact span { margin:0; font-size:12px; }
  body.pj-project-page .pj-fact b { font-size:15px; }
}

@media(min-width:360px) and (max-width:560px){
  html body.pj-catalog-page .pj-filters { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); }
  html body.pj-catalog-page .pj-filters select { padding-inline:12px 32px; background-position:right 8px center; }
}

.pj-collection-page .pj-intro{max-width:62ch;margin-bottom:clamp(24px,3vw,40px);}
.pj-collection-page .process-projects > a:not(:has(img)){display:block;}
:is(#sports-gallery,#attributes-gallery,#project-review,#project-news) + .pj-next{margin-top:clamp(36px,5vw,72px);}
.pj-sports-gallery{grid-template-columns:repeat(4,minmax(0,1fr));}
.pj-gal.pj-sports-gallery > .pj-work{grid-column:auto;min-width:0;}
.pj-sports-gallery .pj-ph{aspect-ratio:4/3;box-shadow:none;}
.pj-sports-gallery figcaption{display:none;}
.pj-sports-gallery [data-full$="/russian-sport-level.jpg"]{background-size:contain;}

.pj-sports-gallery [data-full*="/sports-stands/"],
.pj-view-figure img[src*="/sports-stands/"]{
  filter:brightness(1.13) contrast(1.025) saturate(0.98);
}
@media(max-width:800px){
  .pj-sports-gallery{grid-template-columns:repeat(2,minmax(0,1fr));}
}
.pj-museum-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 16px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}
.pj-museum-cards li { display: flex; min-width: 0; }
.pj-museum-cards li > * {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  flex: 1;
  padding: 22px;
  border-radius: 14px;
  background: #eaf4ee;
  color: #143c28;
  text-decoration: none;
}
.pj-museum-cards strong { font: 400 clamp(19px, 1.5vw, 26px)/1.2 var(--f-sign); }
.pj-museum-cards span { font-size: 15px; line-height: 1.45; }
.pj-museum-cards a::after {
  content: "→";
  position: absolute;
  top: 18px;
  right: 16px;
  color: #126839;
}
.pj-museum-cards a strong { padding-right: 20px; }
.pj-museum-cards a:is(:hover, :focus-visible) { background: #d9ecdf; }

.museum-collection-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
}
.museum-collection-heading img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-card);
}
.process-projects :is(.museum-text-card, .collection-text-card) strong {
  display: grid;
  align-content: end;
  box-sizing: border-box;
  aspect-ratio: 16 / 9;
  margin: 0;
  padding: clamp(16px, 2vw, 32px);
  border-radius: 12px;
  background: #126839;
  color: white;
  font-family: var(--f-sign);
  font-size: clamp(18px, 2vw, 32px);
}
.process-projects .collection-text-card strong {
  background: #ffd21f;
  color: var(--ink);
}
@media (max-width: 700px) {
  .museum-collection-heading { grid-template-columns: 1fr; }
  .process-projects :is(.museum-text-card, .collection-text-card) strong { aspect-ratio: auto; }
}

.project-publications{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));}
.project-publications .press-img > img{display:block;width:100%;height:100%;object-fit:cover;}
.project-publications .press-card > .press-title{margin:0 28px;}
