/* ОБЩИЕ ПРАВИЛА ДЛЯ ВСЕХ СТРАНИЦ. Подключён последним на каждой странице — то, что здесь, главнее всего остального. */

/* Синяя шапка страниц (кроме главной): на телефоне одна высота везде — 190px */
@media(max-width:700px){
  html body section.plainhero[class]{height:190px!important;min-height:190px!important;max-height:190px!important;box-sizing:border-box!important;padding:14px 0 14px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;overflow:hidden!important}
  html body section.plainhero[class]>.wrap{width:100%}
  html body section.plainhero[class] .backlink{display:none!important}
  html body section.plainhero[class] .crumbs{margin:0 0 8px!important;font-size:13px!important;line-height:1.3!important}
  html body section.plainhero[class] h1{font-size:21px!important;line-height:1.15!important;margin:0 0 6px!important}
  html body section.plainhero[class] .lead{font-size:13.5px!important;line-height:1.35!important;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden!important}
}

/* Фото в синей шапке на телефоне: на всю шапку, мягко, без «коробок» с резкими краями */
@media(max-width:700px){
  html body section.plainhero[class] .ph-roof:not([style*="gutter-hero"]){left:0!important;right:0!important;top:0!important;bottom:0!important;width:100%!important;height:100%!important;max-width:none!important;aspect-ratio:auto!important;background-size:cover!important;background-repeat:no-repeat!important;opacity:.28!important;-webkit-mask-image:none!important;mask-image:none!important;transform:none!important;translate:none!important}
}

/* Одна гора: финальный блок «Get Your Free Roof Inspection» + футер делят одну картинку (desktop). Размеры считает js/common.js */
@media(min-width:901px){html body section.final,html body footer.revealfoot{background-color:#1a2a40!important;background-image:linear-gradient(rgba(19,33,52,.74),rgba(19,33,52,.74)),url("../images/stone-mountain-granite.jpg")!important;background-repeat:no-repeat!important;background-size:var(--ms,cover)!important;background-position:var(--mp,center)!important}
  html body .sheet{box-shadow:0 12px 26px rgba(5,12,24,.22)!important}}

/* Контекстные внутренние ссылки в тексте: тот же цвет, что текст, чуть жирнее, без подчёркивания */
html body a.ilink,html body a.ilink:visited{color:inherit!important;font-weight:600!important;text-decoration:none!important;border:0!important;background:none!important;padding:0!important}
html body a.ilink:hover{color:inherit!important;text-decoration:none!important;opacity:.8}
html body b a.ilink,html body strong a.ilink,html body h1 a.ilink,html body h2 a.ilink,html body h3 a.ilink,html body h4 a.ilink{font-weight:inherit!important}

/* Две фотографии в ряд (везде, и на телефоне) */
html body .duo{display:grid!important;grid-template-columns:1fr 1fr!important;gap:14px!important;margin:18px 0 22px!important}
html body .duo figure{margin:0!important;border-radius:10px;overflow:hidden;background:#fff;border:1px solid #e3e8ef}
html body .duo img{display:block!important;width:100%!important;max-width:none!important;height:auto!important;max-height:none!important;aspect-ratio:4/3!important;object-fit:cover!important;border-radius:0!important;margin:0!important}
html body .duo figcaption{font-size:14px;line-height:1.4;color:#4a5a6e;padding:8px 10px 10px;text-align:left}
@media(max-width:700px){html body .duo{gap:8px!important}html body .duo figcaption{font-size:12.5px;padding:6px 7px 8px}}

/* компактная шапка при прокрутке (desktop) — больше места для фото */
@media(min-width:901px){
header.main .wrap,header.main .logo img,header.main .tn-cta,header.main .tn-phone{transition:padding .2s ease,height .2s ease}
html body header.main.glass>.wrap{padding-top:5px!important;padding-bottom:5px!important}
html body header.main.glass .logo img{height:42px!important}
html body header.main.glass .tn-cta,html body header.main.glass .tn-phone{padding-top:8px!important;padding-bottom:8px!important}
}
