/* ========== Footer Styles ========== */

.Footer {
  color: var(--color-black);
  background: var(--color-brand);
  border-radius: var(--border-rad);
  overflow: hidden;
  padding: 72px 0;
}

.Footer a {
  color: var(--color-black);
}

.Footer__Wrap {
  gap: 76px;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.Footer__Address {
  display: flex;
  align-items: center;
  text-align: center;
  flex-direction: column;
}

.Footer__Address p {
  margin-bottom: 16px;
}

.Footer__Address p:last-of-type {
  margin-bottom: 0;
}

.Footer__Address-Button {
  margin-top: 24px;
}

.Footer__Contacts {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.Footer__Contacts p {
  margin-top: 16px;
}

.Footer__Socials {
  gap: 16px;
  display: flex;
  align-items: center;
}

.Footer__Socials a:hover {
  transform: scale(0.97);
}

.Footer__Copy {
  gap: 32px;
  display: flex;
}

.Footer__Copy a {
  text-decoration: underline;
  text-decoration-color: transparent;
}

.Footer__Copy a:hover {
  text-decoration-color: var(--color-black);
}

.footer-note {
  text-align: center;
  color: #777;
  font-size: 0.875em;
  line-height: 1.4;
  width: 100%;
  margin: 20px 0;
}

/* ========== Map Fullscreen Styles (Footer-specific) ========== */
.Map-Fullscreen,
.Footer__Map-Fullscreen {
  inset: 0;
  opacity: 0;
  padding: 16px 16px 64px;
  z-index: 1000;
  position: fixed;
  pointer-events: none;
  transform: scale(0.95);
  background: var(--color-black-90);
  transition: var(--transition-main);
  backdrop-filter: blur(16px);
}

.Map-Fullscreen .ymaps3x0--map-copyrights_right {
  display: none;
}

.Map-Fullscreen__Inner {
  width: 100%;
  height: 100%;
  position: relative;
}

.Map-Fullscreen__Wrap {
  width: 100%;
  height: 100%;
  border-radius: var(--border-rad);
  overflow: hidden;
}

.Footer__Map {
  width: 100%;
  height: 100%;
  min-height: 400px;
}

.Map-Fullscreen__Button {
  left: 50%;
  margin-top: -30px;
  transform: translateX(-50%);
  padding: 20px;
  position: absolute;
}

.Map-Fullscreen__Button:hover {
  transform: translateX(-50%) scale(0.99) translateZ(0);
}

.Map-Fullscreen.--Show,
.Footer__Map-Fullscreen.--Show {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
}

@media screen and (max-width: 1240px) {
  .Footer__Wrap {
    gap: 60px;
  }
}

@media screen and (max-width: 1023px) {
  .Footer__Wrap {
    gap: 48px;
  }
}

@media screen and (max-width: 767px) {
  .Footer {
    padding: 24px 0;
  }
  .Footer__Logo {
    display: flex;
    justify-content: center;
  }
  .Footer__Wrap {
    text-align: center;
    align-items: normal;
  }
  .Footer__Address p {
    max-width: 312px;
  }
  .Footer__Address-Button {
    width: 100%;
  }
  .Footer__Contacts {
    max-width: 312px;
    margin-left: auto;
    margin-right: auto;
  }
  .Footer__Socials {
    justify-content: center;
  }
  .Footer__Copy {
    gap: 8px;
    align-items: center;
    flex-direction: column;
  }
  .Map-Fullscreen {
    padding: 12px 12px 64px;
  }
  .Map-Fullscreen__Button {
    padding: 18px;
    width: auto;
  }
}
