/* v4 contact dock: compact desktop rail with a touch-friendly mobile panel. */
.contact-dock {
  position: fixed;
  z-index: 45;
  top: 50%;
  right: 0;
  width: 78px;
  transform: translateY(-50%);
  pointer-events: none;
}
.contact-dock__rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  padding: 8px 7px;
  border: 1px solid rgba(255,255,255,.72);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 8px 24px rgba(16, 45, 82, .16);
  pointer-events: auto;
}
.contact-dock__button,
.contact-dock__top {
  display: flex;
  min-height: 70px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  line-height: 1.25;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.contact-dock__button:hover,
.contact-dock__button:focus-visible {
  background: #0565d0;
  outline: none;
  transform: translateX(-2px);
}
.contact-dock__glyph {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 50%;
  font-size: 10px;
  line-height: 1;
}
.contact-dock__top {
  min-height: 42px;
  background: #fff;
  color: var(--blue);
  border: 1px solid #dbe6f4;
  font-size: 21px;
  line-height: 1;
}
.contact-dock__top:hover,
.contact-dock__top:focus-visible {
  background: #f2f7fd;
  outline: none;
}
.contact-panel {
  position: fixed;
  top: 50%;
  right: 90px;
  width: min(320px, calc(100vw - 116px));
  overflow: hidden;
  border: 1px solid #dfe8f3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(16, 45, 82, .2);
  opacity: 0;
  pointer-events: none;
  transform: translate(22px, -50%);
  transition: opacity .2s ease, transform .2s ease;
}
.contact-panel[hidden] {
  display: none;
}
.contact-dock.is-open .contact-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -50%);
}
.contact-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 20px 15px;
  background: #f5f8fc;
}
.contact-panel__head small {
  color: #8392a3;
  font: 600 10px/1.2 Arial, sans-serif;
  letter-spacing: 1.5px;
}
.contact-panel__head h2 {
  margin: 8px 0 0;
  color: #1b2028;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}
.contact-panel__close {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #d5e0ec;
  border-radius: 50%;
  background: #fff;
  color: #637287;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.contact-panel__close:hover,
.contact-panel__close:focus-visible {
  color: var(--blue);
  outline: none;
}
.contact-panel__tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid #e5ebf2;
}
.contact-panel__tabs button {
  min-height: 44px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: #fff;
  color: #697687;
  font-size: 13px;
  cursor: pointer;
}
.contact-panel__tabs button[aria-selected="true"] {
  border-bottom-color: var(--blue);
  color: var(--blue);
  font-weight: 500;
}
.contact-panel__body {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 20px 22px 22px;
  text-align: center;
}
.contact-panel__qr {
  display: block;
  width: 184px;
  height: 184px;
  object-fit: contain;
  border: 1px solid #e3eaf2;
  background: #fff;
}
.contact-panel__body strong {
  margin-top: 15px;
  color: #252b34;
  font-size: 16px;
  font-weight: 500;
}
.contact-panel__body p {
  margin: 5px 0 0;
  color: #778392;
  font-size: 12px;
  line-height: 1.7;
}
.contact-panel__note {
  margin-top: 14px;
  color: #a2abb6;
  font-size: 10px;
  line-height: 1.5;
}
@media (max-width: 560px) {
  .contact-dock {
    top: 50%;
    right: 0;
    bottom: auto;
    width: 66px;
    transform: translateY(-50%);
  }
  .contact-dock__rail {
    gap: 6px;
    padding: 6px;
    border-radius: 7px;
    border: 1px solid rgba(255,255,255,.8);
  }
  .contact-dock__button {
    min-height: 58px;
    font-size: 10px;
  }
  .contact-dock__glyph {
    width: 23px;
    height: 23px;
    font-size: 9px;
  }
  .contact-dock__top {
    min-height: 34px;
    font-size: 18px;
  }
  .contact-panel {
    top: auto;
    right: 12px;
    bottom: 16px;
    width: calc(100vw - 24px);
    transform: translateY(22px);
  }
  .contact-dock.is-open .contact-panel {
    transform: translateY(0);
  }
  .contact-panel__qr {
    width: min(184px, 62vw);
    height: min(184px, 62vw);
  }
}
@media (prefers-reduced-motion: reduce) {
  .contact-panel,
  .contact-dock__button {
    transition: none;
  }
}
