#projects.projects-map {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 0;
    background: #123f3e;
    color: #ecf1d0;
}
.projects-map__canvas { height: clamp(720px, 64vw, 1050px); width: 100%; z-index: auto; background: #234d4c; }
/* XD Rectangle 571: #002a2c to white, multiply, over the upper 626 / 1250. */
.projects-map .projects-map__shade { z-index: 250; pointer-events: none; background: linear-gradient(to bottom, #002a2c 0%, #fff 50.08%, #fff 100%); mix-blend-mode: multiply; }
.projects-map .projects-map__shade::after { content: ''; position: absolute; inset: 0; background: rgba(0, 42, 44, .3); pointer-events: none; }
.projects-map__intro { position: absolute; z-index: 450; top: 95px; left: max(6%, calc((100vw - 1640px) / 2)); pointer-events: none; }
#projects .projects-map__intro h2 { margin: 0 0 30px; color: #ecf1d0; font-size: 55px; font-weight: 600; line-height: 55px; letter-spacing: 0; text-shadow: 0 2px 15px #123f3e; }
.projects-map__legend { display: flex; width: 316px; max-width: 100%; gap: 12px; padding: 0; margin: 0; list-style: none; }
.projects-map__legend li { display: flex; align-items: center; justify-content: space-between; gap: 12px; box-sizing: border-box; flex: 1 1 0; min-width: 0; width: 152px; height: 48px; padding: 8px 10px 8px 21px; margin: 0; border: 1px solid #d7d7d7; border-radius: 24px; background: #fff; color: #007a80; font-size: 18px; line-height: 1; }
.projects-map__legend li::before { content: none; }
.projects-map__legend-label { transform: translateY(2px); }
.projects-map__legend-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; }
.projects-map__legend-icon--office { background: #a3d8e6; }
.projects-map__legend-icon--project { background: #ecf1d0; }
.projects-map__legend img { display: block; object-fit: contain; width: auto; height: 17px; max-width: none; padding: 0; filter: brightness(0); }
.projects-map .leaflet-top { top: 30px; }
.projects-map .leaflet-right { right: 25px; }
.projects-map .leaflet-bar { border: 0; box-shadow: 0 3px 20px #123f3e50; border-radius: 8px; overflow: hidden; }
.projects-map .leaflet-bar a, .projects-map .leaflet-bar button { width: 42px; height: 42px; padding: 0; line-height: 42px; background: #ecf1d0; color: #007a80; border: 0; border-radius: 0; text-decoration: none; font: 26px/42px Arial, sans-serif; }
.projects-map .leaflet-bar a:hover, .projects-map .leaflet-bar button:hover { background: #fff; }
.projects-map .leaflet-bar button { background-color: #ecf1d0!important; color: #007a80!important; }
.projects-map .leaflet-bar button:hover { background-color: #fff!important; }
.projects-map .leaflet-bottom.leaflet-right { right: 0; }
.projects-map .leaflet-control-attribution { max-width: 100%; background: #fffffff0; color: #214c4a; font: 11px/1.5 Arial, sans-serif; }
.projects-map .leaflet-control-attribution a { color: #00666b; }
.projects-map__project-pin, .projects-map__office-pin { filter: drop-shadow(0 2px 3px #163630); }
.projects-map__office-pin { pointer-events: none; }
.projects-map__cluster { border-radius: 50%; background: #ecf1d0; border: 5px solid #ecf1d055; background-clip: padding-box; box-shadow: 0 0 0 4px #ecf1d044; color: #007a80; display: flex; align-items: center; justify-content: center; font: 700 17px/1 Arial, sans-serif; }
.projects-map .leaflet-marker-icon:focus-visible, .projects-map a:focus-visible, .projects-map button:focus-visible { outline: 3px solid #a3d8e6; outline-offset: 5px; }
.projects-map__popup .leaflet-popup-content-wrapper, .projects-map__popup .leaflet-popup-tip { background: #ecf1d0; color: #007a80; }
/* Popup proportions from the XD: 260 × 320, image 230 × 150. */
.projects-map__popup .leaflet-popup-content-wrapper { border-radius: 20px; padding: 1px; box-shadow: none; }
.projects-map__popup .leaflet-popup-content { margin: 9px 14px 23px; width: 230px!important; max-width: calc(100vw - 85px); font-family: inherit; }
.projects-map__popup .leaflet-popup-tip-container { display: none; }
.projects-map .leaflet-container { font-family: inherit; }
.map-project { display: flex; flex-direction: column; min-height: 286px; }
.map-project__photo { position: relative; overflow: hidden; flex-shrink: 0; border-radius: 10px; height: 150px; background: #a3d8e6; }
.map-project__photo img { display: block; width: 100%!important; height: 100%!important; max-width: none!important; object-fit: cover; }
.map-project__city { position: absolute; display: flex; align-items: center; gap: 6px; left: 10px; right: 10px; top: 10px; min-height: 30px; box-sizing: border-box; padding: 5px 10px; border-radius: 7px; color: #007479; background: white; font-size: 16px; line-height: 20px; }
.map-project__city::before { content: ''; flex: 0 0 11px; width: 11px; height: 15px; background: #007479; mask: url('../images/map-city-pin.svg') center / contain no-repeat; -webkit-mask: url('../images/map-city-pin.svg') center / contain no-repeat; }
.projects-map__popup .map-project__category { margin: 10px 0 5px; color: #007479; font-size: 12px; line-height: 15px; text-transform: uppercase; }
#projects .map-project h3 { color: #007479; font-size: 22px; font-weight: 400; line-height: 25px; margin: 0 0 35px; letter-spacing: 0; }
.map-project a { display: inline-block; align-self: flex-start; margin-top: auto; color: #007479!important; text-decoration: none; font-size: 14px; font-weight: 700; line-height: 18px; text-transform: uppercase; padding: 0; }
.map-project a:hover { text-decoration: underline; }
.projects-map__nojs { padding: 20px 6%; }
@media (max-width: 999px) {
    .projects-map__intro { position: relative; top: auto; left: auto; padding: 45px 6% 25px; }
    #projects .projects-map__intro h2 { font-size: clamp(32px, 4.9vw, 46px); line-height: 41px; }
    .projects-map__canvas { height: 660px; }
    .projects-map .leaflet-top { top: 5px; }
    .projects-map .leaflet-right { right: 5px; }
}
@media (max-width: 599px) {
    .projects-map__canvas { height: 560px; }
    .projects-map .leaflet-control-attribution { font-size: 9px; }
}
