/* Booking modal, anti-bot, Safari / iOS — дополняет main.css */

/* Ловушка для ботов: пустая ссылка, вне экрана, без текста (не дублировать «записаться» в сниппетах) */
.bm-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
}

.bm-toast {
    position: fixed;
    bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 100003;
    max-width: min(92vw, 22rem);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(26, 60, 52, 0.94);
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.35;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

html.bm-scroll-lock,
body.bm-scroll-lock {
    overflow: hidden;
    overscroll-behavior: contain;
    touch-action: none;
    height: 100%;
    min-height: 100dvh;
}

.tg-booking {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    right: calc(28px + env(safe-area-inset-right, 0px));
}

.tg-booking__btn {
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.tg-booking__btn .tg-booking__fab-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .tg-booking {
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        right: calc(20px + env(safe-area-inset-right, 0px));
    }
}

/* Кнопка-действие в блоке контактов — как ссылка в .contact-text */
.contact-booking-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--primary, #06b6d4);
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.contact-booking-link:hover {
    text-decoration: underline;
}

/* Копия max-logo-white.svg — в контактах как у Font Awesome в .contact-icon (1.25rem) */
.contact-icon img.contact-icon__max {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
    display: block;
}

/* В модалке светлая плашка — время исходного белого SVG через фильтр, чтобы было видно */
.booking-channel__max-img {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
    display: block;
    filter: brightness(0) saturate(100%) invert(44%) sepia(98%) saturate(360%) hue-rotate(172deg) brightness(95%)
        contrast(92%);
}

.bm-overlay {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
}

.bm-overlay[hidden] {
    display: none !important;
}

.bm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 22, 0.45);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.bm-sheet {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    max-height: 92vh;
    max-height: min(92dvh, 560px);
    margin: 0 auto;
    padding: 1.25rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    background: #f8fafb;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    outline: none;
}

@media (min-width: 560px) {
    .bm-overlay {
        align-items: center;
        padding: 1rem;
    }

    .bm-sheet {
        border-radius: 16px;
        padding: 1.5rem 1.25rem;
        margin: 0;
    }
}

.bm-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: #5a6d68;
    cursor: pointer;
    border-radius: 10px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.bm-close:hover {
    background: rgba(0, 0, 0, 0.06);
}

.bm-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 2.5rem 0.35rem 0;
    color: #1a3c34;
}

.bm-subtitle {
    font-size: 0.875rem;
    color: #5a6d68;
    margin: 0 0 1rem;
}

.booking-channels {
    list-style: none;
    margin: 0;
    padding: 0;
}

.booking-channels > li + li {
    margin-top: 10px;
}

.booking-channel {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid rgba(26, 60, 52, 0.12);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.1s ease;
}

.booking-channel:hover {
    border-color: rgba(34, 158, 217, 0.45);
    background: #f0f9ff;
}

.booking-channel:active {
    transform: scale(0.99);
}

.booking-channel__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    font-size: 1.25rem;
    color: #229ed9;
}

.booking-channel__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.booking-channel__title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a3c34;
}

.booking-channel__hint {
    font-size: 0.82rem;
    color: #5a6d68;
}

@supports not (transform-style: preserve-3d) {
    .parallax-wrapper .parallax-bg {
        transform: none !important;
        perspective: none !important;
    }

    .parallax-wrapper .parallax-layer {
        transform: none !important;
    }
}
