/* booking-direct -- токены и компоненты площадки (макет этапа 2 блока Б28).
   Файл переносится в portal/static/portal/ на этапе 6 без правок; стили виджета
   (storefront/) здесь не используются.

   Облик: «прямая линия» -- гость и отель соединены линией без посредника.
   Линия -- в знаке, в маршруте брони и под ценой. Остальное тихо:
   прохладная бумага, ультрамарин для действий, лаймовый маркер для цены.
   Шрифты: Unbounded -- знак, заголовки страниц, цены; Golos Text -- всё
   остальное; IBM Plex Mono -- даты, ночи, номера броней. */

/* Шрифты -- свои файлы (portal/static/portal/fonts/, лицензия SIL OFL), не
   Google Fonts: страница не ходит на чужой адрес и не отдаёт ему адрес гостя.
   Кириллица и латиница отдельно -- браузер грузит только нужное.
   Golos Text и Unbounded -- переменные, один файл на все начертания. */
@font-face {
  font-family: "Golos Text";
  src: url("fonts/golos-text-cyrillic.2b8fbbb33a14.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url("fonts/golos-text-latin.f57df9832ab8.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Unbounded";
  src: url("fonts/unbounded-cyrillic.3a5ed4d11365.woff2") format("woff2");
  font-weight: 500 600;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  src: url("fonts/unbounded-latin.8616dc355070.woff2") format("woff2");
  font-weight: 500 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-400-cyrillic.14675f1ad220.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-400-latin.16796c7cc5d4.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-500-cyrillic.8bc02c62d3c8.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-500-latin.3bd6f090515e.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* бумага и чернила */
  --bg: #F1F3F8;
  --surface: #FFFFFF;
  --surface-2: #E7EAF3;
  --ink: #141A2E;
  --ink-2: #4A5270;
  --ink-3: #6E7593;
  --line: #D7DBE8;
  --line-strong: #B9BFD3;
  /* действие и маркер */
  --brand: #2F3BD6;
  --brand-hover: #2530B8;
  --brand-ink: #FFFFFF;
  --brand-soft: #E2E5FF;
  --brand-text: #2F3BD6;
  --mark: #D4F25A;
  --mark-ink: #141A2E;
  /* состояния */
  --ok: #11734A;
  --ok-soft: #DDF3E8;
  --warn: #8A5300;
  --warn-soft: #FCEFD6;
  --bad: #B42C25;
  --bad-soft: #FBE3E1;
  /* карта */
  --map-land: #E4E8DF;
  --map-sea: #C9DCEF;
  --map-road: #FFFFFF;
  --map-park: #D3E2C8;

  --shadow: 0 1px 2px rgba(20, 26, 46, .06), 0 6px 24px -12px rgba(20, 26, 46, .18);
  --shadow-lift: 0 2px 4px rgba(20, 26, 46, .08), 0 18px 40px -18px rgba(20, 26, 46, .35);

  --font-display: "Unbounded", "Golos Text", system-ui, sans-serif;
  --font-body: "Golos Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --r-s: 8px;
  --r-m: 12px;
  --r-l: 18px;
  --wrap: 1120px;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1020;
    --surface: #151A2D;
    --surface-2: #1E2439;
    --ink: #E9ECF7;
    --ink-2: #AEB4CF;
    --ink-3: #8A91AE;
    --line: #2A3150;
    --line-strong: #3B4366;
    --brand: #8F98FF;
    --brand-hover: #A9B0FF;
    --brand-ink: #0C1020;
    --brand-soft: #232A57;
    --brand-text: #A9B0FF;
    --mark: #D4F25A;
    --mark-ink: #141A2E;
    --ok: #5BD199;
    --ok-soft: #12352A;
    --warn: #F2BE62;
    --warn-soft: #3A2C10;
    --bad: #FF8A80;
    --bad-soft: #3E1A1C;
    --map-land: #1B2133;
    --map-sea: #14294A;
    --map-road: #2B3350;
    --map-park: #1D2E2A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .35), 0 18px 40px -18px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0C1020;
  --surface: #151A2D;
  --surface-2: #1E2439;
  --ink: #E9ECF7;
  --ink-2: #AEB4CF;
  --ink-3: #8A91AE;
  --line: #2A3150;
  --line-strong: #3B4366;
  --brand: #8F98FF;
  --brand-hover: #A9B0FF;
  --brand-ink: #0C1020;
  --brand-soft: #232A57;
  --brand-text: #A9B0FF;
  --mark: #D4F25A;
  --mark-ink: #141A2E;
  --ok: #5BD199;
  --ok-soft: #12352A;
  --warn: #F2BE62;
  --warn-soft: #3A2C10;
  --bad: #FF8A80;
  --bad-soft: #3E1A1C;
  --map-land: #1B2133;
  --map-sea: #14294A;
  --map-road: #2B3350;
  --map-park: #1D2E2A;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .35), 0 18px 40px -18px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ---------- основа ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg { max-width: 100%; }

/* Ссылки площадки без подчёркивания (владелец 2026-11-16): при наведении меняется только цвет;
   фокус клавиатурой -- обводка ниже. Ссылки со своим классом (кнопки, плашки) красятся сами. */
a { color: var(--brand-text); text-decoration: none; }
a:where(:not([class])):hover { color: var(--brand-hover); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* шкала */
.t-display {
  font: 600 clamp(28px, 6.2vw, 52px)/1.12 var(--font-display);
  letter-spacing: -.02em;
}
.t-h1 { font: 600 clamp(24px, 4.6vw, 36px)/1.18 var(--font-display); letter-spacing: -.015em; }
.t-h2 { font: 600 clamp(19px, 3vw, 24px)/1.25 var(--font-display); letter-spacing: -.01em; }
.t-h3 { font: 600 18px/1.3 var(--font-body); }
.t-lead { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.t-small { font-size: 14px; line-height: 1.45; }
.t-muted { color: var(--ink-2); }
.t-faint { color: var(--ink-3); }
.t-eyebrow {
  font: 500 12px/1.3 var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { :root { --gutter: 24px; } }

.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 12px); }
.spread { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

main { display: block; padding-block: 24px 56px; }
@media (min-width: 720px) { main { padding-block: 36px 80px; } }

/* ---------- знак и шапка ---------- */

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font: 600 18px/1 var(--font-display);
  letter-spacing: -.02em;
}
.logo:hover { text-decoration: none; }
.logo__mark { width: 34px; height: 14px; flex: none; color: var(--brand); }
.logo__word { white-space: nowrap; }
.logo__word b { font-weight: 600; color: var(--brand-text); }
@media (max-width: 719px) { .logo { font-size: 16px; gap: 8px; } .logo__mark { width: 28px; } .nav a { padding: 0 9px; } }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 60px;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 12px;
  border-radius: 999px;
  color: var(--ink); text-decoration: none;
  font-size: 15px; font-weight: 500;
}
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-text); }
.nav svg { width: 20px; height: 20px; flex: none; }
.nav__label { display: none; }
@media (min-width: 720px) { .nav__label { display: inline; } }
.nav .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: var(--brand-ink);
  font: 600 14px/1 var(--font-body);
}
.nav a.nav__account { padding-inline: 4px 12px; }
/* телефон: в шапке только значки, имя -- в «Моих данных»; шапка вошедшего гостя
   укладывается и в 320 px (на самом узком слово логотипа прячется, значок остаётся) */
@media (max-width: 719px) {
  .nav { gap: 0; }
  .nav a { padding: 0 8px; }
  .nav a.nav__account { padding-inline: 4px; }
}
@media (max-width: 400px) { .logo { font-size: 15px; } .site-header__inner { gap: 6px; } }
@media (max-width: 359px) {
  .logo__word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 28px 36px;
  color: var(--ink-2);
  font-size: 14px;
}
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: flex-start; }
.site-footer p { max-width: 46ch; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--ink-2); }

/* ---------- кнопки ---------- */

.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border: 1px solid var(--btn-bd); border-radius: var(--r-m);
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 16px/1.2 var(--font-body);
  text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .1s;
}
.btn:hover { text-decoration: none; border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { --btn-bg: var(--brand); --btn-fg: var(--brand-ink); --btn-bd: var(--brand); }
.btn--primary:hover { --btn-bg: var(--brand-hover); border-color: var(--brand-hover); }
.btn--quiet { --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--brand-text); padding-inline: 10px; }
.btn--quiet:hover { --btn-bg: var(--brand-soft); border-color: transparent; }
.btn--danger { --btn-fg: var(--bad); --btn-bd: var(--bad); --btn-bg: transparent; }
.btn--danger:hover { --btn-bg: var(--bad-soft); border-color: var(--bad); }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 15px; border-radius: var(--r-s); }
.btn--block { width: 100%; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .5; cursor: not-allowed; }

/* сердечко */
.fav {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; flex: none;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--ink-2);
  cursor: pointer;
}
.fav svg { width: 20px; height: 20px; }
.fav:hover { color: var(--brand-text); border-color: var(--line-strong); }
.fav[aria-pressed="true"] { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.fav[aria-pressed="true"] svg path { fill: currentColor; }
.fav--on-photo { position: absolute; top: 10px; right: 10px; box-shadow: var(--shadow); }

/* ---------- поля ---------- */

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.label { font-size: 14px; font-weight: 500; color: var(--ink); }
.label .opt { font-weight: 400; color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%;
  min-height: 48px; padding: 11px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r-s);
  background: var(--surface); color: var(--ink);
  font: 400 16px/1.4 var(--font-body);
}
.textarea { min-height: 96px; resize: vertical; }
.select {
  appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.input:hover, .select:hover { border-color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.input[aria-invalid="true"] { border-color: var(--bad); }
.hint { font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.field-error { font-size: 13px; line-height: 1.4; color: var(--bad); font-weight: 500; }
.fields { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }

.check {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start;
  font-size: 15px; line-height: 1.45; cursor: pointer;
}
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); }
.check .req { color: var(--bad); }

/* выбор вариантом-карточкой */
.choice {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 4px 12px; align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--line-strong); border-radius: var(--r-m);
  background: var(--surface);
  cursor: pointer;
}
.choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); }
.choice__title { font-weight: 600; }
.choice__note { grid-column: 2 / -1; font-size: 14px; color: var(--ink-2); }
.choice__price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.choice.is-on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--brand-soft); }

/* ---------- поиск-фраза (главная) ---------- */

.seek {
  font: 500 clamp(22px, 4.6vw, 40px)/1.55 var(--font-display);
  letter-spacing: -.015em;
  color: var(--ink);
}
.seek__line { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1em .35em; }
.seek__slot {
  position: relative;
  display: inline-flex; align-items: baseline;
  padding: 0 .1em;
  border: 0; border-bottom: 3px solid var(--brand);
  background: transparent; color: var(--brand-text);
  font: inherit; letter-spacing: inherit;
  cursor: pointer;
  appearance: none;
  border-radius: 0;
}
.seek__slot:hover { background: var(--brand-soft); }
.seek__slot:focus-visible { outline-offset: 4px; }
select.seek__slot { padding-right: .1em; field-sizing: content; max-width: 100%; }
.seek__glue { display: inline-flex; align-items: baseline; }
.seek__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; font: 400 15px/1.4 var(--font-body); letter-spacing: 0; }
.seek__actions .btn { min-height: 54px; padding-inline: 28px; font-size: 17px; }

/* свёрнутый поиск (выдача, отель) */
.query {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  padding: 10px 10px 10px 16px;
  border: 1px solid var(--line); border-radius: var(--r-l);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.query__parts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-width: 0; flex: 1 1 260px; }
.query__part { display: inline-flex; align-items: baseline; gap: 6px; font-weight: 600; }
.query__part small { font-weight: 400; color: var(--ink-2); font-size: 13px; }
.query--inline { box-shadow: none; padding-block: 6px; }
.query--inline .query__parts { flex: 0 1 auto; }
.query__sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }

/* ---------- метки ---------- */

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font-size: 15px; font-weight: 500; text-decoration: none;
}
.chip:hover { border-color: var(--ink-3); text-decoration: none; }
.chip small { color: var(--ink-3); font-weight: 400; font-variant-numeric: tabular-nums; }
.chip[aria-current="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip[aria-current="true"] small { color: inherit; opacity: .7; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600; line-height: 1.35;
  background: var(--surface-2); color: var(--ink-2);
  white-space: nowrap;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.badge--ok { background: var(--ok-soft); color: var(--ok); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--bad { background: var(--bad-soft); color: var(--bad); }
.badge--plain::before { display: none; }

/* ---------- цена ---------- */

.price { display: flex; flex-direction: column; gap: 2px; }
.price__value {
  font: 600 22px/1.15 var(--font-display);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price__value .from { font: 500 15px/1 var(--font-body); color: var(--ink-2); letter-spacing: 0; margin-right: 2px; }
.price__note { font-size: 13px; color: var(--ink-2); }
/* лаймовая линия под ценой: под буквами, а не за ними -- читается в обеих темах */
.marker {
  background: linear-gradient(to top, transparent 0 4%, var(--mark) 4% 22%, transparent 22%);
  padding-inline: 2px;
}

/* ---------- маршрут брони (сигнатура) ---------- */

.route {
  list-style: none;
  display: flex; align-items: flex-start;
  margin: 0; padding: 0;
  counter-reset: none;
}
.route li {
  position: relative;
  flex: 1 1 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-width: 0;
  font-size: 13px; font-weight: 500; line-height: 1.25; text-align: center;
  color: var(--ink-3);
}
.route li::before {
  content: "";
  position: relative; z-index: 1;
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--line-strong); background: var(--bg);
}
.route li::after {
  content: "";
  position: absolute; top: 6px; left: calc(-50% + 7px); right: calc(50% + 7px);
  height: 2px; background: var(--line-strong);
}
.route li:first-child::after { display: none; }
.route li.is-done { color: var(--ink-2); }
.route li.is-done::before { background: var(--brand); border-color: var(--brand); }
.route li.is-done::after, .route li.is-now::after { background: var(--brand); height: 3px; top: 5.5px; }
.route li.is-now { color: var(--ink); font-weight: 700; }
.route li.is-now::before { background: var(--mark); border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.route a { color: inherit; text-decoration: none; }
.route a:hover { color: var(--brand-text); }
@media (max-width: 560px) {
  .route li span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .route li.is-now span { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: nowrap; }
}

/* ---------- фото-заглушки (демо-фото и «нет фото») ---------- */

.ph {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  border-radius: var(--r-m);
  overflow: hidden;
  background: #8FB5D6;
}
.ph::after {
  content: attr(data-label);
  position: absolute; left: 8px; bottom: 8px;
  padding: 2px 7px; border-radius: 6px;
  background: rgba(12, 16, 32, .55); color: #fff;
  font: 500 11px/1.4 var(--font-body);
  letter-spacing: .02em;
}
.ph:not([data-label])::after { display: none; }
.ph--sea {
  background:
    radial-gradient(circle at 74% 34%, #FFE3A3 0 6%, rgba(255, 227, 163, 0) 6.5%),
    linear-gradient(176deg, rgba(255,255,255,0) 0 66%, #E9D9B8 66.5% 100%),
    linear-gradient(to bottom, #A9CDEB 0 50%, #3D7FB0 50% 67%, #2C6895 67% 100%);
}
.ph--hills {
  background:
    radial-gradient(ellipse 60% 40% at 20% 75%, #476E4A 0 60%, rgba(0,0,0,0) 61%),
    radial-gradient(ellipse 70% 45% at 80% 80%, #3B5F40 0 60%, rgba(0,0,0,0) 61%),
    linear-gradient(to bottom, #D8E6F0 0 45%, #9FB9C9 45% 62%, #6F8F77 62% 100%);
}
.ph--court {
  background:
    linear-gradient(90deg, rgba(0,0,0,0) 0 18%, #F2E6D3 18% 40%, rgba(0,0,0,0) 40% 60%, #EADCC5 60% 82%, rgba(0,0,0,0) 82%),
    linear-gradient(to bottom, #BFD9EC 0 30%, #D9C7AA 30% 70%, #6F9A5F 70% 100%);
}
.ph--pool {
  background:
    linear-gradient(to bottom, #CDE3EE 0 35%, rgba(0,0,0,0) 35%),
    linear-gradient(100deg, #E8E0D2 0 22%, #58B6D6 22% 78%, #E8E0D2 78%);
}
.ph--room {
  background:
    linear-gradient(to bottom, rgba(0,0,0,0) 0 58%, #F4F1EC 58% 74%, rgba(0,0,0,0) 74%),
    linear-gradient(90deg, #DCCFBE 0 62%, #A8C7DD 62% 92%, #DCCFBE 92%);
}
.ph--room2 {
  background:
    linear-gradient(to bottom, rgba(0,0,0,0) 0 55%, #ECE7F0 55% 73%, rgba(0,0,0,0) 73%),
    linear-gradient(90deg, #C9D3DC 0 10%, #9FC3D9 10% 40%, #C9D3DC 40%);
}
.ph--bath {
  background:
    linear-gradient(to bottom, rgba(0,0,0,0) 0 60%, #FFFFFF 60% 78%, rgba(0,0,0,0) 78%),
    repeating-linear-gradient(90deg, #DCE5EA 0 22px, #CED9E0 22px 24px);
}
.ph--none {
  display: grid; place-items: center;
  background: var(--surface-2);
  color: var(--ink-3);
}
.ph--none svg { width: 44px; height: 44px; }
.ph--none::after { background: transparent; color: var(--ink-2); }

/* ---------- карточка отеля в выдаче ---------- */

.hotel-list { display: flex; flex-direction: column; gap: 14px; list-style: none; }
.hotel-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
}
.hotel-card__media { position: relative; }
.hotel-card__media .ph { border-radius: 0; aspect-ratio: 16 / 9; height: 100%; }
.hotel-card__body { display: flex; flex-direction: column; gap: 10px; padding: 16px; min-width: 0; }
.hotel-card__name { font: 600 19px/1.25 var(--font-body); }
.hotel-card__name a { color: var(--ink); text-decoration: none; }
.hotel-card__name a:hover { color: var(--brand-text); }
.hotel-card__addr { font-size: 14px; color: var(--ink-2); display: flex; gap: 6px; align-items: flex-start; }
.hotel-card__addr svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.hotel-card__facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--ink-2); }
.hotel-card__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 4px; }
@media (min-width: 720px) {
  .hotel-card { grid-template-columns: 240px 1fr; }
  .hotel-card__media .ph { aspect-ratio: auto; min-height: 196px; }
  .hotel-card__body { padding: 18px 20px; }
}
.hotel-card--off .hotel-card__media .ph { filter: grayscale(.85) opacity(.7); }
.hotel-card--off { background: transparent; border-style: dashed; }

.list-divider {
  display: flex; align-items: center; gap: 12px;
  margin-block: 18px 4px;
  color: var(--ink-2); font-size: 14px; font-weight: 600;
}
.list-divider::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }

/* ---------- выдача: список + карта ---------- */

.results { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; }
.results__list { min-width: 0; }
.results__map { min-width: 0; }
@media (min-width: 900px) {
  .results { grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; }
  .results__map { position: sticky; top: 16px; }
}

/* переключатель «Список / Карта» -- только на телефоне */
.seg {
  display: inline-flex; gap: 2px; padding: 3px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface);
}
.seg a {
  padding: 7px 16px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px;
}
.seg a[aria-current="true"] { background: var(--ink); color: var(--bg); }
@media (min-width: 900px) { .seg--phone { display: none; } }

.map {
  position: relative;
  border-radius: var(--r-l);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--map-sea);
}
.map svg.map__art { display: block; width: 100%; height: auto; }
.map__land { fill: var(--map-land); }
.map__sea { fill: var(--map-sea); }
.map__park { fill: var(--map-park); }
.map__road { fill: none; stroke: var(--map-road); stroke-width: 5; stroke-linecap: round; }
.map__road--thin { stroke-width: 2.5; }
.map__label { fill: var(--ink-3); font: 500 11px var(--font-body); letter-spacing: .04em; }
.map__sea-label { fill: var(--ink-2); font: italic 400 12px var(--font-body); opacity: .8; }
.pin {
  position: absolute;
  transform: translate(-50%, -100%);
  display: inline-flex; align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong);
  font: 600 12px/1.2 var(--font-body);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  box-shadow: var(--shadow);
  text-decoration: none;
}
.pin::after {
  content: ""; position: absolute; left: 50%; top: 100%;
  width: 8px; height: 8px; margin: -4px 0 0 -4px;
  background: inherit; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
  transform: rotate(45deg);
}
.pin--on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); z-index: 2; }
.pin--on::after { border-color: var(--brand); }
.pin--off { background: var(--surface-2); color: var(--ink-3); }
.pin--dot { padding: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); border: 3px solid var(--surface); }
.pin--dot::after { display: none; }
.map__caption {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  display: flex; justify-content: space-between; gap: 8px; align-items: center;
  font-size: 12px; color: var(--ink-2);
}
.map__caption span { background: var(--surface); padding: 3px 8px; border-radius: 6px; }
.map--failed {
  display: grid; place-items: center; gap: 8px;
  min-height: 160px; padding: 20px;
  background: var(--surface-2); color: var(--ink-2);
  text-align: center; font-size: 14px;
}

/* ---------- блоки и раскладки ---------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 18px;
}
@media (min-width: 720px) { .panel { padding: 24px; } }
.panel--flat { background: transparent; }
.panel__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 14px; }

.split { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; }
.split > * { min-width: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
  .split__aside { position: sticky; top: 16px; }
}

.section { display: flex; flex-direction: column; gap: 16px; }
.section + .section { margin-top: 36px; }

.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 15px; }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }

/* итог заказа */
.sum { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.sum__row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.sum__row > :last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sum__row--sub { color: var(--ink-2); font-size: 14px; }
.sum__total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding-top: 14px; margin-top: 4px;
  border-top: 2px solid var(--ink);
}
.sum__total b { font: 600 24px/1.1 var(--font-display); letter-spacing: -.02em; white-space: nowrap; }

/* нижняя полоса действия на телефоне */
.dock { display: none; }
@media (max-width: 899px) {
  .dock {
    position: sticky; bottom: 0; z-index: 5;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 20px;
    padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 24px -18px rgba(20, 26, 46, .4);
  }
  .dock__sum { display: flex; flex-direction: column; font-size: 13px; color: var(--ink-2); }
  .dock__sum b { font: 600 19px/1.15 var(--font-display); color: var(--ink); letter-spacing: -.02em; }
  .has-dock .split__aside .btn--continue { display: none; }
}

/* сообщение */
.notice {
  display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start;
  padding: 14px 16px;
  border-radius: var(--r-m);
  background: var(--surface-2); color: var(--ink);
  font-size: 15px;
}
.notice svg { width: 22px; height: 22px; color: var(--ink-2); }
.notice b { display: block; margin-bottom: 2px; }
.notice--info { background: var(--brand-soft); }
.notice--info svg { color: var(--brand-text); }
.notice--ok { background: var(--ok-soft); }
.notice--ok svg { color: var(--ok); }
.notice--warn { background: var(--warn-soft); }
.notice--warn svg { color: var(--warn); }
.notice--bad { background: var(--bad-soft); }
.notice--bad svg { color: var(--bad); }

/* пустое и ошибочное состояние */
.state {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  max-width: 620px;
  padding-block: 12px;
}
.state__sign {
  width: 64px; height: 26px; color: var(--brand);
}
.state__sign--broken { color: var(--bad); }
.state .t-lead { font-size: 17px; }

/* ---------- страница отеля ---------- */

.gallery { display: grid; gap: 8px; grid-template-columns: 1fr; }
.gallery .ph { aspect-ratio: 16 / 10; border-radius: var(--r-m); }
.gallery__more { display: none; }
@media (min-width: 720px) {
  .gallery { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; height: 380px; }
  .gallery .ph { aspect-ratio: auto; height: 100%; }
  .gallery > :first-child { grid-row: 1 / 3; }
  .gallery__more { display: block; }
}
.gallery__count {
  position: absolute; right: 10px; bottom: 10px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font-size: 14px; font-weight: 600; text-decoration: none;
  box-shadow: var(--shadow);
}

.hotel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 20px; }
.hotel-head { flex-wrap: nowrap; }
.hotel-head__title { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1 1 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }
.crumbs span[aria-hidden] { color: var(--ink-2); }

.about { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 1fr) 340px; } }
.about__text { display: flex; flex-direction: column; gap: 12px; max-width: 64ch; }
.about__text p { color: var(--ink); }
.amenities { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.amenities li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 14px; color: var(--ink-2);
}

/* номер с тарифами */
.room {
  display: grid; grid-template-columns: 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
}
.room__media .ph { border-radius: 0; aspect-ratio: 16 / 9; }
.room__body { padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.room__name { font: 600 19px/1.25 var(--font-body); }
.room__name a { color: var(--ink); text-decoration: none; }
.room__name a:hover { color: var(--brand-text); }
.room__specs { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--ink-2); }
@media (min-width: 720px) {
  .room { grid-template-columns: 260px 1fr; }
  .room__media .ph { aspect-ratio: auto; height: 100%; min-height: 200px; }
  .room__body { padding: 18px 20px; }
}
.tariffs { list-style: none; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.tariff {
  display: grid; gap: 8px 16px; align-items: center;
  grid-template-columns: 1fr auto;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.tariff:last-child { border-bottom: 0; padding-bottom: 0; }
.tariff__name { font-weight: 600; }
.tariff__terms { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--ink-2); }
.tariff__terms .ok { color: var(--ok); }
.tariff__buy { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@media (min-width: 720px) {
  .tariff { grid-template-columns: 1fr auto auto; }
  .tariff__terms { grid-column: 1; }
  .tariff__buy { grid-column: 2 / 4; grid-row: 1 / 3; justify-content: flex-end; }
}
@media (min-width: 720px) { .tariff__price { text-align: right; } }
.tariff__price .price__value { font-size: 20px; }

/* корзина: номер в заказе */
.order-item {
  display: grid; grid-template-columns: 88px 1fr; gap: 14px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
.order-item:first-child { padding-top: 0; }
.order-item:last-child { border-bottom: 0; padding-bottom: 0; }
.order-item .ph { aspect-ratio: 1; border-radius: var(--r-s); }
.order-item__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.order-item__top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.order-item__price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.order-item__meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 14px; color: var(--ink-2); }
@media (min-width: 720px) { .order-item { grid-template-columns: 120px 1fr; gap: 18px; } }

/* доп. услуга */
.extras { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); list-style: none; }
.extra {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
}
.extra__head { display: flex; gap: 12px; align-items: flex-start; }
.extra__icon {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--brand-soft); color: var(--brand-text);
}
.extra__icon svg { width: 22px; height: 22px; }
.extra__name { font-weight: 600; }
.extra__desc { font-size: 14px; color: var(--ink-2); }
.extra__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; }
.extra__price { font-weight: 700; font-variant-numeric: tabular-nums; }
.extra__price small { font-weight: 400; color: var(--ink-2); }
.extra.is-on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }

.times { display: flex; flex-wrap: wrap; gap: 8px; }
.time {
  position: relative;
  display: inline-flex; flex-direction: column; align-items: flex-start;
  min-width: 108px; padding: 9px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r-m);
  background: var(--surface);
  cursor: pointer;
}
.time input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.time b { font: 600 17px/1.2 var(--font-mono); }
.time small { font-size: 13px; color: var(--ink-2); }
.time.is-on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--brand-soft); }
.time.is-off { border-style: dashed; color: var(--ink-3); cursor: not-allowed; }
.time.is-off b { text-decoration: line-through; text-decoration-thickness: 1px; }
.time:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ---------- кабинет ---------- */

.tabs {
  display: flex; gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.tabs a {
  flex: none;
  padding: 12px 14px;
  color: var(--ink-2); text-decoration: none;
  font-weight: 600; font-size: 15px;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }
.tabs small { font-weight: 500; color: var(--ink-2); margin-left: 4px; }

.trip {
  display: grid; gap: 14px; grid-template-columns: 1fr;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
}
.trip > * { min-width: 0; }
.trip__dates { display: flex; align-items: center; gap: 10px; font: 500 15px/1.2 var(--font-mono); }
.trip__dates .line { flex: 1; height: 2px; background: var(--brand); position: relative; min-width: 24px; max-width: 90px; }
.trip__dates .line::before, .trip__dates .line::after {
  content: ""; position: absolute; top: -4px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--brand);
}
.trip__dates .line::before { left: -5px; }
.trip__dates .line::after { right: -5px; background: var(--brand); }
.trip__main { display: flex; flex-direction: column; gap: 6px; }
.trip__hotel { font: 600 18px/1.3 var(--font-body); }
.trip__meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 14px; color: var(--ink-2); }
.trip__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (min-width: 720px) {
  .trip { grid-template-columns: 200px 1fr auto; align-items: center; padding: 18px 20px; }
  .trip__dates { flex-direction: column; align-items: flex-start; gap: 6px; }
  .trip__dates .line { width: 60px; flex: none; }
  .trip__actions { justify-content: flex-end; }
}
.trip--past { background: transparent; }
.trip--past .trip__dates .line { background: var(--line-strong); }
.trip--past .trip__dates .line::before, .trip--past .trip__dates .line::after { border-color: var(--line-strong); }
.trip--past .trip__dates .line::after { background: var(--line-strong); }

/* форма входа -- узкая колонка */
.auth { max-width: 440px; margin-inline: auto; display: flex; flex-direction: column; gap: 22px; }
.auth__head { display: flex; flex-direction: column; gap: 10px; }
.auth__alt { text-align: center; font-size: 15px; color: var(--ink-2); }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* предложение кабинета */
.invite {
  display: grid; gap: 14px; grid-template-columns: 1fr;
  padding: 20px;
  border-radius: var(--r-l);
  background: var(--surface);
  border: 1px solid var(--line);
}
.invite__sign { width: 54px; height: 22px; color: var(--brand); }
@media (min-width: 720px) { .invite { grid-template-columns: 1fr minmax(0, 320px); align-items: end; padding: 24px; } }

/* главная: как это устроено */
.direct {
  list-style: none;
  display: grid; gap: 0; grid-template-columns: 1fr;
  position: relative;
}
.direct li { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 0 0 22px 32px; }
.direct li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--brand); background: var(--bg);
}
.direct li::after {
  content: ""; position: absolute; left: 7px; top: 20px; bottom: 0;
  width: 2px; margin-left: -1px; background: var(--brand);
}
.direct li:last-child::after { display: none; }
.direct li:last-child::before { background: var(--brand); }
.direct b { font-weight: 600; }
.direct span { color: var(--ink-2); font-size: 15px; }
@media (min-width: 720px) {
  .direct { grid-template-columns: repeat(3, 1fr); }
  .direct li { padding: 32px 24px 0 0; }
  .direct li::before { top: 0; }
  .direct li::after { left: 16px; right: 0; top: 7px; bottom: auto; width: auto; height: 2px; margin: 0; }
}

.cities { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }

/* всплывающие окна поиска: календарь и гости */
.pop {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-lift);
  padding: 16px;
  font: 400 16px/1.5 var(--font-body);
  letter-spacing: 0;
  max-width: 680px;
}
@media (min-width: 720px) { .pop { padding: 20px 22px; } }
.pop__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.cal { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cal { grid-template-columns: 1fr 1fr; gap: 28px; } }
.cal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal__month { font-weight: 600; text-transform: capitalize; }
.cal__nav { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; text-align: center; list-style: none; }
.cal__dow { font-size: 12px; color: var(--ink-3); padding-bottom: 4px; }
.cal__day {
  height: 40px; width: 100%;
  border: 0; border-radius: 0; background: transparent; color: var(--ink);
  font: 500 15px/1 var(--font-body); font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.cal__day:hover { box-shadow: inset 0 0 0 1px var(--line-strong); border-radius: 8px; }
.cal__day.is-past { color: var(--ink-3); cursor: default; }
.cal__day.is-in { background: var(--brand-soft); }
.cal__day.is-start, .cal__day.is-end { background: var(--brand); color: var(--brand-ink); font-weight: 700; }
.cal__day.is-start { border-radius: 10px 0 0 10px; }
.cal__day.is-end { border-radius: 0 10px 10px 0; }
.counter-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 10px; }
.counter-row + .counter-row { border-top: 1px solid var(--line); }
.counter { display: inline-flex; align-items: center; gap: 14px; }
.counter button {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font: 500 20px/1 var(--font-body); cursor: pointer;
}
.counter button:disabled { opacity: .35; cursor: not-allowed; }
.counter output { min-width: 1.5ch; text-align: center; font: 600 18px/1 var(--font-body); font-variant-numeric: tabular-nums; }

/* ---------- путь брони: шапка шага, гости, переход к оплате, лист брони ---------- */

/* Компоненты пути брони (корзина, услуги, гости, оплата, итог, ошибки).
   Переносятся в portal.css при сведении макетов. */

/* шапка шага: маршрут + заголовок */
.flow-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 24px; }
.flow-head .route { max-width: 620px; width: 100%; }
@media (min-width: 720px) { .flow-head { gap: 24px; margin-bottom: 32px; } }

.ok-text { color: var(--ok); }

/* группы полей без рамки браузера */
.times-group, .guest-set { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.times-group legend, .guest-set legend { padding: 0; margin-bottom: 10px; }
.guest-set .opt { font-weight: 400; color: var(--ink-3); }

/* предложение кабинета на оформлении */
.account-offer {
  display: flex; flex-direction: column; gap: 12px;
  padding: 14px 16px;
  border: 1px dashed var(--line-strong); border-radius: var(--r-m);
  background: var(--bg);
}

.check-wrap { display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; row-gap: 4px; }
.check-wrap > .check { grid-column: 1 / -1; }
.check input[aria-invalid="true"] { outline: 2px solid var(--bad); outline-offset: 1px; }

/* переход к оплате: точка бежит по линии от гостя к отелю */
.handoff {
  max-width: 560px; margin-inline: auto;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
}
.handoff__line { width: 220px; height: 26px; color: var(--brand); margin-bottom: 4px; }
.handoff__dot { fill: var(--mark); stroke: var(--brand); stroke-width: 2; animation: handoff-run 1.8s ease-in-out infinite; }
@keyframes handoff-run {
  0% { transform: translateX(0); }
  80%, 100% { transform: translateX(168px); }
}
.handoff__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px; margin-top: 4px; }
.handoff__facts { width: 100%; max-width: 340px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); text-align: left; }

/* лист брони (итог и неоплаченная бронь) */
.booking-sheet { display: flex; flex-direction: column; gap: 16px; }
.booking-sheet__hotel { display: flex; flex-direction: column; gap: 6px; }
.booking-sheet .trip__dates { flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; }
.booking-sheet .trip__dates .line { flex: 1 1 auto; max-width: 120px; }
.booking-sheet__dates small { font: 400 12px/1.4 var(--font-body); }
.booking-sheet .facts { padding-top: 14px; border-top: 1px solid var(--line); }

.state__facts { display: flex; flex-direction: column; gap: 6px; padding-left: 20px; color: var(--ink-2); }

/* приглашение в кабинет внутри колонки -- текст над формой */
.split .invite { grid-template-columns: 1fr; align-items: start; }

/* старая цена рядом с новой -- переносится, а не распирает строку */
.order-item__top { flex-wrap: wrap; }
.order-item__top h3 { min-width: 0; }

/* ---------- кабинет: шапка, выгоды, настройки ---------- */

/* booking-direct -- компоненты кабинета гостя (макет этапа 2 блока Б28).
   Сливается в portal.css. */

/* шапка раздела кабинета */
.acct-head { display: flex; flex-direction: column; gap: 18px; }
.acct-head__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; }
.acct-head__mail { font-size: 14px; color: var(--ink-2); }

/* зачем кабинет: короткий список выгод */
.perks { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.perks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 15px; color: var(--ink-2); }
.perks li b { color: var(--ink); font-weight: 600; }
.perks svg { width: 20px; height: 20px; margin-top: 2px; color: var(--brand-text); }

/* узкая форма входа на телефоне без лишней рамки */
.auth .panel { display: flex; flex-direction: column; gap: 16px; }
.auth__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 15px; }

/* группа броней в кабинете */
.trip-group { display: flex; flex-direction: column; gap: 12px; }
.trip-group + .trip-group { margin-top: 28px; }
.trip__num { font: 500 14px/1.3 var(--font-mono); color: var(--ink-2); }
.trip__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }

/* сетка избранных отелей: карточка сверху вниз */
.fav-grid { list-style: none; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.fav-grid .hotel-card { grid-template-columns: 1fr; }
.fav-grid .hotel-card__media .ph { aspect-ratio: 16 / 10; min-height: 0; height: auto; }
.fav-grid .hotel-card__body { padding: 16px; }

/* блоки «Мои данные» */
.settings { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.settings .panel { display: flex; flex-direction: column; gap: 16px; }
.settings__value { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-weight: 600; }
.panel--danger { border-color: var(--bad); border-style: dashed; background: transparent; }

/* вкладки кабинета на телефоне -- без прокрутки */
.tabs__short { display: none; }
@media (max-width: 560px) {
  .tabs a { padding: 12px 10px; font-size: 14px; }
  .tabs__long { display: none; }
  .tabs__short { display: inline; }
}
/* самый узкий телефон: вкладки переносятся, а не уходят за край */
@media (max-width: 360px) {
  .tabs { flex-wrap: wrap; overflow: visible; }
  .tabs a { padding: 10px 8px; }
}

/* даты брони одной строкой и на широком экране */
@media (min-width: 720px) {
  .trip { grid-template-columns: 190px 1fr auto; }
  .trip__dates { flex-direction: row; align-items: center; gap: 8px; }
  .trip__dates .line { width: 40px; }
}

/* ========== версия 2: карта -- главный экран, шторка, отель поверх карты ========== */

/* ---------- версия 2: карта -- главный экран ---------- */

.mapapp {
  position: relative;
  /* до низа окна на любой высоте (61px -- шапка); не ниже 620px: на низком окне
     строка поиска, переключатель вида и шторка иначе налезают друг на друга --
     страница тогда прокручивается */
  height: max(620px, calc(100vh - 61px));
  height: max(620px, calc(100dvh - 61px));
  overflow: hidden;
  background: var(--map-sea);
}
.mapapp__map {
  position: absolute; inset: 0;
  container-type: size;
  overflow: hidden;
}
@media (min-width: 900px) { .mapapp__map { left: 400px; } }
.mapcanvas {
  position: absolute; left: 50%; top: 50%;
  width: max(100cqw, 100cqh);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
.mapcanvas > svg { display: block; width: 100%; height: 100%; }
.mapcanvas .street { fill: none; stroke: var(--map-road); stroke-width: 2; opacity: .9; }
.mapcanvas .avenue { fill: none; stroke: var(--map-road); stroke-width: 7; stroke-linecap: round; }
.mapcanvas .rail { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 6 5; }
.mapcanvas .river { fill: none; stroke: var(--map-sea); stroke-width: 6; stroke-linecap: round; }
.mapcanvas .district { fill: var(--ink-3); font: 600 13px var(--font-body); letter-spacing: .12em; }
.mapcanvas .water-label { fill: var(--ink-2); font: italic 400 16px var(--font-body); opacity: .75; }

/* цена на карте */
.mpin {
  position: absolute; z-index: 2;
  transform: translate(-50%, -100%);
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong);
  font: 700 13px/1.1 var(--font-body);
  font-variant-numeric: tabular-nums;
  white-space: nowrap; text-decoration: none;
  box-shadow: var(--shadow-lift);
  transition: transform .18s ease;
}
.mpin::after {
  content: ""; position: absolute; left: 50%; top: 100%;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  background: inherit; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
  transform: rotate(45deg);
}
.mpin:hover { transform: translate(-50%, -100%) scale(1.06); text-decoration: none; }
.mpin svg { width: 13px; height: 13px; color: var(--brand); }
.mpin svg path { fill: currentColor; }
.mpin--on {
  z-index: 3;
  background: var(--brand); color: var(--brand-ink); border-color: var(--brand);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--mark) 70%, transparent), var(--shadow-lift);
  transform: translate(-50%, -100%) scale(1.12);
}
.mpin--on::after { border-color: var(--brand); }
.mpin--on svg { color: var(--brand-ink); }
.mpin--off { background: var(--surface-2); color: var(--ink-3); font-weight: 600; box-shadow: var(--shadow); }
/* выбранная метка «нет мест» -- серая, но с рамкой и кольцом выбора */
.mpin--off.mpin--on { border-color: var(--brand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--mark) 70%, transparent), var(--shadow-lift); }
.mpin--off.mpin--on::after { border-color: var(--brand); }
.mpin--hotel { padding: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); border: 4px solid var(--surface); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 25%, transparent); transform: translate(-50%, -50%); }
.mpin--hotel::after { display: none; }

/* поиск-пилюля поверх карты */
.pill {
  position: absolute; z-index: 6;
  top: 12px; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px));
  display: flex; align-items: stretch;
  max-width: 560px;
  margin-inline: auto;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
}
.pill a {
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 7px 14px;
  color: var(--ink); text-decoration: none;
  border-right: 1px solid var(--line);
}
.pill a:first-child { padding-left: 20px; }
.pill a small { font-size: 11px; color: var(--ink-3); line-height: 1.2; }
.pill a b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill a:hover { background: var(--surface-2); text-decoration: none; }
.pill a:first-child:hover { border-radius: 999px 0 0 999px; }
.pill__go {
  flex: none;
  display: grid; place-items: center;
  width: 48px; margin: 5px; border-radius: 50%;
  border: 0; background: var(--brand); color: var(--brand-ink); cursor: pointer;
}
.pill__go svg { width: 20px; height: 20px; }
@media (min-width: 900px) { .pill { left: 424px; right: 24px; top: 18px; } }
@media (max-width: 519px) {
  .pill a { padding: 10px 10px; }
  .pill a:first-child { padding-left: 16px; }
  .pill a small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pill a b { font-size: 14px; overflow: visible; }
  .pill__go { width: 42px; }
}

.mapview-switch { position: absolute; z-index: 6; top: 76px; right: max(12px, env(safe-area-inset-right, 0px)); box-shadow: var(--shadow); }
@media (min-width: 900px) { .mapview-switch { top: 86px; right: 24px; } }
.map-zoom {
  position: absolute; z-index: 5; right: max(12px, env(safe-area-inset-right, 0px)); top: 132px;
  display: flex; flex-direction: column;
  border-radius: 14px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.map-zoom button { width: 42px; height: 42px; border: 0; background: transparent; color: var(--ink); font: 500 22px/1 var(--font-body); cursor: pointer; }
.map-zoom button + button { border-top: 1px solid var(--line); }
@media (max-width: 899px) { .map-zoom { display: none; } }
@media (min-width: 900px) { .map-zoom { top: auto; bottom: 24px; right: 24px; } }
.map-note {
  position: absolute; z-index: 5; left: 12px; bottom: calc(var(--sheet-h, 0px) + 10px);
  padding: 3px 8px; border-radius: 6px;
  background: var(--surface); color: var(--ink-2); font-size: 11px;
}
@media (min-width: 900px) { .map-note { left: 424px; bottom: 12px; } }

/* шторка со списком: телефон -- снизу, компьютер -- панель слева */
.sheet {
  --peek: 46%;
  position: absolute; z-index: 7;
  left: 0; right: 0; bottom: 0;
  height: var(--peek);
  display: flex; flex-direction: column;
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -12px 40px -16px rgba(12, 16, 32, .45);
  transition: height .3s cubic-bezier(.2, .8, .2, 1);
}
.sheet--open { --peek: 88%; }
.sheet__handle { display: block; width: 44px; height: 5px; margin: 10px auto 2px; border-radius: 3px; background: var(--line-strong); }
.sheet__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 8px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid var(--line);
}
.sheet__head h1 { font: 600 19px/1.2 var(--font-display); letter-spacing: -.01em; }
.sheet__head p { font-size: 13px; color: var(--ink-2); }
.sheet__body {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  overscroll-behavior: contain;
}
@media (min-width: 900px) {
  .sheet, .sheet--open {
    top: 0; right: auto; bottom: 0; left: 0;
    width: 400px; height: auto;
    border-radius: 0;
    border-right: 1px solid var(--line);
    box-shadow: 12px 0 40px -24px rgba(12, 16, 32, .35);
  }
  .sheet__handle { display: none; }
  .sheet__head { padding: 18px 20px 14px; }
  .sheet__body { padding: 12px 12px 24px; }
}

/* компактная карточка в шторке */
.mini {
  position: relative;
  display: grid; grid-template-columns: 96px 1fr; gap: 12px;
  padding: 10px;
  border-radius: 16px;
  color: var(--ink); text-decoration: none;
}
.mini:hover { background: var(--surface-2); text-decoration: none; }
.mini.is-on { background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.mini .ph { aspect-ratio: 1; border-radius: 12px; }
.mini .ph::after { display: none; }
.mini__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mini__name { font-weight: 650; font-size: 16px; line-height: 1.25; padding-right: 34px; }
.mini__addr { font-size: 13px; color: var(--ink-2); }
.mini__price { margin-top: auto; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.mini__price b { font: 600 17px/1.2 var(--font-display); letter-spacing: -.02em; white-space: nowrap; }
.mini__price small { font-size: 12px; color: var(--ink-2); }
.mini .fav { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; }
.mini .fav svg { width: 17px; height: 17px; }
.mini--off .ph { filter: grayscale(.85) opacity(.65); }
.mini-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.mini__name a { color: inherit; text-decoration: none; }
.mini__name a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.mini__name a:focus-visible { outline: none; }
.mini__name a:focus-visible::after { outline: 3px solid var(--brand); outline-offset: -3px; }
.mini .fav { z-index: 1; }
.mini__off { font-size: 13px; font-weight: 600; color: var(--warn); }

/* превью отеля по нажатию на цену */
.peek-card {
  position: absolute; z-index: 8;
  left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px));
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: grid; grid-template-columns: 112px 1fr; gap: 14px;
  padding: 12px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  animation: peek-in .28s cubic-bezier(.2, .8, .2, 1);
}
.peek-card .ph { aspect-ratio: auto; height: 100%; min-height: 120px; border-radius: 14px; }
.peek-card .ph::after { display: none; }
.peek-card__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.peek-card__close { position: absolute; top: -14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; box-shadow: var(--shadow); }
@media (min-width: 900px) { .peek-card { left: auto; right: 84px; bottom: 24px; width: 420px; } }
@keyframes peek-in { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* отель поверх карты */
.hsheet {
  position: absolute; z-index: 7; left: 0; right: 0; bottom: 0;
  top: 120px;
  display: flex; flex-direction: column;
  background: var(--bg);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -12px 40px -16px rgba(12, 16, 32, .5);
  animation: peek-in .3s cubic-bezier(.2, .8, .2, 1);
}
.hsheet__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px max(12px, env(safe-area-inset-right, 0px)) 8px max(12px, env(safe-area-inset-left, 0px));
}
.hsheet__body {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; gap: 22px;
}
@media (min-width: 900px) {
  .hsheet { top: 0; right: auto; width: 540px; border-radius: 0; border-right: 1px solid var(--line); }
  .hsheet__bar { padding: 14px 20px 6px; }
  .hsheet__body { padding: 0 24px 32px; }
}
.hsheet__body > *, .sheet__body > * { flex-shrink: 0; }
.dim-map::after { content: ""; position: absolute; inset: 0; background: rgba(12, 16, 32, .28); z-index: 4; }

.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 8px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
  padding-inline: max(16px, env(safe-area-inset-left, 0px));
  scrollbar-width: none;
  scroll-padding-inline: max(16px, env(safe-area-inset-left, 0px));
}
.strip > * { scroll-snap-align: start; }
.strip .ph { aspect-ratio: 4 / 3; border-radius: 16px; }
@media (min-width: 900px) { .strip { grid-auto-columns: 78%; margin-inline: -24px; padding-inline: 24px; scroll-padding-inline: 24px; } }

.rate-row {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.rate-row__name { font-weight: 600; }
.rate-row__terms { grid-column: 1; font-size: 13px; color: var(--ink-2); }
.rate-row__terms .ok { color: var(--ok); }
.rate-row__buy { grid-column: 2; grid-row: 1 / 3; display: flex; align-items: center; gap: 10px; }
.rate-row__buy b { font: 600 17px/1.2 var(--font-display); letter-spacing: -.02em; white-space: nowrap; }
.room2 { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.room2__top { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; }
.room2__top .ph { aspect-ratio: 1; border-radius: 12px; }
.room2__top .ph::after { display: none; }
.room2__name { font-weight: 650; line-height: 1.25; }
.room2__specs { font-size: 13px; color: var(--ink-2); }

/* ========== версия 2: лента-сторис и календарь цен ========== */

/* ---------- версия 2: лента как сторис и календарь цен ---------- */

:root {
  /* тепловая шкала цены: лайм -- дёшево, ультрамарин -- дорого */
  --heat-1: #E2F59C;
  --heat-2: #D4ECC2;
  --heat-3: #C9D6F0;
  --heat-4: #A7B1F3;
  --heat-5: #5F6BE3;
  --heat-ink: #141A2E;
  --heat-ink-5: #FFFFFF;
  --story-scrim: rgba(8, 10, 22, .86);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --heat-1: #4B5E14;
    --heat-2: #33503F;
    --heat-3: #283A66;
    --heat-4: #34419A;
    --heat-5: #5560E0;
    --heat-ink: #E9ECF7;
    --heat-ink-5: #FFFFFF;
  }
}
:root[data-theme="dark"] {
  --heat-1: #4B5E14;
  --heat-2: #33503F;
  --heat-3: #283A66;
  --heat-4: #34419A;
  --heat-5: #5560E0;
  --heat-ink: #E9ECF7;
  --heat-ink-5: #FFFFFF;
}

/* пилюля поиска в потоке страницы (не поверх карты) */
.pill.pill--static {
  position: static;
  flex: 1 1 320px;
  max-width: 560px;
  margin: 0;
  box-shadow: var(--shadow);
}
.pill a.is-active { background: var(--brand-soft); }
.pill a.is-active small { color: var(--brand-text); }
.pill a.is-active b { color: var(--brand-text); }

.v2-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-block: 12px; }
.v2-top .seg { flex: none; margin-left: auto; }

/* ---------- демо-снимки, богаче (фото отелей) ---------- */

.ph--dusk {
  background:
    radial-gradient(circle at 64% 47%, #FFE2A6 0 5%, rgba(255, 210, 140, .55) 5.5% 11%, rgba(255, 190, 120, 0) 22%),
    repeating-linear-gradient(to bottom, rgba(255, 214, 160, 0) 0 9px, rgba(255, 214, 160, .28) 9px 10px),
    linear-gradient(to bottom, rgba(0,0,0,0) 0 52%, #24365F 52% 100%),
    linear-gradient(to bottom, #3A2E6B 0%, #B5547A 28%, #F29A73 44%, #FFC98F 52%);
  background-size: auto, 100% 26%, auto, auto;
  background-position: 0 0, 0 52%, 0 0, 0 0;
  background-repeat: no-repeat;
}
.ph--facade {
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,0) 0 10px, #9DC3DE 10px 26px, rgba(0,0,0,0) 26px 36px),
    repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 12px, #F3ECE1 12px 26px),
    linear-gradient(#F3ECE1, #F3ECE1),
    radial-gradient(ellipse 14% 30% at 12% 86%, #2F5E3A 0 60%, rgba(0,0,0,0) 62%),
    radial-gradient(ellipse 14% 30% at 90% 88%, #2F5E3A 0 60%, rgba(0,0,0,0) 62%),
    linear-gradient(to bottom, #8EC4EC 0%, #CFE6F6 70%, #B9A98C 70% 100%);
  background-size: 64% 52%, 64% 52%, 70% 62%, auto, auto, auto;
  background-position: 50% 30%, 50% 30%, 50% 26%, 0 0, 0 0, 0 0;
  background-repeat: no-repeat;
}
.ph--poolnight {
  background:
    radial-gradient(ellipse 40% 10% at 50% 66%, rgba(140, 255, 245, .55) 0, rgba(140, 255, 245, 0) 70%),
    linear-gradient(176deg, rgba(0,0,0,0) 0 56%, #14B3C4 56.5% 76%, rgba(0,0,0,0) 76.5%),
    radial-gradient(circle at 20% 18%, rgba(255,255,255,.9) 0 .4%, rgba(0,0,0,0) .6%),
    radial-gradient(circle at 76% 12%, rgba(255,255,255,.8) 0 .3%, rgba(0,0,0,0) .5%),
    radial-gradient(circle at 58% 24%, rgba(255,255,255,.7) 0 .3%, rgba(0,0,0,0) .5%),
    linear-gradient(to bottom, #0E1638 0 48%, #2B2F4A 48% 56%, #C9B79A 76% 100%);
}
.ph--garden {
  background:
    linear-gradient(100deg, rgba(0,0,0,0) 0 44%, #E7D8BC 44% 56%, rgba(0,0,0,0) 56%),
    radial-gradient(ellipse 30% 22% at 18% 62%, #3F7A44 0 60%, rgba(0,0,0,0) 62%),
    radial-gradient(ellipse 30% 26% at 86% 58%, #356B3B 0 60%, rgba(0,0,0,0) 62%),
    radial-gradient(circle at 30% 50%, #E58AA8 0 2%, rgba(0,0,0,0) 2.4%),
    radial-gradient(circle at 76% 46%, #F4D35E 0 2%, rgba(0,0,0,0) 2.4%),
    linear-gradient(to bottom, #CFE7F5 0 38%, #7FB27A 38% 100%);
  background-size: 100% 62%, auto, auto, auto, auto, auto;
  background-position: 0 100%, 0 0, 0 0, 0 0, 0 0, 0 0;
  background-repeat: no-repeat;
}
.ph--terrace {
  background:
    repeating-linear-gradient(90deg, #F7F2EA 0 3px, rgba(0,0,0,0) 3px 28px),
    linear-gradient(#F7F2EA, #F7F2EA),
    linear-gradient(to bottom, #9FD0F2 0 40%, #2F86B8 40% 66%, #C8A880 66% 100%);
  background-size: 100% 18%, 100% 2%, auto;
  background-position: 0 70%, 0 62%, 0 0;
  background-repeat: no-repeat;
}
.ph--peaks {
  background:
    linear-gradient(135deg, rgba(0,0,0,0) 0 50%, #EEF3F8 50% 54%, rgba(0,0,0,0) 54%),
    conic-gradient(from 135deg at 34% 30%, #F4F8FB 0 25%, rgba(0,0,0,0) 0),
    conic-gradient(from 135deg at 68% 38%, #DCE6EF 0 25%, rgba(0,0,0,0) 0),
    linear-gradient(to bottom, rgba(0,0,0,0) 0 64%, #2F5A3E 64% 100%),
    linear-gradient(to bottom, #6F9FCB 0%, #B8D3E8 64%);
}
.ph--suite {
  background:
    linear-gradient(to bottom, rgba(0,0,0,0) 0 60%, #FBF7F0 60% 70%, #D7C3A8 70% 78%, rgba(0,0,0,0) 78%),
    linear-gradient(90deg, rgba(0,0,0,0) 0 56%, #CFE6F5 56% 62%, #3E86B8 62% 92%, rgba(0,0,0,0) 92%),
    linear-gradient(to bottom, rgba(0,0,0,0) 0 14%, #E8DFD2 14% 100%),
    linear-gradient(90deg, #EADFCF 0 56%, #EADFCF 92%);
  background-size: 100% 100%, 100% 46%, auto, auto;
  background-position: 0 0, 0 14%, 0 0, 0 0;
  background-repeat: no-repeat;
}

/* ---------- лента ---------- */

.stories-stage {
  --story-w: calc(100vw - 48px);
  --story-h: clamp(520px, calc(100dvh - 170px), 760px);
  position: relative; overflow: hidden; isolation: isolate;
}
@media (min-width: 720px) {
  .stories-stage {
    --story-h: clamp(560px, calc(100dvh - 190px), 740px);
    --story-w: calc(var(--story-h) * 9 / 16);
  }
}
.stories-bg {
  position: absolute; inset: -40px; z-index: -1;
  border-radius: 0;
  aspect-ratio: auto;
  filter: blur(36px) saturate(1.2);
  opacity: .45;
  transform: scale(1.1);
}
.stories-bg::after { display: none; }
.stories {
  display: flex; gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(16px, env(safe-area-inset-left, 0px));
  padding: 4px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px));
  list-style: none;
  scrollbar-width: none;
}
.stories::-webkit-scrollbar { display: none; }
.story {
  position: relative;
  flex: 0 0 var(--story-w);
  height: var(--story-h);
  scroll-snap-align: start;
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow-lift);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .3s;
}
.story > .ph { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; border-radius: 0; }
.story > .ph::after { left: 14px; bottom: auto; top: 30px; }
@media (min-width: 720px) {
  .stories {
    gap: 22px;
    padding-inline: calc(50% - var(--story-w) / 2);
    scroll-padding-inline: 0;
  }
  .story { scroll-snap-align: center; }
  .stories.is-live .story:not(.is-current) { transform: scale(.86); opacity: .5; }
}

.story__bars { position: absolute; z-index: 3; top: 12px; left: 12px; right: 12px; display: flex; gap: 4px; }
.story__bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .38); overflow: hidden; }
.story__bars i.is-done { background: rgba(255, 255, 255, .95); }
.story__bars i.is-now::after { content: ""; display: block; height: 100%; width: 60%; background: #fff; }
.is-current .story__bars i.is-now::after { animation: bar-run 6s linear forwards; }
@keyframes bar-run { from { width: 0; } to { width: 100%; } }

.story__count {
  position: absolute; z-index: 3; top: 24px; right: 14px;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(8, 10, 22, .5); color: #fff;
  font: 500 12px/1.4 var(--font-mono);
}
.story__tap {
  position: absolute; z-index: 2; top: 0; bottom: 42%;
  width: 34%;
  border: 0; background: transparent; cursor: pointer;
}
.story__tap--prev { left: 0; }
.story__tap--next { right: 0; }
.story__tap:focus-visible { outline: 3px solid #fff; outline-offset: -6px; border-radius: 18px; }

.story__info {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 8px;
  padding: 72px 18px 18px;
  background: linear-gradient(to bottom, rgba(8, 10, 22, 0), var(--story-scrim) 46%);
  color: #fff;
}
.story__name { font: 600 22px/1.2 var(--font-display); letter-spacing: -.015em; padding-right: 52px; }
.story__name a { color: #fff; text-decoration: none; }
.story__addr { font-size: 14px; color: rgba(255, 255, 255, .78); display: flex; gap: 6px; align-items: flex-start; }
.story__addr svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.story__price { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.story__price b { font: 600 28px/1.1 var(--font-display); letter-spacing: -.02em; white-space: nowrap; }
.story__price b .from { font: 500 15px var(--font-body); letter-spacing: 0; color: rgba(255, 255, 255, .8); margin-right: 4px; }
.story__price b .marker { background: linear-gradient(to top, transparent 0 4%, var(--mark) 4% 18%, transparent 18%); }
.story__price small { font-size: 13px; color: rgba(255, 255, 255, .78); }
.story__actions { display: flex; gap: 8px; margin-top: 6px; }
.story__actions .btn { flex: 1; }
.story__actions .btn--glass { --btn-bg: rgba(255, 255, 255, .14); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .4); flex: none; }
.story__actions .btn--glass:hover { --btn-bg: rgba(255, 255, 255, .24); border-color: #fff; }
.story__info .fav { position: absolute; top: 70px; right: 16px; }
.story .badge--warn { align-self: flex-start; }

.story--off > .ph { filter: grayscale(.9) brightness(.85); }
.story--nophoto { background: var(--surface); }
.story__nophoto {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  padding: 28px 22px 46%;
  background:
    repeating-linear-gradient(135deg, var(--surface-2) 0 14px, var(--surface) 14px 28px);
  color: var(--ink);
}
.story__nophoto svg { width: 46px; height: 46px; color: var(--ink-3); }
.story__nophoto-name { font: 600 clamp(26px, 7vw, 34px)/1.12 var(--font-display); letter-spacing: -.02em; }
.story__nophoto-name a { color: var(--ink); text-decoration: none; }
.story__nophoto small { font-size: 13px; color: var(--ink-2); }
.story--nophoto .story__bars i { background: var(--line-strong); }

.stories-nav {
  display: none;
  position: absolute; z-index: 5; top: calc(50% - 24px);
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 500 24px/1 var(--font-body);
  box-shadow: var(--shadow-lift);
  cursor: pointer;
  place-items: center; text-decoration: none;
}
.stories-nav--prev { left: calc(50% - var(--story-w) / 2 - 70px); }
.stories-nav--next { right: calc(50% - var(--story-w) / 2 - 70px); }
@media (min-width: 720px) { .stories-nav { display: grid; } }
.stories-hint { text-align: center; font-size: 13px; color: var(--ink-2); padding-bottom: 20px; }

/* ---------- календарь цен ---------- */

.heat-head { display: flex; flex-direction: column; gap: 10px; }
.heat-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; color: var(--ink-2); }
.heat-legend__ramp { display: inline-flex; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.heat-legend__ramp i { width: 22px; height: 14px; }
.heat-legend__none { display: inline-block; width: 22px; height: 14px; border-radius: 4px; border: 1px solid var(--line); background: repeating-linear-gradient(135deg, var(--line-strong) 0 2px, transparent 2px 6px); vertical-align: middle; }

.heatcal { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .heatcal { grid-template-columns: 1fr 1fr; } }
@media (max-width: 719px) { .heatcal__month--second { display: none; } }
.heatcal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.heatcal__title { font: 600 17px/1.2 var(--font-display); letter-spacing: -.01em; text-transform: capitalize; }
.heatcal__nav { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-size: 18px; }
.heatcal__nav--ghost { visibility: hidden; }
@media (max-width: 719px) { .heatcal__nav--ghost { visibility: visible; } }
.heatcal__grid { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.heatcal__dow { text-align: center; font-size: 12px; color: var(--ink-3); padding-bottom: 2px; }
.heatcal__dow--we { color: var(--ink-2); font-weight: 600; }

.hday {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  width: 100%; height: 58px;
  padding: 5px 6px 9px;
  border: 0; border-radius: 10px;
  background: var(--surface-2); color: var(--heat-ink);
  font: inherit; text-align: left;
  cursor: pointer;
}
.hday b { font: 600 15px/1 var(--font-body); font-variant-numeric: tabular-nums; }
.hday small { font: 500 11px/1 var(--font-mono); opacity: .85; }
.hday:hover { box-shadow: inset 0 0 0 2px var(--ink-3); }
.hday--1 { background: var(--heat-1); }
.hday--2 { background: var(--heat-2); }
.hday--3 { background: var(--heat-3); }
.hday--4 { background: var(--heat-4); }
.hday--5 { background: var(--heat-5); color: var(--heat-ink-5); }
.hday--none {
  background: repeating-linear-gradient(135deg, var(--line) 0 2px, var(--surface) 2px 7px);
  color: var(--ink-3); cursor: not-allowed;
}
.hday--none:hover { box-shadow: none; }
.hday--none b { text-decoration: line-through; text-decoration-thickness: 1px; }
@media (min-width: 720px) { .hday { height: 62px; padding: 6px 8px 10px; } .hday small { font-size: 12px; } }

/* выбранные даты: прямая линия от заезда к выезду, как в знаке */
.hday.is-start, .hday.is-end { box-shadow: inset 0 0 0 2px var(--brand); }
.hday.is-start::after, .hday.is-in::after, .hday.is-end::after {
  content: ""; position: absolute; bottom: 3px; height: 3px; background: var(--brand);
}
.hday.is-in::after { left: -4px; right: -4px; }
.hday.is-start::after { left: 50%; right: -4px; }
.hday.is-end::after { left: -4px; right: 50%; }
.hday.is-start::before, .hday.is-end::before {
  content: ""; position: absolute; z-index: 1; left: 50%; bottom: 0; width: 9px; height: 9px; margin-left: -4.5px;
  border-radius: 50%; border: 2px solid var(--brand); background: var(--surface);
}
.hday.is-end::before { background: var(--brand); }


.calbar {
  position: sticky; bottom: 0; z-index: 5;
  margin-top: 24px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 24px -18px rgba(12, 16, 32, .4);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.calbar__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-block: 12px; }
.calbar__sum { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.calbar__sum .num { font-size: 15px; }
.calbar__sum span:last-child { font-size: 14px; color: var(--ink-2); }
.calbar__sum b { font: 600 18px/1.2 var(--font-display); color: var(--ink); letter-spacing: -.02em; }
.calbar__act { display: flex; gap: 8px; align-items: center; }
@media (max-width: 560px) { .calbar__act { width: 100%; } .calbar__act .btn--primary { flex: 1; } }

/* ========== версия 2: бронь на одном экране ========== */

/* ---------- версия 2: бронь на одном экране ---------- */

.co-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.co-head__trip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 15px; color: var(--ink-2); }
.co-head__trip .num { color: var(--ink); font-weight: 500; }

/* линия брони слева от разделов: гость -> отель */
.co-flow { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.co-step { position: relative; padding: 0 0 34px 46px; min-width: 0; }
.co-line {
  position: absolute; left: 11px; top: 30px; bottom: 4px;
  width: 2px; border-radius: 2px;
  background: var(--line-strong);
}
.co-line.is-on { left: 10.5px; width: 3px; background: var(--brand); }
.co-dot {
  position: absolute; left: 0; top: 2px;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2.5px solid var(--line-strong);
  background: var(--bg); color: var(--brand-ink);
  font: 700 13px/1 var(--font-body);
}
.co-dot svg { width: 13px; height: 13px; }
.co-dot.is-done { background: var(--brand); border-color: var(--brand); }
.co-dot.is-now { border-color: var(--brand); background: var(--mark); box-shadow: 0 0 0 5px var(--brand-soft); }
.co-dot.is-bad { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); }
.co-step__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin-bottom: 14px; }
.co-step__title { font: 600 20px/1.2 var(--font-display); letter-spacing: -.01em; }
.co-step__state { font-size: 14px; color: var(--ink-2); }
.co-step__state.is-bad { color: var(--bad); font-weight: 600; }
.co-step__body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* конец линии -- отель, как закрашенный кружок в знаке */
.co-end { position: relative; padding: 2px 0 0 46px; min-height: 34px; display: flex; flex-direction: column; gap: 4px; }
.co-end::before {
  content: ""; position: absolute; left: -3px; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 6px var(--brand-soft);
}
.co-end b { font-weight: 600; }
.co-end span { font-size: 14px; color: var(--ink-2); max-width: 52ch; }

/* номер в заказе */
.co-room { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; }
.co-room .ph { aspect-ratio: 1; border-radius: 12px; grid-row: 1 / 3; }
.co-room .ph::after { display: none; }
.co-room__name { font-weight: 650; line-height: 1.25; }
.co-room__meta { font-size: 13px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 2px 12px; grid-column: 2; }
.co-room > .btn { grid-column: 3; grid-row: 1; margin-top: -8px; }
.co-room + .co-room, .co-room-block + .co-room-block { border-top: 1px solid var(--line); padding-top: 14px; }
.co-room-block { display: flex; flex-direction: column; gap: 12px; }
/* тариф номера: выбран на странице отеля, здесь -- текстом; сменить -- ссылкой туда */
.co-rate {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
  padding: 10px 14px; border-radius: var(--r-m); background: var(--surface-2); font-size: 14px;
}
.co-rate__name { display: flex; flex-wrap: wrap; gap: 2px 10px; min-width: 0; }
.co-rate__name b { font-weight: 600; }
.co-rate__name span { color: var(--ink-2); }
.co-rate__price { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.co-rate__price s { margin-right: 4px; color: var(--ink-3); font-weight: 400; }
.co-rate__change { flex-basis: 100%; width: fit-content; color: var(--brand-text); font-weight: 600; font-size: 13px; }
.co-rate__change:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* чипы-переключатели услуг (сколько угодно) */
.tchips { display: flex; flex-wrap: wrap; gap: 8px; }
.schip {
  position: relative;
  display: inline-flex; flex-direction: column; gap: 1px;
  min-width: 0; padding: 8px 14px;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--surface); color: var(--ink);
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.schip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.schip b { font-weight: 600; font-size: 14px; line-height: 1.3; }
.schip small { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.schip:hover { border-color: var(--ink-3); }
.schip.is-on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--brand-soft); }
.schip:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.schip { flex-direction: row; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; }
.schip__mark {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--line-strong); color: var(--ink-2);
  font: 600 16px/1 var(--font-body);
}
.schip__mark::before { content: "+"; }
.schip.is-on .schip__mark { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.schip.is-on .schip__mark::before { content: "✓"; font-size: 13px; }
.schip__text { display: flex; flex-direction: column; min-width: 0; }
.co-sub { font-size: 14px; font-weight: 600; color: var(--ink); }
.co-times { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .co-times { grid-template-columns: 1fr 1fr; } }
.co-times .times { flex-wrap: nowrap; }
.co-times .time { min-width: 0; flex: 1 1 0; padding-inline: 10px; }
.co-times .time small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* итог справа: строка мигает лаймом, когда меняется */
.co-aside .sum__row { border-radius: 6px; margin-inline: -6px; padding: 2px 6px; }
.sum__row.is-fresh { animation: co-fresh 1.8s ease-out 1; }
@keyframes co-fresh {
  0%, 25% { background: var(--mark); color: var(--mark-ink); }
  100% { background: transparent; }
}
.co-aside__note { font-size: 13px; color: var(--ink-2); display: flex; gap: 8px; align-items: flex-start; }
.co-aside__note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--brand-text); }
.co-aside .sum__total b.is-fresh { animation: co-fresh 1.8s ease-out 1; border-radius: 6px; padding-inline: 4px; }

/* телефон: нижняя полоса с итогом и раскрываемым составом */
.cobar { display: none; }
@media (max-width: 899px) {
  .co-aside { display: none; }
  .cobar {
    position: sticky; bottom: 0; z-index: 5;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px 12px;
    margin-top: 8px;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 24px -18px rgba(12, 16, 32, .45);
  }
  .cobar details { min-width: 0; }
  .cobar summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; }
  .cobar summary::-webkit-details-marker { display: none; }
  .cobar summary small { font-size: 12px; color: var(--ink-2); }
  .cobar summary small::after { content: " · состав ▴"; color: var(--brand-text); font-weight: 600; }
  .cobar details[open] summary small::after { content: " · скрыть ▾"; }
  .cobar summary b { font: 600 20px/1.15 var(--font-display); letter-spacing: -.02em; white-space: nowrap; }
  .cobar .sum { padding-top: 10px; margin-top: 8px; border-top: 1px solid var(--line); font-size: 14px; }
  .cobar > .btn { min-height: 48px; padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .sum__row.is-fresh, .co-aside .sum__total b.is-fresh { animation: none; }
}

.co-v { display: contents; }

/* телефон: узкая колонка -- правила в конце, чтобы перекрыть базовые */
@media (max-width: 719px) {
  .co-step { padding-left: 34px; }
  .co-end { padding-left: 38px; }
  .co-step__title { font-size: 18px; }
  .co-step__body.panel { padding: 14px; }
  .co-room { grid-template-columns: 56px minmax(0, 1fr); }
  .co-room .ph { grid-row: 1 / 4; }
  .co-room > .btn { grid-column: 2; grid-row: 3; justify-self: start; margin: 0 0 0 -10px; }
  .co-times .time small { white-space: normal; font-size: 12px; line-height: 1.25; }
}

/* ========== версия 2: выдача списком, карта рядом ========== */

.listview { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; padding-block: 8px 24px; }
.listview > * { min-width: 0; }
@media (min-width: 900px) { .listview { grid-template-columns: minmax(0, 1fr) 380px; } }

/* телефон: полоска карты над списком ведёт на карту */
.maplink {
  position: relative;
  display: grid; grid-template-columns: 1fr; align-items: end;
  height: 112px; margin-bottom: 14px;
  border-radius: var(--r-l); overflow: hidden;
  border: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
}
.maplink:hover { text-decoration: none; border-color: var(--line-strong); }
.maplink__art { position: absolute; inset: 0; container-type: size; overflow: hidden; }
.maplink__text {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  margin: 10px; padding: 8px 14px;
  width: fit-content;
  border-radius: 12px;
  background: var(--surface); box-shadow: var(--shadow);
}
.maplink__text b { font-weight: 600; }
.maplink__text small { font-size: 13px; color: var(--ink-2); }
@media (min-width: 900px) { .maplink { display: none; } }

/* компьютер: карта закреплена справа от списка */
.listmap { display: none; }
@media (min-width: 900px) {
  .listmap {
    display: block;
    position: sticky; top: 16px;
    height: min(calc(100dvh - 32px), 720px);
    border-radius: var(--r-l); overflow: hidden;
    border: 1px solid var(--line);
    background: var(--map-sea);
  }
  .listmap__map { position: absolute; inset: 0; container-type: size; overflow: hidden; }
  /* сверху: внизу карты -- логотип, «Условия» и «Открыть в Яндекс Картах», их не закрываем */
  .listmap__open { position: absolute; left: 12px; top: 12px; z-index: 4; box-shadow: var(--shadow); }
}

.hotel-card--hl { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
/* карточка отеля, выбранного на карте рядом со списком (`maps/chain.js`) */
.hotel-card.is-on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
:root:not([data-state="pin"]) .hotel-card--hl { border-color: var(--line); box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
