/* PT TGFORM 25.11.2026: форма «имя + телефон» на кнопке Telegram карточки объекта.
   Телефон/планшет (до 991.98px): шторка снизу. ПК: окно по центру. Светлая и тёмная тема через html[data-theme].
   Подключается только в product.tpl и productUA.tpl. Откат: убрать блок TGFORM в обоих шаблонах. */
.pt-tgf{position:fixed;inset:0;z-index:2000;background:rgba(9,14,21,.62);display:flex;align-items:center;justify-content:center;font-family:var(--font-primary,inherit);-webkit-font-smoothing:antialiased;overscroll-behavior:contain;touch-action:none}
.pt-tgf *{box-sizing:border-box}
.pt-tgf__sheet{position:relative;background:var(--color-surface,#fff);color:var(--color-text-strong,#090e15);width:500px;max-width:100%;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;border-radius:12px;padding:36px 36px 28px;box-shadow:0 20px 60px rgba(0,0,0,.35);overscroll-behavior:contain;touch-action:pan-y}
.pt-tgf__x{position:absolute;top:12px;right:12px;width:40px;height:40px;border:0;background:var(--color-cloud,#f3f6f9);color:var(--color-ink,#253035);border-radius:50%;display:flex;align-items:center;justify-content:center;padding:0;cursor:pointer}
.pt-tgf__x svg{width:18px;height:18px;fill:currentColor}
.pt-tgf__ic{width:48px;height:48px;border-radius:12px;background:rgba(61,185,191,.14);color:#3db9bf;display:flex;align-items:center;justify-content:center;margin-bottom:14px}
.pt-tgf__ic svg{width:26px;height:26px;fill:currentColor}
.pt-tgf__h{margin:0 0 6px;font-size:27px;line-height:1.15;font-weight:700;color:var(--color-text-strong,#090e15);padding-right:44px}
.pt-tgf__sub{margin:0 0 18px;font-size:16px;line-height:1.4;color:var(--color-muted-strong,#545f70)}
.pt-tgf__f{display:block;margin:0 0 12px}
.pt-tgf__lab{display:block;font-size:13px;font-weight:600;color:var(--color-muted-strong,#545f70);margin-bottom:6px}
.pt-tgf__box{display:flex;align-items:center;gap:8px;width:100%;height:52px;border-radius:8px;border:1.5px solid var(--color-border,#e4eaf1);background:var(--color-field,#fff);padding:0 14px;color:var(--color-text-strong,#090e15)}
.pt-tgf__box:focus-within{border-color:#3db9bf;box-shadow:0 0 0 3px rgba(61,185,191,.25)}
.pt-tgf__f--err .pt-tgf__box{border-color:#d93a3a;box-shadow:0 0 0 3px rgba(217,58,58,.18)}
.pt-tgf__cc{font-size:17px;font-weight:600}
.pt-tgf__in{flex:1;min-width:0;width:100%;height:100%;border:0;outline:0;background:transparent;color:inherit;font:inherit;font-size:17px;padding:0;margin:0;box-shadow:none;border-radius:0;-webkit-appearance:none;appearance:none}
.pt-tgf__in::placeholder,.pt-tgf__in:focus::placeholder{color:#9aa7b8;opacity:1}
.pt-tgf__e{display:none;margin-top:6px;font-size:13px;line-height:1.3;color:#d93a3a}
.pt-tgf__f--err .pt-tgf__e{display:block}
.pt-tgf__btn{margin-top:6px;width:100%;height:54px;border:0;border-radius:8px;background:#3db9bf;color:#fff;font:inherit;font-size:17px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:10px;box-shadow:0 2px 10px rgba(61,185,191,.35);cursor:pointer;text-decoration:none}
.pt-tgf__btn svg{width:22px;height:22px;fill:currentColor;flex:0 0 auto}
.pt-tgf__btn[disabled]{opacity:.7;cursor:progress}
.pt-tgf__btn:focus-visible,.pt-tgf__x:focus-visible{outline:2px solid #3db9bf;outline-offset:2px}
.pt-tgf__fine{margin:12px 0 0;font-size:12px;line-height:1.4;color:var(--color-muted,#8d9db5);text-align:center}
.pt-tgf__err{margin:12px 0 0;padding:10px 14px;border-radius:8px;background:rgba(217,58,58,.1);color:#b42318;font-size:14px;line-height:1.4}
.pt-tgf__err a{color:inherit;font-weight:600;text-decoration:underline}
.pt-tgf__ok{margin:0 0 18px;font-size:16px;line-height:1.4;color:var(--color-muted-strong,#545f70)}
.pt-tgf__alt{display:block;margin:10px auto 0;padding:10px;border:0;background:none;color:var(--color-muted-strong,#545f70);font:inherit;font-size:15px;text-decoration:underline;cursor:pointer}
[data-theme=dark] .pt-tgf__x{background:rgba(255,255,255,.12);color:#fff}
[data-theme=dark] .pt-tgf__sub,[data-theme=dark] .pt-tgf__ok{color:rgba(255,255,255,.78)}
[data-theme=dark] .pt-tgf__lab{color:rgba(255,255,255,.72)}
[data-theme=dark] .pt-tgf__fine{color:rgba(255,255,255,.58)}
[data-theme=dark] .pt-tgf__alt{color:rgba(255,255,255,.72)}
[data-theme=dark] .pt-tgf__in::placeholder,[data-theme=dark] .pt-tgf__in:focus::placeholder{color:rgba(255,255,255,.45)}
[data-theme=dark] .pt-tgf__err{background:rgba(255,120,120,.14);color:#ffb4b4}
[data-theme=dark] .pt-tgf__e{color:#ff8f8f}
@media (max-width:991.98px){
  .pt-tgf{align-items:flex-end}
  .pt-tgf__sheet{width:100%;border-radius:18px 18px 0 0;padding:26px 20px calc(22px + env(safe-area-inset-bottom,0px));box-shadow:0 -8px 30px rgba(0,0,0,.25);animation:pt-tgf-up .22s ease-out}
  .pt-tgf__sheet:before{content:"";position:absolute;top:8px;left:50%;width:40px;height:4px;margin-left:-20px;border-radius:2px;background:var(--color-border,#d3dbe6)}
  .pt-tgf__h{font-size:24px}
}
@media (min-width:600px) and (max-width:991.98px){.pt-tgf__sheet{max-width:560px;margin:0 auto}}
@keyframes pt-tgf-up{from{transform:translateY(40px);opacity:.6}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.pt-tgf__sheet{animation:none!important}}
@media print{.pt-tgf{display:none!important}}

/* TGDESK 25.11.2026: кнопка «Написать в Telegram» в блоке контактов карточки (ПК от 992px; на телефоне/планшете работает нижняя панель). Откат: убрать блок */
.reservation__assistant-tg{display:none}
@media (min-width:992px){
  .reservation__assistant-tg{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:50px;margin-top:var(--gap-3,12px);padding:0 16px;box-sizing:border-box;border:2px solid var(--color-white,#fff);border-radius:8px;background:transparent;color:var(--color-white,#fff);font:inherit;font-size:16px;font-weight:700;line-height:1;text-decoration:none;cursor:pointer;transition:background-color .2s ease,color .2s ease}
  .reservation__assistant-tg svg{width:22px;height:22px;flex:0 0 auto;fill:currentColor}
  .reservation__assistant-tg:hover{background:var(--color-white,#fff);color:var(--color-primary,#3db9bf)}
  .reservation__assistant-tg:focus-visible{outline:2px solid var(--color-white,#fff);outline-offset:3px}
}
