:root {
  /* Scale the original call button's dimensions, type and spacing together. */
  --contact-unit: 1.19rem;
  --contact-height: calc(3.793 * var(--contact-unit));
  --contact-gap: calc(.32 * var(--contact-unit));
  --contact-inset: max(.7rem, env(safe-area-inset-bottom));
  --contact-clearance: calc(3 * var(--contact-height) + 2 * var(--contact-gap) + var(--contact-inset) + .75rem);
}
.floating-contacts {
  position: fixed;
  z-index: 8;
  inset: auto max(.7rem, env(safe-area-inset-right)) var(--contact-inset) auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--contact-gap);
  pointer-events: none;
  max-width: calc(100% - max(.7rem, env(safe-area-inset-left)) - max(.7rem, env(safe-area-inset-right)));
  font: 600 var(--contact-unit)/1.35 var(--sans);
}
.quick-contact {
  pointer-events: auto;
  box-sizing: border-box;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .5em;
  height: var(--contact-height);
  padding: .6em .85em;
  border: 1px solid #c5ae89;
  border-radius: .8em;
  box-shadow: 0 3px 14px #302a2238;
  text-decoration: none;
  white-space: nowrap;
}
.quick-contact:is(:hover,:focus-visible) { box-shadow: inset 0 0 0 1px currentColor, 0 3px 14px #302a2238; }
.quick-contact:focus-visible { outline: 3px solid #735b37; outline-offset: 2px; }
.quick-contact img, .quick-contact .icon { flex: none; width: 1.32em; height: 1.32em; }
.quick-phone { width: 10.957em; gap: .65em; background: var(--walnut,#513e2b); color: white; }
.quick-phone .icon { width: 1.12em; height: 1.12em; }
.quick-phone-text { display: grid; line-height: 1.35; }
.quick-phone-text > span { font-size: .83em; font-weight: 400; }
.quick-phone-text strong { font-size: 1em; }
.quick-whatsapp { background: #f0faf2; border-color: #348351; color: #165635; }
.quick-viber { background: #f5f2fe; border-color: #7661aa; color: #4c3581; }
.footer-main { padding-bottom: calc(var(--contact-clearance) + 1rem); }
html { scroll-padding-bottom: var(--contact-clearance); }
.hero-position { justify-content: flex-start; padding-right: min(52vw,32rem); }
:is(#hero-price-dialog, #lightbox)[open]:has(.floating-contacts) { inset-block: 0 var(--contact-clearance); max-height: calc(100dvh - var(--contact-clearance) - 1rem); margin-block: auto; }
#lightbox[open] .lb-img { max-height: calc(100dvh - var(--contact-clearance) - 7rem); }
@media (min-width: 761px) and (min-height: 600px) {
  .hero-treatment { --action-bottom: var(--contact-clearance); }
  .hero-treatment-copy { top: min(46%, calc(50% - 6.5rem)); }
}
@media (max-width: 760px) {
  :root { --contact-gap: calc(.22 * var(--contact-unit)); }
  .quick-contact { padding: .32em .46em; flex-direction: column; gap: .12em; }
  .quick-whatsapp > span, .quick-viber > span { font-size: .83em; }
  .quick-viber { min-width: 3.6em; }
  .quick-phone { flex-direction: row; width: auto; gap: .36em; padding-inline: .65em; }
  .quick-phone-text > span { font-size: .78em; }
  .quick-phone-text strong { font-size: .91em; }
  .service-hero { height: calc(100svh - var(--contact-clearance) - 3rem); min-height: 24rem; }
  .hero-position { display: grid; justify-content: start; gap: .1rem; padding-right: 1rem; }
  .hero-position [data-hero-status] { max-width: 100%; }
}
@media (max-width: 390px) {
  .quick-phone { flex-direction: column; gap: .12em; padding-inline: .44em; }
  .quick-phone-text > span { display: none; }
  .quick-phone-text strong { font-size: .83em; }
}
@media (max-width: 355px) {
  :root { --contact-gap: calc(.18 * var(--contact-unit)); }
  .quick-contact { padding-inline: .25em; }
  .quick-phone-text strong { font-size: .77em; }
  .quick-viber { min-width: 3.05em; }
}
@media (max-width: 760px) and (max-height: 680px) and (orientation: portrait) {
  .hero-treatment { --action-bottom: 4.7rem; }
  .hero-treatment:has(.hero-prices-open:not([hidden])) .hero-treatment-action,
  .hero-prices-open { left: .75rem; transform: none; }
  .hero-treatment:has(.hero-prices-open:not([hidden])) .hero-treatment-action {
    bottom: calc(var(--action-bottom) + 3.25rem);
  }
  .hero-treatment-copy { top: 37%; }
}
@media (orientation: landscape) and (max-height: 650px) {
  :is(#hero-price-dialog, #lightbox)[open]:has(.floating-contacts) {
    inset: 0 15rem 0 0;
    width: min(35rem, calc(100vw - 16rem));
    max-height: calc(100dvh - 1rem);
    margin: auto;
  }
  #lightbox[open] .lb-img { max-height: calc(100dvh - 7rem); }
}
@media print { .floating-contacts { display: none; } }
