/* Запись: номерной знак как главный объект, кнопки с физическим ходом */
.bk-page {
  padding: 72px 0 88px;
  scroll-margin-top: calc(var(--header-h) + 12px);
  background:
    radial-gradient(680px 280px at 8% 0%, rgba(245, 165, 36, 0.22), transparent 70%),
    linear-gradient(180deg, #dfe8f2 0%, #f4f7fb 38%, #f7f5f1 100%);
}
.bk-page--solo {
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 36px);
  min-height: 100vh;
}

/* Карточка внутри тёмного hero: белая панель, без отдельного экрана */
.bk-page--hero {
  min-width: 0;
  padding: 22px 22px 18px;
  scroll-margin-top: calc(var(--header-h) + 16px);
  background: #fff;
  color: var(--ink);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}
.bk-page--hero .bk-intro {
  max-width: none;
  margin-bottom: 12px;
}
.bk-page--hero .bk-intro__title {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.bk-page--hero .bk-intro p {
  max-width: none;
  color: var(--muted);
  font-size: 0.92rem;
}
.bk-page--hero .bk-shell,
.bk-page--hero .bk-shell.is-wide { width: 100%; }
.bk-page--hero .bk-panel h3 { font-size: 1.15rem; }
.bk-page--hero .bk-plate {
  width: 100%;
  min-height: 72px;
  margin-top: 0;
  box-shadow: 0 8px 0 rgba(16, 32, 51, 0.08);
}
.bk-page--hero .bk-plate input { font-size: clamp(1.25rem, 2.2vw, 1.7rem); }
.bk-page--hero .bk-panel > .bk-press { width: 100%; }
.bk-page--hero .bk-row .bk-press { width: auto; flex: 1; }
.bk-page--hero .bk-split {
  grid-template-columns: 1fr;
  min-height: 0;
}
.bk-page--hero .bk-map { min-height: 220px; }
.bk-page--hero .bk-stamp {
  width: 84px;
  height: 84px;
  font-size: 0.72rem;
}
.bk-page--hero .bk-support__phone { font-size: 1.15rem; }

.bk-intro {
  max-width: 38rem;
  margin-bottom: 28px;
}
.bk-intro .bk-intro__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.bk-intro p {
  margin: 0;
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.bk-steps {
  display: flex;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.bk-steps li button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.92rem;
  padding: 8px 2px 10px;
  border-bottom: 2px solid transparent;
}
.bk-steps li.is-active button {
  color: var(--ink);
  border-bottom-color: #102033;
}
.bk-steps li.is-done button { color: var(--ink); }
.bk-steps li button:disabled { cursor: default; }

.bk-shell {
  width: min(920px, 100%);
}
.bk-shell.is-wide { width: min(1180px, 100%); }

.bk-panel h3,
.bk-sheet__panel h2,
.bk-fallback h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.bk-panel h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }

.bk-note,
.bk-status,
.bk-hello,
.bk-fallback p,
.bk-geo-banner {
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.bk-plate {
  display: flex;
  align-items: stretch;
  width: min(100%, 460px);
  min-height: 84px;
  margin: 8px 0 14px;
  background: #f7f8f4;
  border: 3px solid #1a1c1b;
  border-radius: 12px;
  box-shadow: 0 8px 0 rgba(16, 32, 51, 0.12);
  overflow: hidden;
}
.bk-plate__flag {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  width: 54px;
  background: #1d4f91;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding-bottom: 8px;
}
.bk-flag {
  display: flex;
  flex-direction: column;
  width: 22px;
  height: 15px;
  border-radius: 1px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45);
}
.bk-flag i {
  display: block;
  flex: 1;
}
.bk-flag i:nth-child(1) { background: #fff; }
.bk-flag i:nth-child(2) { background: #0039a6; }
.bk-flag i:nth-child(3) { background: #d52b1e; }
.bk-plate input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #14181c;
  min-width: 0;
}
.bk-plate input::placeholder { color: rgba(20, 24, 28, 0.28); letter-spacing: 0.06em; }
.bk-plate input:focus { outline: none; }
.bk-plate:focus-within { box-shadow: 0 8px 0 rgba(245, 165, 36, 0.55); }

.bk-press {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  background: #102033;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.08s linear, box-shadow 0.08s linear;
  text-decoration: none;
}
.bk-press:hover { color: #fff; }
.bk-press:active { transform: translateY(1px); }
.bk-press:disabled { opacity: 0.55; transform: none; }
.bk-press--ghost {
  background: transparent;
  color: #102033;
  box-shadow: inset 0 0 0 2px #102033;
}
.bk-press--ghost:hover { color: #102033; }
.bk-press--ghost:active { box-shadow: inset 0 0 0 2px #102033; }
.bk-press:focus-visible,
.bk-textbtn:focus-visible,
.bk-city:focus-visible,
.bk-point:focus-visible,
.bk-day:focus-visible,
.bk-time:focus-visible,
.bk-app:focus-visible,
.bk-field input:focus-visible {
  outline: 2px solid #1d4f91;
  outline-offset: 3px;
}

.bk-textbtn {
  border: 0;
  background: transparent;
  color: #1d4f91;
  font-weight: 600;
  padding: 8px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bk-vehicle { margin-top: 22px; }
.bk-vehicle[hidden] { display: none; }
.bk-vehicle.is-in { animation: bk-rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }

.bk-status {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(16, 32, 51, 0.06);
  color: #102033;
}
.bk-status.is-bad { background: rgba(176, 64, 32, 0.12); }

.bk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.bk-field { display: grid; gap: 6px; }
.bk-field span { font-size: 0.86rem; color: var(--ink-soft); }
.bk-field input {
  min-height: 52px;
  border-radius: 14px;
  border: 1.5px solid rgba(16, 32, 51, 0.16);
  background: #fff;
  padding: 0 14px;
  color: var(--ink);
}
.bk-field--wide { grid-column: 1 / -1; }
.bk-row { display: flex; flex-wrap: wrap; gap: 10px; }

.bk-place-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.bk-cities {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.bk-city {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(16, 32, 51, 0.16);
  background: #fff;
  color: #102033;
  font-weight: 600;
}
.bk-city.is-on {
  background: #102033;
  color: #fff;
  border-color: #102033;
}

.bk-split {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(280px, 1.15fr);
  gap: 14px;
  margin-bottom: 16px;
  min-height: 380px;
}
.bk-list {
  display: grid;
  align-content: start;
  gap: 8px;
}
.bk-point {
  text-align: left;
  border: 1.5px solid rgba(16, 32, 51, 0.12);
  background: #fff;
  border-radius: 18px;
  padding: 14px 14px 12px;
  color: inherit;
}
.bk-point strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; }
.bk-point span { display: block; color: var(--ink-soft); margin-top: 4px; }
.bk-point em { display: block; margin-top: 8px; font-style: normal; font-weight: 600; }
.bk-point.is-on { border-color: #102033; box-shadow: inset 0 0 0 1px #102033; }

.bk-map {
  min-height: 380px;
  border-radius: 22px;
  overflow: hidden;
  background: #d5deea;
  border: 1.5px solid rgba(16, 32, 51, 0.1);
}
.bk-map .leaflet-control-attribution { font-size: 10px; }
.bk-pin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f5a524;
  border: 3px solid #102033;
  box-shadow: 0 6px 0 rgba(16, 32, 51, 0.25);
}

.bk-fallback {
  margin: 8px 0 18px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  border: 1.5px solid rgba(16, 32, 51, 0.1);
}
.bk-fallback h3 { font-size: 1.25rem; }

.bk-apps { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-app {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  background: #102033;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 0;
}
.bk-app:hover { color: #fff; }
.bk-app--tg { background: #229ed9; }
.bk-app--wa { background: #1f8a4c; }
.bk-app--max { background: #5b4bff; }
.bk-app--vk { background: #2787f5; }

.bk-error {
  margin: 14px 0 0;
  color: #9a3412;
  font-weight: 600;
}
.bk-error[hidden] { display: none; }

.bk-thanks { position: relative; max-width: 640px; padding-top: 12px; }
.bk-stamp {
  position: absolute;
  top: 0;
  right: 0;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border: 4px solid #b42318;
  color: #b42318;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: rotate(-12deg) scale(0.6);
  opacity: 0;
}
.bk-thanks.is-stamped .bk-stamp { animation: bk-stamp 0.55s cubic-bezier(0.2, 0.9, 0.2, 1.2) forwards; }
.bk-hello { font-size: 1.15rem; color: var(--ink); }
.bk-when {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 18px;
}
.bk-support {
  padding: 16px;
  border-radius: 22px;
  background: #102033;
  color: #fff;
  margin-bottom: 16px;
}
.bk-support p { margin: 0 0 4px; color: rgba(255, 255, 255, 0.72); }
.bk-support__phone {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
}
.bk-support__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-support .bk-press { background: #f5a524; color: #102033; }
.bk-support .bk-press--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }

.bk-sheet {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  align-items: end;
  justify-items: center;
}
.bk-sheet[hidden] { display: none; }
.bk-sheet__backdrop { position: absolute; inset: 0; background: rgba(7, 15, 28, 0.56); }
.bk-sheet__panel {
  position: relative;
  width: min(640px, 100%);
  max-height: min(92vh, 760px);
  overflow: auto;
  background: #f7f4ee;
  border-radius: 28px 28px 0 0;
  padding: 22px 22px calc(22px + env(safe-area-inset-bottom, 0px));
  animation: bk-sheet 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bk-sheet__kicker { margin: 0 0 4px; color: var(--muted); }
.bk-sheet__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(16, 32, 51, 0.08);
  font-size: 1.4rem;
  line-height: 1;
}
.bk-days, .bk-times {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.bk-day, .bk-time {
  min-height: 64px;
  min-width: 108px;
  padding: 8px 12px;
  border-radius: 16px;
  border: 1.5px solid rgba(16, 32, 51, 0.16);
  background: #fff;
  color: #102033;
  font-weight: 600;
}
.bk-time { min-width: 140px; font-family: var(--font-display); font-size: 1.15rem; }
.bk-day small, .bk-time small { display: block; font-family: var(--font-body); font-weight: 500; color: var(--muted); }
.bk-day.is-on, .bk-time.is-on {
  background: #102033;
  color: #fff;
  border-color: #102033;
}
.bk-day.is-on small, .bk-time.is-on small { color: rgba(255,255,255,.7); }
.bk-sheet .bk-press { width: 100%; margin-top: 6px; }

.bk-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
}

@keyframes bk-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes bk-sheet {
  from { transform: translateY(28px); opacity: 0.4; }
  to { transform: none; opacity: 1; }
}
@keyframes bk-stamp {
  0% { opacity: 0; transform: rotate(-18deg) scale(1.4); }
  100% { opacity: 1; transform: rotate(-12deg) scale(1); }
}

@media (min-width: 801px) {
  .bk-sheet { align-items: center; padding: 24px; }
  .bk-sheet__panel { border-radius: 28px; }
}

@media (max-width: 800px) {
  .bk-grid, .bk-split { grid-template-columns: 1fr; }
  .bk-map { min-height: 280px; }
  .bk-stamp { width: 96px; height: 96px; font-size: 0.86rem; }
  .bk-place-head { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .bk-vehicle.is-in,
  .bk-sheet__panel,
  .bk-thanks.is-stamped .bk-stamp { animation: none; opacity: 1; transform: none; }
  .bk-press:active { transform: none; }
}
