/* Гостевой режим (02.10.2026): лист поверх анонимной страницы. Классы kg-*, своих совпадений в бандле нет.
   Android-first: всё нажимаемое от 48 px, без размытия и бесконечных анимаций; на ПК — окно шириной до 520 px. */
.kg-root { position: fixed; inset: 0; z-index: 10001; display: flex; align-items: flex-end; justify-content: center;
  font-family: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; color: #1E1B2E; }
.kg-scrim { position: absolute; inset: 0; background: rgba(20, 17, 33, .52); }
.kg-sheet { position: relative; width: 100%; max-width: 520px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border-radius: 24px 24px 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 12px 32px rgba(30, 27, 46, .18);
  animation: kg-up .22s ease-out; }
.kg-cookie .kg-sheet { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
@keyframes kg-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 1024px) { .kg-root { align-items: center; } .kg-sheet { border-radius: 24px; } }
html.kg-open, html.kg-open body { overflow: hidden; }
.kg-x { position: absolute; top: 8px; right: 8px; width: 48px; height: 48px; border: 0; background: none; font-size: 28px; line-height: 1; color: #4A4560; cursor: pointer; border-radius: 12px; }
.kg-h { font-size: 22px; line-height: 1.27; font-weight: 700; margin: 4px 48px 12px 0; }
.kg-h3 { font-size: 19px; line-height: 1.32; font-weight: 700; margin: 0 0 8px; }
.kg-hint { font-size: 15px; line-height: 1.4; color: #6B6680; margin: 8px 0 0; }
.kg-c { text-align: center; }
.kg-label { font-size: 15px; font-weight: 700; margin: 16px 0 8px; }
.kg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.kg-chip { min-height: 44px; padding: 0 14px; border: 1px solid #E6E1EE; border-radius: 22px; background: #fff; font: inherit; font-size: 15px; color: #1E1B2E; cursor: pointer; }
.kg-chip.kg-on { background: #F3EEFF; border-color: #CDBDF8; color: #5B21B6; font-weight: 600; }
.kg-text { display: block; width: 100%; min-height: 112px; padding: 14px 16px; border: 2px solid #8F88A3; border-radius: 14px; font: inherit; font-size: 17px; line-height: 1.47;
  color: #1E1B2E; background: #fff; resize: vertical; box-sizing: border-box; }
.kg-text:focus { outline: none; border-color: #6D28D9; }
.kg-formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kg-fmt { min-height: 56px; border: 1px solid #E6E1EE; border-radius: 14px; background: #fff; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 2px; }
.kg-fmt b { font-size: 15px; font-weight: 700; color: #1E1B2E; }
.kg-fmt span { font-size: 13px; color: #6B6680; }
.kg-fmt.kg-on { border: 2px solid #6D28D9; background: #F3EEFF; }
.kg-fmt.kg-on b { color: #5B21B6; }
.kg-err { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #FEE4E2; color: #B42318; font-size: 15px; }
.kg-go { display: block; width: 100%; min-height: 56px; margin: 16px 0 0; border: 0; border-radius: 16px; font: inherit; font-size: 18px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #6D28D9, #4F46E5); cursor: pointer; }
.kg-go:disabled { opacity: .6; cursor: default; }
.kg-consent { font-size: 13px; line-height: 1.4; color: #6B6680; margin: 10px 0 0; text-align: center; }
.kg-consent a { color: #5B21B6; text-decoration: underline; }
.kg-link { display: block; width: 100%; min-height: 48px; margin: 8px 0 0; border: 0; background: none; font: inherit; font-size: 16px; font-weight: 600; color: #5B21B6; cursor: pointer; }
.kg-wait { text-align: center; padding: 8px 0 12px; }
.kg-wait .kg-h { margin-right: 0; }
.kg-dog { display: block; width: 140px; height: 140px; margin: 4px auto 8px; }
.kg-time { font-size: 28px; font-weight: 700; color: #5B21B6; margin: 0; font-variant-numeric: tabular-nums; }
.kg-pic { border-radius: 16px; overflow: hidden; border: 1px solid #E6E1EE; background: #F7F5FB; }
.kg-img { display: block; width: 100%; aspect-ratio: 3 / 4; background: #EFEBF6 center / contain no-repeat; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.kg-img:not(.kg-ready) { animation: kg-pulse 1.2s ease-in-out infinite alternate; }
@keyframes kg-pulse { to { background-color: #F7F5FB; } }
@media (prefers-reduced-motion: reduce) { .kg-img:not(.kg-ready) { animation: none; } }
.kg-dock { margin-top: 16px; padding-top: 16px; border-top: 1px solid #E6E1EE; }
.kg-list { list-style: none; margin: 0 0 12px; padding: 0; }
.kg-list li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.6; }
.kg-list li::before { content: '✓'; position: absolute; left: 4px; color: #166534; font-weight: 700; }
/* 12.10: кнопка входа на экране «Готово» держится у нижнего края окна, пока до неё не долистали. Блок — прямой потомок прокручиваемого окна,
   иначе закрепление не выходит за пределы родителя. Белая подложка: плавный край сверху и сплошная полоса вниз (закрывает нижний отступ окна),
   чтобы вокруг кнопки не просвечивало то, что под ней. Текст после кнопки стоит выше этой полосы, на своём месте она его не закрывает */
.kg-stick { position: sticky; bottom: 0; z-index: 2; margin: 0 -20px; padding: 4px 20px 0; background: #fff; }
.kg-stick::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 20px; background: linear-gradient(to top, #fff, rgba(255, 255, 255, 0)); pointer-events: none; }
.kg-stick::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 140px; background: #fff; pointer-events: none; }
.kg-stick ~ * { position: relative; z-index: 3; }
.kg-ya { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 56px; border: 0; border-radius: 16px; background: #000; color: #fff;
  font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; }
.kg-ya:disabled { opacity: .7; }
.kg-ya-logo { width: 28px; height: 28px; border-radius: 50%; background: #FC3F1D; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; }
.kg-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 10002; max-width: calc(100% - 32px);
  padding: 12px 16px; border-radius: 14px; background: #1E1B2E; color: #fff; font-size: 15px; box-shadow: 0 12px 32px rgba(30, 27, 46, .18); }
.kg-toast-act { display: flex; align-items: center; gap: 12px; }
.kg-toast-act button { min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: #fff; color: #1E1B2E; font: inherit; font-weight: 700; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .kg-sheet { animation: none; } }
/* 15.10.2026: фото гостя */
.kg-add { display: inline-flex; align-items: center; margin: 12px 0 0; }
.kg-photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.kg-photos[hidden] { display: none; }
.kg-ph { position: relative; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: #F3EEFF; }
.kg-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kg-ph-x { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border: 0; border-radius: 14px; background: rgba(30, 27, 46, .72); color: #fff; font-size: 18px; line-height: 28px; cursor: pointer; padding: 0; }
.kg-tpl-name b { color: #1E1B2E; }
