/* Roof lathing PRO v1 — premium simple/pro workbench */
:root{--lp-ink:#1d2c25;--lp-muted:#66776e;--lp-line:#dfe8e3;--lp-bg:#f6f9f7;--lp-card:#fff;--lp-green:#245f49;--lp-green2:#3b8063;--lp-soft:#eef7f2;--lp-orange:#b96a3a;--lp-blue:#416f8a;--lp-red:#a8453e;--lp-yellow:#956b22;--lp-shadow:0 20px 54px rgba(31,62,48,.08)}
body.lathpro-body{background:#f7f9f7;color:var(--lp-ink);overflow-x:hidden}
.lathpro-hero{position:relative;overflow:hidden;isolation:isolate;min-height:570px;display:flex;align-items:center;border-bottom:1px solid #e1e9e4;background:#f7f9f7}
.lathpro-hero:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(247,249,247,1) 0 44%,rgba(247,249,247,.90) 55%,rgba(247,249,247,.2) 78%,rgba(247,249,247,.05)),url('hero/roof-lathing-hero-bg.webp') 76% center/cover no-repeat}
.lathpro-wrap{width:min(1480px,calc(100% - 48px));margin:0 auto}
.lathpro-hero-copy{max-width:760px;padding:62px 0 66px;position:relative;z-index:1}.lathpro-hero h1{margin:14px 0 16px;font-size:clamp(42px,5vw,68px);line-height:1;letter-spacing:-.045em}.lathpro-hero p{max-width:720px;margin:0;color:#4e6258;font-size:18px;line-height:1.62}.lathpro-badges{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0 26px}.lathpro-badges span{padding:8px 11px;border:1px solid #d7e4dd;border-radius:12px;background:rgba(255,255,255,.88);font-size:12px;font-weight:850;color:#42574d}
.lathpro-calc{padding:38px 0 72px}.lathpro-shell{overflow:hidden;border:1px solid #dce5e0;border-radius:28px;background:#fff;box-shadow:var(--lp-shadow)}
.lathpro-shell-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;padding:28px 30px 24px;border-bottom:1px solid #e3e9e6;background:linear-gradient(180deg,#fbfdfc,#f6f9f7)}.lathpro-eyebrow{display:block;color:var(--lp-green);font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.lathpro-shell-head h2{margin:6px 0 7px;font-size:clamp(27px,2.6vw,35px);letter-spacing:-.025em}.lathpro-shell-head p{max-width:850px;margin:0;color:var(--lp-muted);font-size:15px;line-height:1.55}.lathpro-mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:5px;flex:0 0 390px;padding:5px;border-radius:17px;background:#eaf0ed}.lathpro-mode-switch button{min-width:0;border:0;border-radius:13px;background:transparent;padding:11px 14px;color:#65736c;text-align:left;cursor:pointer}.lathpro-mode-switch b,.lathpro-mode-switch small{display:block}.lathpro-mode-switch b{font-size:13px}.lathpro-mode-switch small{margin-top:2px;font-size:10px}.lathpro-mode-switch button.is-active{background:#fff;color:#1f5341;box-shadow:0 5px 14px rgba(28,64,47,.08)}
.lathpro-stage-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:16px 20px;border-bottom:1px solid #e4eae7;background:#f8faf9}.lathpro-stage-nav.pro{grid-template-columns:repeat(4,minmax(0,1fr))}.lathpro-stage-tab{min-width:0;min-height:66px;border:1px solid #dfe7e3;border-radius:14px;background:#fff;padding:9px 10px;color:#63736b;text-align:left;cursor:pointer}.lathpro-stage-tab span{display:grid;width:24px;height:24px;place-items:center;border-radius:50%;background:#edf3f0;font-size:10px;font-weight:900}.lathpro-stage-tab b{display:block;margin-top:5px;font-size:11px;line-height:1.18;overflow-wrap:anywhere}.lathpro-stage-tab.is-active{border-color:#9bc9b3;background:#f1faf5;color:#1f5d47}.lathpro-stage-tab.is-active span{background:var(--lp-green);color:#fff}.lathpro-stage-tab.is-done span{background:#dcefe4;color:#205c43}
.lathpro-workbench{display:grid;grid-template-columns:minmax(560px,640px) minmax(0,1fr);align-items:start}.lathpro-controls{min-width:0;border-right:1px solid #e3e9e6;background:#fbfcfb}.lathpro-current-step{display:flex;gap:11px;align-items:center;padding:15px 20px;border-bottom:1px solid #e5ebe8;background:#fff}.lathpro-current-step>span{display:grid;min-width:82px;height:31px;place-items:center;border-radius:10px;background:#eaf5ef;color:#245f49;font-size:10.5px;font-weight:900}.lathpro-current-step b,.lathpro-current-step small{display:block}.lathpro-current-step b{font-size:13px}.lathpro-current-step small{margin-top:2px;color:#738179;font-size:10.5px}
.lathpro-step{display:none;padding:22px 20px 18px}.lathpro-step.is-active{display:block}.lathpro-step-head{margin-bottom:17px}.lathpro-step-head>span{color:var(--lp-green);font-size:11px;font-weight:900;letter-spacing:.07em;text-transform:uppercase}.lathpro-step-head h3{margin:5px 0 6px;font-size:24px;line-height:1.15}.lathpro-step-head p{margin:0;color:var(--lp-muted);font-size:13.5px;line-height:1.5}.lathpro-card{margin-top:12px;padding:16px;border:1px solid #dfe7e3;border-radius:17px;background:#fff}.lathpro-card:first-of-type{margin-top:0}.lathpro-card h4{margin:0 0 12px;font-size:16px}.lathpro-card p{margin:0 0 12px;color:#65756d;font-size:12px;line-height:1.5}.lathpro-grid-2,.lathpro-grid-3{display:grid;gap:11px}.lathpro-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lathpro-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lathpro-field{display:grid;gap:6px;min-width:0}.lathpro-field>span{font-size:12px;font-weight:850;color:#4d6258}.lathpro-field small{font-size:10.5px;color:#7b8882;line-height:1.35}.lathpro-field input,.lathpro-field select{width:100%;min-width:0;min-height:44px;box-sizing:border-box;border:1px solid #d2ddd7;border-radius:11px;background:#fff;padding:9px 10px;color:#24362e;font:inherit;font-size:14px}.lathpro-field input:focus,.lathpro-field select:focus{outline:3px solid rgba(36,95,73,.10);border-color:#83aa97}.lathpro-unit{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;border:1px solid #d2ddd7;border-radius:11px;background:#fff;overflow:hidden}.lathpro-unit input{border:0!important;border-radius:0!important;outline:0!important}.lathpro-unit b{padding:0 9px;color:#748179;font-size:11px;white-space:nowrap}.lathpro-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.lathpro-choice{position:relative}.lathpro-choice input{position:absolute;width:1px!important;height:1px!important;margin:-1px;padding:0;border:0;clip-path:inset(50%);overflow:hidden;opacity:0;pointer-events:none}.lathpro-choice span{display:flex;min-height:62px;flex-direction:column;justify-content:center;padding:10px 11px;border:1px solid #dce5e0;border-radius:13px;background:#fff;cursor:pointer}.lathpro-choice b{font-size:13px}.lathpro-choice small{margin-top:3px;color:#75837b;font-size:10.5px;line-height:1.3}.lathpro-choice input:checked+span{border-color:#6f9f89;background:#f0f8f4;box-shadow:inset 0 0 0 1px #6f9f89}.lathpro-note{padding:11px 12px;border-radius:12px;background:#f2f6f4;color:#5d6d65;font-size:12px;line-height:1.5}.lathpro-note.warn{background:#fff7e5;color:#75571c}.lathpro-note.good{background:#edf8f2;color:#245f49}.lathpro-toggle{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:800;color:#4f6359}.lathpro-toggle input{width:18px;height:18px}
.lathpro-step-actions{display:flex;justify-content:space-between;gap:9px;padding:15px 20px 20px;border-top:1px solid #e4eae7}.lathpro-step-actions .btn{min-width:118px;justify-content:center}.lathpro-step-actions .btn:last-child{margin-left:auto}
.lathpro-live{position:sticky;top:78px;min-width:0;padding:18px 18px 24px}.lathpro-live-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:11px}.lathpro-kpi{min-width:0;padding:11px;border:1px solid #dfe7e3;border-radius:13px;background:#fff}.lathpro-kpi.primary{background:linear-gradient(145deg,#244f3e,#35705a);color:#fff;border-color:transparent}.lathpro-kpi span,.lathpro-kpi small{display:block}.lathpro-kpi span{color:#6f7d76;font-size:9.5px}.lathpro-kpi.primary span,.lathpro-kpi.primary small{color:rgba(255,255,255,.72)}.lathpro-kpi b{display:block;margin-top:4px;font-size:18px;line-height:1.1;overflow-wrap:anywhere}.lathpro-kpi small{margin-top:3px;color:#7d8983;font-size:8.5px}.lathpro-view-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin-bottom:9px}.lathpro-view-tabs button{min-width:0;border:1px solid #dce5e0;border-radius:10px;background:#fff;padding:8px 6px;color:#64736c;font-size:10.5px;font-weight:850;cursor:pointer}.lathpro-view-tabs button.is-active{background:#eaf5ef;border-color:#accdbd;color:#245b46}.lathpro-view{display:none;overflow:hidden;border:1px solid #dfe7e3;border-radius:18px;background:linear-gradient(180deg,#fbfdfc,#f4f8f6)}.lathpro-view.is-active{display:block}.lathpro-view-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;padding:12px 14px;border-bottom:1px solid #e3e9e6;background:#fff}.lathpro-view-head b{font-size:13.5px}.lathpro-view-head small{display:block;margin-top:2px;color:#75827b;font-size:10.5px}.lathpro-svg{display:block;width:100%;height:auto;min-height:430px;background:linear-gradient(180deg,#fcfdfc,#f5f8f6);shape-rendering:geometricPrecision;text-rendering:geometricPrecision}.lathpro-legend{display:flex;flex-wrap:wrap;gap:10px;padding:9px 12px;border-top:1px solid #e2e9e5;background:#fff;color:#65756d;font-size:9.5px}.lathpro-legend span{display:flex;align-items:center;gap:5px}.lathpro-legend i{width:16px;height:4px;border-radius:4px;background:#aa6c3d}.lathpro-legend .counter i{background:#3f7b8c}.lathpro-legend .reinforce i{background:#a8453e}.lathpro-legend .rafter i{background:#7b8f84}.lathpro-diag{display:grid;gap:7px;margin-top:11px}.lathpro-diag article{display:grid;grid-template-columns:25px 1fr auto;gap:8px;align-items:start;padding:10px 11px;border:1px solid #dfe7e3;border-radius:12px;background:#fff}.lathpro-diag i{display:grid;width:22px;height:22px;place-items:center;border-radius:50%;font-style:normal;font-size:10px;font-weight:900}.lathpro-diag .good i{background:#e1f1e7;color:#205d43}.lathpro-diag .warn i{background:#fff1d2;color:#846216}.lathpro-diag .bad i{background:#f8e4e0;color:#93433a}.lathpro-diag b{display:block;font-size:11.5px}.lathpro-diag p{margin:2px 0 0;color:#6c7972;font-size:10.5px;line-height:1.4}.lathpro-diag em{font-style:normal;font-size:9.5px;font-weight:900;white-space:nowrap}
.lathpro-report{padding:24px}.lathpro-report-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.lathpro-report-head h3{margin:0 0 4px;font-size:26px}.lathpro-report-head p{margin:0;color:#6a7871;font-size:12px}.lathpro-report-actions{display:flex;gap:7px;flex-wrap:wrap}.lathpro-report-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-top:16px}.lathpro-report-kpis article{padding:13px;border:1px solid #dce5e0;border-radius:14px;background:#fff}.lathpro-report-kpis span,.lathpro-report-kpis small{display:block;color:#708078;font-size:9.5px}.lathpro-report-kpis b{display:block;margin:5px 0 2px;font-size:20px}.lathpro-report-section{margin-top:16px;border:1px solid #dfe7e3;border-radius:15px;overflow:hidden}.lathpro-report-title{padding:12px 14px;border-bottom:1px solid #e4e9e7;background:#f6f9f7}.lathpro-report-title h4{margin:0;font-size:14px}.lathpro-report-title p{margin:3px 0 0;color:#708078;font-size:10px}.lathpro-table-wrap{overflow:auto}.lathpro-table{width:100%;min-width:820px;border-collapse:collapse}.lathpro-table th,.lathpro-table td{padding:9px 10px;border-bottom:1px solid #e7ece9;text-align:left;font-size:10.5px;white-space:nowrap}.lathpro-table th{background:#f5f8f6;color:#65756d;font-size:9.5px}.lathpro-table td small{display:block;color:#7b8781;white-space:normal;margin-top:2px;max-width:260px}.lathpro-report-note{padding:12px 14px;background:#fbfcfb;color:#607068;font-size:11px;line-height:1.55}
.lathpro-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}.lathpro-feature-grid article{padding:18px;border:1px solid #dfe7e3;border-radius:17px;background:#fff;box-shadow:0 9px 24px rgba(31,62,48,.04)}.lathpro-feature-grid b{display:block;font-size:15px}.lathpro-feature-grid p{margin:6px 0 0;color:#64736b;font-size:12.5px;line-height:1.55}.lathpro-section{padding:50px 0}.lathpro-section.alt{background:#f0f5f2;border-block:1px solid #e0e8e3}.lathpro-section h2{margin:0 0 14px;font-size:clamp(28px,3vw,40px)}.lathpro-section>div>p{max-width:980px;color:#56685f;line-height:1.7}.lathpro-standards{display:grid;gap:9px;max-width:1120px}.lathpro-standards a{display:block;padding:14px 15px;border:1px solid #dce5e0;border-radius:13px;background:#fff;text-decoration:none;color:#2b5744;font-weight:800}.lathpro-standards small{display:block;margin-top:4px;color:#6f7d76;font-weight:500}.lathpro-faq{display:grid;gap:9px;max-width:1120px}.lathpro-faq details{padding:0 16px;border:1px solid #dfe7e3;border-radius:14px;background:#fff}.lathpro-faq summary{padding:15px 0;font-weight:850;cursor:pointer}.lathpro-faq p{margin:0 0 15px;color:#607068;line-height:1.6}.lathpro-pro-only{display:none}.lathpro-body[data-lathpro-mode="pro"] .lathpro-pro-only{display:block}.lathpro-body[data-lathpro-mode="pro"] .lathpro-pro-only.lathpro-grid-2,.lathpro-body[data-lathpro-mode="pro"] .lathpro-pro-only.lathpro-grid-3{display:grid}
@media(max-width:1240px){.lathpro-workbench{grid-template-columns:1fr}.lathpro-controls{border-right:0;border-bottom:1px solid #e2e8e5}.lathpro-live{position:static}.lathpro-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:920px){.lathpro-wrap{width:calc(100% - 24px)}.lathpro-hero{min-height:auto}.lathpro-hero:before{background:linear-gradient(180deg,rgba(247,249,247,.98) 0%,rgba(247,249,247,.9) 33%,rgba(247,249,247,.66) 58%,rgba(247,249,247,.86) 100%),url('hero/roof-lathing-hero-bg.webp') 78% center/cover no-repeat}.lathpro-hero-copy{padding:38px 0 145px}.lathpro-shell-head{display:block;padding:22px 17px}.lathpro-mode-switch{margin-top:14px;width:100%;max-width:500px;grid-template-columns:1fr 1fr}.lathpro-stage-nav,.lathpro-stage-nav.pro{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px}.lathpro-workbench{min-width:0}.lathpro-view-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.lathpro-live-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.lathpro-kpi.primary{grid-column:1/-1}.lathpro-svg{min-height:360px}.lathpro-report-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.lathpro-report-head{display:block}.lathpro-report-actions{margin-top:12px}.lathpro-feature-grid{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.lathpro-wrap{width:calc(100% - 18px)}.lathpro-hero h1{font-size:clamp(34px,9vw,47px)}.lathpro-hero p{font-size:15.5px}.lathpro-hero-copy{padding-bottom:128px}.lathpro-mode-switch{grid-template-columns:1fr}.lathpro-stage-nav,.lathpro-stage-nav.pro{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.lathpro-stage-tab{min-height:59px;padding:8px}.lathpro-step{padding:18px 12px}.lathpro-grid-2,.lathpro-grid-3,.lathpro-choice-grid{grid-template-columns:1fr}.lathpro-field input,.lathpro-field select{font-size:16px}.lathpro-step-actions{position:sticky;bottom:0;z-index:7;display:grid;grid-template-columns:1fr 1fr;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:rgba(251,252,251,.96);backdrop-filter:blur(10px)}.lathpro-step-actions .btn{width:100%;min-width:0}.lathpro-live{padding:14px 10px 20px}.lathpro-view-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.lathpro-view-tabs button{font-size:11px;min-height:39px}.lathpro-view-head{display:block}.lathpro-svg{min-height:320px}.lathpro-diag article{grid-template-columns:24px 1fr}.lathpro-diag em{grid-column:2}.lathpro-report{padding:17px 10px}.lathpro-report-kpis{grid-template-columns:1fr}.lathpro-feature-grid{grid-template-columns:1fr}.lathpro-table th,.lathpro-table td{font-size:10px}}
@media(max-width:390px){.lathpro-stage-nav,.lathpro-stage-nav.pro{grid-template-columns:1fr}.lathpro-live-kpis{grid-template-columns:1fr}.lathpro-kpi.primary{grid-column:auto}.lathpro-view-tabs{grid-template-columns:1fr 1fr}.lathpro-hero-copy{padding-bottom:110px}}
@media print{.site-header,.footer,.lathpro-hero,.lathpro-controls,.lathpro-live,.lathpro-stage-nav,.calc-info-disclaimer-section-v263,.lathpro-section,.site-ad-slot{display:none!important}.lathpro-calc{padding:0}.lathpro-shell{border:0;box-shadow:none}.lathpro-workbench{display:block}.lathpro-report{padding:0}.lathpro-report-section{break-inside:avoid}.lathpro-table-wrap{overflow:visible}.lathpro-table{min-width:0}.lathpro-table th,.lathpro-table td{white-space:normal;font-size:8px;padding:5px}}
.lathpro-body[data-lathpro-mode="pro"] .lathpro-field.lathpro-pro-only{display:grid}.lathpro-body[data-lathpro-mode="pro"] .lathpro-choice.lathpro-pro-only{display:block}
@media print{body>header,body>footer{display:none!important}main>*:not(.lathpro-calc){display:none!important}.lathpro-shell-head,.lathpro-stage-nav,.lathpro-workbench,.lathpro-report-actions{display:none!important}.lathpro-calc{display:block!important;padding:0!important}.lathpro-report{display:block!important}}

/* v69 — интерактивная визуализация обрешётки */
.lathpro-view-tabs{position:relative;z-index:8;isolation:isolate}
.lathpro-view-tabs button{position:relative;z-index:1;pointer-events:auto;touch-action:manipulation;user-select:none;-webkit-tap-highlight-color:transparent}
.lathpro-view-tabs button:focus-visible{outline:3px solid rgba(36,95,73,.18);outline-offset:2px;border-color:#6f9f89}
.lathpro-view{position:relative;z-index:1}
.lathpro-axo-head{align-items:center}
.lathpro-axo-tools{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;max-width:390px}
.lathpro-axo-tools button{min-width:40px;height:38px;border:1px solid #d4e0da;border-radius:10px;background:#fff;color:#315d4a;font:inherit;font-size:17px;font-weight:900;line-height:1;cursor:pointer;pointer-events:auto;touch-action:manipulation;box-shadow:0 4px 12px rgba(32,65,50,.04)}
.lathpro-axo-tools button:hover,.lathpro-axo-tools button:focus-visible{background:#eef7f2;border-color:#8eb5a3;outline:none}
.lathpro-axo-tools .reset{min-width:70px;padding:0 11px;font-size:11px}
.lathpro-axo-faces{display:flex;flex-wrap:wrap;gap:6px;padding:9px 12px;border-bottom:1px solid #e3e9e6;background:#f8fbf9;position:relative;z-index:3}
.lathpro-axo-faces button{display:flex;align-items:center;gap:7px;min-height:38px;padding:7px 10px;border:1px solid #dbe5e0;border-radius:10px;background:#fff;color:#566b61;cursor:pointer;pointer-events:auto;touch-action:manipulation;font:inherit}
.lathpro-axo-faces button b{font-size:11px;color:#2e5947}.lathpro-axo-faces button span{font-size:10.5px}
.lathpro-axo-faces button.is-active{background:#eaf5ef;border-color:#78a990;box-shadow:inset 0 0 0 1px #78a990;color:#245b46}
.lathpro-axo-svg{cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;overscroll-behavior:contain}
.lathpro-axo-svg.is-dragging{cursor:grabbing}
@media(max-width:620px){
  .lathpro-axo-head{display:block}
  .lathpro-axo-tools{margin-top:10px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));max-width:none}
  .lathpro-axo-tools button{width:100%;min-width:0;height:42px}
  .lathpro-axo-tools .reset{grid-column:span 2}
  .lathpro-axo-faces{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .lathpro-axo-faces button{min-width:0;display:grid;gap:1px;text-align:left}
}
@media(max-width:390px){.lathpro-axo-tools{grid-template-columns:repeat(3,minmax(0,1fr))}.lathpro-axo-tools .reset{grid-column:span 3}.lathpro-axo-faces{grid-template-columns:1fr}}

/* v872: a full roof-face label fits in nested preview panels. */
.lathpro-view-head{flex-wrap:wrap}
.lathpro-view-head > .lathpro-field{flex:0 1 220px;min-width:min(100%,180px);max-width:100%}
