.gh-contact {
  --contact-accent: #b5112a;
  --contact-accent-hover: #8e0c20;
  --contact-ink: #211a1e;
  --contact-muted: #62575e;
  --contact-line: #e7dfe2;
  --contact-surface: #fff;
  --contact-canvas: #f7f5f5;
  color: var(--contact-ink);
  background: var(--contact-canvas);
  font-size: 1rem;
  line-height: 1.65;
}

.gh-contact__wrap {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}

.gh-contact__hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: white;
  background: #28181e;
}

.gh-contact__hero-photo {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 29%;
  background-image: linear-gradient(90deg, #28181e 2%, rgba(40, 24, 30, .75) 27%, rgba(40, 24, 30, .23) 61%),
    linear-gradient(0deg, rgba(40, 24, 30, .42), rgba(40, 24, 30, .10)),
    url('../images/gh-workshop.webp');
  background-position: center, center, 50% 55%;
  background-size: cover;
}

.gh-contact__hero-inner { padding-block: 20px 75px; }

.gh-contact__crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #e7d8dd;
  font-size: .875rem;
}

.gh-contact__crumb a { color: #f6e9ed; }
.gh-contact__crumb a:hover { text-decoration: underline; }
.gh-contact__intro { margin-block-start: 28px; }

.gh-contact__intro h1 {
  margin: 0;
  color: inherit;
  font-size: clamp(2.5rem, 5.4vw, 4rem);
  font-weight: 740;
  letter-spacing: .025em;
  line-height: 1.15;
}

.gh-contact__intro p {
  margin: 12px 0 0;
  color: #f6e9ed;
  font-size: clamp(1rem, 2vw, 1.125rem);
}

.gh-contact__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-start: 24px;
}

.gh-contact__button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.gh-contact__button svg { width: 21px; height: 21px; }
.gh-contact__button--primary { background: var(--contact-accent); color: white; }
.gh-contact__button--primary:hover { background: var(--contact-accent-hover); color: white; }
.gh-contact__button--primary:disabled { opacity: .64; cursor: wait; }
.gh-contact__button--light { border-color: #957d87; background: #3f2933; color: white; }
.gh-contact__button--light:hover { border-color: #e6d4db; background: #523643; color: white; }
.gh-contact__button--outline { border-color: #d5aeb7; background: white; color: var(--contact-accent-hover); }
.gh-contact__button--outline:hover { border-color: var(--contact-accent); background: #fcf0f2; color: var(--contact-accent-hover); }

.gh-contact :is(a, button, summary):focus-visible { outline: 2px solid var(--contact-accent); outline-offset: 4px; }
.gh-contact__hero a:focus-visible { outline-color: white; }

.gh-contact__body {
  position: relative;
  margin-block-start: -35px;
  padding-block-end: 56px;
}

.gh-contact__primary {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  gap: 24px;
}

.gh-contact__card {
  min-width: 0;
  border: 1px solid var(--contact-line);
  border-radius: 16px;
  background: var(--contact-surface);
}

.gh-contact__primary > .gh-contact__card {
  padding: clamp(21px, 3vw, 36px);
  box-shadow: 0 10px 30px rgba(46, 24, 34, .07);
}

.gh-contact__inquiry,
.gh-contact__form { scroll-margin-block-start: 12px; }

.gh-contact__inquiry { display: flex; flex-direction: column; }

.gh-contact__panel-heading { margin-block-end: 22px; }

.gh-contact :is(.gh-contact__panel-heading, .gh-contact__section-heading, .gh-contact__visit-info) h2 {
  margin: 0;
  color: var(--contact-ink);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 720;
  line-height: 1.32;
  letter-spacing: 0;
}

.gh-contact__panel-heading p { margin: 7px 0 0; color: var(--contact-muted); }

.gh-contact__form {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  gap: 15px;
}

.gh-contact__form-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.gh-contact__form .form-field { gap: 6px; min-width: 0; }
.gh-contact__form [hidden] { display: none; }
.gh-contact__form .form-field label { color: var(--contact-ink); font-size: .875rem; font-weight: 650; }
.gh-contact__optional { color: var(--contact-muted); font-weight: 400; }

.gh-contact__form .form-field :is(input, textarea) {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #d9cfd4;
  border-radius: 8px;
  background: #fdfcfc;
  color: var(--contact-ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.55;
}

.gh-contact__form .form-field :is(input, textarea)::placeholder { color: #796e75; opacity: 1; }
.gh-contact__form .form-field :is(input, textarea):focus { border-color: var(--contact-accent); outline: 2px solid #f3d4dc; }
.gh-contact__form .form-field [aria-invalid='true'] { border-color: var(--contact-accent); }
.gh-contact__form .form-field textarea { min-height: 104px; resize: vertical; }
.gh-contact__description,
.gh-contact__description textarea { flex: 1 0 auto; }

.gh-contact__captcha.cap-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.gh-contact__captcha .captcha-refresh {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid #d9cfd4;
  border-radius: 8px;
  background: white;
  color: var(--contact-muted);
  cursor: pointer;
  font-size: .875rem;
  white-space: nowrap;
}

.gh-contact__captcha .captcha-refresh:hover { border-color: var(--contact-accent); }
.gh-contact__captcha .codeimg { display: block; width: min(104px, 23vw); height: auto; }
.gh-contact__help { margin: 1px 0 0; color: var(--contact-muted); font-size: .875rem; }
.gh-contact__help a { color: var(--contact-accent-hover); text-decoration: underline; text-underline-offset: 3px; }

.gh-contact__submit {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 15px;
  margin-block-start: 3px;
  color: var(--contact-muted);
  font-size: .875rem;
}

.gh-contact__inquiry .form-status { font-size: .875rem; }
.gh-contact__inquiry .form-status:empty { display: block; margin: 0; }

.gh-contact__hotline {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 17px;
  border: 1px solid #f2dce3;
  border-radius: 11px;
  background: #fdf1f4;
}

.gh-contact__icon {
  display: grid;
  flex: 0 0 38px;
  min-height: 38px;
  place-items: center;
  border-radius: 8px;
  background: #f7dce4;
  color: var(--contact-accent-hover);
}

.gh-contact__icon svg { width: 23px; height: 23px; }
.gh-contact__hotline p { margin: 0; color: var(--contact-ink); font-size: .875rem; font-weight: 650; }

.gh-contact__hotline a {
  display: inline-block;
  color: var(--contact-accent-hover);
  font-size: clamp(1.2rem, 2.1vw, 1.75rem);
  font-weight: 720;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.gh-contact__hotline a:hover { text-decoration: underline; text-underline-offset: 3px; }
.gh-contact__hotline .gh-contact__muted { display: block; margin-block-start: 3px; }
.gh-contact__muted { color: var(--contact-muted); font-size: .875rem; }

.gh-contact__line { margin-block-start: 20px; }
.gh-contact__line + .gh-contact__line { padding-block-start: 18px; border-block-start: 1px solid var(--contact-line); }
.gh-contact__line h3 { margin: 0; font-size: 1.0625rem; line-height: 1.4; }
.gh-contact__line p { margin: 2px 0 0; }

.gh-contact__people { display: grid; gap: 3px; margin: 7px 0 0; padding: 0; list-style: none; }
.gh-contact__people a { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 7px; background: #f8f5f6; color: var(--contact-ink); }
.gh-contact__people a:hover { background: #f9ebef; color: var(--contact-accent-hover); }
.gh-contact__people b { color: var(--contact-accent-hover); font-weight: 650; font-variant-numeric: tabular-nums; }

.gh-contact__qr { margin-block-start: 15px; }
.gh-contact__qr-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-block-end: 7px; color: var(--contact-muted); font-size: .875rem; }
.gh-contact__qr-heading a { color: var(--contact-accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.gh-contact__qr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }

.gh-contact__qr-link {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: 1px solid var(--contact-line);
  border-radius: 8px;
  background: #fdfcfc;
  color: var(--contact-ink);
  cursor: zoom-in;
  font-size: .875rem;
  font-weight: 650;
}

.gh-contact__qr-link:hover { border-color: #d5aeb7; background: #fff5f7; color: var(--contact-accent-hover); }
.gh-contact__qr-link img { display: block; width: min(100%, 112px); height: auto; }

.gh-contact__qr-dialog {
  width: min(424px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--contact-line);
  border-radius: 16px;
  background: var(--contact-surface);
  color: var(--contact-ink);
  box-shadow: 0 20px 65px rgba(25, 12, 18, .26);
}

.gh-contact__qr-dialog::backdrop { background: rgba(25, 12, 18, .65); }
.gh-contact__qr-dialog-content { padding: clamp(16px, 4vw, 24px); }
.gh-contact__qr-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-block-end: 12px; }
.gh-contact__qr-dialog-heading h2 { margin: 0; font-size: 1.25rem; line-height: 1.35; }
.gh-contact__qr-dialog-heading button { min-height: 44px; padding: 6px 12px; border: 1px solid var(--contact-line); border-radius: 8px; background: white; color: var(--contact-accent-hover); cursor: pointer; font: inherit; font-size: .875rem; }
.gh-contact__qr-dialog-heading button:hover { background: #fff5f7; }
.gh-contact__qr-dialog img { display: block; width: min(320px, 100%); height: auto; margin-inline: auto; }

.gh-contact .gh-contact__company-details summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 8px 15px;
  list-style: none;
  cursor: pointer;
}

.gh-contact .gh-contact__company-details summary::-webkit-details-marker { display: none; }
.gh-contact .gh-contact__company-details summary::after { content: ''; flex: 0 0 8px; width: 8px; height: 8px; margin: -4px 3px 0 auto; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.gh-contact .gh-contact__company-details[open] summary::after { margin-top: 4px; transform: rotate(225deg); }

.gh-contact__section { margin-block-start: 37px; }
.gh-contact__section-heading { margin-block-end: 15px; }
.gh-contact__email-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gh-contact__email { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 20px; color: var(--contact-ink); transition: border-color .18s ease, background-color .18s ease; }
.gh-contact__email:hover { border-color: #d5aeb7; background: #fff9fa; color: var(--contact-ink); }
.gh-contact__email svg { width: 25px; height: 25px; margin-block-end: 6px; color: var(--contact-accent); }
.gh-contact__email strong { font-size: 1.0625rem; }
.gh-contact__email-address { color: var(--contact-accent-hover); font-size: .9375rem; font-weight: 650; overflow-wrap: anywhere; }

.gh-contact__visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.gh-contact__visit-info { align-self: center; padding: clamp(23px, 3vw, 36px); }
.gh-contact__visit-info :is(.gh-contact__company, address) { margin: 7px 0 0; }
.gh-contact__visit-info .gh-contact__company { margin-block-start: 14px; font-weight: 650; }
.gh-contact__visit-info address { color: var(--contact-muted); font-style: normal; }
.gh-contact__map-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-block-start: 18px; }
.gh-contact__map-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--contact-accent-hover); font-size: .9375rem; text-decoration: underline; text-underline-offset: 3px; }
.gh-contact__map-view { display: flex; min-width: 0; min-height: 384px; align-items: stretch; overflow: hidden; border-inline-start: 1px solid var(--contact-line); border-radius: 0 15px 15px 0; background: #f0f1f2; }
.gh-contact__map { display: block; width: 100%; min-width: 0; border: 0; }

.gh-contact__company-details { margin-block-start: 14px; padding-inline: 22px; }
.gh-contact .gh-contact__company-details summary { min-height: 56px; flex-wrap: wrap; padding-block: 12px; }
.gh-contact__company-details summary span { color: var(--contact-muted); font-size: .875rem; }
.gh-contact__company-copy { max-width: 100%; padding-block: 16px 20px; border-block-start: 1px solid var(--contact-line); }

@media (min-width: 1200px) {
  .gh-contact__hero-inner { padding-block-start: calc(var(--header-height, 80px) + 20px); }
}

@media (max-width: 1000px) {
  .gh-contact__email-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .gh-contact__wrap { width: calc(100% - 40px); }
  .gh-contact__hero-inner { padding-block: 17px 54px; }
  .gh-contact__hero-photo { inset-inline-start: 0; background-image: linear-gradient(90deg, #28181e 1%, rgba(40, 24, 30, .84) 50%, rgba(40, 24, 30, .49)), url('../images/gh-workshop.webp'); }
  .gh-contact__primary { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .gh-contact__body { margin-block-start: -24px; padding-block-end: 38px; }
  .gh-contact__section { margin-block-start: 28px; }
}

@media (max-width: 760px) {
  .gh-contact__visit { grid-template-columns: minmax(0, 1fr); }
  .gh-contact__map-view { min-height: 334px; border-inline-start: 0; border-block-start: 1px solid var(--contact-line); border-radius: 0 0 15px 15px; }
}

@media (max-width: 580px) {
  .gh-contact__wrap { width: calc(100% - 32px); }
  .gh-contact__intro { margin-block-start: 22px; }
  .gh-contact__hero-actions { gap: 8px; margin-block-start: 18px; }
  .gh-contact__hero-actions .gh-contact__button { padding-inline: 13px; }
  .gh-contact__form { gap: 12px; }
  .gh-contact__form-pair { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .gh-contact__hotline a { font-size: 1.5rem; }
}

@media (max-width: 460px) {
  .gh-contact__email-grid { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .gh-contact__email { padding: 15px 18px; }
  .gh-contact__email svg { display: none; }
  .gh-contact .gh-contact__company-details summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
  .gh-contact__company-details summary span { grid-column: 1; }
  .gh-contact .gh-contact__company-details summary::after { grid-column: 2; grid-row: 1 / span 2; }
}

@media (prefers-reduced-motion: reduce) {
  .gh-contact *, .gh-contact *::before, .gh-contact *::after { transition: none; }
}
