/* R13: quiet, consistent contact choices across the landing. */
.contact-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  min-width: 0;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(246, 249, 247, .88);
  color: var(--forest);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease;
}

.contact-link:hover {
  border-color: #8facaa;
  background: #e8f1ed;
}

.contact-link:focus-visible,
.messenger-dialog .button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.contact-icon {
  width: 19px;
  height: 19px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Header links give a quick route without crowding the navigation. */
.contacts-header {
  flex: none;
  flex-wrap: nowrap;
  gap: 6px;
}

.contacts-header .contact-link {
  min-height: 44px;
  padding: 9px 11px;
  font-size: 12px;
}

.contacts-header .contact-icon {
  width: 17px;
  height: 17px;
}

@media (max-width: 1100px) {
  .contacts-header {
    display: none;
  }
}

/* Keep the photographic offer dominant; these are secondary paths. */
.contacts-hero {
  width: 100%;
  max-width: 390px;
  margin-top: 11px;
  gap: 8px;
}

.contacts-hero .contact-link {
  min-height: 40px;
  padding: 8px 14px;
  background: rgba(246, 249, 247, .78);
  font-size: 12px;
}

.footer-contacts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.footer-contacts h3 {
  margin: 0;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.25;
}

.contacts-footer {
  gap: 10px;
}

.contacts-footer .contact-link {
  justify-content: flex-start;
  min-height: 58px;
  padding: 9px 17px;
  background: transparent;
}

.contacts-footer .contact-link > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contacts-footer small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
}

/* Messenger shortcuts inside the enquiry dialog stay separate from the form. */
.contacts-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  width: 100%;
  margin-top: 10px;
}

.form-direct-contact{margin-top:20px}
.form-direct-contact>p{font-size:12px;color:var(--muted)}

.contacts-form .contact-link {
  width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  background: #fff;
  font-size: 12px;
}

/* The mobile dock remains reachable below the page and clears device insets. */
.contact-dock {
  display: none;
}

@media (max-width: 700px) {
  html{scroll-padding-bottom:calc(76px + env(safe-area-inset-bottom))}
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .contacts-hero {
    display: none;
  }

  .contacts-hero .contact-link {
    min-height: 44px;
  }

  .footer-contacts {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding-top: 26px;
    padding-bottom: 26px;
  }

  .contacts-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .contacts-footer .contact-link {
    width: 100%;
    min-height: 54px;
  }

  .contact-dock {
    position: fixed;
    z-index: 50;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px max(var(--gutter), env(safe-area-inset-right))
      calc(8px + env(safe-area-inset-bottom))
      max(var(--gutter), env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    background: rgba(246, 249, 247, .97);
    box-shadow: 0 -8px 24px rgba(8, 45, 53, .07);
  }

  .contact-dock .contact-link {
    width: 100%;
    min-height: 46px;
    padding: 9px 7px;
    background: #e8f1ed;
    font-size: 13px;
  }

  .contacts-dock{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-column:1/-1;gap:8px}

  body:has(dialog[open]) .contact-dock {
    display: none;
  }
}

/* MAX fallback: the draft message is easy to inspect and copy. */
.messenger-dialog {
  width: 480px;
  max-width: calc(100% - 24px);
  padding: 38px;
}

.messenger-dialog h2 {
  margin: 0 28px 12px 0;
  font-size: clamp(25px, 3vw, 32px);
  line-height: 1.15;
}

.messenger-dialog p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.messenger-dialog label {
  display: grid;
  gap: 8px;
  color: var(--forest);
  font-size: 13px;
  font-weight: 700;
}

.messenger-dialog textarea {
  display: block;
  width: 100%;
  min-height: 110px;
  padding: 12px 14px;
  border: 1px solid #8aa19e;
  border-radius: 5px;
  background: #fff;
  color: var(--forest);
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  resize: vertical;
}

.messenger-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.messenger-actions .button {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 14px;
  gap: 8px;
  font-size: 13px;
  text-align: center;
}

.messenger-status {
  margin: 11px 0 0 !important;
  color: var(--accent) !important;
  font-size: 12px !important;
}

.messenger-status:empty {
  display: none;
}

@media (max-width: 420px) {
  .messenger-dialog {
    padding: 32px 20px 24px;
  }

  .messenger-actions {
    grid-template-columns: 1fr;
  }

  .messenger-actions .button {
    min-height: 50px;
  }
}
