/* UX-I12-01: только каталог и страницы материалов, без глобального сброса стилей. */
.p12-catalog-page{--l-toolbar:0px}.p12-catalog-page .l-catalog-hero-image img{max-height:220px}
.p12-catalog-page .l-catalog-hero h1{font-size:2.9rem;max-width:41rem}
.p12-catalog-page #projects>.l-wrap>.l-section-head{margin-bottom:1rem}
.p12-toolbar{display:none;position:sticky;top:var(--a7-header,80px);z-index:45;background:#fff;border:1px solid #c3d4ec;border-radius:10px;box-shadow:0 5px 18px #15335312;padding:14px;gap:10px;align-items:end;flex-wrap:wrap;margin-bottom:24px}
.p12-enhanced .p12-toolbar{display:flex}.p12-search{flex:1 1 310px;min-width:0}.p12-search>span{display:block;font-size:.8rem;font-weight:700;margin-bottom:5px}
.p12-search input{width:100%;min-height:46px;font-size:1rem;border:1px solid #7890b3;background:#fff}
.p12-toolbar button,.p12-filter button,.p12-more button,.p12-empty button{min-height:46px;padding:10px 16px;border:1px solid #97afd3;background:#fff;color:#2154e8;border-radius:7px;font-weight:700;font-size:.9rem;cursor:pointer;line-height:1.4}
.p12-toolbar button:hover,.p12-filter button:hover,.p12-more button:hover{background:#eaf2ff}
#p12-open-filter{background:#edf4ff;border-color:#2154e8}
#p12-result-count{flex:1 1 100%;font-size:.8125rem;margin:0;color:#52647d;line-height:1.4}
.p12-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.p12-grid>.p12-card{min-width:0;display:flex;flex-direction:column;background:#fff;border:1px solid #d8e1ef;border-radius:12px;overflow:clip}
.p12-grid>.p12-card[hidden]{display:none!important}
.p12-grid .p12-media{margin:0}.p12-grid .p12-media>a{border:0;border-bottom:1px solid #d8e1ef;border-radius:0;background:#f3f7ff}
.p12-grid .p12-media img,.p12-grid .l-project-image img,.p12-grid .a7-catalog-figure img{width:100%;height:218px;aspect-ratio:auto;object-fit:contain;background:#f3f7ff;border-radius:0}
.p12-grid .l-project-image,.p12-grid .a7-catalog-figure{margin:0;border-radius:0}
.p12-grid .p12-media figcaption,.p12-grid .a7-catalog-figure figcaption,.p12-grid .l-picture-caption{padding:8px 18px 0;border:0;font-size:.75rem;line-height:1.45;color:#536174;background:#fff}
.p12-grid .a7-catalog-figure figcaption>span{font-size:.75rem}
.p12-card-copy,.p12-grid .l-project-copy{padding:16px 18px 18px;display:flex;flex-direction:column;align-items:start;flex:1;min-width:0}
.p12-type{color:#365f9b;font-size:.75rem;line-height:1.4;font-weight:700;letter-spacing:.02em;margin:0 0 10px}
.p12-card h3,.p12-grid .l-project-card h3{font-size:1.3rem;line-height:1.2;letter-spacing:-.025em;margin:0 0 10px;text-wrap:pretty;overflow-wrap:break-word}
.p12-card-copy>p:not(.p12-type),.p12-grid .l-project-copy>p:not(.l-project-meta){font-size:.9375rem;line-height:1.55;margin:0 0 12px;max-width:none}
.p12-detail-link,.p12-grid .l-project-copy>.l-link{display:flex;justify-content:space-between;gap:16px;align-items:center;min-height:44px;color:#2154e8;font-size:.875rem;font-weight:700;margin-top:auto}
.p12-detail-link:hover,.p12-card h3 a:hover{text-decoration:underline;text-underline-offset:4px}
.p12-empty{padding:2rem;background:#f3f7ff;border:1px solid #d8e1ef;border-radius:12px;text-align:center}.p12-empty p{margin:1rem 0}.p12-more{display:flex;justify-content:center;margin-top:24px}
.p12-more button{min-width:230px;background:#2154e8;color:#fff;border-color:#2154e8}.p12-more button:hover{background:#153fb7}
.p12-filter{border:1px solid #bbcce4;border-radius:14px;max-height:calc(100dvh - 24px);width:min(520px,calc(100% - 24px));padding:0;background:#fff;color:#152337}
.p12-filter::backdrop{background:#102039b5}.p12-dialog-heading{padding:18px;display:flex;align-items:center;gap:1rem;justify-content:space-between;border-bottom:1px solid #d8e1ef}.p12-dialog-heading h2{font-size:1.4rem;line-height:1.2}.p12-dialog-heading button{min-width:44px;font-size:1.25rem;flex:none;padding:6px}
#p12-filter-form{padding:20px}#p12-filter-form label{display:block;font-weight:700;font-size:.9375rem;margin:0 0 8px}#p12-filter-form select{margin-bottom:20px;max-width:100%;min-width:0;font-size:1rem;white-space:normal}.p12-filter-actions{display:flex;gap:10px;flex-wrap:wrap}.p12-filter button[type=submit]{background:#2154e8;color:#fff}
.p12-back{display:inline-flex;align-items:center;min-height:44px;color:#2154e8;font-weight:700;font-size:.9375rem;line-height:1.4;max-width:100%;margin-top:1rem}
.p12-back:hover{text-decoration:underline;text-underline-offset:4px}
.p12-detail-hero{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);gap:44px;align-items:center}.p12-detail-hero>*{min-width:0}
.p12-detail-page h1{font-size:2.75rem;line-height:1.12;max-width:60rem}.p12-detail-page h2{font-size:2rem;line-height:1.18}.p12-detail-page h3{font-size:1.35rem;line-height:1.2}
.p12-detail-page .p12-media>a{background:#f3f7ff}.p12-media img{width:100%;height:auto;object-fit:contain}.p12-media figcaption{font-size:.8125rem;line-height:1.5;color:#536174;margin-top:10px}
.p12-history-body{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,.65fr);gap:64px}.p12-history-body>*{min-width:0}
.p12-prose{margin-bottom:2rem}.p12-prose h2{margin-bottom:1rem}.p12-prose p{font-size:1.0625rem;line-height:1.7}.p12-tech{border-left:2px solid #2154e8;padding-left:24px;align-self:start}.p12-tech h2{font-size:1.3rem}.p12-tech ul{padding-left:1.2rem;margin-block:1rem 1.5rem;color:#536174}.p12-tech li{font-size:.9375rem;line-height:1.55;margin-bottom:.5rem}
.p12-architecture{padding:24px;border:1px solid #d8e1ef;background:#f3f7ff;border-radius:12px}.p12-architecture h2{font-size:1.4rem;margin-bottom:1rem}.p12-architecture p{font-size:1rem;line-height:1.65}
.p12-archive{max-width:1000px;margin:24px auto 0}.p12-archive img{max-height:520px;background:white;object-fit:contain}
.p12-modern-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;margin-top:24px}.p12-modern-gallery>div{min-width:0}.p12-modern-gallery img{height:325px;object-fit:contain;background:#f3f7ff}.p12-modern-gallery .l-link{font-size:.9rem;line-height:1.45;margin-top:10px}
.p12-section-note{font-size:.9375rem;margin-top:1rem}
.p12-task{border-bottom:1px solid #d8e1ef;scroll-margin-top:calc(var(--a7-header,80px) + 20px)}.p12-task:nth-child(2n+1){background:#f8faff}
.p12-task-layout{display:grid;grid-template-columns:minmax(0,1.03fr) minmax(0,.97fr);gap:48px;align-items:start}.p12-task-layout>*{min-width:0}.p12-task .p12-media+.p12-media{margin-top:24px}.p12-task .p12-media img{max-height:350px;object-fit:contain}
.p12-task-facts{margin:24px 0 0}.p12-task-facts dt{font-size:.8125rem;font-weight:700;color:#2154e8;margin:1.2rem 0 .45rem}.p12-task-facts dd{margin:0}.p12-task-facts p{font-size:1rem;line-height:1.6;max-width:44rem}
.p12-topic-nav{margin-top:24px;max-width:56rem;border-block:1px solid #c3d4ed;padding:10px 0}.p12-topic-nav summary{min-height:44px;cursor:pointer;color:#2154e8;font-size:1rem;font-weight:700;padding-block:8px}.p12-topic-nav nav{display:grid;grid-template-columns:1fr 1fr;gap:8px 24px;margin-top:10px;padding-bottom:10px}.p12-topic-nav a{min-height:44px;display:flex;align-items:center;color:#2154e8;font-size:.9375rem;line-height:1.4}
.p12-catalog-page :is(a,button,input,select,summary):focus-visible,.p12-detail-page :is(a,button,summary):focus-visible{outline:3px solid #9b4d00;outline-offset:4px}
.p12-catalog-page :is(a,button,input,select,summary){scroll-margin-block:calc(var(--a7-header,80px) + var(--p12-toolbar,0px) + 20px) 30px}
@media(max-width:1100px){.p12-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.p12-history-body{gap:32px}.p12-task-layout{gap:30px}}
@media(max-width:899px){.p12-detail-hero,.p12-history-body,.p12-task-layout{grid-template-columns:minmax(0,1fr);gap:24px}.p12-detail-page h1{font-size:2.5rem}.p12-detail-hero .p12-media{max-width:620px;width:100%;justify-self:end}.p12-tech{border-left:0;border-top:2px solid #2154e8;padding:20px 0 0}.p12-modern-gallery{gap:24px}.p12-modern-gallery img{height:235px}.p12-task .p12-media{max-width:690px}.p12-catalog-page .l-catalog-hero h1{font-size:2.7rem}}
@media(max-width:599px){.p12-grid{grid-template-columns:minmax(0,1fr);gap:20px}.p12-grid .p12-media img,.p12-grid .l-project-image img,.p12-grid .a7-catalog-figure img{height:auto;max-height:220px;aspect-ratio:760/480;object-fit:contain}.p12-grid>.p12-card{display:flex;overflow:clip}.p12-grid .p12-card h3{font-size:1.25rem}.p12-grid .l-project-copy{padding:16px 18px}.p12-grid .l-project-meta{display:flex;font-size:.6875rem}.p12-grid .l-project-meta .l-tag{font-size:.75rem}.p12-grid .l-picture-caption{font-size:.75rem}
.p12-toolbar{padding:12px;gap:8px}.p12-search{flex-basis:100%}#p12-open-filter{flex:1}.p12-toolbar button{padding:10px 12px}.p12-dialog-heading{padding:14px;align-items:start}#p12-filter-form{padding:16px}.p12-filter-actions{flex-direction:column}.p12-detail-page h1,.p12-catalog-page .l-catalog-hero h1{font-size:2rem}.p12-detail-page h2{font-size:1.75rem}.p12-history-hero .l-intro{font-size:1rem}.p12-prose p{font-size:1rem}.p12-detail-hero .p12-media{max-width:none}.p12-modern-gallery{grid-template-columns:minmax(0,1fr)}.p12-modern-gallery img{height:auto;max-height:300px}.p12-topic-nav nav{grid-template-columns:minmax(0,1fr)}.p12-architecture{padding:18px}.p12-type{font-size:.8125rem}.p12-task .l-actions .l-button{font-size:.9375rem}.p12-detail-page .l-actions{gap:.5rem}.p12-filter select{height:auto}}
body.ais-large-text .p12-toolbar,body.l-large-text .p12-toolbar{position:static}
body.ais-large-text :is(.p12-grid,.p12-detail-hero,.p12-history-body,.p12-task-layout,.p12-modern-gallery,.p12-topic-nav nav){grid-template-columns:minmax(0,1fr)}
body.ais-large-text .p12-dialog-heading{flex-wrap:wrap}body.ais-large-text .p12-filter-actions{display:grid;grid-template-columns:minmax(0,1fr)}body.ais-large-text .p12-filter{width:calc(100% - 20px)}
@media(max-height:560px){.p12-toolbar{position:static}}
@media(prefers-reduced-motion:reduce){.p12-catalog-page *,.p12-detail-page *{scroll-behavior:auto!important;transition:none!important}}
@media print{.p12-toolbar,.p12-more,.p12-filter{display:none!important}.p12-grid>.p12-card[hidden]{display:flex!important}.p12-task{break-inside:avoid}}

:is(.p12-catalog-page,.p12-detail-page) #image-dialog.l-original-size .l-image-scroll img{max-width:none;max-height:none;width:auto;height:auto;margin:0}
:is(.p12-catalog-page,.p12-detail-page) .l-image-scroll:focus-visible{outline:3px solid #9b4d00;outline-offset:-3px}
