/* ---------- «Клиенты на карте» (projects.html) ---------- */
.gm { margin: 28px 0; padding: 30px; border-radius: 28px; background: #fff; border: 1px solid var(--line-2, #e7e9f3); }
.gm__head { max-width: 760px; margin-bottom: 18px; }
.gm__head .h2 { margin: 0 0 8px; }
.gm__head p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text); }
.gm__body { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(260px, 1fr); gap: 24px; align-items: start; }
.gm__map { position: relative; padding: 14px; border-radius: 22px; background: radial-gradient(80% 70% at 30% 20%, #f3f4ff, #f8f9fc 70%); }
.gm__map svg { display: block; filter: drop-shadow(0 14px 22px rgba(52, 51, 154, .14)); width: 100%; height: auto; overflow: visible; }
.gm__note { margin: 6px 4px 0; font-size: 12px; color: var(--text); }

.gm__reg { fill: #e4e7f8; stroke: #fff; stroke-width: 3; stroke-linejoin: round; cursor: pointer; transition: fill .25s; outline: none; }
.gm__reg:hover, .gm__reg:focus-visible { fill: #d2d6f4; }
.gm__reg.is-empty { fill: #eef0f6; }
.gm__reg.is-reg { fill: #c3c7f0; }
.gm__reg.is-on { fill: #a9aeec; }
.gm__reg:focus-visible { stroke: var(--blue); }
.gm__rl { font-size: 18px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; fill: #8d90b8; pointer-events: none; }

.gm__city { cursor: pointer; outline: none; }
.gm__lead { fill: none; stroke: #8d90b8; stroke-width: 1.5; stroke-dasharray: 3 3; pointer-events: none; }
.gm__city.is-on .gm__lead { stroke: #8a6d00; stroke-dasharray: none; }
.gm__dot { fill: var(--blue); stroke: #fff; stroke-width: 2.5; transition: fill .2s, transform .25s cubic-bezier(.2, .8, .2, 1); transform-box: fill-box; transform-origin: center; }
.gm__pulse { fill: var(--blue); opacity: 0; transform-box: fill-box; transform-origin: center; }
.gm__cn { font-size: 23px; font-weight: 700; fill: #1d1d3f; paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; pointer-events: none; }
.gm__lake { fill: #f4f5fd; stroke: #fff; stroke-width: 2; pointer-events: none; }
.gm__cn tspan { font-weight: 800; fill: var(--blue); }
.gm__city:hover .gm__dot, .gm__city:focus-visible .gm__dot { fill: #4b42b8; transform: scale(1.15); }
.gm__city:focus-visible .gm__dot { stroke: #ffd200; stroke-width: 4; }
.gm__city.is-on .gm__dot { fill: #ffd200; stroke: #1d1d3f; stroke-width: 2; }
.gm__city.is-on .gm__cn tspan { fill: #8a6d00; }
.gm__city.is-on .gm__pulse { animation: gm-pulse 1.6s ease-out infinite; fill: #ffd200; }
@keyframes gm-pulse { from { opacity: .6; transform: scale(1); } to { opacity: 0; transform: scale(2.6); } }
.gm.has-pick .gm__city:not(.is-on) .gm__dot { fill: #7e7cc4; }

.gm__panel { display: grid; gap: 12px; }
.gm__t { margin: 0; padding: 14px 16px; border-radius: 16px; background: #26258a; color: #fff; font-size: 15px; font-weight: 800; }
.gm__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gm__list button { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.gm__list button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.gm__list .gm__r { min-height: 48px; padding: 10px 14px; border-radius: 14px; background: #f6f7fc; font-size: 14px; font-weight: 700; color: var(--ink); transition: background-color .2s; }
.gm__list .gm__r:hover { background: #eceefa; }
.gm__r b, .gm__cl b { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--blue); }
.gm__list .gm__r.is-on, .gm__list > li.is-open > .gm__r { background: #e2e4fa; }
.gm__cl { list-style: none; margin: 0; padding: 0 0 0 12px; display: grid; gap: 4px; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s; }
.gm__list > li.is-open .gm__cl { max-height: 400px; padding-top: 6px; }
.gm__list .gm__cl button { min-height: 40px; padding: 8px 12px; border-radius: 12px; font-size: 14px; color: var(--ink); }
.gm__list .gm__cl button:hover { background: #f6f7fc; }
.gm__list .gm__cl button.is-on { background: #fff6cc; }
.gm__cl .i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: #8a6d00; flex: none; }
.gm__go { width: 100%; justify-content: center; }
.gm__all { all: unset; cursor: pointer; text-align: center; font-size: 14px; font-weight: 700; color: var(--blue); padding: 8px; border-radius: 10px; }
.gm__all:hover { text-decoration: underline; }
.gm__all:focus-visible { outline: 3px solid var(--blue); }
.gm__all[hidden], .gm__go[hidden] { display: none; }

@media (max-width: 960px) { .gm__body { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .gm { padding: 18px; } .gm__map { padding: 4px; }
  .gm__cn { font-size: 36px; stroke-width: 7px; } .gm__rl { font-size: 26px; }
  /* на узком экране подписи маленьких городов только у выбранного, остальные в списке ниже */
  .gm__city--minor:not(.is-on) .gm__cn, .gm__city--minor:not(.is-on) .gm__lead { display: none; }
}
@media (prefers-reduced-motion: reduce) { .gm__city.is-on .gm__pulse { animation: none; } .gm__cl { transition: none; } }
