:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#202a4a;background:#fff;--accent:#0b55d9;--border:#dbe4f2;--muted:#68738d}
*{box-sizing:border-box}body{margin:0;line-height:1.6}a{color:inherit}.wrap{width:min(1240px,calc(100% - 40px));margin:0 auto}
.site-header{background:#fff;border-bottom:1px solid #edf1f6}.site-header .wrap{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:inline-flex;align-items:center;font-weight:700;text-decoration:none;font-size:20px}.brand img{display:block;max-width:170px;max-height:52px;width:auto;height:auto}.site-header nav{display:flex;gap:24px;flex-wrap:wrap}.site-header nav a{text-decoration:none}.site-header nav a:hover{color:var(--accent)}
.page{margin:0;padding:0}.page-hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(300px,.95fr);gap:clamp(34px,5vw,78px);align-items:center;padding:clamp(34px,5vw,72px) 0 clamp(28px,4vw,56px)}
.page-hero__content{display:grid;align-content:start;gap:clamp(16px,1.6vw,24px)}
.lio-breadcrumbs{margin:0}.lio-breadcrumbs ol{display:flex;flex-wrap:wrap;gap:5px 7px;margin:0;padding:0;list-style:none;color:var(--muted);font-size:13px}.lio-breadcrumbs li:not(:last-child)::after{content:"/";margin-left:7px;color:#a5adbd}.lio-breadcrumbs a{text-decoration:none}.lio-breadcrumbs a:hover{color:var(--accent)}
.page-hero h1{margin:0;max-width:900px;font-size:clamp(36px,4.2vw,64px);line-height:1.06;letter-spacing:-.012em;font-weight:600}.page-hero__summary{max-width:760px;font-size:clamp(17px,1.25vw,20px);line-height:1.5}.page-hero__summary p{margin:0}.page-hero__date{color:var(--muted);font-size:14px}
.page-hero__actions{display:flex;gap:12px;flex-wrap:wrap}.cta{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 22px;border:1px solid var(--accent);border-radius:999px;color:var(--accent);text-decoration:none;font-weight:600;transition:background-color .18s ease,color .18s ease,border-color .18s ease}.cta:hover,.cta:focus-visible{background:var(--accent);border-color:var(--accent);color:#fff;text-decoration:none}.cta--primary{background:var(--accent);color:#fff}.cta--primary:hover{background:#0848b8}
.page-hero__media{min-width:0}.page-hero__media img{display:block;width:100%;height:auto;max-height:460px;object-fit:contain}
.content{width:100%;font-size:18px;padding:clamp(24px,3vw,42px) 0 clamp(54px,6vw,88px);border-top:1px solid #eef2f7}.content img{max-width:100%;height:auto;border-radius:14px}.content>:first-child{margin-top:0}
.site-footer{padding:30px 0 50px;border-top:1px solid #edf1f6;color:var(--muted);font-size:14px}.footer-logo{display:block;max-width:170px;max-height:56px;width:auto;height:auto}
@media(max-width:900px){.page-hero{grid-template-columns:1fr}.page-hero__media{order:-1}.page-hero__media img{max-height:340px;margin:0 auto}.page-hero h1{font-size:clamp(34px,8vw,52px)}}
@media(max-width:720px){.site-header .wrap{align-items:flex-start;flex-direction:column;padding:18px 0}.wrap{width:min(100% - 24px,1240px)}.page-hero{padding:28px 0 24px;gap:24px}.page-hero__content{gap:16px}.page-hero__actions{display:grid}.cta{width:100%}.content{font-size:17px;padding-top:24px}}
.lio-section-page{display:grid;gap:24px}.lio-section-intro{display:none}.lio-section-children{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.lio-section-child{padding:20px;border:1px solid var(--border);border-radius:14px;background:#fff;overflow:hidden}.lio-section-child-image{display:block;margin:-20px -20px 16px;aspect-ratio:16/9;overflow:hidden;background:#f3f6fa}.lio-section-child-image img{display:block;width:100%;height:100%;object-fit:cover}
.lio-section-child h2{margin:0 0 8px;font-size:22px;line-height:1.25}.lio-section-child h2 a{text-decoration:none}.lio-section-child p{margin:0 0 14px;color:var(--muted)}.lio-section-child-link{font-weight:700;text-decoration:none;color:var(--accent)}.lio-section-empty{margin:0;color:var(--muted)}
@media(max-width:720px){.lio-section-children{grid-template-columns:1fr}}
.lio-pagination{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:10px}.lio-pagination a,.lio-pagination span{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:0 12px;border:1px solid var(--border);border-radius:10px;background:#fff;text-decoration:none;font-weight:700}.lio-pagination a:hover{background:#f2f6fd}.lio-pagination-current{background:var(--accent)!important;color:#fff;border-color:var(--accent)!important}
/* LIO starter component: hero split media */
.lio-component-hero--split-media{display:grid;grid-template-columns:minmax(0,58fr) minmax(320px,42fr);gap:clamp(32px,5vw,72px);align-items:center;padding:clamp(32px,5vw,72px) 0}
.lio-component-hero__content{display:grid;align-content:start;gap:16px;min-width:0}.lio-component-hero__eyebrow{font-size:12px;line-height:1.2;letter-spacing:.1em;text-transform:uppercase;color:var(--accent);font-weight:700}.lio-component-hero__title{margin:0;font-size:clamp(36px,4.2vw,64px);line-height:1.06}.lio-component-hero__lead{margin:0;max-width:760px;font-size:clamp(17px,1.25vw,20px);line-height:1.5;color:var(--muted)}
.lio-component-hero__media{margin:0;min-width:0}.lio-component-hero__media img{display:block;width:100%;height:auto;max-height:460px;object-fit:cover;border-radius:14px}.lio-component-hero__media figcaption{margin-top:8px;font-size:12px;line-height:1.4;color:var(--muted)}
.lio-component-hero__actions{display:flex;gap:12px;flex-wrap:wrap}.lio-component-hero__cta{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 22px;border:1px solid var(--accent);border-radius:999px;text-decoration:none;font-weight:600}.lio-component-hero__cta--primary{background:var(--accent);color:#fff}.lio-component-hero__cta--secondary{color:var(--accent)}
.lio-component-hero__meta{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding-top:14px;border-top:1px solid var(--border)}.lio-component-hero__meta strong{font-size:18px}.lio-component-hero__meta span{font-size:13px;color:var(--muted)}
.lio-component-hero--media-left .lio-component-hero__media{grid-column:1;grid-row:1}.lio-component-hero--media-left .lio-component-hero__content{grid-column:2;grid-row:1}.lio-component-hero--no-media{grid-template-columns:minmax(0,1fr)}
@media(max-width:900px){.lio-component-hero--split-media{grid-template-columns:1fr;gap:24px}.lio-component-hero--media-left .lio-component-hero__media,.lio-component-hero--media-left .lio-component-hero__content{grid-column:auto;grid-row:auto}.lio-component-hero__media{order:-1}}
@media(max-width:760px){.lio-component-hero--hide-media-mobile .lio-component-hero__media{display:none}.lio-component-hero__actions{display:grid}.lio-component-hero__cta{width:100%}.lio-component-hero__meta{align-items:flex-start;flex-direction:column;gap:4px}}

/* Gallery attached to a published page: responsive, lightweight, no JS dependency. */
.lio-page-gallery{margin:0 0 clamp(36px,5vw,70px)}
.lio-page-gallery__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:16px;align-items:start}
.lio-page-gallery__item{display:block;max-width:480px;border-radius:14px;overflow:hidden;background:#eef2f7;aspect-ratio:4/3}
.lio-page-gallery__item img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .18s ease}
.lio-page-gallery__item:hover img,.lio-page-gallery__item:focus-visible img{transform:scale(1.025)}
.lio-page-gallery__item:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
@media(max-width:720px){.lio-page-gallery__grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));gap:10px}}
/* Three rich-text image placements; HTML img width attribute persists through safe sanitation. */
.content .lio-content-image{display:table;max-width:100%;width:fit-content;clear:both;margin:1.25em auto}
.content .lio-content-image img{display:block;max-width:100%;height:auto;border-radius:12px}
.content .lio-content-image figcaption{display:table-caption;caption-side:bottom;padding-top:8px;font-size:13px;line-height:1.45;color:var(--muted);overflow-wrap:anywhere}
.content .lio-content-image--left{float:left;clear:left;margin:.25em 1.35em 1em 0}
.content .lio-content-image--center{float:none;clear:both;margin:1.35em auto}
.content .lio-content-image--right{float:right;clear:right;margin:.25em 0 1em 1.35em}
.content::after{content:"";display:block;clear:both}
@media(max-width:720px){.content .lio-content-image--left,.content .lio-content-image--right{float:none;clear:both;margin:1.2em auto}}

/* Gallery lightbox: native dialog isolates page interaction and keyboard focus. */
.lio-gallery-lightbox{position:fixed;inset:0;box-sizing:border-box;width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;margin:0;padding:20px;border:0;overflow:hidden;background:rgba(13,19,31,.96);color:#fff}
.lio-gallery-lightbox::backdrop{background:rgba(0,0,0,.78)}
.lio-gallery-lightbox__surface{height:100%;width:min(1400px,100%);margin:auto;display:flex;flex-direction:column;justify-content:center;position:relative}
.lio-gallery-lightbox__figure{min-width:0;margin:0;display:grid;justify-items:center;gap:12px}
.lio-gallery-lightbox__stage{width:100%;min-width:0;display:flex;align-items:center;justify-content:center}
.lio-gallery-lightbox__image-wrap{position:relative;display:inline-flex;max-width:100%;flex:0 1 auto;align-items:center;justify-content:center}
.lio-gallery-lightbox__image-wrap img{display:block;max-width:100%;max-height:calc(100dvh - 155px);width:auto;height:auto;object-fit:contain;box-shadow:0 16px 50px rgba(0,0,0,.22)}
.lio-gallery-lightbox__figure figcaption{text-align:center;font-size:14px;line-height:1.4;color:#e4e8ef;overflow-wrap:anywhere}
.lio-gallery-lightbox__counter{color:#abb7c7;font-size:12px;font-variant-numeric:tabular-nums}
.lio-gallery-lightbox__close,.lio-gallery-lightbox__arrow{appearance:none;display:grid;place-items:center;padding:0;border:1px solid rgba(255,255,255,.25);border-radius:50%;background:rgba(255,255,255,.1);color:#fff;cursor:pointer;font-family:inherit}
.lio-gallery-lightbox__arrow svg{display:block;width:20px;height:20px;margin:0;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.lio-gallery-lightbox__close{position:absolute;right:12px;top:12px;width:44px;height:44px;z-index:2;font-size:28px;padding:0}
.lio-gallery-lightbox__close svg{display:block;width:20px;height:20px;margin:0;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;pointer-events:none}
/* Controls are attached to the displayed picture, not the dialog viewport. */
.lio-gallery-lightbox__arrow{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;font-size:34px;line-height:1;z-index:2}
.lio-gallery-lightbox__arrow[data-gallery-prev]{left:12px}
.lio-gallery-lightbox__arrow[data-gallery-next]{right:12px}
.lio-gallery-lightbox__arrow[hidden]{display:none!important}
.lio-gallery-lightbox__close:hover,.lio-gallery-lightbox__arrow:hover,.lio-gallery-lightbox__close:focus-visible,.lio-gallery-lightbox__arrow:focus-visible{background:rgba(255,255,255,.23);outline:2px solid #fff;outline-offset:3px}
@media(max-width:720px){.lio-gallery-lightbox{padding:12px}.lio-gallery-lightbox__arrow{width:36px;height:36px;font-size:28px}.lio-gallery-lightbox__arrow[data-gallery-prev]{left:8px}.lio-gallery-lightbox__arrow[data-gallery-next]{right:8px}.lio-gallery-lightbox__close{right:8px;top:8px;width:36px;height:36px}.lio-gallery-lightbox__image-wrap img{max-height:calc(100dvh - 135px)}.lio-gallery-lightbox__figure figcaption{font-size:12px}}

/* PRIMKAMIN — Архитектура тепла */
:root{font-family:Manrope,system-ui,sans-serif;color:#292724;background:#f4f0e9;--accent:#a45b3f;--border:#dbd1c2;--muted:#716b63}
body{background:#f4f0e9}.wrap{width:min(1794px,calc(100% - 64px))}
.site-header{background:#292724;color:#f4f0e9;border:0}.site-header .wrap{min-height:94px;gap:24px}.brand img{max-width:238px;max-height:56px}.site-header nav{gap:12px 20px;justify-content:flex-end;font-size:14px}.site-header nav a:hover{color:#d8a37d}
.page-hero{padding:70px 0 54px;grid-template-columns:minmax(0,1fr);gap:24px}.page-hero:has(.page-hero__media){grid-template-columns:minmax(0,1fr) minmax(260px,.95fr)}
.page-hero h1,h2,h3{font-family:Lora,Georgia,serif;letter-spacing:-.025em}.page-hero h1{font-weight:500;max-width:none;font-size:clamp(38px,5.5vw,78px);line-height:1.08}.page-hero__summary{color:#625b54;max-width:none}.page-hero__media img{border-radius:3px;object-fit:cover}.content{border-top:1px solid var(--border);font-size:18px;line-height:1.75}.content h2{font-size:clamp(26px,3vw,38px);font-weight:500;line-height:1.18}.content>p{max-width:none}.content a{color:var(--accent);text-underline-offset:4px}.pk-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:26px 0 54px}.pk-card{background:#ebe3d7;border-top:3px solid #a45b3f;padding:22px;min-width:0}.pk-card h3{font-size:22px;line-height:1.2;margin:12px 0}.pk-card a{color:#292724;text-decoration:none}.pk-card a:hover{text-decoration:underline}.pk-card p{font-size:15px;color:#655d54;line-height:1.5;margin:0}.pk-number{color:#a45b3f;font-size:12px;font-weight:700;letter-spacing:.12em}.site-footer{background:#292724;border:0;color:#d5c9bc;padding:40px 0}.site-footer strong{color:#f4f0e9}
@media(max-width:1000px){.pk-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.site-header .wrap{flex-wrap:wrap;padding:18px 0}.site-header nav{justify-content:flex-start}}
@media(max-width:720px){.wrap{width:calc(100% - 32px)}.page-hero,.page-hero:has(.page-hero__media){grid-template-columns:1fr;padding:38px 0 30px}.page-hero h1{font-size:42px}.site-header nav{gap:8px 14px;font-size:13px}.pk-grid{gap:10px}.pk-card{padding:14px}.pk-card h3{font-size:18px}.pk-card p{font-size:14px}.content{font-size:17px}}
@media(max-width:380px){.pk-grid{grid-template-columns:1fr}}

/* Editorial photo layout */
.page-hero:has(.page-hero__media){grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);gap:clamp(24px,5vw,74px)}
.page-hero__media img{width:100%;max-height:540px;aspect-ratio:8/5;object-fit:cover}
body:has(.pk-featured) .page-hero__media img{aspect-ratio:4/3;object-position:50% 62%;max-height:490px}
.pk-featured{grid-template-columns:repeat(2,minmax(0,1fr));max-width:none}
.pk-feature{display:block;background:#ebe3d7;color:#292724!important;text-decoration:none;overflow:hidden}
.pk-feature img{display:block;width:100%;height:auto;aspect-ratio:8/5;object-fit:cover;border-radius:0}
.pk-feature>div{padding:20px}.pk-feature h3{font-size:24px;line-height:1.25;margin:0 0 10px}.pk-feature p{margin:0;color:#655d54;font-size:15px;line-height:1.5}
.pk-credit{font-size:12px!important;line-height:1.6;color:#716b63;margin-top:36px}
.pk-table{overflow-x:auto;margin:20px 0 32px}.pk-table table{border-collapse:collapse;width:100%;max-width:none}.pk-table th,.pk-table td{padding:12px 16px;border:1px solid #d3c7b6;text-align:left;vertical-align:top}.pk-table th{background:#e8e0d5}
@media(max-width:720px){.page-hero:has(.page-hero__media){grid-template-columns:1fr;gap:24px}.page-hero__media{order:0}.pk-featured{grid-template-columns:1fr}.pk-feature h3{font-size:21px}}

/* Keep brand visible independently of the nav's intrinsic width. */
.site-header .brand{flex:0 0 238px;min-width:238px;width:238px;min-height:56px}
.site-header .brand img{width:238px;height:56px;max-width:100%;max-height:56px}
.site-header nav{min-width:0;flex:0 1 auto}
@media(max-width:720px){.site-header .brand{flex:0 0 auto;width:220px;min-width:220px;min-height:52px}.site-header .brand img{width:220px;height:52px}}

/* Editorial photo cards: full available width, same preview proportions. */
@media(min-width:1100px){.pk-batch2{grid-template-columns:repeat(4,minmax(0,1fr))}}
.pk-featured:has(> .pk-feature:only-child){grid-template-columns:minmax(0,1fr)}
.pk-featured:has(> .pk-feature:only-child) .pk-feature{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center}
@media(max-width:720px){.pk-featured:has(> .pk-feature:only-child) .pk-feature{display:block}}

/* Keep long Russian headings within the available grid track. */
.page-hero__content,.page-hero__media{min-width:0}.page-hero h1,.content h2,.content h3,.pk-feature h3,.lio-breadcrumbs{overflow-wrap:anywhere;hyphens:auto}
@media(max-width:720px){.page-hero,.page-hero:has(.page-hero__media){grid-template-columns:minmax(0,1fr)}}
