/* booking-direct -- главная и поиск по макету v3 А «Одно поле» (docs/portal-mockups/v3*):
   строка «Куда -> Когда -> Кто -> Найти», подсказки, «Не знаю даты», плитки городов,
   блок «Бронь напрямую у отеля», поиск на весь экран на телефоне и выдача без дат.
   Только токены portal.css; компоненты .counter, .chip, .field, .btn -- оттуда. */

/* ---------- первый экран ---------- */
.bd-hero { padding-block: 28px 8px; }
@media (min-width: 720px) { .bd-hero { padding-block: 56px 12px; } }
.bd-hero__kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 13px/1.3 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
}
.bd-hero__kicker svg { width: 34px; height: 14px; color: var(--brand); flex: none; }
.bd-hero__title {
  margin-top: 14px;
  font: 600 clamp(28px, 5.6vw, 54px)/1.08 var(--font-display);
  letter-spacing: -.025em;
  max-width: 17ch;
}
.bd-hero__lead { margin-top: 14px; font-size: clamp(16px, 2vw, 19px); line-height: 1.5; color: var(--ink-2); max-width: 54ch; }
.bd-hero__lead b { color: var(--ink); font-weight: 600; }

/* ---------- строка поиска: линия от гостя (пустой кружок) к отелю («Найти») ---------- */
/* строка поиска -- на всю колонку содержимого, по краям плиток «Куда поехать»;
   на широком экране добавленное место забирает «Куда едете?» */
.bd-search { position: relative; margin-top: 28px; }
.bd-search__errors:empty, .bd-search__errors:not(:has(.notice)) { display: none; }
.bd-search__errors { margin-bottom: 14px; }
.bd-search__top, .bd-search__bar { display: none; }
.bd-bar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  box-shadow: var(--shadow-lift);
  min-height: 84px;
}
.bd-bar::after {
  content: ""; position: absolute; left: 34px; right: 46px; bottom: -1px;
  height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand) 0 60%, color-mix(in srgb, var(--brand) 25%, transparent));
  pointer-events: none;
}
.bd-seg { position: relative; min-width: 0; color: var(--ink); }
.bd-seg + .bd-seg::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); z-index: 1;
}
.bd-seg > summary, .bd-where {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  height: 100%; padding: 12px 18px; border-radius: 22px;
}
.bd-seg > summary { list-style: none; cursor: pointer; }
.bd-seg > summary::-webkit-details-marker { display: none; }
.bd-seg > summary:hover { background: var(--surface-2); }
.bd-seg > summary:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.bd-drop[open] > summary { background: var(--brand-soft); }
.bd-seg__label { font: 600 13px/1.2 var(--font-body); color: var(--ink); }
.bd-seg__label .opt { font-weight: 400; color: var(--ink-2); }
.bd-seg__value { font: 600 16px/1.3 var(--font-body); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (min-width: 1100px) { .bd-bar { grid-template-columns: minmax(0, 1fr) 240px 240px auto; } }
/* «Куда» -- крупное поле ввода */
.bd-where { cursor: text; padding-left: 54px; }
.bd-where::after {
  content: ""; position: absolute; left: 22px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  border-radius: 50%; border: 3px solid var(--brand); background: var(--surface);
}
.bd-where__input {
  width: 100%; min-width: 0;
  padding: 0; border: 0; background: transparent; color: var(--ink);
  font: 500 clamp(18px, 2vw, 22px)/1.25 var(--font-display); letter-spacing: -.015em;
}
.bd-where__input::placeholder { color: var(--ink-3); opacity: 1; }
.bd-where__input.is-long { font-size: 17px; }
.bd-where__input.is-longer { font-size: 15px; letter-spacing: 0; }
.search-fix .bd-search { margin-top: 0; }
.bd-where__input:focus { outline: none; }
.bd-where:has(.bd-where__input:focus-visible) { box-shadow: inset 0 0 0 3px var(--brand); }
.bd-where__input::-webkit-search-cancel-button { display: none; }

.bd-go {
  align-self: center;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 60px; margin: 0 12px 0 6px; padding: 0 26px;
  border: 0; border-radius: 999px;
  background: var(--brand); color: var(--brand-ink);
  font: 600 17px/1 var(--font-body); cursor: pointer;
  box-shadow: 0 0 0 5px var(--brand-soft);
}
.bd-go:hover { background: var(--brand-hover); }
.bd-go:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.bd-go svg { width: 20px; height: 20px; }

/* раскрывающиеся блоки дат и гостей -- под строкой, не окном поверх страницы */
.bd-pop {
  position: absolute; z-index: 20; top: calc(100% + 10px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lift);
  padding: 18px 20px;
  cursor: default;
}
.bd-pop--when { left: 0; width: min(440px, calc(100vw - 32px)); }
.bd-pop--who { right: 0; width: min(420px, calc(100vw - 32px)); }
.bd-pop .fields { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.bd-pop__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }

.bd-search__after {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  margin-top: 16px; font-size: 15px; color: var(--ink-2);
}
.bd-cheap {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px 0 10px;
  border: 1px dashed var(--brand); border-radius: 999px;
  background: transparent; color: var(--brand-text);
  font: 600 15px/1.2 var(--font-body); text-align: left; cursor: pointer;
}
.bd-cheap:hover { background: var(--brand-soft); }
.bd-cheap:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.bd-cheap svg { width: 20px; height: 20px; flex: none; }
.bd-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }

/* «Когда?» -- календарь диапазоном (со скриптом): на компьютере окно во всю строку,
   два месяца рядом; на телефоне -- месяцы столбиком. Клетки -- .heatcal/.hday из portal.css. */
.bd-pop--when.has-cal .fields, .bd-pop--when.has-cal > .bd-pop__foot { display: none; }
@media (min-width: 720px) {
  .bd-drop--when { position: static; }
  .bd-bar > .bd-drop--when::before { display: none; }
  .bd-drop--when > summary { position: relative; }
  .bd-drop--when > summary::before {
    content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line);
  }
  .bd-drop--when[open] > summary::before { opacity: 0; }
  .bd-pop--when.has-cal { left: 0; right: 0; width: auto; padding: 18px 22px; }
}
.bd-cal__hint { margin-bottom: 10px; font-size: 14px; color: var(--ink-2); max-width: 70ch; }
.bd-cal__legend { margin-bottom: 16px; }
.bd-cal .heatcal { gap: 24px; }
.bd-cal .heatcal__nav--ghost { visibility: hidden; }
.bd-cal .heatcal__nav:disabled { opacity: .35; cursor: default; }
.bd-cal .heatcal__nav:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.bd-cal .hday:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; z-index: 2; }
.bd-cal .hday--none { cursor: pointer; }
.bd-cal .hday:disabled { opacity: .4; cursor: default; box-shadow: none; }
/* линия выбранных дат -- по середине клеток (между числом и ценой), от точки заезда до
   точки выезда; на краю строки и месяца обрывается у края клетки, за сетку не выходит */
.bd-cal .hday.is-start::after, .bd-cal .hday.is-in::after, .bd-cal .hday.is-end::after { top: 50%; bottom: auto; margin-top: 1px; }
.bd-cal .hday.is-start::before, .bd-cal .hday.is-end::before { top: 50%; bottom: auto; margin-top: -2px; }
.bd-cal .hday.is-in.is-row-start::after, .bd-cal .hday.is-end.is-row-start::after { left: 0; }
.bd-cal .hday.is-in.is-row-end::after, .bd-cal .hday.is-start.is-row-end::after { right: 0; }
.bd-cal__foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
}
.bd-cal__sum { font-size: 14px; color: var(--ink-2); }
.bd-cal__sum b { font: 600 16px/1.2 var(--font-display); color: var(--ink); letter-spacing: -.01em; }
.bd-cal__act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
@media (max-width: 719px) {
  .bd-cal__act { width: 100%; margin-left: 0; }
  .bd-cal__act .bd-cheap { width: 100%; justify-content: center; }
  .bd-cal__act .btn { flex: 1; }
}

/* «Кто едет?» со скриптом (`guests.js`): степпер взрослых, плашки детей, сетка возрастов --
   устройство как в виджете, облик площадки. */
.bd-guests { display: flex; flex-direction: column; gap: 10px; }
.bd-guests[hidden], [data-guests-plain][hidden] { display: none; }
.bd-guests .counter-row { padding-block: 4px; }
.bd-guests .counter button:focus-visible, .bd-guests__toggle:focus-visible,
.bd-guests__grid button:focus-visible, .bd-guests__chip button:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.bd-guests__kids {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding-top: 10px; border-top: 1px solid var(--line);
}
.bd-guests__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.bd-guests__chips[hidden] { display: none; }
.bd-guests__chip {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 34px; padding: 0 4px 0 12px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-text); font: 600 14px/1 var(--font-body);
}
.bd-guests__chip button {
  width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: transparent; color: inherit; font: 400 18px/1 var(--font-body); cursor: pointer;
}
.bd-guests__chip button:hover { background: color-mix(in srgb, var(--brand) 18%, transparent); }
.bd-guests__add[hidden] { display: none; }
.bd-guests__toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px 0 10px;
  border: 1px dashed var(--brand); border-radius: 999px;
  background: transparent; color: var(--brand-text);
  font: 600 15px/1.2 var(--font-body); cursor: pointer;
}
.bd-guests__toggle:hover, .bd-guests__toggle[aria-expanded="true"] { background: var(--brand-soft); }
.bd-guests__plus { font-size: 18px; line-height: 1; }
.bd-guests__menu { margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.bd-guests__menu[hidden] { display: none; }
.bd-guests__menu-title { margin-bottom: 8px; font: 600 14px/1.3 var(--font-body); }
.bd-guests__grid { display: grid; gap: 6px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bd-guests__grid button {
  min-height: 38px; padding: 0 6px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: 500 14px/1.2 var(--font-body); cursor: pointer;
}
.bd-guests__grid button:hover { border-color: var(--brand); background: var(--brand-soft); }

/* подсказки */
.bd-sug {
  position: absolute; z-index: 21; left: 0; top: calc(100% + 10px);
  width: min(560px, calc(100vw - 32px)); padding: 10px; cursor: default;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lift);
}
.bd-sug__list { list-style: none; display: flex; flex-direction: column; }
.bd-sug__group { padding: 10px 12px 6px; font: 600 12px/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.bd-sug__group:not(:first-child) { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 14px; }
.bd-sug__list [role="option"] { cursor: pointer; }
.bd-opt {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 4px 14px;
  padding: 8px 12px; border-radius: 14px; color: var(--ink);
}
.bd-opt:hover { background: var(--surface-2); }
.bd-opt.is-active { background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.bd-opt__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--brand-text); }
.bd-opt__icon svg { width: 22px; height: 22px; }
.bd-opt__name { font-weight: 600; font-size: 16px; line-height: 1.3; overflow-wrap: break-word; }
.bd-opt mark { background: none; color: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 4px; text-underline-offset: 1px; }
.bd-opt__sub { font-size: 14px; color: var(--ink-2); }
.bd-opt__price { text-align: right; white-space: nowrap; font: 600 15px/1.2 var(--font-display); letter-spacing: -.01em; }
.bd-opt__price small { display: block; font: 400 12px/1.3 var(--font-body); color: var(--ink-3); letter-spacing: 0; }
.bd-sug__foot { padding: 10px 12px 4px; margin-top: 6px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.bd-none { padding: 16px 14px 14px; display: flex; flex-direction: column; gap: 12px; }
.bd-search > .bd-none { margin-top: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.bd-none__title { font: 600 18px/1.3 var(--font-body); overflow-wrap: anywhere; }
.bd-none .chip { cursor: pointer; font: inherit; }

/* ---------- телефон: строка столбиком; со скриптом -- крупное поле и поиск на весь экран ---------- */
.bd-mfield {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 64px; margin-top: 22px; padding: 0 8px 0 18px;
  border-radius: 20px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-lift); font: inherit; text-align: left; cursor: pointer;
}
.bd-mfield[hidden], .bd-mcheap[hidden] { display: none; }
.bd-mcheap { margin-top: 12px; }
.bd-mfield:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.bd-mfield__dot { width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--brand); flex: none; }
.bd-mfield__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bd-mfield__text b { font: 500 19px/1.2 var(--font-display); letter-spacing: -.01em; }
.bd-mfield__text small { font-size: 13px; color: var(--ink-2); }
.bd-mfield__go { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); flex: none; }
.bd-mfield__go svg { width: 20px; height: 20px; }

@media (max-width: 719px) {
  .bd-bar { grid-template-columns: 1fr; border-radius: 20px; min-height: 0; }
  .bd-bar::after { display: none; }
  .bd-seg + .bd-seg::before { display: none; }
  .bd-seg + .bd-seg { border-top: 1px solid var(--line); }
  .bd-where { padding: 16px 16px 16px 46px; border-radius: 20px 20px 0 0; }
  .bd-where::after { left: 16px; top: 28px; margin-top: 0; }
  .bd-where__input { font-size: 20px; }
  .bd-seg > summary { height: auto; padding: 12px 16px; border-radius: 0; }
  .bd-pop { position: static; margin: 0 10px 12px; width: auto; box-shadow: none; padding: 14px; }
  .bd-pop .fields { grid-template-columns: 1fr; }
  .bd-go { height: 56px; margin: 4px 10px 10px; box-shadow: none; }
  /* подсказки -- на ширину поля «Куда едете?», не со сдвигом ввода */
  .bd-sug { position: static; width: auto; margin: 10px -8px 0 -38px; box-shadow: none; }
  .bd-opt { gap: 4px 10px; padding: 8px 10px; }
  .bd-opt__price { font-size: 14px; }

  /* со скриптом: форма за крупным полем */
  .bd-search.is-collapsible:not(.is-full) { display: none; }
  .bd-search.is-full {
    position: fixed; inset: 0; z-index: 60; margin: 0; max-width: none;
    display: flex; flex-direction: column; gap: 14px;
    padding: 0 16px calc(96px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto; background: var(--bg);
  }
  .bd-search.is-full .bd-search__top {
    position: sticky; top: 0; z-index: 3;
    display: flex; align-items: center; gap: 12px;
    margin-inline: -16px; padding: 10px 16px;
    background: var(--surface); border-bottom: 1px solid var(--line);
  }
  .bd-search.is-full .bd-search__top b { font: 600 17px/1.2 var(--font-body); }
  .bd-search.is-full .bd-go { display: none; }
  .bd-search.is-full .bd-bar > :nth-last-child(2) > summary { padding-bottom: 16px; border-radius: 0 0 20px 20px; }
  .bd-search.is-full .bd-search__after { margin-top: 0; }
  .bd-search.is-full .bd-dot { display: none; }
  .bd-search.is-full .bd-cheap { width: 100%; justify-content: center; min-height: 48px; }
  .bd-search.is-full .bd-search__bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 3;
    display: flex; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--surface); border-top: 1px solid var(--line);
  }
  .bd-search.is-full .bd-search__bar .btn { flex: 1; min-height: 56px; font-size: 17px; border-radius: 16px; }
}
.bd-search__close {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
}
.bd-search__close svg { width: 20px; height: 20px; }
.bd-search__close:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
/* окно или шторка поверх страницы открыты: страница не прокручивается (portal.js bdLock) */
html.bd-lock, html.bd-lock body { overflow: hidden; overscroll-behavior: none; }
.bd-edit.is-open, .bd-search.is-full { overscroll-behavior: contain; }
/* поиск на весь экран (телефон) -- колонка с прокруткой: части не сжимаются по высоте,
   иначе строка поиска с подсказками или «Не нашли» налезает на то, что ниже */
.bd-search.is-full > *, .bd-edit.is-open .bd-search--edit > * { flex-shrink: 0; }

/* ---------- плитки городов ---------- */
.bd-section { margin-top: 56px; }
@media (min-width: 720px) { .bd-section { margin-top: 80px; } }
.bd-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 18px; }
.bd-section__head h2 { font: 600 clamp(20px, 3vw, 28px)/1.2 var(--font-display); letter-spacing: -.015em; }
.bd-cities { list-style: none; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .bd-cities { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.bd-city { position: relative; display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.bd-city__ph {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 16 / 10; border-radius: 18px; background: var(--surface-2);
  transition: transform .25s ease;
}
.bd-city__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.bd-city:hover .bd-city__ph { transform: translateY(-3px); }
/* без фото -- цветной фон с названием города */
.bd-city__ph--none { display: flex; align-items: flex-end; padding: 14px 16px; }
.bd-city__ph--none span { font: 600 clamp(20px, 3vw, 28px)/1.1 var(--font-display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.bd-city__ph--a { background: linear-gradient(135deg, var(--brand-soft), color-mix(in srgb, var(--mark) 45%, var(--brand-soft))); color: var(--brand-text); }
.bd-city__ph--b { background: linear-gradient(135deg, color-mix(in srgb, var(--mark) 55%, var(--surface)), var(--brand-soft)); color: var(--ink); }
.bd-city__name { font: 600 clamp(17px, 2vw, 21px)/1.2 var(--font-display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.bd-city__name a { color: inherit; text-decoration: none; }
.bd-city__name a::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.bd-city__name a:focus-visible { outline: none; }
.bd-city__name a:focus-visible::after { outline: 3px solid var(--brand); outline-offset: 4px; }
.bd-city__meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; margin-top: -4px; font-size: 14px; color: var(--ink-2); }
.bd-city__price { font: 600 16px/1.2 var(--font-display); color: var(--ink); letter-spacing: -.01em; white-space: nowrap; }
.bd-city__price .from { font: 400 13px/1 var(--font-body); color: var(--ink-2); letter-spacing: 0; }
@media (max-width: 719px) { .bd-city__ph { border-radius: 14px; } .bd-city__meta { flex-direction: column; } }

/* ---------- отличие: бронь напрямую у отеля ---------- */
.bd-direct {
  position: relative; overflow: hidden;
  padding: 28px 20px;
  border-radius: 28px;
  /* тёмная плашка в обеих темах: в тёмной -- с рамкой, чтобы не слиться с фоном */
  --d-bg: #141A2E; --d-ink: #F1F3F8; --d-ink-2: #C3C8DD;
  background: var(--d-bg); color: var(--d-ink);
  border: 1px solid var(--line);
}
@media (min-width: 720px) { .bd-direct { padding: 48px 48px 44px; } }
.bd-direct__title { font: 600 clamp(26px, 4.6vw, 46px)/1.1 var(--font-display); letter-spacing: -.025em; max-width: 18ch; }
.bd-direct__title .marker { color: var(--d-ink); background: linear-gradient(to top, transparent 0 4%, color-mix(in srgb, var(--mark) 75%, transparent) 4% 24%, transparent 24%); }
.bd-line { position: relative; display: flex; align-items: center; gap: 12px; margin: 30px 0 34px; font: 600 14px/1.2 var(--font-body); }
.bd-line__end { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.bd-line__end i { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--mark); flex: none; }
.bd-line__end--hotel i { background: var(--mark); }
.bd-line__track { position: relative; flex: 1; height: 3px; background: var(--mark); border-radius: 2px; }
.bd-line__track s {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 3px 10px; border-radius: 999px;
  background: var(--d-bg); color: var(--d-ink-2);
  font-weight: 500; font-size: 13px; white-space: nowrap;
  border: 1px dashed var(--d-ink-2);
}
.bd-facts { list-style: none; display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .bd-facts { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.bd-facts li { display: flex; flex-direction: column; gap: 6px; }
.bd-facts b { font: 600 clamp(18px, 2.2vw, 22px)/1.25 var(--font-display); letter-spacing: -.01em; }
.bd-facts span { font-size: 15px; line-height: 1.5; color: var(--d-ink-2); }

/* ---------- выдача без дат ---------- */
.bd-nodates {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px;
  margin-bottom: 16px; padding: 14px 16px; border-radius: 16px;
  background: var(--brand-soft); color: var(--ink);
}
.bd-nodates p { max-width: 60ch; }

/* ---------- поиск прямо в выдаче (список, карта, лента) ----------
   Строка условий раскрывает ту же форму поверх выдачи; на главную гость не уходит.
   Без скрипта -- ссылка #bd-edit и :target, со скриптом -- класс is-open. */
.bd-pill a { cursor: pointer; }
.bd-pill a:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; border-radius: 999px; }
.bd-edit { display: none; }
.bd-edit:target, .bd-edit.is-open {
  display: block;
  position: fixed; z-index: 40; top: 72px; left: 0; right: 0;
  width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin-inline: auto;
  padding: 10px 12px 14px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 26px;
  /* затемнение выдачи под раскрытым поиском */
  box-shadow: var(--shadow-lift), 0 0 0 100vmax rgba(12, 16, 32, .32);
}
.bd-search--edit { margin-top: 0; max-width: none; }
.bd-search--edit .bd-search__top { display: flex; align-items: center; gap: 12px; padding: 2px 6px 10px; }
.bd-search--edit .bd-search__top b { font: 600 16px/1.2 var(--font-body); }
.bd-search__note { font-size: 15px; color: var(--ink-2); }
.bd-search--edit .bd-bar { box-shadow: none; min-height: 76px; }
.bd-search--edit .bd-go { height: 54px; padding-inline: 22px; }
.bd-search--edit .bd-search__close { width: 40px; height: 40px; order: 3; margin-left: auto; }
@media (max-width: 719px) {
  .bd-edit:target, .bd-edit.is-open {
    inset: 0; top: 0; width: auto; margin: 0; padding: 0 16px calc(96px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto; border: 0; border-radius: 0; background: var(--bg); box-shadow: none;
  }
  .bd-search--edit { display: flex; flex-direction: column; gap: 14px; }
  .bd-search--edit .bd-search__top {
    position: sticky; top: 0; z-index: 3; flex-wrap: wrap; gap: 2px 12px;
    margin-inline: -16px; padding: 10px 16px;
    background: var(--surface); border-bottom: 1px solid var(--line);
  }
  .bd-search--edit .bd-search__close { order: 0; margin-left: 0; width: 44px; height: 44px; }
  /* телефон: подпись -- своей строкой под заголовком, без тире и с прописной */
  .bd-search--edit .bd-search__note { flex-basis: 100%; font-size: 13px; }
  .bd-search--edit .bd-search__dash { display: none; }
  .bd-search--edit .bd-search__note::first-letter { text-transform: uppercase; }
  .bd-search--edit .bd-go { display: none; }
  .bd-search--edit .bd-dot { display: none; }
  .bd-search--edit .bd-cheap { width: 100%; justify-content: center; min-height: 48px; }
  .bd-search--edit .bd-search__after { margin-top: 0; }
  .bd-search--edit .bd-bar > :nth-last-child(2) > summary { padding-bottom: 16px; border-radius: 0 0 20px 20px; }
  .bd-search--edit .bd-search__bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 3;
    display: flex; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--surface); border-top: 1px solid var(--line);
  }
  .bd-search--edit .bd-search__bar .btn { flex: 1; min-height: 56px; font-size: 17px; border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) { .bd-city__ph { transition: none; } }
