/* Фиксированная кнопка онлайн-записи (ПрофСалон) */
.online-book-btn {
  --ob-size: 132px;
  --ob-pad: 8px;
  --ob-core: 64%;
  --ob-burgundy: #ab2c36;
  --ob-burgundy-deep: #8f2430;

  position: fixed;
  left: 20px;
  bottom: 24px;
  z-index: 1100;
  width: var(--ob-size);
  height: var(--ob-size);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  overflow: visible;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s ease;
}

.online-book-btn:hover {
  transform: scale(1.05);
}

.online-book-btn:active {
  transform: scale(0.97);
}

.online-book-btn:focus-visible {
  outline: 2px solid #fff1b5;
  outline-offset: 4px;
}

/* Мягкая круглая тень без filter — filter обрезается overflow-x:hidden у body */
.online-book-btn__shape {
  position: absolute;
  inset: var(--ob-pad);
  overflow: visible;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.18), transparent 45%),
    linear-gradient(160deg, #c43a45 0%, var(--ob-burgundy) 48%, var(--ob-burgundy-deep) 100%);
  -webkit-mask: url("../img/icons/online-book-flower.svg?v=2") center / contain no-repeat;
  mask: url("../img/icons/online-book-flower.svg?v=2") center / contain no-repeat;
  pointer-events: none;
}

.online-book-btn__shape::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(93, 24, 33, 0.42);
  z-index: -1;
  pointer-events: none;
}

.online-book-btn__core {
  position: absolute;
  inset: calc(var(--ob-pad) + (100% - 2 * var(--ob-pad) - var(--ob-core)) / 2);
  width: var(--ob-core);
  height: var(--ob-core);
  margin: auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.16), transparent 42%),
    linear-gradient(165deg, #c43a45 0%, var(--ob-burgundy) 55%, var(--ob-burgundy-deep) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 241, 181, 0.28),
    inset 0 -6px 14px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.online-book-btn__text {
  display: block;
  max-width: 7.2em;
  color: #ffffff;
  font-family: var(--font-family-main), system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-align: center;
  text-wrap: balance;
}

@media (max-width: 991px) {
  .online-book-btn {
    --ob-size: 88px;
    --ob-pad: 6px;
    --ob-core: 62%;
    left: 10px;
    bottom: 78px;
  }

  .online-book-btn__text {
    font-size: 10px;
    max-width: 6.8em;
  }
}

@media (max-width: 480px) {
  .online-book-btn {
    --ob-size: 82px;
    left: 8px;
    bottom: 74px;
  }

  .online-book-btn__text {
    font-size: 9.5px;
  }
}

/* Когда открыт виджет ПрофСалона — прячем кнопку */
body:has(#profsalon_wrapper) .online-book-btn {
  opacity: 0;
  pointer-events: none;
}

/* Футер: блок «Спасибо» + Яндекс после кнопки директора */
.footer__thanks {
  margin-top: 2.5rem;
  text-align: center;
}

.footer__thanks .footer__block-title {
  margin-bottom: 0;
}

.footer__thanks .footer__holder-address {
  margin-top: 1.25rem;
  padding-top: 1.5rem;
}

.footer__top > .container > .footer__address {
  margin-bottom: 0.5rem;
}

.footer__top > .container > .footer__btn.rew {
  display: flex;
  margin-top: 1.5rem;
  margin-bottom: 0;
}
