/* v4: кнопка маршрута — те же классы, что у форм: .btn .btn--border; позиция ближе к верху (тёмная полоса карты) */

footer {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.section-map {
  position: relative;
  flex: 0 0 auto;
}

.section-map__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 305px;
}

.map-route-btn {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 200;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: #ededed;
  pointer-events: auto;
  /* фон/бордер/шрифт — .btn.btn--border; тень для читаемости на карте */
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.map-route-btn:hover,
.map-route-btn:focus {
  text-decoration: none;
  color: #ededed;
}

.site-footer {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 22px 30px 26px;
  background: var(--bg-main-color, #111112);
  border-top: 1px solid #343434;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 17px;
  color: var(--primary-color, #ededed);
}

.site-footer .footer__nav {
  padding-top: 20px;
  padding-bottom: 20px;
  background: rgba(17, 17, 18, 0.85);
  border-radius: 20px;
  margin-bottom: 18px;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer .footer__nav + .container {
  opacity: 0.5;
}

@media screen and (max-width: 767px) {
  .map-route-btn {
    top: 8px;
    padding-left: 22px;
    padding-right: 22px;
  }

  .site-footer {
    padding: 16px 15px 22px;
  }

  .site-footer .footer__nav {
    border-radius: 12px;
    margin-bottom: 14px;
  }
}
