﻿:root {
  --bg: #ffffff;
  --surface: #f6f8fa;
  --surface-strong: #ffffff;
  --ink: #1c242e;
  --ink-soft: #5c6877;
  --line: #dde3ea;
  --accent: #b64832;
  --accent-soft: #fbe9e5;
  --shadow-soft: 0 20px 50px rgba(24, 39, 75, 0.08);
  --shadow-card: 0 14px 38px rgba(26, 40, 69, 0.1);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.presence-lab {
  padding: clamp(44px, 4.5vw, 72px) clamp(20px, 4vw, 44px);
}

.presence-shell {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 350px) minmax(0, 1fr);
  gap: clamp(26px, 3vw, 44px);
  align-items: start;
}

.city-panel {
  background: var(--surface);
  border: 1px solid #eef1f4;
  border-radius: var(--radius-xl);
  padding: clamp(18px, 1.8vw, 24px);
  box-shadow: var(--shadow-soft);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 2.2vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.intro {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

.city-list {
  margin-top: 20px;
  display: grid;
  gap: 6px;
}

.city-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 13px 10px 18px;
  border: 1px solid #e8edf2;
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(20, 33, 53, 0.04);
  transition: background-color 0.24s ease, border-color 0.24s ease, color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

.city-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 0;
  border-radius: 999px;
  background: var(--accent);
  transform: translateY(-50%);
  transition: height 0.28s ease;
}

.city-item:hover {
  background: #eef2f6;
  border-color: #e4eaf1;
  box-shadow: 0 8px 16px rgba(25, 40, 66, 0.07);
}

.city-item.active {
  background: var(--accent-soft);
  border-color: #e7b5aa;
  color: #922f1b;
  font-weight: 800;
  transform: translateX(2px);
  box-shadow: 0 10px 22px rgba(171, 72, 51, 0.16);
}

.city-item.active::before {
  height: 62%;
}

.city-labels {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.city-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.22;
}

.city-region {
  color: #7d8997;
  font-size: 12px;
  line-height: 1.25;
}

.city-meta {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  color: #94a0ae;
  background: #edf2f6;
  border: 1px solid #e4e9f0;
  flex: 0 0 auto;
}

.city-item.active .city-name {
  font-weight: 800;
}

.city-item.active .city-region {
  color: #9f5447;
}

.city-item.active .city-meta {
  color: #a74733;
  background: #f5ddd7;
  border-color: #e6b6ab;
}

.map-panel {
  display: grid;
  gap: clamp(16px, 1.7vw, 20px);
}

.map-card {
  background: #fcfdff;
  border: 1px solid #edf1f4;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: clamp(12px, 1.5vw, 18px);
}

.map-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 60 / 29;
}

.map-svg-wrap {
  width: 100%;
  max-width: none;
  transform: translateY(0) scale(1);
  transform-origin: center center;
}

.map-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius-xl) - 8px);
}

.map-stage .map-svg {
  max-width: 100%;
  max-height: 100%;
}

.russia-main {
  fill: #c2ccd3;
  stroke: #b3bfc9;
  stroke-width: 1.2;
  stroke-linejoin: round;
  fill-rule: evenodd;
  vector-effect: non-scaling-stroke;
}

.russia-regions {
  fill: none;
  stroke: #b0bcc6;
  stroke-width: 0.7;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  opacity: 0.95;
}

.city-point {
  cursor: pointer;
  opacity: 0.68;
  transition: opacity 0.24s ease;
}

.city-point .hit-area {
  fill: transparent;
}

.city-point .pulse {
  fill: rgba(182, 50, 8, 0.16);
  stroke: rgba(182, 50, 8, 0.42);
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.city-point .pin-shadow {
  fill: rgba(51, 65, 85, 0.18);
  pointer-events: none;
}

.city-point .pin-body {
  fill: #b63208;
  stroke: #ffffff;
  stroke-width: 2;
  filter: drop-shadow(0 4px 7px rgba(51, 65, 85, 0.18));
  opacity: 0.92;
  transition: opacity 0.22s ease, transform 0.22s ease, filter 0.22s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.city-point .pin-hole {
  fill: #ffffff;
  pointer-events: none;
}

.city-point:hover .pin-body {
  opacity: 1;
  transform: translateY(-1px) scale(1.08);
  filter: drop-shadow(0 6px 9px rgba(51, 65, 85, 0.24));
}

.city-point:hover,
.city-point.active {
  opacity: 1;
}

.city-point.active .pin-shadow {
  fill: rgba(182, 50, 8, 0.32);
  transform: scale(1.35);
  transform-box: fill-box;
  transform-origin: center;
}

.city-point.active .pin-body {
  opacity: 1;
  transform: translateY(-3px) scale(1.34);
  stroke-width: 2.8;
  filter:
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.9))
    drop-shadow(0 8px 15px rgba(182, 50, 8, 0.42));
}

.city-point.active .pulse {
  opacity: 1;
  animation: pulse-ring 1.7s ease-out infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.85);
    opacity: 0.55;
  }
  72% {
    transform: scale(2.45);
    opacity: 0;
  }
  100% {
    transform: scale(2.55);
    opacity: 0;
  }
}

.info-card {
  width: min(92%, 980px);
  margin-inline: auto;
  background: var(--surface-strong);
  border: 1px solid #e8edf3;
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2vw, 28px);
  box-shadow: var(--shadow-card);
}

.info-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.info-head h2 {
  margin: 0;
  font-size: clamp(24px, 2vw, 31px);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

#cardDescription {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.67;
}

.info-grid {
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.info-grid div {
  background: #f7f9fb;
  border: 1px solid #edf2f6;
  border-radius: var(--radius-md);
  padding: 13px 14px;
  min-width: 0;
}

.info-grid dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a8695;
  margin: 0;
}

.info-grid dd {
  margin: 6px 0 0;
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}

#cardPhone {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.phone-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.phone-link,
.email-link {
  color: inherit;
  text-decoration: none;
}

.phone-link {
  user-select: all;
}

.phone-link:hover,
.email-link:hover {
  color: #a9402b;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.phone-copy {
  border: 1px solid #d9e1e8;
  border-radius: 999px;
  padding: 5px 10px;
  background: #ffffff;
  color: #5f6b79;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.phone-copy:hover {
  border-color: rgba(169, 64, 43, 0.45);
  color: #a9402b;
}

.phone-copy.copied {
  border-color: rgba(33, 131, 88, 0.3);
  background: #eef9f3;
  color: #18734a;
}

.contact-btn {
  margin-top: 20px;
  border: 0;
  border-radius: 999px;
  padding: 13px 24px;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ffffff;
  background: linear-gradient(135deg, #bf563f 0%, #a9402b 100%);
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(176, 65, 45, 0.3);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.contact-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(176, 65, 45, 0.35);
}

.contact-btn:active {
  transform: translateY(0);
}

.info-anim {
  animation: fade-slide 0.34s ease;
}

@keyframes fade-slide {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1140px) {
  .presence-shell {
    grid-template-columns: 1fr;
  }

  .city-panel {
    order: 0;
  }

  .city-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .city-item {
    padding: 11px 12px;
  }

  .city-item::before {
    left: 12px;
    top: auto;
    bottom: 0;
    width: calc(100% - 24px);
    height: 3px;
    transform: none;
  }

  .city-item.active::before {
    height: 3px;
  }
}

@media (max-width: 1023px) {
  .map-card {
    display: none;
  }
}

@media (max-width: 760px) {
  .presence-lab {
    padding-inline: 14px;
  }

  .city-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .city-item {
    padding: 9px 11px 9px 14px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .contact-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .city-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 14px;
  }

  .city-item {
    border: 1px solid #e8edf2;
    background: #ffffff;
    border-radius: 12px;
    justify-content: center;
    min-height: 44px;
    padding: 10px 12px;
    text-align: center;
  }

  .city-labels {
    width: 100%;
    text-align: center;
  }

  .city-name {
    font-size: 13px;
    line-height: 1.15;
  }

  .city-region,
  .city-meta {
    display: none;
  }

  .city-item::before {
    display: none;
  }

  .city-item.active {
    border-color: #e5b8ad;
  }
}

