:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #080809;
  color: #f8f9fb;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 280px;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  min-height: 100svh;
}

.contact-page {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  place-items: center;
  background: #080809;
}

.background-poster,
.background-video,
.background-shade {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.background-poster,
.background-video {
  object-fit: cover;
  object-position: center;
}

.background-poster {
  z-index: -3;
}

.background-video {
  z-index: -2;
  opacity: 0;
  transition: opacity 800ms ease;
  pointer-events: none;
}

.has-video .background-video {
  opacity: 1;
}

.background-shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(0 0 0 / 12%) 10%, rgb(0 0 0 / 8%) 48%, rgb(0 0 0 / 42%) 100%),
    radial-gradient(ellipse at center, transparent 25%, rgb(0 0 0 / 18%) 100%);
  pointer-events: none;
}

.contact-links {
  position: absolute;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(24px, calc(env(safe-area-inset-bottom) + 18px));
  left: max(20px, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(560px, calc(100% - 40px));
  margin-inline: auto;
  padding: 10px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 18px;
  background: rgb(10 11 14 / 54%);
  box-shadow: 0 18px 55px rgb(0 0 0 / 34%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  backdrop-filter: blur(18px) saturate(125%);
}

.contact-link {
  display: flex;
  min-width: 0;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 10px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 12px;
  background: rgb(255 255 255 / 9%);
  color: #f8f9fb;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.contact-link svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.whatsapp-link svg {
  color: #6ee7a2;
}

.whatsapp-link svg path + path {
  fill: #6ee7a2;
  stroke: none;
}

.instagram-link svg {
  color: #f5c7ff;
}

.instagram-link .instagram-dot {
  fill: currentColor;
  stroke: none;
}

.maps-link svg {
  color: #9bc4ff;
}

.maps-link svg circle {
  fill: rgb(155 196 255 / 28%);
}

.contact-link:hover {
  transform: translateY(-2px);
  border-color: rgb(255 255 255 / 40%);
  background: rgb(255 255 255 / 15%);
}

.contact-link:focus-visible {
  outline: 3px solid #a9d1ff;
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .contact-links {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(14px, calc(env(safe-area-inset-bottom) + 10px));
    left: max(12px, env(safe-area-inset-left));
    width: calc(100% - 24px);
    gap: 7px;
    padding: 8px;
    border-radius: 15px;
  }

  .contact-link {
    min-height: 60px;
    flex-direction: column;
    gap: 5px;
    padding: 8px 4px;
    font-size: 14px;
  }

  .contact-link svg {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
