.contacts-page {
  background: var(--color-forest);
}

.contacts-main {
  padding-top: clamp(5.6rem, 8vw, 7.2rem);
  padding-bottom: 2rem;
}

.contacts-section {
  padding-top: 1.5rem;
}

.contacts-shell {
  background: linear-gradient(180deg, rgba(64, 83, 76, 0.96), rgba(64, 83, 76, 0.92));
}

.contacts-shell--hero {
  padding-top: clamp(2rem, 3vw, 3rem);
}

.contacts-hero {
  display: block;
}

.contacts-title {
  max-width: 18ch;
}

.contacts-description {
  max-width: 43rem;
}

.contacts-office-card {
  padding: 1.3rem 1.28rem 1.35rem;
  border: 1px solid rgba(238, 223, 211, 0.16);
  border-radius: 1.55rem;
  background:
    linear-gradient(145deg, rgba(238, 223, 211, 0.09), rgba(99, 103, 118, 0.05)),
    rgba(64, 83, 76, 0.78);
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
}

.contacts-office-card__row span {
  display: inline-block;
  color: var(--color-tan);
  font-size: 0.9rem;
  font-weight: 620;
  letter-spacing: 0.03em;
}

.contacts-office-card__row a,
.contacts-office-card__row p {
  display: block;
  margin-top: 0.7rem;
  line-height: 1.5;
  color: var(--color-cream);
}

.contacts-section-title {
  max-width: 14ch;
}

.contacts-map-layout {
  margin-top: 1.55rem;
  display: grid;
  grid-template-columns: minmax(18rem, 0.82fr) minmax(0, 1.18fr);
  gap: 1rem;
  align-items: stretch;
}

.contacts-office-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contacts-map-frame {
  position: relative;
  min-height: 31rem;
  border: 1px solid rgba(238, 223, 211, 0.18);
  border-radius: 1.8rem;
  overflow: hidden;
  background: rgba(64, 83, 76, 0.84);
  box-shadow: 0 1.3rem 2.7rem rgba(16, 23, 21, 0.18);
}

.contacts-map-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(238, 223, 211, 0.05);
  pointer-events: none;
}

.contacts-map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem;
  background:
    linear-gradient(180deg, rgba(64, 83, 76, 0.88), rgba(64, 83, 76, 0.82)),
    radial-gradient(circle at 50% 50%, rgba(238, 223, 211, 0.06), transparent 58%);
  z-index: 1;
  transition: opacity 0.3s ease;
}

.contacts-map-placeholder__content {
  max-width: 19rem;
  text-align: center;
}

.contacts-map-placeholder__eyebrow {
  margin: 0;
  color: rgba(238, 223, 211, 0.62);
  font-size: 0.82rem;
  font-weight: 620;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contacts-map-placeholder__title {
  margin: 0.75rem 0 0;
  color: var(--color-cream);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.35;
}

.contacts-map-placeholder__text {
  margin: 0.65rem 0 0;
  color: rgba(238, 223, 211, 0.78);
  line-height: 1.55;
}

.contacts-map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  opacity: 0;
  transition: opacity 0.32s ease;
}

.contacts-map-frame[data-map-loaded="true"] .contacts-map-placeholder {
  opacity: 0;
  pointer-events: none;
}

.contacts-map-frame[data-map-loaded="true"] iframe {
  opacity: 1;
}

.contacts-map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.7rem;
  height: 2.7rem;
  transform: translate(-50%, -92%);
  z-index: 2;
  pointer-events: none;
}

.contacts-map-pin::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: rgba(186, 145, 123, 0.94);
  box-shadow:
    0 0 0 0.12rem rgba(255, 255, 255, 0.24),
    0 0.55rem 1.1rem rgba(16, 23, 21, 0.24);
}

.contacts-map-pin__dot {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  z-index: 1;
}

.contacts-map-open {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(238, 223, 211, 0.15);
  background: rgba(64, 83, 76, 0.72);
  backdrop-filter: blur(0.75rem);
  -webkit-backdrop-filter: blur(0.75rem);
  color: var(--color-cream);
  font-size: 0.95rem;
  font-weight: 570;
  text-align: center;
  box-shadow: 0 0.8rem 1.6rem rgba(16, 23, 21, 0.18);
}

.contacts-map-open:hover,
.contacts-map-open:focus-visible {
  border-color: rgba(238, 223, 211, 0.22);
  background: rgba(64, 83, 76, 0.82);
}

.contacts-office-card {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.contacts-office-card__row {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(238, 223, 211, 0.08);
}

.contacts-office-card__row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contacts-office-card__row a,
.contacts-office-card__row p {
  margin: 0.58rem 0 0;
  line-height: 1.65;
  color: rgba(238, 223, 211, 0.82);
}

.contacts-office-card__row a {
  color: var(--color-cream);
}

.contacts-call-button {
  min-height: 3.05rem;
  padding: 0.82rem 1rem;
  border: 1px solid rgba(186, 145, 123, 0.26);
  border-radius: 1.1rem;
  color: var(--color-cream);
  background: var(--color-earth);
  box-shadow: none;
  transition: transform 0.22s ease, background-color 0.22s ease;
}

@media (min-width: 64.001rem) {
  .contacts-call-button {
    margin-top: auto;
  }
}

.contacts-call-button:hover,
.contacts-call-button:focus-visible {
  background: var(--color-earth);
  box-shadow: none;
  transform: translateY(-0.1rem);
  outline: none;
}

body.contacts-page.has-modal-open {
  overflow: hidden;
}

.contacts-detail-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(238, 223, 211, 0.2);
  border-radius: 2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022) 42%, rgba(255, 255, 255, 0.01) 100%),
    rgba(255, 255, 255, 0.012);
  box-shadow:
    0 1rem 2.4rem rgba(15, 22, 20, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(15, 22, 20, 0.12);
  backdrop-filter: blur(1.1rem) saturate(132%);
  -webkit-backdrop-filter: blur(1.1rem) saturate(132%);
}

.contacts-detail-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 34%);
  pointer-events: none;
}

.contacts-detail-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -26% 34%;
  height: 52%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.026) 0%, transparent 72%);
  filter: blur(1.65rem);
  pointer-events: none;
}

.contacts-page__kicker {
  color: rgba(238, 223, 211, 0.76);
}

.contacts-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.35rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity;
}

.contacts-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.contacts-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 9, 0.72);
  backdrop-filter: blur(0.92rem) saturate(112%);
  -webkit-backdrop-filter: blur(0.92rem) saturate(112%);
  opacity: 0;
  transition: opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.contacts-modal.is-open .contacts-modal__backdrop {
  opacity: 1;
}

.contacts-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 34rem);
  max-height: calc(100vh - 2.7rem);
  padding: 1.2rem;
  overflow-y: auto;
  scrollbar-width: none;
  opacity: 0;
  transform: translate3d(0, 0.62rem, 0) scale(0.992);
  transition:
    opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.contacts-modal__dialog::-webkit-scrollbar {
  display: none;
}

.contacts-modal.is-open .contacts-modal__dialog {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.contacts-modal__close {
  position: absolute;
  top: 0.95rem;
  right: 0.95rem;
  z-index: 2;
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(238, 223, 211, 0.14);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  transition: transform 0.22s ease, background-color 0.22s ease;
}

.contacts-modal__close:hover,
.contacts-modal__close:focus-visible {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.04));
  transform: translateY(-0.05rem);
  outline: none;
}

.contacts-modal__close span {
  position: absolute;
  width: 0.95rem;
  height: 1.5px;
  border-radius: 999px;
  background: rgba(238, 223, 211, 0.94);
}

.contacts-modal__close span:first-child {
  transform: rotate(45deg);
}

.contacts-modal__close span:last-child {
  transform: rotate(-45deg);
}

.contacts-modal__view {
  position: relative;
  z-index: 1;
}

.contacts-modal__view[hidden] {
  display: none;
}

.contacts-modal__title {
  margin-top: 0.4rem;
  font-size: clamp(1.85rem, 2.6vw, 2.45rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.contacts-modal__lead {
  max-width: 28rem;
  margin-top: 0.7rem;
  color: rgba(238, 223, 211, 0.82);
  line-height: 1.58;
}

.contacts-modal__view--success {
  min-height: 14rem;
  display: grid;
  align-content: center;
  padding: 1.2rem 0.15rem 0.4rem;
}

.contacts-callback-form {
  display: grid;
  gap: 0.78rem;
  margin-top: 1.15rem;
}

.contacts-callback-form label {
  display: grid;
  gap: 0.4rem;
  color: rgba(238, 223, 211, 0.82);
}

.contacts-callback-form input,
.contacts-callback-form textarea {
  width: 100%;
  padding: 0.92rem 1rem;
  border: 1px solid rgba(238, 223, 211, 0.1);
  border-radius: 1rem;
  color: var(--color-cream);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(0.8rem);
  -webkit-backdrop-filter: blur(0.8rem);
}

.contacts-callback-form textarea {
  min-height: 7rem;
  resize: vertical;
}

.contacts-callback-form__meta {
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(238, 223, 211, 0.54);
}

.contacts-callback-form__meta--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.contacts-callback-form input::placeholder,
.contacts-callback-form textarea::placeholder {
  color: rgba(238, 223, 211, 0.42);
}

.contacts-callback-form__status {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(238, 223, 211, 0.84);
}

.contacts-callback-form__status[data-tone="error"] {
  color: #f1c095;
}

.contacts-callback-form__status[data-tone="success"] {
  color: #9bd6b0;
}

.contacts-callback-form__submit {
  width: 100%;
  background: var(--color-earth);
  box-shadow: none;
}

.contacts-callback-form__submit:hover,
.contacts-callback-form__submit:focus-visible {
  background: var(--color-earth);
  box-shadow: none;
}

.contacts-callback-form__submit:disabled {
  opacity: 0.68;
  cursor: wait;
}

@media (max-width: 64rem) {
  .contacts-map-layout {
    grid-template-columns: 1fr;
  }

  .contacts-office-stack {
    order: 1;
  }

  .contacts-map-frame {
    order: 2;
  }

  .contacts-call-button {
    margin-top: 0;
  }
}

@media (max-width: 40rem) {
  .contacts-main {
    padding-top: clamp(4rem, 10vw, 4.8rem);
  }

  .contacts-title,
  .contacts-section-title {
    max-width: 100%;
  }

  .contacts-map-frame {
    min-height: 23rem;
    border-radius: 1.45rem;
  }

  .contacts-map-pin {
    width: 2.45rem;
    height: 2.45rem;
  }

  .contacts-map-open {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    min-height: 2.75rem;
    padding-inline: 0.85rem;
    font-size: 0.9rem;
  }

  .contacts-modal {
    padding: 0.85rem;
  }

  .contacts-modal__dialog {
    max-height: calc(100vh - 1.7rem);
    padding: 1rem;
    border-radius: 1.45rem;
  }

  .contacts-modal__close:hover,
  .contacts-modal__close:focus-visible,
  .contacts-call-button:hover,
  .contacts-call-button:focus-visible {
    transform: none;
  }
}
