/* ============================
   Секция «Мы на картах» (.map)
   1rem = 10px при ширине макета 1920px
   ============================ */

.map {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7.4rem 0 3.8rem;
  background: linear-gradient(to bottom, #687f63 0%, #87a580 50%, #687f63 100%);
}

/* --- Декоративные еловые ветки --- */
.map__decor {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.map__decor--branch-tl {
  width: 27.78rem;
  height: 59.09rem;
  left: -5.54rem;
  top: -11.97rem;
  transform: rotate(-55.88deg) scaleY(-1);
}

.map__decor--branch-br {
  width: 27.78rem;
  height: 59.09rem;
  right: 2.77rem;
  top: 64.93rem;
  transform: rotate(124.12deg) scaleY(-1);
}

.map__decor--cones-bl {
  width: 41.3rem;
  height: 27.5rem;
  left: -12.7rem;
  top: 80.74rem;
  transform: rotate(-20.41deg) scaleY(-1);
}

.map__decor--cones-tr {
  width: 41.3rem;
  height: 27.5rem;
  right: -12.1rem;
  top: -0.66rem;
  transform: rotate(159.59deg) scaleY(-1);
}

/* --- Заголовок секции --- */
.map__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: 'Montserrat Alternates', sans-serif;
  font-weight: 900;
  font-size: 10rem;
  color: #ffffff;
  text-align: center;
}

/* --- Интерактивная карта --- */
.map__frame {
  position: relative;
  z-index: 1;
  display: block;
  width: 105.7rem;
  height: 58.2rem;
  margin-top: 2.9rem;
  border: 0;
  background: #4d4747;
}

/* --- Подпись под картой --- */
.map__caption {
  position: relative;
  z-index: 1;
  width: 134.4rem;
  max-width: 100%;
  margin: 0 0 3.7rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 3.2rem;
  color: #fff9f9;
  text-align: center;
}

/* ============================
   Мобильная версия
   ============================ */
@media (max-width: 768px) {
  .map {
    padding: 4rem 1.6rem;
  }

  .map__decor {
    display: none;
  }

  .map__title {
    font-size: 3.6rem;
  }

  .map__frame {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    margin-top: 2rem;
  }

  .map__caption {
    width: 100%;
    margin: 1.6rem 0 2.4rem;
    font-size: 1.7rem;
  }
}
