@layer responsive {
 :root { --site-header-height:76px; --section-offset:calc(var(--site-header-height) + 16px); }
 html { scroll-padding-top:0; }
 :is(#real-estate,#offers,#purchase,#after-purchase,#contact) { scroll-margin-top:var(--section-offset); }
 .site-header,.site-header.is-scrolled { height:auto; min-height:0; padding:env(safe-area-inset-top) 0 0; gap:0; background:#faf9f6; transition:background .2s,border-color .2s; }
 .site-header.is-scrolled { background:#f7f5ef; border-bottom-color:#cbd6cd; }
 .header-inner { display:flex; align-items:center; min-height:76px; gap:24px; }
 .site-header .brand,.header-menu .brand { font-size:18px; gap:8px; }
 .site-header .brand-mark,.header-menu .brand-mark { width:42px; height:54px; background-size:70px auto; }
 .header-navigation { display:flex; flex:1; justify-content:center; align-items:center; gap:10px; }
 .header-link { display:flex; align-items:center; min-height:44px; padding:10px 5px; font-size:14px; color:var(--ink); position:relative; white-space:nowrap; transition:color .18s; }
 .header-link:after { content:''; position:absolute; height:1px; left:5px; right:5px; bottom:4px; background:var(--green); opacity:0; transition:opacity .18s; }
 .header-link[aria-current=location] { color:var(--green); }
 .header-link[aria-current=location]:after { opacity:1; }
 .header-contact { display:flex; align-items:center; gap:18px; flex-shrink:0; }
 .header-contact [data-header-phone] { font-size:13px; white-space:nowrap; }
 .header-contact [data-header-cta] { white-space:nowrap; }
 .header-menu-toggle,.header-menu-close { display:none; width:44px; height:44px; align-items:center; justify-content:center; flex-shrink:0; color:var(--green-dark); }
 .header-menu-toggle { flex-direction:column; gap:7px; margin-left:auto; }
 .header-menu-toggle span { width:24px; height:1px; background:currentColor; }
 .header-menu { position:fixed; inset:0; margin:0; width:100%; max-width:none; height:100vh; height:100dvh; max-height:none; border:0; border-radius:0; padding: max(16px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left)); background:var(--ivory); overflow-y:auto; overscroll-behavior:contain; }
 .header-menu:not([open]) { display:none; }
 .header-menu-top { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:28px; }
 .header-menu-close { display:flex; }
 .header-menu nav { display:grid; gap:8px; }
 .header-menu .header-link { font-size:clamp(1.2rem,3vw,1.7rem); padding:16px 0; border-bottom:1px solid var(--line); white-space:normal; }
 .header-menu-contact { margin-top:32px; display:grid; gap:18px; max-width:540px; }
 .header-messengers { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
 .header-messengers .action { width:100%; }
 .header-messengers small { display:block; font-size:12px; line-height:1.5; margin-top:6px; color:var(--muted); }
 .header-contact-note { font-size:13px; color:var(--muted); }
 :is(.site-header,.header-menu) :is(a,button):focus-visible { outline:3px solid var(--green-dark); outline-offset:3px; }
 @media(hover:hover) and (pointer:fine) { .header-link:hover { color:var(--green); } .header-link:hover:after { opacity:1; } }
 @media(max-width:1399px) { .header-contact [data-header-phone] { display:none; } }
 @media(max-width:1100px) { .header-navigation,.header-contact { display:none; } .header-menu-toggle { display:flex; } .header-inner { min-height:68px; } :root { --site-header-height:68px; } }
 @media(max-width:600px) { .header-messengers { grid-template-columns:1fr; } .header-messengers>div { display:grid; grid-template-columns:1fr 1fr; gap:12px; align-items:center; } }
 @media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } .site-header,.header-link,.header-link:after { transition:none; } }
}
