.sg-roof a { color: var(--sg-brand-strong); }
.sg-roof img { height: 100%; }
.sg-roof .sg-roof__hero { padding: 40px 0 48px; }
.sg-roof .sg-roof__hero-visual { position: relative; height: 490px; overflow: hidden; border-radius: var(--sg-radius); background: var(--sg-surface-soft); }
.sg-roof .sg-roof__hero-visual::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(17,24,39,.68)); pointer-events: none; }
.sg-roof .sg-roof__hero-visual figcaption { position: absolute; z-index: 1; bottom: 26px; left: 26px; right: 26px; color: #fff; font-size: var(--sg-font-small); line-height: 1.5; }
.sg-roof .sg-roof__hero-visual figcaption strong { display: block; margin-bottom: 5px; font-size: 20px; font-weight: 500; }
.sg-roof .sg-roof__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 28px 0 0; margin-top: 40px; border-top: 1px solid var(--sg-line); }
.sg-roof .sg-roof__facts strong { display: block; margin-bottom: 6px; font-size: var(--sg-font-body); font-weight: 600; }
.sg-roof .sg-roof__facts p { color: var(--sg-text-soft); font-size: var(--sg-font-small); }
.sg-roof .sg-roof__nav { border-top: 1px solid var(--sg-line); border-bottom: 1px solid var(--sg-line); background: var(--sg-surface-soft); }
.sg-roof .sg-roof__nav-list { display: flex; flex-wrap: wrap; gap: 10px 32px; padding-block: 18px; list-style: none; }
.sg-roof .sg-roof__nav a { display: inline-block; padding-block: 4px; color: var(--sg-text-soft); font-size: var(--sg-font-note); text-decoration: none; }
.sg-roof .sg-roof__nav a:hover { color: var(--sg-brand-strong); text-decoration: underline; text-underline-offset: 5px; }
.sg-roof .sg-roof__intro { margin-top: 20px; }
.sg-roof .sg-roof__grid { margin-top: 34px; }
.sg-roof :where(.sg-roof__hero-grid, .sg-roof__system, .sg-roof__split, .sg-roof__grid) > * { min-width: 0; }
.sg-roof .sg-roof__card-image { height: 230px; }
.sg-roof .sg-roof__card p { margin-top: 12px; color: var(--sg-text-soft); font-size: var(--sg-font-small); }
.sg-roof .sg-roof__tag { display: block; margin-bottom: 12px; color: var(--sg-brand-strong); font-size: var(--sg-font-eyebrow); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.sg-roof .sg-roof__card dl { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--sg-line); font-size: var(--sg-font-note); }
.sg-roof .sg-roof__card dt { margin-top: 8px; color: var(--sg-text-soft); }
.sg-roof .sg-roof__card dd { margin: 2px 0 0; }
.sg-roof .sg-roof__system { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 40px; margin-top: 36px; }
.sg-roof .sg-roof__type-picker { margin: 32px 0 0; padding: 0; border: 0; min-width: 0; }
.sg-roof .sg-roof__type-picker legend { margin-bottom: 14px; padding: 0; font-size: 15px; font-weight: 600; }
.sg-roof .sg-roof__type-options { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.sg-roof .sg-roof__type-options label { position: relative; cursor: pointer; }
.sg-roof .sg-roof__type-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sg-roof .sg-roof__type-options label > span { display: block; height: 100%; padding: 18px 18px 18px 40px; border: 1px solid var(--sg-line); border-radius: var(--sg-radius-sm); background: var(--sg-surface); transition: border-color .2s ease, background .2s ease; }
.sg-roof .sg-roof__type-options label > span::before { content: ''; position: absolute; left: 16px; top: 22px; width: 13px; height: 13px; border: 1px solid var(--sg-line-strong); border-radius: 50%; background: #fff; }
.sg-roof .sg-roof__type-options strong { display: block; font-size: var(--sg-font-small); line-height: 1.4; font-weight: 600; }
.sg-roof .sg-roof__type-options small { display: block; margin-top: 5px; color: var(--sg-text-soft); font-size: var(--sg-font-caption); line-height: 1.4; }
.sg-roof .sg-roof__type-options input:checked + span { border-color: var(--sg-line-strong); background: var(--sg-surface-soft); }
.sg-roof .sg-roof__type-options input:focus-visible + span { outline: 2px solid var(--sg-brand); outline-offset: 3px; }
.sg-roof .sg-roof__type-options input:checked + span::before { border: 4px solid var(--sg-brand-strong); }
.sg-roof .sg-roof__assembly { padding: 24px; border: 1px solid var(--sg-line); border-radius: var(--sg-radius); background: radial-gradient(ellipse at 45% 38%, #fff 0, #f3f5f5 75%); }
.sg-roof .sg-roof__assembly-heading { display: flex; justify-content: space-between; gap: 12px; color: var(--sg-text-soft); font-size: var(--sg-font-eyebrow); }
.sg-roof .sg-roof__assembly-heading > span:first-child { color: var(--sg-brand-strong); font-size: var(--sg-font-small); font-weight: 700; letter-spacing: -.03em; }
.sg-roof .sg-roof__diagram { display: block; width: 100%; height: auto; overflow: visible; margin-top: 12px; }
.sg-roof .sg-roof__diagram-layer { cursor: pointer; }
.sg-roof .sg-roof__slab { transition: transform .3s ease, filter .3s ease; }
.sg-roof .sg-roof__diagram-layer:hover .sg-roof__slab,
.sg-roof .sg-roof__diagram-layer.is-active .sg-roof__slab { transform: translateY(-12px); filter: drop-shadow(0 10px 7px rgba(36,48,53,.18)); }
.sg-roof .sg-roof__slab-top { stroke: rgba(255,255,255,.6); stroke-width: 1; }
.sg-roof .sg-roof__layer-dot { fill: #fff; stroke: #c8d1d7; stroke-width: 1; transition: fill .2s ease; }
.sg-roof .sg-roof__diagram-layer text { fill: var(--sg-text-soft); font-size: var(--sg-font-caption); font-family: inherit; }
.sg-roof .sg-roof__diagram-layer.is-active .sg-roof__layer-dot { fill: var(--sg-brand-strong); stroke: var(--sg-brand-strong); }
.sg-roof .sg-roof__diagram-layer.is-active text { fill: #fff; }
.sg-roof .sg-roof__diagram-base { fill: #7a8790; font-size: var(--sg-font-eyebrow); font-family: inherit; }
.sg-roof .sg-roof__plants--meadow, .sg-roof .sg-roof__plants--garden { display: none; }
.sg-roof [data-roof-type="meadow"] .sg-roof__plants--sedum, .sg-roof [data-roof-type="garden"] .sg-roof__plants--sedum { display: none; }
.sg-roof [data-roof-type="meadow"] .sg-roof__plants--meadow, .sg-roof [data-roof-type="garden"] .sg-roof__plants--garden { display: block; }
.sg-roof .sg-roof__assembly figcaption { margin-top: 10px; color: var(--sg-text-soft); font-size: var(--sg-font-caption); }
.sg-roof .sg-roof__assembly figcaption strong { display: block; margin-bottom: 6px; color: var(--sg-brand-strong); font-size: var(--sg-font-small); font-weight: 600; }
.sg-roof .sg-roof__assembly figcaption span { display: block; }
.sg-roof .sg-roof__layer-controls { display: grid; grid-template-columns: 1fr; gap: 7px; }
.sg-roof .sg-roof__layer-controls button { display: flex; align-items: center; flex-wrap: wrap; column-gap: 16px; width: 100%; min-height: 46px; padding: 11px 16px; border: 1px solid var(--sg-line); border-radius: 10px; text-align: left; color: var(--sg-text); background: var(--sg-surface); font: inherit; font-size: var(--sg-font-small); line-height: 1.4; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.sg-roof .sg-roof__layer-controls button > span { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; color: var(--sg-text-soft); font-size: var(--sg-font-eyebrow); }
.sg-roof .sg-roof__layer-controls button > small { margin-left: auto; color: var(--sg-brand-strong); font-size: 10px; }
.sg-roof .sg-roof__layer-controls button:hover { border-color: var(--sg-brand-soft); }
.sg-roof .sg-roof__layer-controls button[aria-pressed="true"] { border-color: var(--sg-line-strong); background: var(--sg-surface-soft); font-weight: 600; }
.sg-roof .sg-roof__layer-controls button[aria-pressed="true"] > span { color: #fff; background: var(--sg-brand); }
.sg-roof .sg-roof__layers { margin: 0; padding: 0; list-style: none; }
.sg-roof .sg-roof__layers > li { padding: 20px 0; border-bottom: 1px solid var(--sg-line); scroll-margin-top: 110px; }
.sg-roof .sg-roof__layers > li:first-child { padding-top: 0; }
.sg-roof .sg-roof__layers p { margin-top: 8px; color: var(--sg-text-soft); font-size: var(--sg-font-small); }
.sg-roof .sg-roof__layers a { display: inline-block; margin-top: 8px; font-size: var(--sg-font-note); text-underline-offset: 4px; }
.sg-roof .is-enhanced .sg-roof__layers { min-height: 235px; padding: 24px 0 0; }
.sg-roof .is-enhanced .sg-roof__layers > li { padding: 0; border: 0; }
.sg-roof .sg-roof__layers .sg-roof__substrate-value { color: var(--sg-brand-strong); font-weight: 500; }
.sg-roof .sg-roof__complete { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; margin-top: 36px; }
.sg-roof .sg-roof__complete-copy > p:not(.sg-roof__eyebrow) { margin-top: 12px; max-width: 580px; color: var(--sg-text-soft); font-size: var(--sg-font-small); }
.sg-roof .sg-roof__complete .sg-roof__eyebrow { margin-bottom: 10px; }
.sg-roof .sg-roof__complete-action { display: grid; gap: 16px; max-width: 340px; }
.sg-roof .sg-roof__selection { display: block; margin-top: 16px; color: var(--sg-brand-strong); font-size: var(--sg-font-caption); font-weight: 500; }
.sg-roof .sg-roof__area { display: block; color: var(--sg-text); font-size: var(--sg-font-note); }
.sg-roof .sg-roof__area > span { color: var(--sg-text-soft); font-size: var(--sg-font-eyebrow); }
.sg-roof .sg-roof__area input { display: block; width: 100%; max-width: 100%; margin-top: 8px; padding: 12px 14px; border: 1px solid var(--sg-line-strong); border-radius: 10px; color: var(--sg-text); background: var(--sg-surface); font: inherit; font-size: var(--sg-font-input); }
.sg-roof .sg-roof__split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.sg-roof .sg-roof__split-image { height: 440px; overflow: hidden; border-radius: var(--sg-radius); }
.sg-roof .sg-roof__list { padding-left: 20px; margin-top: 22px; color: var(--sg-text-soft); }
.sg-roof .sg-roof__list li + li { margin-top: 10px; }
.sg-roof .sg-roof__steps { margin-top: 36px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 26px; counter-reset: roof-step; }
.sg-roof .sg-roof__steps li { counter-increment: roof-step; padding-top: 18px; border-top: 2px solid var(--sg-brand-strong); }
.sg-roof .sg-roof__steps li::before { content: '0' counter(roof-step); display: block; margin-bottom: 24px; color: var(--sg-text-soft); font-size: var(--sg-font-caption); }
.sg-roof .sg-roof__steps p { margin-top: 12px; color: var(--sg-text-soft); font-size: var(--sg-font-small); }
.sg-roof .sg-roof__brief { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--sg-line); }
.sg-roof .sg-roof__brief > div { padding: 22px 26px 22px 0; border-bottom: 1px solid var(--sg-line); }
.sg-roof .sg-roof__brief dt { font-size: var(--sg-font-body); font-weight: 600; }
.sg-roof .sg-roof__brief dd { margin: 8px 0 0; color: var(--sg-text-soft); font-size: var(--sg-font-small); }
.sg-roof .sg-roof__faq { margin-top: 30px; }
.sg-roof .sg-roof__request .sg-roof__intro { opacity: .8; }
.sg-roof .sg-roof__request .sg-roof__text-link { color: #fff; font-size: var(--sg-font-small); }
.sg-roof .sg-roof__bridge { padding-top: 30px; margin-top: 42px; border-top: 1px solid var(--sg-line); display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.sg-roof .sg-roof__bridge p { margin-top: 6px; color: var(--sg-text-soft); font-size: var(--sg-font-small); }
.sg-roof .sg-roof__bridge .sg-roof__text-link { flex-shrink: 0; font-size: var(--sg-font-small); }
@media (max-width: 960px) {
  .sg-roof .sg-roof__hero-visual { height: 430px; }
  .sg-roof .sg-roof__system, .sg-roof .sg-roof__split { gap: 30px; }
  .sg-roof .sg-roof__steps { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px; }
}
@media (max-width: 700px) {
  .sg-roof .sg-roof__hero { padding: 24px 0 32px; }
  .sg-roof .sg-roof__hero-grid, .sg-roof .sg-roof__system, .sg-roof .sg-roof__split, .sg-roof .sg-roof__grid--3, .sg-roof .sg-roof__grid--2 { grid-template-columns: 1fr; }
  .sg-roof .sg-roof__hero-visual { height: 340px; }
  .sg-roof .sg-roof__hero-visual figcaption { left: 20px; bottom: 20px; }
  .sg-roof .sg-roof__facts { grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
  .sg-roof .sg-roof__facts strong { margin-bottom: 2px; }
  .sg-roof .sg-roof__nav-list { gap: 6px 22px; padding-block: 12px; }
  .sg-roof .sg-roof__card-image { height: 250px; }
  .sg-roof .sg-roof__type-options { grid-template-columns: 1fr; gap: 8px; }
  .sg-roof .sg-roof__type-options label > span { padding-block: 14px; }
  .sg-roof .sg-roof__type-options label > span::before { top: 18px; }
  .sg-roof .sg-roof__assembly { padding: 20px; }
  .sg-roof .sg-roof__diagram { max-height: 470px; }
  .sg-roof .sg-roof__layer-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sg-roof .sg-roof__layer-controls button { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 8px; align-content: center; min-height: 64px; padding: 10px; font-size: var(--sg-font-note); }
  .sg-roof .sg-roof__layer-controls button > small { grid-column: 2; margin: 4px 0 0; font-size: 9px; }
  .sg-roof .sg-roof__complete { grid-template-columns: 1fr; gap: 24px; }
  .sg-roof .sg-roof__complete-action { max-width: none; }
  .sg-roof .is-enhanced .sg-roof__layers { min-height: 0; }
  .sg-roof .sg-roof__split-image { height: 320px; }
  .sg-roof .sg-roof__brief { grid-template-columns: 1fr; }
  .sg-roof .sg-roof__brief > div { padding-right: 0; }
  .sg-roof .sg-roof__bridge { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .sg-roof .sg-roof__slab, .sg-roof .sg-roof__layer-dot, .sg-roof .sg-roof__type-options label > span, .sg-roof .sg-roof__layer-controls button { transition: none; }
}
@media (max-width: 380px) {
  .sg-roof .sg-roof__steps { grid-template-columns: 1fr; }
  .sg-roof .sg-roof__actions .sg-roof__button { width: 100%; }
}
