/* Карта первого экрана: заголовок неподвижен, показ полностью внутри карты. */
.roi-home .rh-hero-stage { height:auto; }
.roi-home .rh-shell .rh-hero-main h1 { width:100%; }
.home-tour { margin-top:28px; min-width:0; }
.home-tour__canvas { position:relative; height:clamp(370px,29vw,430px); border-radius:14px; overflow:hidden; background:#eeefeb; }
.home-tour__map { width:100%; height:100%; touch-action:pan-y; }
.home-tour__managers { position:absolute; z-index:3; top:12px; right:0; display:flex; align-items:center; padding-left:14px; pointer-events:none; }
.home-tour__manager { position:relative; display:block; width:56px; height:56px; flex:none; margin-left:-14px; overflow:hidden; border:2px solid #fff; border-radius:50%; background:var(--surface); pointer-events:auto; }
.home-tour__manager:first-child { margin-left:0; }
.home-tour__manager:nth-child(1) { z-index:4; }
.home-tour__manager:nth-child(2) { z-index:3; }
.home-tour__manager:nth-child(3) { z-index:2; }
.home-tour__manager:nth-child(4) { z-index:1; }
.home-tour__manager:hover, .home-tour__manager:focus-visible { z-index:5; transform:translateY(-2px); }
.home-tour__manager:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.home-tour__manager img { display:block; width:100%; height:100%; object-fit:cover; object-position:center 42%; }
.home-tour__manager--lead img { object-position:center 32%; }
.home-tour .map__controls { display:none; }
.home-tour svg.map__markers { position:absolute; inset:0; z-index:1; display:block; width:100%; height:100%; overflow:hidden; pointer-events:none; }
.home-tour .map__markers .map__marker { pointer-events:auto; }
.home-tour .map__disclaimer { bottom:8px; left:8px; font-size:9px; padding:3px 6px; }
.home-tour .map-popup { width:254px; border-radius:12px; animation:none; box-shadow:0 8px 28px #41404226; }
.home-tour .map-popup__media { height:108px; }
.home-tour .map-popup__title { font-size:14px; font-weight:500; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.home-tour .map-popup__address { font-size:11px; color:var(--muted); line-height:1.4; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.home-tour .map-popup__meta { font-size:13px; gap:8px; }
.home-tour .map-popup__body { gap:7px; padding:12px; }
.home-tour .map-popup .btn { min-height:36px; font-size:12px; }
.home-tour .map-popup__media .badge { font-size:10px; }
.home-tour .map__marker.is-selected .hx { fill:var(--accent); stroke:#414042; stroke-width:3; }
.home-tour__empty { position:absolute; inset:0; margin:0; padding:28px; display:grid; place-items:center; text-align:center; font-size:14px; color:var(--muted); }
.home-tour__empty[hidden] { display:none; }
@media (max-width:600px) {
  .roi-home .rh-hero-stage { display:flex; flex-direction:column; }
  .roi-home .rh-shell .rh-hero-heading { display:contents; }
  .roi-home .rh-shell .rh-hero-heading h1 { order:0; }
  .roi-home #home-map-tour { order:1; }
  .roi-home .rh-shell .rh-hero-catalog { order:2; flex:none; width:100%; margin-top:12px; }
  .home-tour { margin-top:20px; }
  .home-tour__canvas { height:400px; border-radius:10px; overflow:visible; }
  .home-tour__map { overflow:visible; }
  .home-tour__managers { top:8px; right:0; padding-left:20px; }
  .home-tour__manager { margin-left:-20px; }
  .home-tour__manager--fourth { display:none; }
  .home-tour .map-popup { left:12px !important; right:12px; top:calc(100% + 8px) !important; bottom:auto; width:auto; }
  .home-tour .map-popup__media { height:96px; }
}
@media (prefers-reduced-motion:reduce) {
  .home-tour .map-popup { animation:none; }
}
