/* Окно «Быстрая запись» (попап Тильды T702, #popup:zapis2) – «шторка»,
   вариант 5, выбранный Михаилом: светлая панель, его фото по центру
   над панелью, тёмная кнопка «Позвонить», под ней WhatsApp и Telegram.
   На телефоне панель выезжает снизу, на компьютере – карточка по центру. */
.t702 .t-popup_show {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: grid !important;
  place-content: center;
  grid-template-columns: min(400px, 100%);
  box-sizing: border-box;
  padding: 24px 16px !important;
  background: rgba(0, 0, 0, .6);
  overflow-y: auto;
}
.t702 .t-popup_show > .t-popup__container,
.t702 .t-popup_show > .t-popup__close {
  grid-area: 1 / 1;
}
.t702 .t-popup_show > .t-popup__container {
  position: relative !important;
  top: auto !important; right: auto !important; bottom: auto !important; left: auto !important;
  transform: none !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible;
  background: #f5f3f0 !important;
  color: #141414;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .45);
  animation: klSheetIn .35s ease both;
}
.t702 .t-popup_show > .t-popup__container::before,
.t702 .t-popup_show > .t-popup__container::after { display: none !important; }
@keyframes klSheetIn { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }

/* крестик – в правом верхнем углу панели */
.t702 .t-popup_show > .t-popup__close {
  position: static !important;
  top: auto !important; right: auto !important; bottom: auto !important; left: auto !important;
  transform: none !important;
  width: 36px !important;
  height: 36px !important;
  justify-self: end;
  align-self: start;
  margin: 12px !important;
  background: none !important;
  z-index: 5;
}
.t702 .t-popup_show .t-popup__close-wrapper {
  margin: 0 !important;
  position: static !important;
  transform: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  border-radius: 50%;
  background: rgba(0, 0, 0, .06);
}
.t702 .t-popup_show .t-popup__close-icon { width: 12px !important; height: 12px !important; }
.t702 .t-popup_show .t-popup__close-icon g,
.t702 .t-popup_show .t-popup__close-icon rect { fill: #8a847d !important; }

/* содержимое: одна сетка отступов – 8 / 16 / 24 */
.kl-sheet {
  padding: 24px 24px 24px;
  text-align: center;
  font-family: 'Noto Sans', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.kl-sheet__grab { display: none; }
.kl-sheet__av {
  display: block;
  width: 72px;
  height: 72px;
  margin: -58px auto 16px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #f5f3f0;
  background: #f5f3f0;
}
.kl-sheet__title {
  margin: 0;
  font: 600 19px/24px 'Open Sans', Arial, sans-serif;
  letter-spacing: -.005em;
  color: #141414;
}
.kl-sheet__sub {
  margin: 2px 0 24px;
  font: 400 14px/20px 'Noto Sans', Arial, sans-serif;
  color: #7a746d;
}
/* «Сейчас на сайте: N человек» (assets/js/online-now-1.js) – под подзаголовком */
.kl-sheet__online {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: -14px 0 18px;
  font: 400 13px/18px 'Noto Sans', Arial, sans-serif;
  color: #5d5750;
}
.kl-sheet__online[hidden] { display: none; }
.kl-sheet__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2fbf5b;
  animation: klOnlinePulse 2s ease-out infinite;
}
@keyframes klOnlinePulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 191, 91, .5); }
  70% { box-shadow: 0 0 0 7px rgba(47, 191, 91, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 191, 91, 0); }
}
@media (prefers-reduced-motion: reduce) { .kl-sheet__dot { animation: none; } }
.kl-sheet__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid #dcd6cf;
  background: transparent;
  color: #141414 !important;
  font: 500 15px/1 'Open Sans', Arial, sans-serif;
  text-decoration: none;
  transition: background-color .2s ease, opacity .2s ease;
}
.kl-sheet__btn:hover { background: rgba(0, 0, 0, .04); }
.kl-sheet__btn:active { opacity: .7; }
.kl-sheet__btn img,
.kl-sheet__btn svg { width: 18px; height: 18px; flex: none; }
.kl-sheet__btn--solid {
  background: #141414;
  border-color: #141414;
  color: #fff !important;
}
.kl-sheet__btn--solid:hover { background: #2a2a2a; }
.kl-sheet__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
/* Max – отдельной строкой под парой WhatsApp/Telegram */
.kl-sheet__btn--wide { margin-top: 8px; }
.kl-sheet__doc {
  display: inline-block;
  margin-top: 16px;
  font: 400 12px/16px 'Noto Sans', Arial, sans-serif;
  color: #9a948d !important;
  text-decoration: none;
}

/* Телефон: панель прижата к низу экрана и выезжает снизу */
@media (max-width: 767px), (max-height: 500px) and (orientation: landscape) {
  .t702 .t-popup_show {
    place-content: end center;
    grid-template-columns: min(440px, 100%);
    padding: 0 !important;
  }
  .t702 .t-popup_show > .t-popup__container {
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -16px 48px rgba(0, 0, 0, .35);
    animation: klSheetUp .45s cubic-bezier(.22, .61, .36, 1) both;
  }
  .kl-sheet { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
}
@keyframes klSheetUp { from { translate: 0 100%; } to { translate: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .t702 .t-popup_show > .t-popup__container { animation: none; }
}

/* плавающие соцкнопки не должны перекрывать открытое окно */
.t-body_popup-showed .kl-social {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Окно записи всегда поверх страницы (03.10.2026: на iPhone в Яндекс Браузере на «Уроках» подписи и стрелки кинотеатра «Мои голоса»
   были видны поверх окна). Причина: на страницах без стилей Тильды (все, кроме главной) у окна не было слоя вообще, и всё, что имеет
   слой 1 и выше, ложилось на него. Значение – как в стилях Тильды; меню (100000), увеличение фото (100000) и плашка согласия (9000)
   ниже, договор присоединения (offer-popup-1.js, 2147483600) выше. */
.t702 .t-popup,
.t702 .t-popup_show { z-index: 10000001 !important; }
