/* Footer Block */
.footer {
  width: 100%;
  padding-top: var(--section-gap);
}

/* Карта */
.footer__map {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--container-padding-mobile);
  height: clamp(16rem, 30vw + 8rem, 27.4375rem); /* 256px → 439px */
  overflow: hidden;
  position: relative;
}

@media (min-width: 768px) {
  .footer__map {
    padding: 0 var(--container-padding-desktop);
  }
}



.footer__map iframe,
.footer__map-preview {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
  display: block;
}

.footer__map-preview {
  cursor: pointer;
}

/* Кнопка поверх карты (Made by ...) */
.footer__map-badge {
  position: absolute;
  bottom: clamp(2rem, 5vw + 1rem, 4.5rem);
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 1.5rem;
  background-color: #FFFFFF;
  border-radius: var(--radius-btn);
  color: var(--color-text-dark);
  font-family: var(--font-primary);
  font-size: var(--font-size-small);
  font-weight: 500;
  white-space: nowrap;
  z-index: 2;
}

/* Нижний бар */
.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.5rem, 2vw + 1rem, 2.5rem) var(--container-padding-mobile);
  max-width: 1440px;
  margin: 0 auto;
}

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__legal-text {
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-primary);
  font-size: clamp(0.875rem, 0.5vw + 0.75rem, 1.0625rem); /* 14px → 17px */
  line-height: 1.3;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__link {
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-primary);
  font-size: clamp(0.875rem, 0.5vw + 0.75rem, 1.0625rem);
  line-height: 1.3;
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: var(--color-text-primary);
}

/* Десктоп */
@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: clamp(1.5rem, 2vw + 1rem, 2.5rem) var(--container-padding-desktop);
  }

  .footer__legal {
    flex-direction: row;
    gap: clamp(1rem, 2vw + 0.5rem, 1.5rem);
  }

  .footer__links {
    flex-direction: row;
    gap: clamp(1rem, 2vw + 0.5rem, 1.5rem);
  }
}
