/* VΛΖΛ — floating contact dock (home + shop). */
.contact-dock {
  --dock-olive: #3f4935;
  --dock-ink: #1c1b19;
  --dock-paper: #fbf8f3;
  --dock-line: rgba(63, 73, 53, 0.14);
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.dock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 52px;
  height: 52px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(31, 36, 26, 0.22), 0 2px 6px rgba(31, 36, 26, 0.12);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 220ms cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}
.dock-btn svg {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}
.dock-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(31, 36, 26, 0.26), 0 3px 8px rgba(31, 36, 26, 0.12);
}
.dock-btn:active {
  transform: translateY(0) scale(0.97);
}
.dock-btn:focus-visible {
  outline: 2px solid var(--dock-olive);
  outline-offset: 3px;
}
.dock-telegram {
  background: #2aabee;
}
.dock-max {
  background: linear-gradient(140deg, #3c7bff 0%, #5b47e8 55%, #9a3cf0 100%);
}
.dock-call {
  width: auto;
  padding: 0 22px 0 18px;
  background: var(--dock-olive);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.dock-call svg {
  width: 22px;
  height: 22px;
}
.contact-dock.is-open .dock-call {
  background: #2f3727;
}
.contact-pop {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  width: min(360px, calc(100vw - 32px));
  padding: 18px 18px 14px;
  border: 1px solid var(--dock-line);
  border-radius: 22px;
  background: var(--dock-paper);
  color: var(--dock-ink);
  box-shadow: 0 24px 60px rgba(31, 36, 26, 0.24), 0 4px 14px rgba(31, 36, 26, 0.1);
  transform-origin: bottom right;
  animation: dock-pop-in 260ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes dock-pop-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
    filter: blur(4px);
  }
}
.contact-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.contact-pop-head p {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.1;
}
.contact-pop-close {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--dock-ink);
  cursor: pointer;
}
.contact-pop-close:hover {
  background: rgba(63, 73, 53, 0.08);
}
.contact-pop-close svg {
  width: 20px;
  height: 20px;
}
.contact-studio {
  padding: 14px 0;
  border-top: 1px solid var(--dock-line);
}
.contact-studio:first-of-type {
  border-top: 0;
}
.contact-studio p {
  margin: 0;
}
.contact-studio-name {
  font-size: 14px;
  font-weight: 600;
}
.contact-studio-meta {
  margin-top: 3px !important;
  font-size: 12.5px;
  line-height: 1.5;
  color: #69645c;
}
.contact-studio-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.contact-call {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--dock-olive);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  transition: background 200ms ease;
}
.contact-call:hover {
  background: #333c2a;
}
.contact-call svg {
  width: 18px;
  height: 18px;
}
.contact-route {
  display: inline-grid;
  place-items: center;
  width: 46px;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid var(--dock-line);
  color: var(--dock-olive);
  background: #fff;
}
.contact-route:hover {
  background: #f1efe8;
}
.contact-route svg {
  width: 20px;
  height: 20px;
}
.contact-call:focus-visible,
.contact-route:focus-visible,
.contact-pop-close:focus-visible {
  outline: 2px solid var(--dock-olive);
  outline-offset: 2px;
}
.contact-pop-foot {
  margin: 4px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--dock-line);
  font-size: 12px;
  color: #69645c;
}
@media (max-width: 600px) {
  .contact-dock {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    gap: 8px;
  }
  .dock-btn {
    width: 48px;
    height: 48px;
  }
  .dock-call {
    width: auto;
    padding: 0 16px 0 14px;
    font-size: 13px;
  }
  .contact-pop {
    right: -4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dock-btn,
  .contact-pop {
    transition: none;
    animation: none;
  }
}
