#site-navigation { margin-bottom: 0; }
.roof-slide-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.home .local-desktop-slider .code-block { margin-top: 0 !important; }
@media (prefers-reduced-motion: no-preference) {
    html:has(#calc:target) { scroll-behavior: smooth; }
}
.roof-banner-wrap { box-sizing: border-box; margin: 0 auto clamp(24px, 3vw, 40px); }
.roof-banner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #362b29;
    color: white;
    font-family: Montserrat, Arial, sans-serif;
}
.roof-banner > img, .roof-banner::after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.roof-banner > img { object-fit: cover; object-position: center 48%; z-index: -2; }
.roof-banner > img[src$="/mednaya-krovlya-hrama.webp"] { object-position: 75% top; }
.roof-banner::after {
    content: "";
    background: linear-gradient(90deg, rgb(17 13 15 / 91%), rgb(17 13 15 / 78%) 43%, rgb(17 13 15 / 13%) 85%);
    z-index: -1;
}
.roof-banner-copy { padding: clamp(24px, 4vw, 48px) clamp(20px, 6vw, 76px); }
.roof-banner .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    margin: 0 0 14px;
    padding: 0;
    background: transparent;
    font-size: 14px;
    line-height: 1.4;
}
.roof-banner .breadcrumb, .roof-banner .breadcrumb a, .roof-banner .breadcrumb span { color: #fff; }
.roof-banner .breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.roof-banner .roof-banner-title {
    max-width: 24ch;
    margin: 0;
    color: white;
    font-size: clamp(25px, 3.3vw, 42px);
    font-weight: 700;
    line-height: 1.12;
}
.roof-banner .roof-banner-benefits {
    display: grid;
    gap: 5px;
    max-width: 52ch;
    margin: 14px 0 20px;
    padding-left: 1.15em;
    list-style: disc;
    font-size: 16px;
    line-height: 1.45;
}
.roof-banner-benefits li::marker { color: #ffb3bb; }
.roof-banner a.roof-banner-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 8px 16px;
    box-sizing: border-box;
    border: 1px solid white;
    border-radius: 4px;
    background: rgb(25 18 20 / 55%);
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
}
.roof-banner a.roof-banner-button:hover, .roof-banner a.roof-banner-button:focus-visible { background: white; color: #841d2c; }
@media (min-width: 980px) {
    .roof-banner-compact { margin-bottom: 46px; }
    .roof-banner-compact .roof-banner-copy { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 24px; padding-block: 22px; }
    .roof-banner-compact .roof-banner-title { max-width: none; font-size: 26px; }
    .roof-banner-compact .roof-banner-benefits { max-width: 62ch; margin: 0; }
    .roof-banner-compact .breadcrumb { grid-column: 1; margin: 0; }
    .roof-banner-compact .roof-banner-title, .roof-banner-compact .roof-banner-benefits { grid-column: 1; }
    .roof-banner-compact .roof-banner-button { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}
@media (max-width: 600px) {
    .roof-banner::after { background: linear-gradient(90deg, rgb(17 13 15 / 88%), rgb(17 13 15 / 65%)); }
}
.entry-content .roof-estimate {
    clear: both;
    margin: 2.5rem 0 1rem;
    padding: clamp(16px, 3vw, 32px);
    border: 0;
    border-radius: 18px;
    background: #f7f4f0;
    color: #302925;
    scroll-margin-top: 85px;
}
.roof-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(100px, 26%);
    align-items: center;
    gap: clamp(14px, 2vw, 24px);
    margin-bottom: 26px;
}
.entry-content .roof-intro h2 {
    margin: 0 0 12px;
    color: #342824;
    font-size: clamp(25px, 3vw, 35px);
    line-height: 1.13;
    letter-spacing: -.025em;
}
.entry-content .roof-intro p { margin: 0; font-size: 15px; line-height: 1.5; }
.roof-intro p strong { color: #702639; }
.entry-content .roof-intro img { display: block; width: 100%; height: 132px; margin: 0; border-radius: 12px; object-fit: cover; }
.roof-questions { display: grid; gap: 17px; }
.roof-questions fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.roof-questions legend, .roof-details label, .roof-contact label {
    padding: 0;
    color: #362e29;
    font: inherit;
    font-weight: 650;
    line-height: 1.4;
}
.roof-options { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 8px; }
.roof-choice { position: relative; display: inline-flex; max-width: 100%; cursor: pointer; }
.roof-choice input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.roof-choice span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 41px;
    box-sizing: border-box;
    padding: 7px 13px;
    border: 1px solid #cfc6bf;
    border-radius: 22px;
    background: #fff;
    color: #453c37;
    font-size: 14px;
    line-height: 1.3;
}
.roof-choice span::before {
    content: "";
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    box-sizing: border-box;
    border: 1px solid #a99d96;
    border-radius: 50%;
}
.roof-choice:hover span { border-color: #8e4352; }
.roof-choice input:checked + span { background: #f6e7e9; border-color: #a21e33; color: #70172a; }
.roof-choice input:checked + span::before { background: #922038; border: 3px solid white; outline: 1px solid #922038; }
.roof-choice input:focus-visible + span, .roof-estimate :focus-visible {
    outline: 2px solid #8d2034;
    outline-offset: 3px;
}
.roof-details, .roof-contact { display: grid; gap: 14px; }
.roof-details { margin: 24px 0 16px; }
.roof-details small { font-size: 13px; color: #655b56; font-weight: 400; }
.roof-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.roof-estimate .roof-details input, .roof-estimate textarea, .roof-estimate .roof-contact input {
    display: block;
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    margin: 6px 0 0;
    padding: 10px 12px;
    border: 1px solid #c7bbb3;
    border-radius: 8px;
    background: white;
    font: inherit;
    font-size: 16px;
    font-weight: 400;
}
.roof-estimate textarea { resize: vertical; }
.roof-consent { display: flex; align-items: baseline; gap: 8px; margin: 16px 0; font-size: 14px; }
.roof-consent input { flex: none; accent-color: #a21e33; }
.roof-estimate .roof-send {
    min-height: 46px;
    padding: 11px 24px;
    border: 0;
    border-radius: 8px;
    background: #9c2136;
    color: white;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}
.roof-estimate .roof-send:hover { background: #7e1629; }
.roof-status:not(:empty), .entry-content .roof-alternative { margin: 12px 0 0; }
@media (max-width: 600px) {
    .roof-contact, .roof-intro { grid-template-columns: 1fr; }
    .entry-content .roof-intro img { display: none; }
    .roof-estimate .roof-send { width: 100%; }
}
@media (max-width: 974px) {
    .entry-content .roof-estimate { scroll-margin-top: 20px; }
}
