:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#202a4a;background:#fff;--accent:#0b55d9;--border:#dbe4f2;--muted:#68738d;--lio-wrapper-max:1794px}
*{box-sizing:border-box}body{margin:0;line-height:1.6}a{color:inherit}.wrap{width:min(var(--lio-wrapper-max),calc(100% - clamp(32px,5.5vw,120px)));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(calc(100% - 32px),var(--lio-wrapper-max))}.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}}


/* LIO starter width policy: cards and rich content follow the same wide wrapper. */
.content{min-width:0;max-width:none}
.content > *{max-width:100%}
.content :is(p,ul,ol,table,figure){max-width:100%}
.content :is(.panel-layout,.panel-grid,.panel-grid-cell){min-width:0;max-width:100%}
@media(max-width:720px){.content :is(p,ul,ol){overflow-wrap:break-word}}


/* LIO-wide page layout contract — no-media pages use the full wrapper. */
.page-hero:not(:has(.page-hero__media)){grid-template-columns:minmax(0,1fr)}
.page-hero:not(:has(.page-hero__media)) .page-hero__content{width:100%;min-width:0}
.page-hero:not(:has(.page-hero__media)) :is(h1,.page-hero__summary){width:100%;min-width:0;max-width:none}
.content > :is(section,article,div,form){min-width:0;width:100%;max-width:none}


/* Wide section listing cards — one consistent responsive starter grid. */
.lio-section-children{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1100px){.lio-section-children{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.lio-section-children{grid-template-columns:minmax(0,1fr)}}

/* BALTICBUILD: editorial site skin */
:root{--accent:#a45c38;--border:#dae4e7;--muted:#617580;--lio-wrapper-max:1560px;color:#123241;background:#f5f8f8}
@media(min-width:1720px){:root{--lio-wrapper-max:1794px}}
body{color:#153645;background:#f5f8f8;line-height:1.68}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.95);backdrop-filter:blur(12px);border-bottom:1px solid #dce6e8}
.site-header .wrap{min-height:82px;gap:22px}
.brand{font-size:24px;font-weight:800;letter-spacing:.035em;color:#123f50;white-space:nowrap}
.brand::before{content:"";display:inline-block;width:22px;height:22px;border:5px solid #b97549;border-right-color:#1d667a;border-radius:4px;margin-right:12px;transform:rotate(-6deg)}
.site-header nav{gap:clamp(10px,1.25vw,23px)}.site-header nav a{font-size:13px;font-weight:650;white-space:nowrap;color:#344b57}.site-header nav a:hover{color:#a45c38}
.page-hero{padding:clamp(40px,5vw,80px) 0 52px}.page-hero h1{font-weight:750;letter-spacing:-.035em;max-width:1010px}.page-hero__summary{color:#506774;max-width:840px}
.content{border-color:#dce5e8}.content h2{line-height:1.25;letter-spacing:-.018em}.content a{color:#27657b;text-underline-offset:3px}
.site-footer{background:#eaf0f1;border-top-color:#d8e2e5}.site-footer a{color:#1a5368}
body:has(.bb-home) .page-hero{isolation:isolate;position:relative;overflow:hidden;border-radius:19px;background:linear-gradient(116deg,#0b2938,#1b5063 75%,#286d7b);padding:clamp(85px,8.5vw,138px) clamp(30px,5vw,100px);margin-top:22px}
body:has(.bb-home) .page-hero::before{content:"СТРОИТЕЛЬСТВО  /  ИНЖЕНЕРИЯ  /  АРХИТЕКТУРА";position:absolute;top:34px;left:clamp(30px,5vw,100px);font-size:11px;letter-spacing:.18em;color:#c9dce0;font-weight:750}
body:has(.bb-home) .page-hero::after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0,transparent 95px,rgba(255,255,255,.055) 96px,transparent 97px);pointer-events:none;z-index:-1}
body:has(.bb-home) .page-hero h1{font-size:clamp(43px,5.8vw,88px);line-height:1.06;max-width:990px;color:#fff}
body:has(.bb-home) .page-hero__summary{color:#cbdfe2;max-width:735px}
body:has(.bb-home) .content{border:0;padding-top:65px}
.bb-home{display:grid;gap:clamp(55px,6vw,95px)}.bb-kicker{font-size:11px;color:#a45c38;letter-spacing:.17em;font-weight:800}
.bb-overview{display:grid;grid-template-columns:.86fr 1.14fr;gap:clamp(30px,5vw,90px)}
.bb-overview h2{font-size:clamp(30px,3.4vw,54px);line-height:1.15;margin:14px 0}
.bb-overview p{font-size:clamp(16px,1.3vw,19px);color:#576d78;line-height:1.78;margin:0 0 18px}
.bb-section-head{margin-bottom:24px}.bb-section-head h2{font-size:clamp(29px,2.9vw,43px);margin:8px 0 7px}.bb-section-head p{color:#647881;margin:0}
.bb-grid,.bb-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.bb-card{display:flex;flex-direction:column;align-items:flex-start;min-height:270px;padding:clamp(24px,2.3vw,36px);border:1px solid #dce6e7;border-radius:13px;background:#fff;color:#123e50!important;text-decoration:none!important;transition:border-color .18s ease,box-shadow .18s ease}
.bb-card:hover,.bb-card:focus-visible{border-color:#8fafb8;box-shadow:0 12px 30px rgba(20,58,72,.06)}
.bb-card-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:9px;background:#e8f0f1;color:#296779;font-size:24px;margin-bottom:24px}
.bb-card strong{font-size:clamp(19px,1.55vw,26px);line-height:1.25}.bb-card-desc{color:#617580;font-size:15px;line-height:1.55;margin:12px 0 20px}
.bb-card-link{color:#a45c38;font-size:13px;font-weight:750;margin-top:auto}
.bb-features>a{display:flex;flex-direction:column;gap:10px;min-height:200px;background:#eaf1f1;border:1px solid #d9e5e6;border-radius:12px;padding:30px;text-decoration:none!important;color:#163d50!important}
.bb-features>a:hover{background:#dfeaea}.bb-features small{color:#a45c38;font-size:11px;letter-spacing:.13em;font-weight:800}
.bb-features strong{font-size:clamp(19px,1.55vw,25px);line-height:1.25}.bb-features span{color:#58707b;margin-top:auto;font-size:14px}
.bb-note{display:flex;align-items:center;justify-content:space-between;gap:28px;background:#163f50;color:#fff;padding:clamp(28px,4.4vw,60px);border-radius:14px}
.bb-note .bb-kicker{color:#ebbb99}.bb-note h2{font-size:clamp(28px,2.7vw,42px);margin:10px 0}.bb-note p{max-width:850px;color:#c6dce1;margin:0}
.bb-note>a{display:inline-flex;white-space:nowrap;color:#fff!important;border:1px solid #86abb5;border-radius:6px;padding:12px 18px;text-decoration:none!important;font-weight:700}
.lio-section-children{gap:16px}.lio-section-child{padding:28px;border-color:#d7e3e5;border-radius:12px}.lio-section-child h2{font-size:24px}
.bb-article{max-width:1000px;margin:0}.bb-article>p{line-height:1.85;color:#405963;margin-bottom:26px}
.bb-article .bb-lead{font-size:clamp(19px,1.55vw,24px);color:#285367;line-height:1.55}.bb-article h2{font-size:clamp(25px,2.15vw,35px);margin:44px 0 16px}
.bb-article ul{padding-left:22px;color:#405963;line-height:1.85}.bb-article li{margin-bottom:6px}
.bb-check{background:#e6f0f1;border-left:4px solid #b66b41;border-radius:9px;padding:24px 32px;margin:35px 0}.bb-check h2{font-size:25px;margin:0 0 12px}
.bb-article .bb-disclaimer{font-size:14px;color:#6e8289;border-top:1px solid #dce5e8;padding-top:18px}
@media(max-width:1180px){.site-header .wrap{align-items:flex-start;flex-direction:column;padding:15px 0;gap:11px}.site-header nav{width:100%;overflow-x:auto;flex-wrap:nowrap;padding-bottom:5px}.bb-grid,.bb-features{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:740px){.site-header .wrap{padding:12px 0 9px}.brand{font-size:21px}.brand::before{width:18px;height:18px;border-width:4px}.site-header nav a{font-size:12px}body:has(.bb-home) .page-hero{padding:83px 24px 54px;border-radius:11px;margin-top:14px}body:has(.bb-home) .page-hero::before{left:24px;top:22px;line-height:1.6;max-width:250px}body:has(.bb-home) .page-hero h1{font-size:clamp(37px,9vw,53px)}body:has(.bb-home) .content{padding-top:40px}.bb-overview{grid-template-columns:1fr;gap:12px}.bb-grid,.bb-features{grid-template-columns:1fr}.bb-card{min-height:225px}.bb-note{align-items:flex-start;flex-direction:column}.bb-home{gap:52px}.bb-article h2{margin-top:32px}.bb-check{padding:22px}}
@media(prefers-reduced-motion:reduce){.bb-card{transition:none}}


/* BALTICBUILD — image-rich design, accessible mobile nav */
@media(min-width:1081px){
  .site-header .wrap{display:flex;flex-direction:row;align-items:center;justify-content:space-between;min-height:83px;padding-top:0;padding-bottom:0}
  .site-header nav{display:flex!important;flex-wrap:nowrap!important;gap:clamp(12px,1.16vw,20px);width:auto;overflow:visible!important;padding:0}
  .site-header nav a{font-size:13px}
}
.bb-nav-toggle{display:none}
body:has(.bb-home) .page-hero{
  background:linear-gradient(91deg,rgba(8,31,45,.96) 0%,rgba(11,39,55,.89) 35%,rgba(18,54,69,.38) 72%,rgba(16,43,56,.19) 100%),url('/assets/media/bb-photo-home.webp') center 45%/cover no-repeat;
  min-height:490px;display:flex;align-items:center
}
body:has(.bb-home) .page-hero::after{
  background:repeating-linear-gradient(90deg,transparent 0,transparent 105px,rgba(255,255,255,.025) 106px,transparent 107px)
}
body:has(.bb-home) .page-hero__content{max-width:820px}
body:has(.bb-home) .page-hero h1{max-width:780px;text-shadow:0 2px 10px rgba(0,0,0,.15)}
body:has(.bb-home) .page-hero__summary{max-width:705px}
.bb-grid{gap:18px}
.bb-card{overflow:hidden;padding:0;min-height:365px}
.bb-card-photo{display:block;width:100%;height:183px;object-fit:cover;object-position:center;background:#e3ecee}
.bb-card-icon{display:none}
.bb-card strong{margin:24px 25px 0}
.bb-card .bb-card-desc{margin:12px 25px 16px;font-size:15px}
.bb-card .bb-card-link{margin:auto 25px 24px}
.page-hero__media{margin:0}
.bb-feature-image{min-width:0}
.bb-feature-image img{width:100%;height:clamp(270px,27vw,460px);object-fit:cover;border-radius:13px;background:#e3ecee}
.bb-photo-credit{color:#67808b;font-size:11px;line-height:1.45;margin:10px 0 0}
.bb-photo-credit a{color:#3b687b;text-decoration:underline;text-underline-offset:2px}
.bb-source-credits{margin-top:22px;border-top:1px solid #dce5e8;padding:20px 0;color:#536d79;font-size:12px}
.bb-source-credits summary{cursor:pointer;display:list-item;font-size:13px;font-weight:700;color:#3b6170}
.bb-source-credits ul{margin:12px 0;padding-left:20px}.bb-source-credits li{margin:5px 0;line-height:1.45}
.bb-source-credits p{margin:10px 0 0;line-height:1.5}
.bb-source-credits a{color:#315f70}
.bb-article--extended .bb-text-section{margin-bottom:30px}
.bb-article--extended .bb-text-section h2{margin-top:37px}
.bb-article--extended .bb-text-section p{color:#3d5963;line-height:1.85}
.bb-expert{padding:18px 26px 22px;background:#f4e9df;border-left:4px solid #b66b40;border-radius:8px;margin-top:35px}
.bb-expert h2{margin:0 0 10px!important;font-size:25px!important;color:#7d472d}
.bb-expert p{margin:0;line-height:1.75;color:#5d4b40}
.bb-faq h2{margin-bottom:12px}.bb-faq h3{font-size:20px;line-height:1.35;color:#204b60}.bb-faq p{color:#49636c;line-height:1.8}
.bb-source{font-size:13px;color:#647984;margin-top:40px}
.bb-related{border-top:1px solid #d4e0e3;margin-top:30px;padding-top:10px}
.bb-related h2{font-size:26px}.bb-related-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.bb-related-grid a{display:flex;align-items:center;justify-content:space-between;gap:8px;text-decoration:none;border:1px solid #d7e5e6;background:#fff;padding:15px 18px;border-radius:9px;font-size:14px;line-height:1.5;font-weight:700}
.bb-related-grid span{color:#b66b40}
@media(max-width:1080px){
 .site-header .wrap{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center!important;gap:10px;padding:11px 0;min-height:68px}
 .site-header nav{display:none!important;grid-column:1/-1;width:100%;margin:7px 0 3px;padding:10px 0 5px;border-top:1px solid #d7e4e7;overflow:visible!important}
 .site-header nav[data-open="true"]{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 13px}
 .site-header nav a{white-space:normal;padding:12px 10px;border-bottom:1px solid #e7eded;font-size:14px;line-height:1.4}
 .bb-nav-toggle{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:44px;height:44px;border:1px solid #dce5e8;border-radius:8px;background:#fff;cursor:pointer}
 .bb-nav-toggle span{width:20px;height:2px;background:#184657;border-radius:2px}
 .bb-nav-toggle[aria-expanded="true"]{background:#e8f0f1}
}
@media(max-width:740px){
 body:has(.bb-home) .page-hero{min-height:420px;background:linear-gradient(96deg,rgba(5,25,37,.88),rgba(8,32,46,.67)),url('/assets/media/bb-photo-home.webp') center center/cover no-repeat}
 body:has(.bb-home) .page-hero h1{font-size:clamp(34px,8.9vw,50px)}
 .bb-card{min-height:335px}.bb-card-photo{height:180px}.bb-card strong{margin-top:19px}
 .page-hero__media img{height:290px;object-fit:cover}
 .page-hero__media{order:-1}
 .bb-related-grid{grid-template-columns:1fr}
 .bb-expert{padding:18px}
 .bb-source-credits{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.bb-nav-toggle{scroll-behavior:auto}}

/* Brand symbol keeps the same shape as the site favicon. */
.brand::before{width:27px;height:27px;border:0;transform:none;border-radius:0;background:url('/assets/media/bb-mark.svg') center/contain no-repeat;margin-right:12px}
@media(max-width:740px){.brand::before{width:25px;height:25px;border:0}}

/* Keep technical diagrams fully legible; no cropped legends or geometry. */
.page-hero__media img[src$=".svg"]{display:block;width:100%;height:auto!important;max-height:460px;object-fit:contain!important;aspect-ratio:5/3;background:#eaf1f1}
.lio-section-child-image img[src$=".svg"]{object-fit:contain!important;background:#e7f0f1}
@media(max-width:740px){
  .page-hero__content{order:0}
  .page-hero__media{order:2!important}
  .page-hero__media img[src$=".svg"]{height:auto!important;max-height:none;aspect-ratio:5/3;object-fit:contain!important}
}
