.project-map {
    --map-navy: var(--palmetto-brand-navy);
    --map-mist: var(--palmetto-brand-gray-200);
    width: min(1360px, calc(100% - 48px));
    margin-inline: auto;
    padding-block: clamp(64px, 6vw, 104px);
    color: var(--map-navy);
    scroll-margin-top: 100px;
}
.project-map [hidden] { display: none !important; }
.project-map__heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 32px; }
.project-map h2 { margin: 0; font-size: clamp(32px, 3.5vw, 60px); font-weight: 650; letter-spacing: -.035em; line-height: 1.1; color: var(--palmetto-brand-black); }
.project-map .project-map__intro { margin: 0 0 3px; font-size: 17px; line-height: 1.5; }
.project-map__swipe-hint, .project-map__cluster-name, .project-map__leaders { display: none; }
.project-map__cluster { display: contents; }
.project-map__stage { position: relative; background: var(--palmetto-brand-white); }
.project-map__canvas { position: relative; background: var(--palmetto-brand-white); }
.project-map__scene { position: relative; width: 100%; aspect-ratio: 3508 / 1850; transform-origin: 0 0; transition: transform 950ms cubic-bezier(.16,1,.3,1); }
.project-map__drawing, .project-map__callouts { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.project-map__land { fill: var(--palmetto-brand-gray-100); stroke: white; stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.project-map__land[data-map-region] { fill: var(--map-navy); cursor: pointer; transition: fill 180ms ease-out; }
.project-map__land:is(.is-active, .is-hovered) { fill: var(--palmetto-brand-accent-blue); }
.project-map .project-map__land[data-map-region]:focus { outline: none; box-shadow: none; }
.project-map .project-map__land[data-map-region]:focus-visible { stroke: var(--palmetto-brand-accent-cyan); stroke-width: 2; }
.project-map__callouts { pointer-events: none; overflow: visible; }
.project-map__callouts g { pointer-events: visiblePainted; fill: var(--palmetto-brand-white); filter: drop-shadow(0 4px 5px rgb(0 0 0 / .12)); transition: fill 180ms ease-out; }
.project-map__callouts g.is-hovered { fill: var(--palmetto-brand-gray-50); }
body .project-map .project-map__pin {
    --control-hover: transparent;
    position: absolute; z-index: 1; display: flex; align-items: center; justify-content: center;
    left: var(--pin-x); top: var(--pin-y); width: var(--pin-width); height: var(--pin-height);
    min-width: 24px; min-height: 24px !important; padding: 0 !important;
    transform: translate(-50%, -50%); border: 0 !important; border-radius: 0 !important;
    background: transparent !important; box-shadow: none !important;
}
body .project-map .project-map__pin:focus:not(:focus-visible) { outline: none; }
body .project-map .project-map__pin:focus-visible { outline: 2px solid var(--palmetto-brand-accent-blue); outline-offset: 4px; }
.project-map__pin img { width: 100%; height: 100%; object-fit: contain; display: block; }
body .project-map .project-map__more {
    color: var(--map-navy);
    font-size: 15px;
    font-weight: 700;
}
.project-map .project-map__other-projects { list-style: none; padding: 0; margin: 16px 0 0; }
body .project-map .project-map__other-projects button {
    display: flex; width: 100%; align-items: center; justify-content: space-between;
    gap: 12px; text-align: left;
}
.project-map__other-projects li + li { margin-top: 8px; }
.project-map__other-projects svg { width: 18px; height: 18px; flex: none; }
.project-map__card-body > .project-map__info:first-child { padding-top: 60px; }
.project-map__card { position: absolute; right: 24px; top: 24px; width: 360px; max-height: calc(100% - 48px); overflow-y: auto; z-index: 3; border-radius: 20px; background: white; box-shadow: 0 2px 5px rgb(7 65 117 / .04), 0 16px 48px rgb(7 65 117 / .13); }
.project-map__card[hidden] { display: none; }
body .project-map .project-map__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; min-height: 44px !important; padding: 0 !important; --control-border: transparent; z-index: 1; }
.project-map__photo { aspect-ratio: 2 / 1; overflow: hidden; background: var(--map-mist); }
.project-map__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.project-map__info { padding: 22px 24px; }
.project-map .project-map__place { display: flex; align-items: start; gap: 6px; font-size: 13px; line-height: 1.4; margin: 0 0 12px; }
.project-map__place svg { width: 16px; height: 16px; flex: 0 0 16px; }
.project-map h3 { margin: 0 0 10px; font-size: 28px; letter-spacing: -.025em; font-weight: 600; line-height: 1.15; color: var(--map-navy); }
.project-map .project-map__description { margin: 0 0 20px; font-size: 15px; line-height: 1.45; }
.project-map .project-map__detail { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; padding: 12px 20px; background: var(--map-navy); border-radius: 999px; color: white; font-size: 15px; font-weight: 600; text-decoration: none; transition: background-color 160ms ease, scale 160ms ease; }
.project-map__detail svg { width: 19px; height: 19px; }
.project-map__card-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 24px 20px; font-size: 13px; }
body .project-map__card-nav button { width: 44px; min-height: 44px !important; padding: 8px !important; --control-border: var(--map-mist); }
.project-map__card-nav svg { width: 18px; height: 18px; }
.project-map__footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; }
.project-map .project-map__footer p { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 18px; line-height: 1.5; }
.project-map__footer p .palmetto-icon { width: 22px; height: 22px; flex: none; }
@media (hover: hover) { .project-map .project-map__detail:hover { background: var(--palmetto-brand-accent-blue); color: white; } }
.project-map__detail:active { scale: .96; }
@media (max-width: 1150px) {
    .home [data-brand-pattern="map"] .project-map__heading { display: block; min-height: 0; padding: 0; margin-bottom: clamp(16px, 2.1vw, 24px); }
    .project-map__card { position: relative; inset: auto; width: min(100%, 480px); max-height: none; margin: 16px auto 0; scroll-margin: 110px 0 24px; }
    .project-map__stage { background: none; box-shadow: none; }
    .project-map__canvas { min-width: 0; overflow: auto hidden; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--map-mist) transparent; }
    .project-map__canvas.is-at-west { touch-action: pan-right pan-y pinch-zoom; }
    .project-map__canvas.is-at-east { touch-action: pan-left pan-y pinch-zoom; }
    .project-map__scene { min-width: 840px; }
    .project-map__callouts { display: none; }
    .project-map__leaders { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
    .project-map__leaders line { stroke: var(--map-navy); stroke-opacity: .65; stroke-width: 1.25px; vector-effect: non-scaling-stroke; transition: stroke-opacity 120ms ease-out; }
    .project-map__leaders line.is-clipped { stroke-opacity: 0; }
    .project-map__leaders circle { fill: var(--palmetto-brand-accent-cyan); stroke: white; stroke-opacity: 1; stroke-width: 2; }
    .project-map__cluster {
        position: absolute;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        width: max-content;
        padding: 7px 8px 4px;
        box-sizing: border-box;
        transform: translateY(-100%);
        border: 1px solid var(--map-mist);
        border-radius: 22px 22px 22px 3px;
        background: var(--palmetto-brand-white);
        box-shadow: 0 3px 9px rgb(7 65 117 / .09);
        transition: background-color 180ms ease-out, opacity 120ms ease-out;
        scroll-margin-block: 96px 16px;
    }
    .project-map__cluster.is-hovered { background: var(--palmetto-brand-gray-50); }
    .project-map__cluster.is-clipped { opacity: 0; pointer-events: none; }
    .project-map__cluster--multi {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1px 6px;
        width: 138px;
        padding: 5px 8px;
    }
    .project-map__cluster[data-group="tver"] { transform: translate(-82%, -100%); border-radius: 22px 22px 3px 22px; }
    .project-map__cluster[data-group="moscow"] { transform: none; border-radius: 3px 22px 22px 22px; }
    .project-map__cluster[data-group="primorye"] { transform: translate(-100%, -100%); border-radius: 22px 22px 3px 22px; }
    .project-map__cluster-name {
        display: block;
        grid-column: 1 / -1;
        font: 600 13px/1.3 var(--palmetto-font-heading);
        color: var(--map-navy);
        text-align: center;
        white-space: nowrap;
    }
    body .project-map .project-map__cluster .project-map__pin {
        position: static;
        width: 100%;
        height: 44px;
        min-height: 44px !important;
        transform: none;
        scroll-margin-block: 96px 16px;
    }
    .project-map__cluster .project-map__pin img { width: 100%; max-width: 58px; height: auto; max-height: 32px; }
    .project-map__cluster [data-project="1820"] img { max-width: 44px; }
    .project-map__cluster:not(.project-map__cluster--multi) .project-map__pin::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
    body .project-map .project-map__cluster .project-map__pin:focus-visible { outline-offset: -2px; }
    .project-map--pannable .project-map__swipe-hint { display: flex; align-items: center; gap: 8px; line-height: 1.4; }
    .project-map__swipe-hint svg { flex: none; color: var(--palmetto-brand-accent-blue); }
}
@media (max-width: 1000px) {
    .project-map__heading { align-items: start; flex-direction: column; gap: 16px; }
}
@media (max-width: 700px) {
    .project-map { width: calc(100% - 32px); scroll-margin-top: 84px; }
    .project-map__intro br { display: none; }
    .project-map__desktop-hint { display: none; }
    .project-map__card { position: relative; inset: auto; width: 100%; max-height: none; margin-top: 12px; box-shadow: 0 8px 30px rgb(7 65 117 / .1); scroll-margin: 90px 0 20px; }
    .project-map__footer { align-items: start; flex-direction: column; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .project-map *, .project-map *::before { transition: none !important; scroll-behavior: auto !important; }
    .project-map__scene { transform: none !important; }
}
