/* Phone layout is the baseline. Wider grids are enabled only when they fit.
   !important overrides the preserved original inline presentation styles. */
body .content-grid{grid-template-columns:minmax(0,1fr)!important}
.content-grid>div{min-width:0}
body section[id],body #main-content,body #lead-form-top,body #lead-form{scroll-margin-top:94px}
.property-popup{padding:8px 32px 8px 4px;max-width:220px;text-align:start}
.property-popup strong{display:block;font-size:16px;color:#243B53}
.property-popup p{font-size:14px!important;line-height:1.6!important;color:#525252;margin:6px 0 0}
body .maplibregl-popup-close-button{display:block;width:44px;height:44px;font-size:26px;color:#243B53;border-radius:8px}
body #testimonials .yt-facade-play svg,body #testimonials .yt-facade-play svg *{fill:#FAF7F2!important}
body .vsl-overlay-pill{font-size:14px!important;line-height:1.5;min-height:44px;box-sizing:border-box}
.vsl-overlay-pill svg{flex-shrink:0}
body .m-btn,body #mobile-cta>a{min-height:50px;box-sizing:border-box}

@media(min-width:640px){
 body #founders .content-grid,body #testimonials .content-grid,
 body #why-budapest .content-grid,body #services .content-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(min-width:800px){
 body #fit .content-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(min-width:960px){
 body #our-story .content-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body section[id],body #main-content,body #lead-form-top,body #lead-form{scroll-margin-top:106px}
}
@media(min-width:1200px){
 body #why-budapest .content-grid,body #services .content-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}

@media(max-width:639px){
 body main>section:not(#map-section){padding:52px 20px!important}
 body #map-section{padding-top:52px!important}
 body #map-section>div:first-child{padding-bottom:24px!important}
 body main>section:not(#our-story)>div>div:first-child{margin-bottom:28px!important}
 body main h2{line-height:1.2!important;text-wrap:balance}
 body main p[style*="font-weight:300"],body .m-hero p{font-weight:400!important;line-height:1.7!important}
 body #why-budapest .card-lift{display:grid;grid-template-columns:44px minmax(0,1fr);gap:14px;padding:20px!important;text-align:right!important;align-items:center}
 body #why-budapest .card-lift>div:first-child{width:44px!important;height:44px!important;margin:0!important;border-radius:10px!important}
 body #why-budapest .card-lift h3{margin:0!important;font-size:19px!important;line-height:1.4}
 body #why-budapest .card-lift>p{grid-column:1/-1;font-size:16px!important}
 body #services .content-grid>div,body #fit .content-grid>div{padding:22px 20px!important}
 body #services .content-grid p,body #fit .content-grid p,body #our-story p{font-size:16px!important;line-height:1.75!important}
 body #founders .content-grid>div>div{padding:20px!important}
 body #our-story .content-grid>div:last-child>div{padding:22px 20px!important}
 body #fit h3{font-size:19px!important}
 body iframe[src^="preview-form.html"]{height:490px!important;display:block}
 body #vsl-overlay{padding:12px!important;gap:8px!important}
 body #vsl-overlay .vsl-overlay-pill{padding:10px 12px!important}
 body footer{padding-bottom:calc(110px + env(safe-area-inset-bottom))!important}
 body .maplibregl-ctrl-group button{width:44px;height:44px}
 body .maplibregl-ctrl-group button .maplibregl-ctrl-icon{background-size:29px}
}

@media(max-width:359px){body iframe[src^="preview-form.html"]{height:530px!important}}
