/* Всплывающая форма записи: на компьютере окно по центру, на телефоне панель снизу */
.bk { font-family: Gilroy, Manrope, system-ui, sans-serif; line-height: 1.4; border: 0; padding: 0; background: transparent; color: #212121; max-width: min(460px, calc(100vw - 32px)); width: 100%; max-height: calc(100dvh - 32px); overflow: visible; }
.bk::backdrop { background: rgba(20, 20, 20, 0.62); backdrop-filter: blur(3px); }
.bk[open] { animation: bk-in 0.22s ease-out; }
.bk[open]::backdrop { animation: bk-fade 0.22s ease-out; }
@keyframes bk-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes bk-fade { from { opacity: 0; } to { opacity: 1; } }
.bk-lock { overflow: hidden; }
.bk-card { position: relative; background: #FFFFFF; border-radius: 28px; padding: 34px 32px 26px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); max-height: calc(100dvh - 32px); overflow-y: auto; }
.bk-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #F4F1EE; color: #212121; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.bk-x:hover { background: #FFE3CC; color: #C25B00; }
.bk-intro { display: flex; flex-direction: column; gap: 12px; padding-right: 34px; }
.bk-chip { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #C25B00; background: #FFF3E8; padding: 6px 12px; border-radius: 999px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-h { margin: 0; font-size: 26px; line-height: 1.1; text-transform: uppercase; }
.bk-p { margin: 0; font-size: 15px; line-height: 1.55; color: #5A5A5A; }
.bk-form { display: flex; flex-direction: column; gap: 12px; }
.bk-f { display: flex; flex-direction: column; gap: 6px; }
.bk-f > span { font-size: 13px; font-weight: 600; color: #5A5A5A; }
.bk-hint { font-style: normal; font-weight: 500; color: #9A9A9A; }
.bk-in { width: 100%; min-height: 54px; border: 1.5px solid #E4DED8; border-radius: 14px; padding: 0 16px; font: inherit; font-size: 16px; color: #212121; background: #FAF7F4; outline: none; }
.bk-in:focus { border-color: #F87400; background: #FFFFFF; box-shadow: 0 0 0 3px rgba(248, 116, 0, 0.16); }
.bk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 58px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #FF8A1F 0%, #F87400 60%, #E05F00 100%); color: #FFFFFF; font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; box-shadow: 0 14px 30px rgba(248, 116, 0, 0.32); transition: transform 0.15s, box-shadow 0.15s; }
.bk-btn:hover { transform: translateY(-1px); box-shadow: 0 18px 36px rgba(248, 116, 0, 0.4); }
.bk-btn[disabled] { opacity: 0.7; cursor: progress; transform: none; }
.bk-bi { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); display: inline-flex; align-items: center; justify-content: center; }
.bk-alt { display: flex; flex-direction: column; align-items: stretch; gap: 12px; color: #8A8A8A; font-size: 14px; }
.bk-alt > span { display: flex; align-items: center; gap: 14px; justify-content: center; }
.bk-alt > span::before, .bk-alt > span::after { content: ""; flex: 1 1 0; height: 1px; background: #E4DED8; }
a.hb-tg.bk-tg { width: 100%; min-height: 58px; padding: 0 22px; border-radius: 999px; font-size: 17px; font-weight: 800; box-sizing: border-box; }
.bk-fine { margin: 0; font-size: 12px; line-height: 1.45; color: #9A9A9A; text-align: center; }
.bk .hb-form-error { flex: none; }
.bk .hb-thanks { align-items: center; text-align: center; padding: 26px 18px; background: #FFF3E8; }
.bk .hb-thanks strong { color: #212121; }
.bk .hb-thanks span:last-child { color: #5A5A5A; }
.bk.bk-done .bk-intro, .bk.bk-done .bk-fine, .bk.bk-done .bk-alt > span { display: none; }
.bk.bk-done .bk-card { padding-top: 44px; }

@media (max-width: 600px) {
  .bk { position: fixed; inset: auto 0 0 0; margin: 0; max-width: none; width: 100%; max-height: 100dvh; }
  .bk[open] { animation: bk-up 0.26s ease-out; }
  @keyframes bk-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .bk-card { border-radius: 26px 26px 0 0; padding: 26px 20px calc(18px + env(safe-area-inset-bottom)); gap: 14px; max-height: 94dvh; box-shadow: none; }
  .bk-x { top: 10px; right: 10px; }
  .bk-h { font-size: 24px; }
  .bk-intro { padding-right: 40px; gap: 10px; }
  .bk-p { font-size: 14px; }
  .bk-alt { gap: 10px; }
}
.bk-btn { width: 100%; box-sizing: border-box; }

/* Невысокий экран (небольшой ноутбук): окно сжимается, чтобы помещаться без прокрутки */
@media (min-width: 601px) and (max-height: 800px) {
  .bk-card { padding: 26px 28px 20px; gap: 12px; }
  .bk-intro { gap: 8px; }
  .bk-h { font-size: 23px; }
  .bk-p { font-size: 14px; line-height: 1.45; }
  .bk-form { gap: 10px; }
  .bk-in { min-height: 48px; }
  .bk-btn, a.hb-tg.bk-tg { min-height: 50px; font-size: 16px; }
  .bk-alt { gap: 8px; }
}
@media (min-width: 601px) and (max-height: 680px) {
  .bk-card { padding: 20px 24px 16px; gap: 9px; }
  .bk-x { top: 10px; right: 10px; width: 34px; height: 34px; }
  .bk-intro { padding-right: 30px; gap: 6px; }
  .bk-h { font-size: 20px; }
  .bk-p { font-size: 13px; line-height: 1.4; }
  .bk-f > span { font-size: 12px; }
  .bk-f { gap: 4px; }
  .bk-in { min-height: 42px; font-size: 15px; }
  .bk-btn, a.hb-tg.bk-tg { min-height: 44px; font-size: 15px; }
  .bk-fine { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .bk[open], .bk[open]::backdrop { animation: none; } }