.contact-launcher {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 999;
  font-family: inherit;
}

.contact-launcher__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(280px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid var(--border, rgba(46, 43, 37, 0.14));
  border-radius: 16px;
  background: var(--paper, var(--bg2, #faf6eb));
  color: var(--text, #2e2b25);
  box-shadow: 0 16px 48px rgba(46, 43, 37, 0.2);
}

.contact-launcher__panel[hidden] {
  display: none;
}

.contact-launcher__title {
  margin: 2px 6px 10px;
  color: var(--muted, #756f65);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-launcher__link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 11px;
  color: var(--text, #2e2b25);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

.contact-launcher__link:hover {
  background: var(--bg3, rgba(194, 78, 46, 0.08));
  transform: translateX(2px);
}

.contact-launcher__channel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  color: #fff;
}

.contact-launcher__channel-icon svg {
  width: 19px;
  height: 19px;
}

.contact-launcher__channel-icon--telegram { background: #229ed9; }
.contact-launcher__channel-icon--whatsapp { background: #25d366; }
.contact-launcher__channel-icon--viber { background: #7360f2; }

.contact-launcher__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 20px 14px 17px;
  border: 0;
  border-radius: 13px;
  background: var(--accent, #c24e2e);
  color: #fff;
  box-shadow: 0 7px 26px rgba(46, 43, 37, 0.24);
  font: inherit;
  font-size: 0.96rem;
  font-weight: 800;
  cursor: pointer;
  transition: filter 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.contact-launcher__toggle:hover {
  filter: brightness(0.94);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(46, 43, 37, 0.3);
}

.contact-launcher__toggle:active {
  transform: translateY(0);
}

.contact-launcher__toggle svg {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
}

.contact-launcher__toggle-icon-close {
  display: none;
}

.contact-launcher.is-open .contact-launcher__toggle-icon-chat {
  display: none;
}

.contact-launcher.is-open .contact-launcher__toggle-icon-close {
  display: block;
}

.contact-launcher__toggle:focus-visible,
.contact-launcher__link:focus-visible {
  outline: 3px solid var(--accent, #c24e2e);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .contact-launcher {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .contact-launcher__toggle {
    width: 52px;
    padding: 0;
    border-radius: 50%;
  }

  .contact-launcher__toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-launcher__toggle,
  .contact-launcher__link {
    transition: none;
  }
}
