/* CONTACT overlay — shared across pages */
@import url("https://fonts.googleapis.com/css2?family=Anaheim&display=swap");

#contact-overlay-root {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(42, 42, 44, 0.72);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 1.5s ease, visibility 0s linear 1.5s;
}

#contact-overlay-root.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.45s ease, visibility 0s linear 0s;
}

.contact-overlay__card {
  width: 500px;
  height: 270px;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
  box-sizing: border-box;
  border-radius: 26px;
  background: #f2f2f4;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  padding: 28px 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transform: translateY(-120vh);
  transition: transform 1.5s cubic-bezier(0.4, 0, 1, 1);
}

#contact-overlay-root.is-open .contact-overlay__card {
  transform: translateY(0);
  transition: transform 2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.contact-overlay__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.contact-overlay__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  gap: 0.2rem;
}

.contact-overlay__brand-name {
  font-family: "Alata", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-size: 36px;
  letter-spacing: 0.02em;
  color: #0b0b0c;
  white-space: nowrap;
}

.contact-overlay__brand-slogan {
  font-family: "Agdasima", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-size: 12px;
  padding-left: 5px;
  letter-spacing: 0.24em;
  color: #909090;
  white-space: nowrap;
}

.contact-overlay__brand-slogan--mobile {
  display: none;
}

.contact-overlay__social {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.contact-overlay__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
}

.contact-overlay__social a:focus-visible {
  outline: 2px solid rgba(11, 11, 12, 0.35);
  outline-offset: 3px;
  border-radius: 4px;
}

.contact-overlay__social svg {
  width: 26px;
  height: 26px;
  display: block;
}

.contact-overlay__address {
  margin: 0;
  font-family: "Anaheim", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-size: 12.8px;
  line-height: 1.8;
  color: rgba(11, 11, 12, 0.52);
  font-style: normal;
  white-space: pre-line;
}

@media (max-width: 768px) {
  #contact-overlay-root {
    padding: 24px;
  }

  .contact-overlay__card {
    width: 288px;
    height: 485px;
    border-radius: 15px;
    padding: 44px 26px 34px;
  }

  .contact-overlay__top {
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
  }

  .contact-overlay__brand {
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .contact-overlay__brand-name {
    font-size: 36px;
    letter-spacing: 0.01em;
  }

  .contact-overlay__brand-slogan--desktop {
    display: none;
  }

  .contact-overlay__brand-slogan--mobile {
    display: inline-block;
    font-family: "Anaheim", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
    font-weight: 400;
    font-size: 12px;
    padding-left: 0;
    letter-spacing: 0.22em;
    color: rgba(11, 11, 12, 0.38);
  }

  .contact-overlay__social {
    margin-top: auto;
    margin-bottom: 30px;
    gap: 29px;
  }

  .contact-overlay__social a {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
  }

  .contact-overlay__social svg {
    width: 30px;
    height: 30px;
  }

  .contact-overlay__address {
    text-align: center;
    font-size: 12px;
    line-height: 2.15;
    color: rgba(11, 11, 12, 0.32);
  }
}
