:root {
  --page-width: 1440px;
}

body {
  background: #d8d2c7;
}

main,
footer {
  width: min(100%, var(--page-width));
  margin-inline: auto;
  box-shadow: 0 0 45px rgba(17, 17, 15, 0.09);
}

main {
  background: var(--paper);
}

.site-header {
  left: 50%;
  width: min(100%, var(--page-width));
  transform: translateX(-50%);
}

.floating-contact {
  position: fixed;
  right: max(24px, calc((100vw - var(--page-width)) / 2 + 24px));
  bottom: 24px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.floating-button {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  transition: width 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}

.floating-button svg {
  width: 23px;
  min-width: 23px;
  fill: currentColor;
}

.floating-button span {
  width: 0;
  opacity: 0;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: width 0.3s ease, opacity 0.2s ease, margin 0.3s ease;
}

.call-button { background: var(--ink); }
.whatsapp-button { background: #25d366; }

.floating-button:hover {
  width: 142px;
  transform: translateY(-2px);
}

.floating-button:hover span {
  width: auto;
  opacity: 1;
  margin-left: 10px;
}

@media (max-width: 700px) {
  body { background: var(--paper); }
  main, footer { box-shadow: none; }
  .floating-contact { right: 16px; bottom: 16px; }
  .floating-button { width: 50px; height: 50px; }
  .floating-button:hover { width: 50px; }
  .floating-button:hover span { width: 0; opacity: 0; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .floating-button, .floating-button span { transition: none; }
}
