/* my.uni-renter.ru. Макет — «Страница контакты Unirenter-3.pdf», ширина 390:
   фон #F0F0F0, текст #1C1A1A, строки 16px/600 с линией 2px и шагом 49. Большого
   фото из макета нет: шапка у всех страниц — компактная полоска `.bar`.
   Вертикаль задана через svh + clamp: на коротких экранах отступы ужимаются. */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/montserrat-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/montserrat-latin.woff2") format("woff2");
  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: #f0f0f0;
  --ink: #1c1a1a;
  --red: #c4271b; /* красный блок: белый текст на нём — 5.7:1 */
  --line: rgba(28, 26, 26, 0.12);
  --side: 24px;
  --nav-h: 49px; /* закреплённая полоска навигации `.nav`: ячейки 48 + линия */
  /* Статус входа (шапка, карточка /login): текст ≥ 4.5:1 и на фоне, и на белом. Зелёный
     `.zdot--ok` #2e9e5b для текста слабоват (3.0:1). Подложки — 10 % цвета на белом. */
  --ok: #1b7340; /* авторизован: 5.2:1 на фоне, 5.9:1 на белом */
  --warn: #966000; /* вход не завершён: 4.6:1 / 5.3:1 */
  --red-bg: #f9e9e8;
  --ok-bg: #e8f1ec;
  --warn-bg: #f6efe3;
  /* Каждая величина объявлена дважды: vh — запасной для браузеров без svh. */
  --title-top: clamp(14px, 4.4vh, 37px);
  --title-top: clamp(14px, 4.4svh, 37px);
  --title-gap: clamp(14px, 3.7vh, 31px);
  --title-gap: clamp(14px, 3.7svh, 31px);
  --row-top: clamp(10px, 2.4vh, 20px);
  --row-top: clamp(10px, 2.4svh, 20px);
  --row-bottom: clamp(7px, 1.3vh, 11px);
  --row-bottom: clamp(7px, 1.3svh, 11px);
}

/* Короткий экран (телефон боком, 320–420 по высоте): отступы заголовка меньше. */
@media (max-height: 420px) {
  :root {
    --title-top: 12px;
    --title-gap: 10px;
  }
}

*, *::before, *::after { box-sizing: border-box; }
/* `hidden` сильнее собственного display у кнопок и блоков. */
[hidden] { display: none !important; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
}

/* Компактная шапка всех страниц: логотип 36px, заголовок и подпись в одну
   полосу — на экране телефона остаётся место под содержимое. */
.bar {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  padding: 10px var(--side) 0;
  padding-top: calc(10px + env(safe-area-inset-top));
  padding-left: max(var(--side), env(safe-area-inset-left));
  padding-right: max(var(--side), env(safe-area-inset-right));
}
.bar__home {
  flex: 0 0 auto;
  display: block;
  border-radius: 9px;
  -webkit-tap-highlight-color: transparent;
}
.bar__home:active { opacity: 0.6; }
.bar__home:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.bar__logo { display: block; width: 36px; height: 36px; border-radius: 9px; }
.bar__text { flex: 1 1 auto; min-width: 0; }
.bar__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}
.bar__sub { margin: 2px 0 0; font-size: 12px; line-height: 1.3; opacity: 0.7; overflow-wrap: anywhere; }
.bar + .page { padding-top: 12px; padding-bottom: 16px; }

/* Индикатор входа справа в шапке (`auth_bar`, спека docs/specs/2026-10-03-auth-bar-design.md):
   глиф статуса + слово в рамке цвета статуса — красное кольцо «Войти», янтарный «!» «Войти»
   (вход не завершён), зелёная галочка «··12-34» (вошёл), нейтральная рамка «Войти» (prokat не
   ответил). Статус читается словом, формой и цветом. Цель касания 44×44 при видимой пилюле
   32px: поля уходят в отступы шапки и `.page`, строка шапки (логотип 36px) не растёт. */
.auth {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -4px -10px;
  padding: 0 10px;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
a.auth:active { opacity: 0.6; }
.auth:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; border-radius: 999px; }
.auth__pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 9px 0 8px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.auth--off .auth__pill { border-color: var(--red); }
.auth--wait .auth__pill { border-color: var(--warn); }
.auth--on .auth__pill { border-color: var(--ok); }
/* Глиф статуса — не только цвет: пустое кольцо «не вошли», диск с «!» «не завершён», диск с
   галочкой «вошли» (галочка рамкой, как у `.zcity__item[aria-current]`). */
.sdot {
  position: relative;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}
.sdot--off { border: 2.5px solid var(--red); }
.sdot--wait { background: var(--warn); }
.sdot--wait::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 2px;
  height: 5px;
  border-radius: 1px;
  background: #fff;
}
.sdot--wait::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 9.5px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
}
.sdot--on { background: var(--ok); }
.sdot--on::before {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 2.5px;
  width: 3.5px;
  height: 6.5px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}
/* Вошедшему пилюля — вход в «Мои заказы» (спека docs/specs/2026-10-21-orders-design.md): вместо
   галочки — вешалка цвета статуса, слово «ЗАКАЗЫ» вместо хвоста номера (пилюля 85px против 72,
   поля ужаты: заголовок «ЗАПИСЬ НА ПРИМЕРКУ» на 360 остаётся в одну строку). На самой `/orders`
   пилюля не ссылка. */
.auth[data-orders] .auth__pill { gap: 4px; padding: 0 7px 0 6px; }
.auth__ico { flex: 0 0 auto; width: 14px; height: 14px; fill: none; stroke: var(--ok); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
/* Телефоны уже макета: пилюля «ВОЙТИ» (81px) и «ЗАПИСЬ НА ПРИМЕРКУ» (192px при 15px) вместе
   не входят. До 389 заголовок 14px (178px входит в 186 при 375); уже 375 шапка на размер
   меньше — заголовок 13px, подпись 11px, зазор 10px: при 360 колонке заголовка остаётся 177px,
   входят «ЗАПИСЬ НА ПРИМЕРКУ» (165) и подписи контактов, входа, адресов, фото. При 320
   заголовок записи и подпись контактов переносятся (+14px), при 280 — как и без пилюли. */
@media (max-width: 389px) {
  .bar__title { font-size: 14px; }
}
@media (max-width: 374px) {
  .bar { gap: 10px; }
  .bar__title { font-size: 13px; }
  .bar__sub { font-size: 11px; }
}
/* Galaxy Fold (280): колонке заголовка остаётся 95px — «ВАША БРОНЬ» (98) переносилась и
   уводила красный блок брони ниже 70px. Слово в пилюле 10px — пилюля 71px, колонка 105. */
@media (max-width: 319px) {
  .auth__pill { gap: 4px; padding: 0 7px 0 6px; font-size: 10px; }
}

/* Полоска навигации поиска платьев (`_nav.html`): три раздела под шапкой, прилипает к верху.
   От переключателя `.seg` отличается формой: значок над словом и подчёркивание текущего,
   а не плитки. Фон сплошной — размытие дёргается в Android WebView. */
.nav {
  position: sticky;
  top: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 480px;
  margin: 6px auto 0;
  padding: 0 max(8px, env(safe-area-inset-right)) 0 max(8px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  height: 48px;
  border-bottom: 2px solid transparent;
  color: var(--p-mute); /* вторичный текст: 5.7:1 на фоне */
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.nav__item:active { opacity: 0.6; }
.nav__item:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.nav__item[aria-current] { border-bottom-color: var(--ink); color: var(--ink); }
.nav__icon { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.nav__item.is-on .nav__icon { fill: var(--red); stroke: var(--red); }
.nav__n { font-weight: 700; color: var(--ink); }
.nav + .page { padding-top: 12px; padding-bottom: 16px; }
/* «Понравилось 98» в трети 280 px (Galaxy Fold) при 11 px не входит. */
@media (max-width: 299px) {
  .nav__item { font-size: 10px; }
}
@media (max-height: 480px) and (min-width: 560px) {
  .nav { position: static; }
}

/* Колонка контента */
.page {
  max-width: 480px;
  margin: 0 auto;
  padding: var(--title-top) var(--side) 24px;
  padding-left: max(var(--side), env(safe-area-inset-left));
  padding-right: max(var(--side), env(safe-area-inset-right));
}
.title {
  margin: 0 0 var(--title-gap);
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

/* Строка-ссылка со стрелкой и линией */
.rows { display: block; }
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: var(--row-top) 0 var(--row-bottom);
  border-bottom: 2px solid var(--ink);
  color: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
  text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
}
.row:active { opacity: 0.6; }
.row__label { flex: 1 1 auto; }
.row__arrow {
  flex: 0 0 auto;
  display: block;
  width: 40px;
  height: 8px;
}
.row__note {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.7;
}

/* Адреса: выбор салона в стиле строк, карточка */
.pick {
  position: relative;
  display: block;
  margin: 0 0 clamp(14px, 3vh, 24px);
  border-bottom: 2px solid var(--ink);
}
.pick__select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 44px; /* цель касания, как у строк */
  margin: 0;
  padding: var(--row-top) 48px var(--row-bottom) 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 16px; /* 16 — iOS не приближает страницу при фокусе */
  font-weight: 600;
  line-height: 1.15;
  text-transform: uppercase;
  cursor: pointer;
}
.pick__select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
.pick__arrow {
  position: absolute;
  right: 0;
  top: 50%;
  width: 18px;
  height: 10px;
  transform: translateY(-50%);
  pointer-events: none;
}
.salon__address {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}
.salon__where {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.45;
}
.salon__note { opacity: 0.7; }
.salon__hours {
  margin: 12px 0 2px;
  font-size: 15px;
  line-height: 1.5;
}
.salon .rows { margin-top: 4px; }

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

/* Бронь клиента `/d/<хэш>`: плотные светлые карточки на фоне страницы, тот же
   шрифт и чёрные линии, что у контактов; шаг между блоками 8px. */
.lead {
  margin: calc(var(--title-gap) * -0.45) 0 var(--title-gap);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  opacity: 0.7;
}
.lead--left { margin: 0 0 16px; text-align: left; }

/* Красный блок сверху: запустить бота — уведомления о прокате вовремя. */
.alert {
  margin: 0 0 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
}
.alert__text {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-wrap: pretty;
}
.alert__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.alert--ink {
  background: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

/* Мессенджеры — чипсы в одну строку (на узких экранах переносятся). */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* цель касания, как у строк */
  padding: 8px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
  text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
}
.chip:active { opacity: 0.6; }
.chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.card {
  margin: 0 0 8px;
  padding: 14px 14px 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(28, 26, 26, 0.06), 0 4px 14px rgba(28, 26, 26, 0.05);
}
.card__label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0.55;
}
.card__value {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}
.card__text {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.card__text--sep { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }

.dates { display: flex; gap: 12px; }
.dates__col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dates__col + .dates__col {
  padding-left: 12px;
  border-left: 2px solid var(--ink);
}
.dates__cap, .dates__note { font-size: 12px; line-height: 1.3; opacity: 0.7; }
/* «30 сентября» обязано уместиться в полколонки на 280px без переноса. */
.dates__day { font-size: clamp(14px, 5.2vw, 19px); font-weight: 600; line-height: 1.15; white-space: nowrap; }

/* Выдача и возврат — в той же карточке, под датами. */
.ways { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.way { display: flex; flex-direction: column; gap: 2px; }
.way + .way { margin-top: 8px; }
.way__cap { font-size: 12px; line-height: 1.3; opacity: 0.7; }
.way__body { margin: 0; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.way__title { font-weight: 600; }
.way__line { display: block; }
/* Строки с переключателем доставки (`_delivery.html::way_dlv`): между ними — линия, как между
   вещами в «Нарядах». Компактно (владелец 22.10.26): переключатель справа в строке подписи, под ним
   сводка в 2–3 строки. Спека docs/specs/2026-10-22-deal-delivery-switch-design.md. */
.way.dlv + .way.dlv { margin-top: 8px; padding-top: 4px; border-top: 1px solid var(--line); }
.way.dlv:first-child { margin-top: -4px; } /* 5px прозрачного верха дорожки — уже отступ от линии */
.way.dlv .way__cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; }
/* Подпись с переключателем: прозрачность — только на слове, не на переключателе; уже 320 (Fold)
   переключатель переносится под подпись и прижат влево. */
.way__cap--sw { gap: 0 8px; opacity: 1; }
.way__name { opacity: 0.7; }
/* Переключатель «В салоне | Курьером» — в языке `.fmode`: дорожка цвета фона страницы, выбранный
   сегмент чёрный. Цель касания 44px честная (это и есть бокс ссылки), а дорожка и пилюля рисуются
   псевдоэлементами 34/28px внутри него — блок ниже, попасть пальцем так же просто. Ширина сегментов
   одинаковая (`1fr` в inline-grid = по большей подписи). Сегменты — ссылки (без скрипта:
   `?form=start#start`, `?cancel=start#start`, `#start`); выбранный — `aria-current`, недоступный —
   `aria-disabled` (span). */
.wsw { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; flex: 0 0 auto; max-width: 100%; margin: 0; padding: 0 2px; }
.wsw::before { content: ""; position: absolute; inset: 5px 0; border-radius: 11px; background: var(--bg); }
.wsw__item {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.wsw__item::before { content: ""; position: absolute; z-index: -1; inset: 8px 1px; border-radius: 8px; }
.wsw__item[aria-current="true"] { color: #fff; }
.wsw__item[aria-current="true"]::before { background: var(--ink); }
.wsw__item[aria-disabled="true"] { opacity: 0.4; }
a.wsw__item:active { opacity: 0.6; }
.wsw__item:focus-visible { outline: 0; }
.wsw__item:focus-visible::before { outline: 2px solid var(--ink); outline-offset: 2px; }
/* 320 (iPhone SE): в карточке 244px — «Получение» + переключатель входят в строку только узким
   (12px, поля 8px → 160px); уже 320 переключатель переносится под подпись. */
@media (max-width: 320px) { .wsw__item { padding: 0 8px; font-size: 12px; } }
/* Внутри строки брони: строка результата — под переключателем; тело — сразу под ним (5px прозрачного
   поля дорожки — и есть отступ); подтверждение и кнопки — плотнее, чем на отдельной странице. */
.way .dlv__note { margin: 4px 0 2px; padding: 8px 12px; font-size: 13px; }
.way .dlv__body { margin-top: 0; }
.way .dlv__body > :first-child { margin-top: 0; }
.way .dlv__confirm { margin-top: 8px; padding-top: 8px; }
.way .dlv__confirm .dlv__ask { font-size: 14px; }
.way .dlv__confirm .dlv__ask__sub { font-size: 13px; }
.way .dlv__actions { margin-top: 8px; }
.way .dlv__form .card__label--next:first-of-type { margin-top: 12px; }
/* Первая строка сводки курьера: метка состояния и окно в одну строку (переносится по словам). */
.dlv__line { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 0; font-size: 14px; line-height: 1.4; }
.dlv__line .dlv__tag { padding: 2px 8px; }
.dlv__line .dlv__when { margin: 0; font-size: 14px; }
.way .dlv__addr { margin-top: 2px; }
/* Тихие строки 12px: график салона, телефон и пожелание курьеру, «Доставка курьером отменена.». */
.way__sub, .way__note { margin: 1px 0 0; font-size: 12px; line-height: 1.4; opacity: 0.7; overflow-wrap: anywhere; }
.way__note { opacity: 0.65; }
/* «Изменить» / «На карте» — текстовые ссылки в строку вместо кнопки во всю ширину; цель касания
   44px за счёт высоты ссылки, в потоке она занимает 32px (отрицательные поля). */
.dlv__links { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 2px 0 -4px; }
.dlv__lnk {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -6px 0;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
  -webkit-tap-highlight-color: transparent;
}
.dlv__lnk:active { opacity: 0.6; }
.dlv__lnk:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; border-radius: 6px; }
/* Чем обернётся отмена: второй строкой под вопросом — куда тогда идти. */
.dlv__ask__sub { margin: 4px 0 0; font-size: 14px; line-height: 1.4; opacity: 0.7; overflow-wrap: anywhere; }

.items { margin: 0; padding: 0; list-style: none; }
.item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.item:first-child { padding-top: 0; border-top: 0; }
.item:last-child { padding-bottom: 0; }
.item__photo {
  flex: 0 0 auto;
  width: 42px;
  height: 56px;
  border-radius: 8px;
  background: var(--bg);
  object-fit: cover;
}
/* Фото вещи — кнопка просмотра всех фото платья (`gallery.js`): сброс кнопки до картинки, в углу —
   маленькая лупа (намёк, что фото можно рассмотреть), нажатие чуть вдавливает. */
.item__shot {
  position: relative;
  flex: 0 0 auto;
  display: block;
  width: 42px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: inherit;
  font: inherit;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease-out;
}
.item__shot .item__photo { display: block; width: 100%; height: 100%; }
.item__shot::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1a1a' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M20 20l-5-5M10.5 7.8v5.4M7.8 10.5h5.4'/%3E%3C/svg%3E") center / 11px 11px no-repeat;
  box-shadow: 0 1px 3px rgba(28, 26, 26, 0.25);
}
.item__shot:active { transform: scale(0.95); }
.item__shot:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.item__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.item__name { font-size: 15px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
/* Цвет, не прозрачность: строка подшива внутри красится сама (`--p-mute` ≈ чернила на 70%). */
.item__note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; line-height: 1.3; color: var(--p-mute); }
/* Состояние подшива вещи (`deal.HEM`): текстом после «№ …», тихо; разделитель «·» — внутри строки,
   чтобы при переносе он ушёл с ней; цветом — только что важно клиенту: задача не поставлена
   (предупреждение) и готов. */
.hem--sep::before { content: "·"; margin-right: 6px; color: var(--p-mute); font-weight: 400; }
.hem--measured { color: var(--warn); font-weight: 600; }
.hem--done { color: var(--ok); font-weight: 600; }
.tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}
.item__price { flex: 0 0 auto; font-size: 15px; font-weight: 600; white-space: nowrap; }

.sums { margin: 0; }
.sums__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
  font-size: 14px;
  line-height: 1.3;
}
.sums__row dt { opacity: 0.7; }
.sums__row dd { margin: 0; font-weight: 600; white-space: nowrap; }
.sums__row--due, .sums__row--done {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 2px solid var(--ink);
  font-size: 16px;
  font-weight: 600;
}
.sums__row--due dt, .sums__row--done dt { opacity: 1; }

/* Кнопки: чёрная, белая на красном. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px; /* цель касания, как у строк */
  padding: 10px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { opacity: 0.6; }
.btn:disabled { opacity: 0.4; cursor: default; }
.btn--light { border-color: #fff; background: #fff; color: var(--red); }
.btn--light:focus-visible { outline-color: #fff; }

/* Уведомления: push (текст + кнопка) и почта раскрывашкой. Включённые
   подписки на странице не показываем — блоки прячутся. */
.push__text { margin: 0 0 10px; font-size: 14px; line-height: 1.4; }
.push[data-state="install"] .push__text, .push[data-state="unsupported"] .push__text { margin-bottom: 0; }
.push[data-state="done"] .push__text { margin-bottom: 0; font-weight: 600; }
.push__phone { margin: 0 0 10px; }
.push__status { margin: 0 0 10px; }
.push__hint { margin: 8px 0 0; font-size: 12px; line-height: 1.4; opacity: 0.65; }
.mail { margin-top: 10px; padding-top: 6px; border-top: 1px solid var(--line); }
.push[hidden] + .mail { margin-top: 0; padding-top: 0; border-top: 0; }
.mail__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mail__summary::-webkit-details-marker { display: none; }
.mail__summary::after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin: -4px 4px 0 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.mail[open] .mail__summary::after { margin-top: 4px; transform: rotate(-135deg); }
.mail__form { margin-top: 6px; }
.mail__line { display: flex; flex-wrap: wrap; gap: 8px; }
.mail__input {
  flex: 1 1 150px;
  min-width: 0;
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 16px; /* 16 — iOS не приближает страницу при фокусе */
}
.mail__input:focus-visible, .btn:focus-visible, .mail__summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.mail__hint { margin: 6px 0 0; font-size: 12px; line-height: 1.4; opacity: 0.65; }
.mail__note { margin: 0 0 8px; font-size: 14px; font-weight: 600; line-height: 1.4; }

/* Уведомления: страница одного (текст — в заголовке, как пришёл в push) и раздел. */
.title--notice { font-size: clamp(20px, 6vw, 25px); line-height: 1.2; text-transform: none; overflow-wrap: anywhere; }
.notice__text { margin: 0; font-size: 16px; white-space: pre-line; }
.card--link { display: block; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.card--link:active { opacity: 0.6; }
.card--link .card__label, .card--link .card__value, .card--link .card__text { display: block; }
.card--row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.card--row .card__value { font-size: 14px; }
.card__text--clip {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.card--link .card__text--clip { display: -webkit-box; }

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

/* «Мои заказы» `/orders` (спека docs/specs/2026-10-21-orders-design.md): строка заказа — карточка-
   ссылка на бронь: фото первой вещи 2:3 (нет фото — вешалка на фоне), даты крупно, номер заказа и
   город, вещи одной строкой с многоточием, «Осталось оплатить» красным или метка «Отменён»;
   справа шеврон. Прошедшие и отменённые — под заголовком «Прошедшие», приглушены (фото серое,
   текст 0.7 — на белом это 5.9:1 для чёрного, не ниже 4.5). */
.orders { margin: 0 0 8px; }
.orders__head { margin: 14px 0 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; line-height: 1; text-transform: uppercase; opacity: 0.55; }
.orders:first-child .orders__head { margin-top: 0; }
.order { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 12px; }
.order__pic {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 72px;
  border-radius: 8px;
  background: var(--bg);
  overflow: hidden;
}
.order__hanger { display: block; width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0.4; }
.order__photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.order__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
/* Даты — одна строка с 360 («30 сентября – 2 октября», 190px при 16px); уже — кегль меньше, на 320 через месяц переносятся. */
.order__dates { font-size: clamp(13px, 4.45vw, 16px); font-weight: 600; line-height: 1.25; }
.order__meta { font-size: 12px; line-height: 1.3; opacity: 0.7; overflow-wrap: anywhere; }
.order__items { font-size: 13px; line-height: 1.35; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.order__due { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--red); }
.order__tag { align-self: flex-start; padding: 2px 8px; border-radius: 999px; background: var(--bg); font-size: 11px; font-weight: 600; line-height: 1.2; }
.order__chev {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin: 0 3px 0 -2px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.5;
}
.order--done .order__body, .order--cancelled .order__body { opacity: 0.7; }
.order--done .order__photo, .order--cancelled .order__photo { filter: grayscale(1); opacity: 0.8; }
@media (max-width: 319px) {
  .order { gap: 10px; padding: 10px 10px 10px 10px; }
  .order__pic { width: 40px; height: 60px; }
}

/* Выбор города на записи: плитки-переключатели в языке календаря (`.zhour`) и
   подборки (`.pcard`) — белые скруглённые на фоне страницы, выбранный — чёрный с
   галочкой. Одно касание = переход `?city=ID`, скриптов нет. Колонки: одна на
   280–355, две на телефоне и в колонке 480 (`.page`). */
.zcity {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin: 0 0 16px;
}
.zcity__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 48px; /* цель касания */
  padding: 8px;
  border: 2px solid transparent; /* место под рамку выбранного — геометрия не прыгает */
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(28, 26, 26, 0.06), 0 4px 14px rgba(28, 26, 26, 0.05);
  color: inherit;
  font-size: 13px; /* 13 — «Нижний Новгород» в одну строку в двух колонках с 360px */
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere; /* длинное имя переносится внутри плитки, сетку не ломает */
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.zcity__item:active { opacity: 0.6; }
.zcity__item:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* Текущий город: чёрная плитка и галочка — метка не только цветом; ссылка
   остаётся рабочей: нажать = оставить этот город. */
.zcity__item[aria-current] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}
.zcity__item[aria-current]::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 11px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
@media (hover: hover) {
  .zcity__item { transition: border-color 0.15s ease; }
  .zcity__item:not([aria-current]):hover { border-color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  .zcity__item { transition: none; }
}

/* Самозапись на примерку `/z/<хэш>`: дни лентой, часы сеткой, загрузка салона — точкой. */
.card__label--next { margin-top: 16px; opacity: 1; font-size: 13px; letter-spacing: 0.02em; }
.zmonths { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.zmonth {
  min-height: 40px;
  padding: 8px 16px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.zmonth.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }
.zcal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.zcal__week { padding: 0 0 4px; font-size: 11px; font-weight: 600; line-height: 1; text-align: center; text-transform: uppercase; opacity: 0.5; }
.zday, .zhour {
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.zday {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 46px; /* цель касания */
  padding: 5px 0 4px;
}
.zday__num { font-size: 16px; line-height: 1; }
.zday--off { border-color: transparent; background: none; font-size: 16px; font-weight: 500; opacity: 0.28; cursor: default; }
.zhours { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.zhour {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px; /* цель касания */
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.zday.is-on, .zhour.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }
.zday:focus-visible, .zhour:focus-visible, .zmonth:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.zday:active, .zhour:active { opacity: 0.6; }
.zdot { flex: 0 0 auto; display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.zdot--ok { background: #2e9e5b; }
.zdot--orange { background: #e8930c; }
.zdot--red { background: var(--red); }
.zdot--none { background: rgba(28, 26, 26, 0.18); }
.zplace__map { display: inline-block; margin-top: 8px; color: inherit; font-size: 14px; font-weight: 600; text-underline-offset: 3px; }
.is-on .zdot { box-shadow: 0 0 0 1.5px #fff; }
.zlegend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  line-height: 1.4;
}
.zlegend li { display: inline-flex; align-items: center; gap: 6px; opacity: 0.75; }
.zphone { display: block; margin-top: 14px; }
.zphone__cap { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; }
.zphone .mail__input { width: 100%; }
.zstatus { min-height: 0; margin: 10px 0 0; color: var(--red); font-size: 13px; font-weight: 600; line-height: 1.4; }
.zstatus:empty { display: none; }
.zsubmit { width: 100%; margin-top: 12px; }
.zcontact .chips { margin: 0; }
.zhp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.zlogin { margin-top: 12px; }
.zsubmit--phone { border-color: var(--red); background: var(--red); color: #fff; }
.zbooked { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.15; }
.znote { margin: 0 0 10px; font-size: 14px; line-height: 1.4; }
.zactions { margin: 12px 0 0; }
.zactions .btn { width: 100%; }
.zplace__city { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0 0 8px; }
.zplace__name { font-size: 20px; font-weight: 600; line-height: 1.15; }
.zplace__change {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
  text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
}
.zplace__change:active { opacity: 0.6; }
.zplace__change:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.zplace__auto { margin: 0 0 8px; padding: 8px 10px; border-radius: 8px; background: #fff4dc; font-size: 13px; line-height: 1.4; }
.zplace__note { margin-top: 6px; opacity: 0.7; }
.zplace__hours { margin-top: 8px; }
.zplace .chips { margin: 12px 0 0; }
/* Фото салона поверх страницы. Стили свои, не `.pview` подборки: та живёт своим редизайном.
   Размер картинке ставит `photo.js`: целиком в экран, по нажатию — полный, с прокруткой. */
.zphoto {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  background: #121111;
  color: #fff;
}
.zphoto[hidden] { display: none; }
.zphoto__top { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 4px 16px; }
.zphoto__title { font-size: 14px; font-weight: 600; opacity: 0.8; }
.zphoto__close {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}
.zphoto__close:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.zphoto__info { flex: 0 0 auto; padding: 10px 16px 14px; }
.zphoto__stage { flex: 1 1 auto; min-height: 0; display: flex; overflow: auto; overscroll-behavior: contain; }
.zphoto__img { flex: none; display: block; margin: auto; max-width: none; height: auto; background: #fff; }
.zphoto__stage.can-zoom .zphoto__img { cursor: zoom-in; }
.zphoto__stage.is-zoom .zphoto__img { cursor: zoom-out; }
.zphoto__note, .zphoto__hint { margin: 0; font-size: 14px; line-height: 1.4; }
.zphoto__hint { opacity: 0.6; }
.zplace__src { margin: 8px 0 0; font-size: 10px; opacity: 0.45; }
.zplace__src a { color: inherit; }
/* Текущая запись клиента в календаре переноса: красная рамка у дня и часа. */
.zday.is-mine, .zhour.is-mine { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.zday.is-mine.is-on, .zhour.is-mine.is-on { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.zmine-mark { display: inline-block; width: 14px; height: 10px; border: 2px solid var(--red); border-radius: 4px; }

/* Подборка платьев `/p/<хэш>` — лукбук: фото 3:4 со скруглением прямо на фоне страницы, подпись
   без коробки одной строкой (первая серия, цен нет — владелец 03.10.26), «сердечко» —
   контур в матовом диске, отмеченное — заливка красным (отличие формой, не только цветом);
   панель мессенджеров — плавающий белый док с размытием; просмотр — тёмный, как системный.
   Единственный акцент страницы — красный у отмеченного. Токены с префиксом `--p-` — только
   этой страницы; сердечко, плашку сбоя и док делит лента `/top` (ниже).
   Спека docs/specs/2026-10-03-selection-redesign-design.md. */
:root {
  --p-mute: #5f5c5c; /* вторичный текст на #f0f0f0 — 5.7:1 */
  --p-radius: 14px;
  --p-shadow: 0 10px 30px rgba(28, 26, 26, 0.16), 0 2px 6px rgba(28, 26, 26, 0.08);
  --p-dock: 110px; /* высота дока без safe-area: 8 + запись 44 + 6 + мессенджеры 44 + 8 */
  --p-dock-gap: 10px; /* зазор дока от краёв экрана */
  --p-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
/* Место под док (подборка и `/top`): последняя кнопка не прячется под ним. */
body:has(.mbar) .page { padding-bottom: calc(var(--p-dock) + var(--p-dock-gap) + 20px + env(safe-area-inset-bottom, 0px)); }

/* Вступление — две короткие строки вместо абзаца; маленькое сердце — такое же, как на карточках. */
.pintro { margin: 0 0 14px; }
.pintro__text { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; text-wrap: pretty; overflow-wrap: anywhere; }
.pintro__hint { margin: 4px 0 0; font-size: 13px; line-height: 1.4; color: var(--p-mute); text-wrap: pretty; }
/* «Похожие платья» (`source == "similar"`): вместо вступления — от какого платья искали: его фото
   2:3 слева, серия и город справа. Спека docs/specs/2026-10-22-liked-similar-design.md. */
.pintro--base { display: flex; align-items: center; gap: 12px; }
.pintro__pic { flex: 0 0 auto; width: 56px; height: 84px; object-fit: cover; object-position: top; border-radius: 10px; background: #e4e3e3; }
.pintro__body { flex: 1 1 auto; min-width: 0; }
.pico {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 1px;
  vertical-align: -1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linejoin: round;
}
/* На самых узких экранах подпись кнопки переносится — вторая строка по центру, как первая. */
.psel .zactions .btn { text-align: center; }

/* Сетка: две колонки, подпись под фото на фоне страницы. */
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 10px; margin: 0; }
.pitem { position: relative; min-width: 0; display: flex; }
.pcard {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-radius: var(--p-radius);
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.pcard__photo {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--p-radius);
  background: #e4e3e3;
  transition: transform 0.25s var(--p-ease);
}
.pcard:active .pcard__photo { transform: scale(0.98); }
.pcard:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
/* Подпись: кегль следует за шириной экрана — «Серия 9904200 продажа» встаёт в одну строку в
   колонке с 360px, уже — «продажа» уходит на вторую строку; город — одной строкой с многоточием. */
.pcard__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 9px 2px 0;
  font-size: clamp(11px, calc(4.2vw - 4.2px), 14px);
  line-height: 1.3;
}
/* «Серия N <small>продажа</small>»: серия — 600 чёрным, «продажа» (прокат запрещён) — мельче и приглушённо; цен нет (владелец 03.10.26). */
.pcard__serial { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 5px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.pcard__serial small { font-size: 0.92em; font-weight: 500; letter-spacing: 0; color: var(--p-mute); }
.pcard__line { font-size: 0.92em; overflow-wrap: anywhere; }
.pcard__line--dim { color: var(--p-mute); }
.pcard__line--one { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* «Сердечко» (подборка и `/top`): кнопка 44px (цель касания) в углу фото, видимый диск 34px;
   контур → заливка. */
.like {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pitem .like { position: absolute; top: 4px; right: 4px; z-index: 1; width: 44px; height: 44px; }
.like__disc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 3px rgba(28, 26, 26, 0.2);
  transition: transform 0.15s var(--p-ease);
}
.like__icon {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linejoin: round;
  stroke-linecap: round;
  transition: fill 0.2s, stroke 0.2s;
}
.like[aria-pressed="true"] .like__icon { fill: var(--red); stroke: var(--red); }
.like:active .like__disc { transform: scale(0.88); }
.like:focus-visible { outline: none; }
.like:focus-visible .like__disc { outline: 2px solid var(--ink); outline-offset: 2px; }
/* Отклик на нажатие: сердце «подпрыгивает» (класс ставит скрипт, при загрузке не играет). */
.like.is-pop .like__icon { animation: p-pop 0.4s var(--p-ease); }
@keyframes p-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
/* Сбой отметки — плашка сверху экрана (в просмотре — под счётчиком и крестиком), видна и из
   сетки, и из просмотра; касания пропускает, чтобы не закрывать сердце, которое только что нажали. */
.likes-note {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 50%;
  z-index: 70;
  max-width: calc(100vw - 24px);
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  transform: translateX(-50%);
  box-shadow: var(--p-shadow);
  pointer-events: none;
}
.is-locked .likes-note { top: calc(64px + env(safe-area-inset-top, 0px)); }

/* Док (подборка и `/top`, разметка `_dock.html`): плавающая белая плашка внизу, поверх просмотра
   (z-index выше .pview) — строка с записью на примерку, под ней три мягкие кнопки мессенджеров с
   круглой меткой площадки. Без JS — обычные ссылки. «Понравилось N» — в полоске `.nav`. */
.mbar {
  position: fixed;
  left: var(--p-dock-gap);
  right: var(--p-dock-gap);
  bottom: calc(var(--p-dock-gap) + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  max-width: 456px;
  margin: 0 auto;
  padding: 8px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--p-shadow);
}
.mbar__row { display: flex; gap: 8px; margin: 0 0 6px; }
/* Запись: календарь и подпись в одну строку; на 280 подпись 11px — входит без переноса. */
.mbar__cta { flex: 1 1 auto; min-width: 0; gap: 8px; padding: 8px 14px; text-align: center; text-wrap: balance; }
.mbar__ico { flex: 0 0 auto; display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 320px) { .mbar__cta { padding: 8px 10px; font-size: 12px; } }
@media (max-width: 299px) { .mbar__cta { font-size: 11px; } }
.mbar__actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; }
.mbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 44px;
  padding: 0 6px;
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s, transform 0.15s var(--p-ease);
}
.mbtn:active { background: #e3e2e2; transform: scale(0.97); }
.mbtn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.mbtn__mark {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
}
.mbtn__mark svg { display: block; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.mbtn__mark .mbtn__fill { fill: currentColor; stroke: none; }
/* Цвета площадок — только в метке 24px: узнаваемо и не спорит с фото. */
.mbtn--whatsapp .mbtn__mark { background: #25d366; }
.mbtn--telegram .mbtn__mark { background: #2aabee; }
.mbtn--max .mbtn__mark { background: linear-gradient(135deg, #3d6cf2, #7a3ff0); }
.mbtn__label { font-size: 12px; font-weight: 600; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* «WhatsApp» (69px при 12px) рядом с меткой входит в треть дока только с 390: на 360–389 подпись
   11px и кнопка плотнее, уже 360 — только метки. */
@media (max-width: 389px) {
  .mbtn { gap: 5px; padding: 0 4px; }
  .mbtn__label { font-size: 11px; }
}
@media (max-width: 359px) { .mbtn__label { display: none; } }
@media (hover: hover) {
  .mbtn:hover { background: #e8e7e7; }
}

/* Размытие там, где оно есть; иначе — почти непрозрачный белый выше. */
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .mbar { background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); }
  .is-locked .mbar { background: rgba(255, 255, 255, 0.96); } /* над тёмным просмотром — плотнее, иначе кнопки светлее плашки */
  .like__disc { background: rgba(255, 255, 255, 0.74); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .pview__count, .pview__close, .pview__nav { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}

/* Просмотр во весь экран: фото на тёмном, счётчик и крестик поверх фото, стрелки по краям,
   внизу серия (одна строка, как под фото) и «Нравится» — белая пилюля; док остаётся снизу. */
.is-locked, .is-locked body { overflow: hidden; }
.pview {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px)
    calc(var(--p-dock) + var(--p-dock-gap) + 8px + env(safe-area-inset-bottom, 0px)) env(safe-area-inset-left, 0px);
  background: #0e0d0d;
  color: #fff;
}
.pview[hidden] { display: none; }
.pview:not([hidden]) { animation: p-fade 0.18s ease-out; }
@keyframes p-fade {
  from { opacity: 0; }
}
.pview__stage { position: relative; flex: 1 1 auto; min-height: 0; touch-action: pan-y; }
.pview__photo { display: block; width: 100%; height: 100%; object-fit: contain; }
.pview__top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 0 12px;
  pointer-events: none;
}
.pview__top > * { pointer-events: auto; }
.pview__count {
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  font-size: 12px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.pview__count:empty { display: none; }
.pview__close, .pview__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pview__close svg, .pview__nav svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pview__nav { position: absolute; top: 50%; margin-top: -22px; }
.pview__nav--prev { left: 10px; }
.pview__nav--next { right: 10px; }
.pview__close:active, .pview__nav:active { background: rgba(0, 0, 0, 0.7); }
.pview__close:focus-visible, .pview__nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pview__info {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 10px 16px 4px;
}
.pview__serials { flex: 1 1 auto; min-width: 0; }
/* «Серия N <small>продажа</small>» (строит `selection.js`): серия 15/600, «продажа» мельче и
   приглушённо; на узком экране переносится под серию, а не под пилюлю. */
.pview__serial { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.pview__serial small { font-size: 13px; font-weight: 500; letter-spacing: 0; white-space: nowrap; color: rgba(255, 255, 255, 0.72); }
.pview__city { margin: 2px 0 0; font-size: 12px; line-height: 1.3; color: rgba(255, 255, 255, 0.72); }
.pview__like {
  flex: 0 0 auto;
  gap: 8px;
  height: 48px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.15s var(--p-ease);
}
.pview__like .like__icon { width: 20px; height: 20px; }
.pview__like:active { transform: scale(0.97); }
.pview__like:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Пустая подборка: вешалка, короткий заголовок, что делать дальше. */
/* Фильтр «Понравилось»: строка над сеткой — что показано и выход ко всем платьям. */
.pliked { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.pliked__title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; }
.pliked .pliked__all { margin-right: -12px; white-space: nowrap; }
.pempty { display: flex; flex-direction: column; align-items: center; margin: 26px 0 22px; text-align: center; }
.pempty__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 0 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(28, 26, 26, 0.06), 0 4px 14px rgba(28, 26, 26, 0.05);
}
.pempty__mark svg { display: block; width: 36px; height: 36px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pempty__title { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.25; text-wrap: balance; }
.pempty__text { max-width: 34ch; margin: 8px 0 0; font-size: 14px; line-height: 1.45; color: var(--p-mute); text-wrap: pretty; }

/* Низкий и широкий экран (телефон боком): док в одну строку — запись слева, мессенджеры справа
   только метками (с подписями кнопка записи ломалась бы на три строки). */
@media (max-height: 480px) and (min-width: 560px) {
  :root { --p-dock: 56px; }
  .mbar { display: flex; align-items: center; gap: 12px; max-width: 560px; padding: 6px; }
  .mbar__row { flex: 1 1 auto; min-width: 0; margin: 0; }
  .mbar__actions { flex: 0 0 auto; display: flex; }
  .mbar .mbtn { padding: 0 12px; }
  .mbar .mbtn__label { display: none; }
  .pview__info { padding: 6px 16px 2px; }
}
@media (min-width: 720px) {
  .pview__nav { width: 52px; height: 52px; margin-top: -26px; }
}
@media (prefers-reduced-motion: reduce) {
  .pcard__photo, .like__disc, .like__icon, .mbtn, .pview__like, .item__shot, .dgal__zoom { transition: none; }
  .pcard:active .pcard__photo, .like:active .like__disc, .mbtn:active, .pview__like:active, .item__shot:active, .dgal__zoom:active { transform: none; }
  .like.is-pop .like__icon { animation: none; }
  .pview:not([hidden]) { animation: none; }
}

/* Фото вещи брони `/d/<хэш>` (`#dgal`, `gallery.js`) — тот же просмотр `.pview`, но дока нет: снизу
   только safe-area. Фото лежит в прокручиваемом слое под крестиком и стрелками: в обычном виде —
   целиком в экран, по нажатию (или кнопкой «Увеличить» — белая пилюля на месте «Нравится») — полный
   размер, и его двигают пальцем; размер ставит скрипт, как у `photo.js`. */
.pview--deal { padding-bottom: env(safe-area-inset-bottom, 0px); }
.pview--deal .pview__stage { touch-action: auto; }
.dgal__scroll {
  position: absolute;
  inset: 0;
  display: flex;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-width: none;
}
.dgal__scroll::-webkit-scrollbar { display: none; }
.dgal__scroll.is-zoom { touch-action: pan-x pan-y; }
.dgal__img { flex: none; display: block; margin: auto; max-width: none; height: auto; -webkit-user-select: none; user-select: none; }
.dgal__scroll.can-zoom .dgal__img { cursor: zoom-in; }
.dgal__scroll.is-zoom .dgal__img { cursor: zoom-out; }
.pview__info--deal { align-items: center; }
.dgal__text { flex: 1 1 auto; min-width: 0; }
.dgal__name { overflow-wrap: anywhere; }
.dgal__zoom {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px 0 12px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s var(--p-ease);
}
.dgal__zoom svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dgal__zoom.is-zoom .dgal__zoom-v { display: none; }
.dgal__zoom:active { transform: scale(0.97); }
.dgal__zoom:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Топ платьев `/top` — лукбук в языке подборки `/p`: шапка-полоска, липкая строка разделов
   (три плитки, как выбор города `.zcity`, выбранная чёрная) с глифом вида ленты справа, фото 2:3
   со скруглением прямо на фоне и подпись без коробки, внизу — док `.mbar`. Поля ленты и
   строки разделов — по 12px (шире колонки текста): фото — главное на странице. */
.bar__link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.bar__link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.seg {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 36px; /* четвёртая ячейка — глиф вида */
  gap: 6px;
  align-items: center;
  margin: 0 -12px 14px;
  padding: max(6px, env(safe-area-inset-top)) 0 6px;
  background: var(--bg);
}
.nav ~ .page .seg { top: var(--nav-h); } /* под закреплённой полоской */
@media (max-height: 480px) and (min-width: 560px) {
  .seg { position: static; } /* телефон боком: закреплён только док */
}
.seg__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px; /* цель касания */
  padding: 6px 1px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(28, 26, 26, 0.06), 0 4px 14px rgba(28, 26, 26, 0.05);
  color: inherit;
  font-size: clamp(10px, 3.6vw, 14px); /* «Свадебные» (60px при 10px) в ячейке 67px на 280 */
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.seg__item:active { opacity: 0.6; }
.seg__item:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.seg__item[aria-current] { background: var(--ink); color: #fff; box-shadow: none; }
/* Глиф вида ленты: «сетка» (четыре плитки) или одна крупная плитка — тот вид, что откроется
   по нажатию (не текущий: нажатие предсказуемо, как у кнопки «вид» в каталогах). Ячейка 36px, цель касания
   44 — заходит в зазоры сетки, на плитку соседа не ложится. Без плашки: это инструмент, не раздел. */
.seg__view {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 -4px;
  border-radius: 12px;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.seg__view:active { opacity: 0.6; }
.seg__view:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.seg__ico { display: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.seg__view[data-view="1"] .seg__ico--1, .seg__view[data-view="2"] .seg__ico--2 { display: block; }
/* Лента: фото со скруглением на фоне страницы, подпись под ним — как `.pcard`; вертикальный
   зазор больше горизонтального, чтобы подпись читалась к своему фото. */
.tfeed { display: grid; gap: 18px 10px; margin: 0 -12px 8px; }
.tfeed[hidden] { display: none; }
.tfeed > .lead { margin: 8px 12px; }
.titem { position: relative; min-width: 0; }
.titem__photo {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3; /* витринные фото каталога — 2:3: платье в полный рост видно целиком */
  object-fit: cover;
  object-position: top; /* другой формат режем снизу: лицо модели остаётся */
  border-radius: var(--p-radius);
  background: #e4e3e3;
}
/* «Серия N <продажа> и ещё N»: серия 600, «продажа» мельче и приглушённо, как под фото подборки. */
.titem__body { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; margin: 0; padding: 9px 2px 0; font-size: 15px; line-height: 1.3; }
.titem__serial { font-weight: 600; letter-spacing: -0.01em; }
.titem__sale { font-size: 0.92em; font-weight: 500; color: var(--p-mute); }
.titem__more { font-size: 0.86em; color: var(--p-mute); }
/* «Сердечко» ленты — то же, что в подборке (диск, контур → заливка), в одну колонку крупнее: кнопка 52, диск 40. */
.titem .like { position: absolute; top: 8px; right: 8px; z-index: 1; width: 52px; height: 52px; }
.like--big .like__disc { width: 40px; height: 40px; }
.like--big .like__icon { width: 21px; height: 21px; }
/* Два платья в ряд (по умолчанию): «сердечко» и подпись как в сетке подборки, «и ещё N» не помещается. */
.tfeed--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tfeed--2 > .lead { grid-column: 1 / -1; }
.tfeed--2 .titem .like { top: 4px; right: 4px; width: 44px; height: 44px; }
.tfeed--2 .like--big .like__disc { width: 34px; height: 34px; }
.tfeed--2 .like--big .like__icon { width: 18px; height: 18px; }
/* Кегль подписи следует за шириной экрана, как у `.pcard__serial`; на узких «продажа» уходит на вторую строку. */
.tfeed--2 .titem__body { gap: 0 5px; font-size: clamp(11px, calc(4.2vw - 4.2px), 14px); white-space: nowrap; }
.tfeed--2 .titem__more { display: none; }

/* Шторка первого лайка: номер телефона. Поверх тулбара; на низком экране листается внутри. */
.tsheet__back { position: fixed; inset: 0; z-index: 69; background: rgba(28, 26, 26, 0.5); }
.tsheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  max-width: 480px;
  max-height: 100vh;
  max-height: 100svh;
  margin: 0 auto;
  padding: 16px max(16px, env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left));
  overflow-y: auto;
  border-radius: 16px 16px 0 0;
  background: #fff;
}
.tsheet:focus { outline: 0; }
.tsheet__title { margin: 0 0 8px; font-size: 18px; font-weight: 600; line-height: 1.2; }
.tsheet__text { margin: 0 0 12px; font-size: 14px; line-height: 1.45; }
.tsheet__num { font-weight: 600; white-space: nowrap; }
.tsheet .zphone { margin-top: 0; }
.tsheet__bots { margin: 0 0 4px; }
.tsheet__later { display: block; width: 100%; margin-top: 4px; }

/* Видео салона на странице записи: обложка с кнопкой и призыв; по нажатию — плеер на месте карточки. */
.zvideo { padding: 10px; }
.zvideo__open { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.zvideo__open:active { opacity: 0.6; }
.zvideo__open:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.zvideo__thumb { position: relative; flex: 0 0 76px; height: 100px; border-radius: 8px; overflow: hidden; background: var(--ink); }
.zvideo__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.zvideo__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 2px 8px rgba(28, 26, 26, 0.35);
}
.zvideo__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -7px 0 0 -4px;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent #fff;
}
.zvideo__body { display: block; min-width: 0; padding-right: 4px; }
.zvideo__body .card__label, .zvideo__body .card__value, .zvideo__body .card__text { display: block; }
.zvideo__body .card__label { margin-bottom: 6px; }
.zvideo__body .card__value { font-size: 16px; line-height: 1.25; }
.zvideo__body .card__text { margin-top: 4px; font-size: 13px; opacity: 0.7; }
.zvideo__player {
  display: block;
  width: auto;
  max-width: 100%;
  height: min(70vh, 520px);
  height: min(70svh, 520px);
  margin: 0 auto;
  border-radius: 8px;
  background: var(--ink);
  aspect-ratio: 9 / 16;
}

/* Платье по фото `/foto`: город, превью загруженных (до 5) с крестиком, кнопки во всю ширину. */
.fpick { margin-bottom: 4px; }
.fthumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 0 0 10px; }
.fthumbs:empty { display: none; }
.fthumb { position: relative; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: var(--line); }
.fthumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fthumb__del {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(28, 26, 26, 0.7);
  color: #fff;
  font: inherit;
  font-size: 16px;
  line-height: 28px;
  cursor: pointer;
}
.btn--out { background: transparent; color: var(--ink); }
.fgo { width: 100%; }
/* Камера и галерея рядом, только когда обе подписи целиком входят в строку (кнопка не уже своей
   подписи — `min-width: max-content`); иначе — друг под другом во всю ширину. Решает содержимое,
   не ширина экрана; `max-width` — подпись длиннее карточки перенесётся, а не вылезет. Камеру
   показываем только на сенсорных экранах — на компьютере `capture` не работает. */
.fadds { display: flex; flex-wrap: wrap; gap: 8px; }
.fadd { position: relative; flex: 1 1 0; min-width: max-content; max-width: 100%; padding-left: 8px; padding-right: 8px; text-align: center; }
.fadd--camera { border-color: var(--red); background: var(--red); color: #fff; }
@media not all and (pointer: coarse) {
  .fadd--camera { display: none; }
}
.fadds.is-off { opacity: 0.4; pointer-events: none; }
/* Переключатель «Поиск по фото» / «Поиск по тексту»: два сегмента, выбранный — чёрный
   (как плитка города `.zcity__item[aria-current]`); цель касания 44px. */
.fmode { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 16px; padding: 4px; border-radius: 12px; background: var(--bg); }
.fmode__item {
  min-width: 0;
  min-height: 44px;
  padding: 6px 4px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.fmode__item[aria-pressed="true"] { background: var(--ink); color: #fff; }
.fmode__item:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.fmode__item:disabled { opacity: 0.4; }
@media (max-width: 320px) { .fmode__item { font-size: 13px; } }
/* Описание словами: поле в две строки — в режиме «Поиск по тексту». */
.ftext__input {
  display: block;
  width: 100%;
  min-height: 68px;
  margin: 0;
  padding: 10px 12px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* 16 — iOS не приближает страницу при фокусе */
  line-height: 1.35;
  resize: vertical;
}
.ftext__input::placeholder { color: var(--ink); opacity: 0.5; }
.ftext__input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ftext__input:disabled { opacity: 0.4; }
.fgo { margin-top: 8px; }
.fstatus-ok { color: var(--ink); }

/* Вход `/login`: первой строкой карточки — статус на подложке 10 % цвета статуса (глиф +
   слово, тот же код, что в шапке), затем телефон, переключатель «на примерке», кнопки ботов. */
.lstate {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -14px -14px 12px;
  padding: 10px 14px;
  border-radius: 12px 12px 0 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
.lstate--off { background: var(--red-bg); color: var(--red); }
.lstate--wait { background: var(--warn-bg); color: var(--warn); }
.lstate--on { background: var(--ok-bg); color: var(--ok); }
/* Номер под заголовком карточки — мелко и приглушённо, не спорит с действием. */
.lphone-note { margin: 0 0 10px; font-size: 13px; line-height: 1.4; opacity: 0.7; }
.lfit {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px; /* цель касания */
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.lfit input { flex: 0 0 auto; width: 22px; height: 22px; margin: 0; accent-color: var(--ink); }
.lfit + .zphone { margin-top: 4px; }
.lmore { display: flex; flex-wrap: wrap; gap: 8px; }
.lout { margin: 0 0 12px; text-align: center; }
.llink {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* «Понравилось» `/liked`: примерки (сердечки стилиста, без правки) и отметки поиска — секции с
   заголовком-строкой, карточки те же `.pgrid`/`.pcard`, фото 2:3 как в `/top` (витринные фото
   каталога). Сердечек на карточках нет: снять отметку примерки нельзя, отметки поиска правят на
   их странице (ссылка «Изменить» в заголовке секции). Спека docs/specs/2026-10-21-liked-fitting-design.md. */
.lsec { margin: 0; }
.lsec + .lsec { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.lsec__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px 12px; margin: 0 0 12px; }
.lsec__text { min-width: 0; }
.lsec__title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; text-wrap: balance; }
.lsec__sub { margin: 2px 0 0; font-size: 13px; line-height: 1.4; color: var(--p-mute); }
/* «Изменить» — на линии заголовка, цель касания 44px уходит в поля (как «Все платья» в фильтре подборки). */
.lsec__edit { flex: 0 0 auto; display: inline-flex; align-items: center; margin: -10px -12px 0 0; white-space: nowrap; }
/* Фото 2:3 сверху (как лента `/top`): платье в полный рост, другой формат режем снизу. Подпись
   аксессуара длиннее («Кольца · серия N») — уже 320 переносится второй строкой, не режется. */
.lgrid .pcard__photo { aspect-ratio: 2 / 3; object-position: top; }
.lgrid .pcard__serial { white-space: normal; }
/* Аксессуар: под фото — только вид в одну строку; серия остаётся в тексте ссылки для просмотра фото (`photo.js`). */
.lgrid .lkind { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lkind__serial { display: none; }
/* «К брони» — статус «В сделку» у стилиста: красная метка в углу фото (красный — единственный
   акцент, он же у отмеченного); касания пропускает — под ней ссылка карточки. */
.ltag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 1px 3px rgba(28, 26, 26, 0.2);
  pointer-events: none;
}
/* Приглашение войти (не вошёл): белая карточка после содержимого — сердечки примерки
   показываем только по номеру телефона. */
.linvite {
  margin: 22px 0 0;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(28, 26, 26, 0.06), 0 4px 14px rgba(28, 26, 26, 0.05);
}
.linvite__title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; }
.linvite__text { margin: 4px 0 12px; font-size: 13px; line-height: 1.4; color: var(--p-mute); text-wrap: pretty; }
.linvite__btn { width: 100%; }
/* prokat не ответил: короткая карточка сверху, остальное (отметки поиска) — как обычно. */
.lnote { margin: 0 0 18px; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(28, 26, 26, 0.06), 0 4px 14px rgba(28, 26, 26, 0.05); }
.lnote__title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; }
.lnote__text { margin: 4px 0 10px; font-size: 13px; line-height: 1.4; color: var(--p-mute); }
.lnote__btn { width: 100%; }
.lnote__text:last-child { margin-bottom: 0; }
/* «Похожие» у платья — обычная форма `POST /similar` под подписью карточки (не поверх фото: там «К
   брони», и фото — товар; внутрь ссылки `.pcard` интерактив класть нельзя — форма рядом в `.pitem`).
   Ячейка — колонка, кнопка прижата к низу: в ряду кнопки на одной линии и при подписи в две строки,
   у аксессуара без кнопки низ ячейки пуст. Контурная пилюля 40px (цель касания) тоньше `.btn`:
   действие у каждой карточки, а не страницы. Спека docs/specs/2026-10-22-liked-similar-design.md. */
.lgrid .pitem { flex-direction: column; }
.lsim { margin-top: auto; padding-top: 8px; }
.lsim__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 0 8px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lsim__btn:active { background: rgba(28, 26, 26, 0.08); }
.lsim__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.lsim__ico { flex: none; width: 16px; height: 16px; margin-right: 6px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Та же кнопка в просмотре фото — белая пилюля над доком (`photo.js` шлёт форму карточки). */
.zphoto__sim { width: 100%; margin-top: 10px; border-color: #fff; background: #fff; color: var(--ink); }
.zphoto__sim:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* «Ищем…» после нажатия (`similar.js`): поиск в prokat идёт до ~10 с — кольцо вместо значка,
   повторное нажатие отключено; кнопка не гасится как недоступная — это ожидание, не запрет. */
.is-busy { cursor: progress; }
.is-busy::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin-right: 7px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: rf-spin 0.8s linear infinite;
}
.is-busy .lsim__ico { display: none; }
.btn.is-busy:disabled { opacity: 0.85; }
@media (prefers-reduced-motion: reduce) {
  .is-busy::before { border-right-color: currentColor; opacity: 0.45; animation: none; }
}
/* Фото поверх страницы вместе с доком: снизу место под него, как у просмотра `.pview`. */
.zphoto--dock { padding-bottom: calc(var(--p-dock) + var(--p-dock-gap) + 8px + env(safe-area-inset-bottom, 0px)); }

/* Заявка на повторную примерку со страницы брони (`_refit.html`, `refit.js`) — шторка `.rf`
   и её шаги; календарь, карточки, кнопки — общие (`/z`). Порт макета `static/mock/refit.css`. */
/* Плашка вместо фото вещи — вешалка на фоне (как `.order__pic` без фото). */
.rf-plate {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 56px;
  border-radius: 8px;
  background: var(--bg);
}
.rf-plate svg { display: block; width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0.4; }
.rf-plate--svc { height: 42px; }

/* Карточка «Повторная примерка» на странице брони — вход в флоу. */
.rf-card__btn { width: 100%; margin-top: 12px; }
.btn.rf-btn2 { border-color: var(--ink); background: #fff; color: var(--ink); }
.rf-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.rf-status--wait { color: var(--warn); }
.rf-status--on { color: var(--ok); }
.rf-card__items { margin: 4px 0 0; font-size: 13px; line-height: 1.4; opacity: 0.7; }
/* «Отменить запись» — тихая строка под «Изменить»: текст, не кнопка, но цель касания 44px. */
.rf-card__cancel {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 2px 0 -10px;
  padding: 10px;
  border: 0;
  background: none;
  color: var(--p-mute);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.rf-card__cancel:active { opacity: 0.6; }
.rf-card__cancel:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; border-radius: 8px; }

/* Шторка: на телефоне — снизу почти во весь экран, на широком экране — окно по центру. */
.rf-ov { position: fixed; inset: 0; z-index: 150; background: rgba(28, 26, 26, 0.5); }
.rf {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: calc(10px + env(safe-area-inset-top, 0px));
  z-index: 160;
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 18px 18px 0 0;
  background: var(--bg);
  box-shadow: var(--p-shadow);
  overflow: hidden;
}
body.rf-open { overflow: hidden; }
.rf__top {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 56px;
  padding: 6px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.rf__back, .rf__close {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.rf__back svg, .rf__close svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rf__back:active, .rf__close:active { opacity: 0.6; }
.rf__back:focus-visible, .rf__close:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.rf__back.is-hidden { visibility: hidden; }
.rf__prog {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.rf__prog__cap {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.rf__prog__cap b { font-weight: 600; opacity: 0.55; }
.rf__prog__bars { display: flex; gap: 4px; width: min(150px, 100%); margin: 0; padding: 0; list-style: none; }
.rf__prog__bars li { flex: 1 1 0; height: 4px; border-radius: 2px; background: var(--line); }
.rf__prog__bars li.is-done, .rf__prog__bars li.is-on { background: var(--ink); }
.rf__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px 16px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.rf__foot {
  flex: 0 0 auto;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: #fff;
}
.rf__cta { width: 100%; }
/* Вторая кнопка подвала (отмена записи) — над основной; опасная — красным контуром. */
.rf__cta2 { margin-bottom: 8px; }
.btn.rf__cta2--danger { border-color: var(--red); color: var(--red); }
/* Отказ prokat или сбой отправки — над кнопкой. */
.rf__status { margin: 0 0 8px; }
.rf__h { margin: 0 0 4px; font-size: 20px; font-weight: 600; line-height: 1.2; }
.rf__h:focus { outline: none; }
.rf__lead { margin: 0 0 12px; font-size: 14px; line-height: 1.4; opacity: 0.7; text-wrap: pretty; }
.rf__body .card:last-child { margin-bottom: 0; }

/* Текущая заявка при изменении — полоска над шагами. */
.rf__now {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 12px;
  padding: 9px 12px;
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(28, 26, 26, 0.06), 0 4px 14px rgba(28, 26, 26, 0.05);
}
.rf__now .sdot { margin-top: 2px; }
.rf__now p { margin: 0; }
.rf__now b { font-weight: 600; }
.rf__now--wait b { color: var(--warn); }
.rf__now--on b { color: var(--ok); }

/* Шаг 1 — цель: строки-радио. */
.rf__goals { margin: 0; }
.rf__goal {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 11px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.rf__goal:first-child { padding-top: 2px; border-top: 0; }
.rf__goal:last-child { padding-bottom: 2px; }
.rf__goal:focus-visible, .rf__item:focus-visible, .rf__chan:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.rf__goal:active, .rf__item:active { opacity: 0.6; }
.rf__radio {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.rf__goal[aria-checked="true"] .rf__radio::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--ink); }
.rf__goal__body { flex: 1 1 auto; min-width: 0; }
.rf__goal__t { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; }
.rf__goal__t .tag { margin-left: 6px; vertical-align: 2px; }
.rf__goal__d { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; opacity: 0.7; text-wrap: pretty; }
.rf__goal__n {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--warn-bg);
  color: var(--warn);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}
.rf__goal[aria-disabled="true"] { cursor: default; }
.rf__goal[aria-disabled="true"]:active { opacity: 1; }
.rf__goal[aria-disabled="true"] .rf__radio { border-color: var(--line); }
.rf__goal[aria-disabled="true"] .rf__goal__t { opacity: 0.45; }
.rf__goal[aria-disabled="true"] .rf__goal__d { opacity: 0.45; }

/* Шаг 2 — вещи: только фото плиткой 2:3 в две колонки (как подборка `/p`), без названий и серий
   (владелец 22.10.26). Выбранная — рамка и диск с галочкой в углу, невыбранные приглушены. */
.rf__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.rf__tile {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--p-radius);
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.rf__tile__photo, .rf__tile__plate {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--p-radius);
  background: #e4e3e3;
  transition: opacity 0.2s, transform 0.25s var(--p-ease);
}
.rf__tile__plate { display: flex; align-items: center; justify-content: center; }
.rf__tile__plate svg { display: block; width: 36px; height: 36px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0.4; }
.rf__tile[aria-checked="false"] .rf__tile__photo, .rf__tile[aria-checked="false"] .rf__tile__plate { opacity: 0.55; }
.rf__tile[aria-checked="true"]::after { content: ""; position: absolute; inset: 0; border: 3px solid var(--ink); border-radius: var(--p-radius); pointer-events: none; }
.rf__tile:active .rf__tile__photo, .rf__tile:active .rf__tile__plate { transform: scale(0.98); }
.rf__tile:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.rf__tile__check {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 3px rgba(28, 26, 26, 0.25);
  color: #fff;
}
.rf__tile__check svg { display: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.rf__tile[aria-checked="true"] .rf__tile__check { background: var(--ink); }
.rf__tile[aria-checked="true"] .rf__tile__check svg { display: block; }
/* Метка подшива на фото — только если нужна цели (готов / в работе / задача не поставлена). */
.rf__tile__badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
}
.rf__tile__badge--warn { color: var(--warn); }
.rf__tile__badge--ok { color: var(--ok); }
/* Шире телефона (окно по центру) — три в ряд. */
@media (min-width: 480px) {
  .rf__tiles { grid-template-columns: repeat(3, 1fr); }
}
.rf__hint { margin: 10px 0 0; font-size: 12px; line-height: 1.4; opacity: 0.65; }
.rf__hint:empty { display: none; }
/* Подшив заказан, а задачи нет — честно, но не тревожно: цвет предупреждения, без плашки. */
.rf__hint--warn { color: var(--warn); font-weight: 600; opacity: 1; }

/* «Проверяем, когда вещи свободны…» */
.rf__wait {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 260px;
  text-align: center;
}
.rf__spin { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: rf-spin 0.8s linear infinite; }
@keyframes rf-spin { to { transform: rotate(360deg); } }
.rf__wait__t { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; }
.rf__wait__d { margin: 0; max-width: 300px; font-size: 13px; line-height: 1.4; opacity: 0.7; text-wrap: pretty; }

/* Шаг 3 — календарь `/z`: занятые дни закрыты как любые другие (без объяснений — владелец 22.10.26).
   Месяц — крупный заголовок со стрелками: одно место для названия и переключения. */
.rf__early { margin: 0 0 10px; padding: 8px 10px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); font-size: 13px; font-weight: 600; line-height: 1.4; }
.rf__month { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.rf__month__t { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 20px; font-weight: 600; line-height: 1.2; text-align: center; }
.rf__month__btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.rf__month__btn svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rf__month__btn:active { opacity: 0.6; }
.rf__month__btn:disabled { opacity: 0.3; cursor: default; }
.rf__month__btn:disabled:active { opacity: 0.3; }
.rf__month__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* Закрытые часы выходных: неактивны, без точки; пометка — `#rf-hours-note` под сеткой. */
.zhour--closed { border-color: transparent; background: rgba(28, 26, 26, 0.05); color: var(--p-mute); cursor: default; }
.zhour--closed:active { opacity: 1; }

/* Пустое состояние: свободного дня нет. */
.rf__empty .chips { margin: 12px 0 0; }

/* Финал. */
.rf__okmark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 2px 0 12px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
}
.rf__okmark svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rf__sum { margin: 0; }
.rf__sum div { display: flex; gap: 12px; padding: 4px 0; font-size: 14px; line-height: 1.4; }
.rf__sum dt { flex: 0 0 64px; opacity: 0.7; }
.rf__sum dd { flex: 1 1 auto; min-width: 0; margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.rf__chans { margin: 0; }
.rf__chan {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 8px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
a.rf__chan { text-decoration: none; }
.rf__chan:first-child { padding-top: 0; border-top: 0; }
.rf__chan:last-child { padding-bottom: 0; }
.rf__chan:active { opacity: 0.6; }
.rf__chan .mbtn__mark { width: 30px; height: 30px; }
.rf__chan .mbtn__mark svg { width: 16px; height: 16px; }
.rf__chan--telegram .mbtn__mark { background: #2aabee; }
.rf__chan--max .mbtn__mark { background: linear-gradient(135deg, #3d6cf2, #7a3ff0); }
.rf__chan--push .mbtn__mark { background: var(--ink); }
.rf__chan__body { flex: 1 1 auto; min-width: 0; }
.rf__chan__t { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; }
.rf__chan__d { display: block; margin-top: 2px; font-size: 12px; line-height: 1.3; opacity: 0.7; }
.rf__chan__act {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  padding: 0 11px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.rf__chan__act svg { display: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.rf__chan--on .rf__chan__act { padding: 0; border-color: var(--ok); background: var(--ok-bg); color: var(--ok); }
.rf__chan--on .rf__chan__act svg { display: block; }
.rf__chan--on .rf__chan__act span { display: none; }
.rf__chan--on .rf__chan__d { color: var(--ok); font-weight: 600; opacity: 1; }
.rf__chan--busy .rf__chan__act { border-color: var(--line); color: var(--p-mute); }
/* Уже 360: «Push в браузере» и пилюля «Подключить» в одну строку — пилюля плотнее. */
@media (max-width: 359px) {
  .rf__chan { gap: 10px; }
  .rf__chan__act { padding: 0 8px; font-size: 10px; }
  .rf__chan__t { font-size: 14px; }
}
/* Уже 300 (Galaxy Fold): три часа в ряд «10:00» шире колонки шторки — плотнее. */
@media (max-width: 299px) {
  .rf .zhours { gap: 6px; }
  .rf .zhour { gap: 4px; font-size: 14px; }
}
.rf__chan--on { cursor: default; }
.rf__chan--on:active { opacity: 1; }

/* Подсказка поверх шторки (недоступная цель, push). */
.rf__toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  z-index: 170;
  max-width: 420px;
  margin: 0 auto;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: var(--p-shadow);
}

/* Широкий экран: окно по центру. */
@media (min-width: 600px) {
  .rf {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: 480px;
    max-height: min(780px, calc(100vh - 56px));
    transform: translate(-50%, -50%);
    border-radius: 18px;
  }
  .rf__toast { bottom: 32px; }
}
@media (max-width: 599px) {
  .rf { animation: rf-up 0.28s var(--p-ease); }
  @keyframes rf-up { from { transform: translateY(40px); opacity: 0.5; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  .rf { animation: none; }
  .rf__spin { animation-duration: 1.6s; }
}

/* Посадочная «Повторная примерка» `/d/<хэш>/refit` (`refit_landing.html`): коротко о брони и
   карточка записи в языке брони (`.card`, `.btn`, `.rf-*`); шторка — та же `.rf`.
   Спека docs/specs/2026-10-22-refit-landing-design.md. */
.rl-dates { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; text-wrap: pretty; }
.rl-items { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
/* Заголовок состояния — крупно, как заголовок шага шторки; ответ на вопрос «что дальше» — сразу. */
.rl-h { margin: 0 0 4px; font-size: 20px; font-weight: 600; line-height: 1.2; text-wrap: balance; }
/* «Что хотите сделать?» — над действиями, линией отделён от записи; действия стопкой: «Изменить»
   контуром, «Оставить как есть» заливная (безопасная, как «Оставить» в шторке), отмена — тихой строкой. */
.rl-ask { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; line-height: 1.35; }
.rl-ask + .rf-card__btn { margin-top: 10px; }
.rl-keep { margin-top: 8px; }
.rl-chips { margin: 10px 0 0; }

/* Доставка `/d/<хэш>/delivery`: две карточки направлений в языке брони — метка состояния у
   заголовка (слово, не только цвет: подложки статусов входа), день и окно, адрес, кнопки.
   Форма — внутри карточки: адрес с подсказками, четыре коротких поля в ряд, плитки «с» в языке
   самозаписи (`.zhour`), «до» — `select` в языке `/addresses` (`.pick__select`). Телефон и
   пожелание — раскрывашкой `.mail`. Спека docs/specs/2026-10-13-delivery-order-design.md. */
/* Метка — строкой под заголовком: рядом с «ДОСТАВКА К НАЧАЛУ ПРОКАТА» она не входит ни на одном
   телефоне, а место ниже заголовка одно на всех ширинах. */
.dlv__head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0 0 8px; }
.dlv__head .card__label { margin: 0; }
.dlv__tag { padding: 4px 9px; font-size: 11px; line-height: 1.2; white-space: nowrap; }
.tag--need { background: var(--warn-bg); color: var(--warn); }
.tag--go { background: var(--ok-bg); color: var(--ok); }
.tag--done { background: var(--ink); color: #fff; }
.tag--off { background: var(--red-bg); color: var(--red); }
/* Окно — второй строкой под днём: «Суббота, 18 октября · с 10:00 до 14:00» в одну строку не входит и на 390. */
.dlv__when { margin: 2px 0 0; font-size: 15px; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; }
.dlv__when--soft { font-weight: 500; opacity: 0.7; }
.dlv__body > :first-child { margin-top: 8px; }
.dlv__addr { margin-top: 8px; }
.dlv__meta { opacity: 0.8; }
.dlv__num { white-space: nowrap; }
.dlv__map { display: inline-block; margin-top: 8px; color: inherit; font-size: 14px; font-weight: 600; text-underline-offset: 3px; }
.dlv__map:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.dlv__text { margin-top: 8px; }
.dlv__late { margin-top: 8px; font-weight: 600; }
.dlv__cost { margin-top: 8px; opacity: 0.7; }
.dlv .chips { margin: 12px 0 0; }
.dlv__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.dlv__actions .btn { flex: 1 1 auto; text-align: center; }
.dlv__actions .btn--out { flex-grow: 0; }
/* «Изменить» и «Отменить доставку» вместе в строку не входят — стопкой во всю ширину. */
.dlv__links .btn--out { flex-grow: 1; }
/* Строка результата над карточкой (`?done=`): зелёная подложка — заказано, нейтральная — отменено. */
.dlv__note { margin: 0 0 8px; padding: 10px 14px; border-radius: 12px; background: var(--ok-bg); color: var(--ok); font-size: 14px; font-weight: 600; line-height: 1.4; }
.dlv__note--off { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(28, 26, 26, 0.06), 0 4px 14px rgba(28, 26, 26, 0.05); }
/* Подтверждение отмены — вопрос и две кнопки вместо строки действий. */
.dlv__confirm { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.dlv__ask { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; }
.dlv__ask:focus { outline: 0; }
.dlv__confirm .dlv__actions { margin-top: 10px; }
/* «Да, отменить» и «Оставить» — две половины; на узком экране при переносе каждая во всю ширину. */
.dlv__confirm .btn--out { flex-grow: 1; }
/* Форма. */
.dlv__form { margin: 0; }
.dlv__field { display: block; margin-top: 10px; }
.dlv__cap { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; line-height: 1.2; }
.dlv__field .mail__input { display: block; width: 100%; }
.dlv__day { margin: 0 0 8px; text-wrap: pretty; }
.dlv .chips + .dlv__cost { margin-top: 12px; }
/* Кв. · Подъезд · Этаж · Домофон — четыре коротких поля в ряд; уже 320 — 2×2. */
.dlv__parts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 6px; margin-top: 10px; }
.dlv__part { display: block; min-width: 0; }
.dlv__part .dlv__cap { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlv__short { display: block; width: 100%; padding-left: 8px; padding-right: 8px; text-align: center; }
@media (max-width: 319px) {
  .dlv__parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Плитки «с» — radio в виде `.zhour`: подпись-плитка, сам переключатель скрыт; выбранная —
   чёрная; недоступная по сроку — пунктир и приглушена (не только цвет). */
.zslots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.zslot { position: relative; display: block; min-width: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.zslot__in { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.zslot__text {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px; /* цель касания, как у `.zhour` */
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.zslot__in:checked + .zslot__text { border-color: var(--ink); background: var(--ink); color: #fff; }
.zslot__in:focus-visible + .zslot__text { outline: 2px solid var(--ink); outline-offset: 2px; }
.zslot__in:disabled + .zslot__text { border-style: dashed; opacity: 0.4; cursor: default; }
.zslot:active .zslot__text { opacity: 0.6; }
.zslot:has(.zslot__in:disabled) { cursor: default; }
.zslot:has(.zslot__in:disabled):active .zslot__text { opacity: 0.4; }
/* «До» — во всю ширину под плитками, без поля снизу; подсказка правил — под ним. */
/* Плитки окна доставки «с 10:00 / до 14:00» — двумя строками: чуть выше часовых, текст мельче. */
.zslots--win .zslot__text { flex-direction: column; gap: 3px; min-height: 52px; padding: 6px 2px; font-size: 13px; line-height: 1.15; }
.zslot__from, .zslot__to { white-space: nowrap; }
.zslot__to { font-weight: 500; opacity: 0.75; }
@media (max-width: 300px) { .zslots--win .zslot__text { font-size: 12px; padding: 6px 0; } }
.zslot__in:checked + .zslot__text .zslot__to { opacity: 0.85; }
.zslots--win[aria-invalid="true"] .zslot__text { border-color: var(--red); }
.dlv__form .mail__hint { margin-top: 8px; }
.dlv__more { margin-top: 12px; }
.dlv__more .dlv__field:first-of-type { margin-top: 4px; }
.dlv__form .dlv__cost { margin-top: 12px; }
.dlv__form .ftext__input { min-height: 64px; }
/* Ошибка у поля (422-страница): красная строка под ним, поле — красной рамкой. */
.dlv__err { margin: 6px 0 0; color: var(--red); font-size: 13px; font-weight: 600; line-height: 1.4; }
.dlv__form .mail__input[aria-invalid="true"] { border-color: var(--red); }
/* Подсказки адреса — список под полем, поверх следующих полей; не шире поля; до 5 строк, дальше прокрутка. */
.sugg-box { position: relative; }
.sugg {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 7;
  max-height: 256px;
  margin: 4px 0 0;
  padding: 4px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(28, 26, 26, 0.16), 0 2px 6px rgba(28, 26, 26, 0.08);
}
.sugg__item {
  display: block;
  width: 100%;
  min-height: 44px; /* цель касания */
  padding: 7px 14px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sugg__item[aria-selected="true"], .sugg__item:active { background: var(--bg); }
@media (hover: hover) {
  .sugg__item:hover { background: var(--bg); }
}
.sugg__title { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.sugg__sub { display: block; margin-top: 1px; font-size: 12px; line-height: 1.3; opacity: 0.65; overflow-wrap: anywhere; }

/* Карточка «Курьер» брони — docs/specs/2026-10-22-courier-block-design.md */
.courier__item + .courier__item { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line, #e6e6e6); }
.courier__map { display: block; width: 100%; height: 280px; margin-top: 12px; border: 0; border-radius: 12px; }
