/* ===========================================================================
   Блок «Объекты и тарифы» на витрине /widget/* (главная и отладочная /concept/objects/) — классы whn-sc-*.
   Цвета — только брендовые: золото (--whn-primary) и чёрный (--whn-fg) на тёплой
   бумаге (--whn-secondary); тёмная тема берётся из тех же токенов шаблона.
   Шрифт — Golos Text по брендбуку (переменная --sc-font — одна строка, чтобы
   сравнить с Nunito Sans остального лендинга).
   Тарифы — компактный список в колонке рядом с картой, как .whn-obj-tar на главной
   (та же сетка «иконка | название, описание, наличие | цена»), плюс третья строка с
   пиксельной полоской свободных ячеек. Сигнатура — П-рамка логотипа вокруг заголовка.
   =========================================================================== */

.whn-sc {
  --sc-font: "Golos Text", "Nunito Sans", Arial, sans-serif;
  --sc-gold: var(--whn-primary);
  --sc-ink: var(--whn-fg);
  --sc-muted: var(--whn-muted);
  --sc-card: var(--whn-card);
  --sc-line: var(--whn-border);
  --sc-bg: var(--whn-secondary);
  --sc-gold-08: color-mix(in srgb, var(--sc-gold) 8%, transparent);
  --sc-gold-14: color-mix(in srgb, var(--sc-gold) 14%, transparent);
  --sc-gold-40: color-mix(in srgb, var(--sc-gold) 40%, transparent);
  --sc-badge-bg: #231f20;         /* брендовый чёрный под золотым текстом */
  --sc-badge-fg: #b79357;
  --sc-on-gold: #fff;             /* текст на золотой плашке; в тёмной теме золото светлое — текст тёмный */
  --sc-radius: 18px;
  --sc-ease: cubic-bezier(.22, .61, .36, 1);

  position: relative;
  padding: 56px 0 72px;
  background: var(--sc-bg);
  color: var(--sc-ink);
  font-family: var(--sc-font);
  overflow: hidden;
  scroll-margin-top: 90px;
}
html.dark .whn-sc { --sc-badge-bg: var(--whn-primary); --sc-badge-fg: #171a1f; --sc-on-gold: #171a1f; }

/* Пиксельная сетка ячеек — текстура секции, затухает книзу */
.whn-sc::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(color-mix(in srgb, var(--sc-gold) 12%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--sc-gold) 12%, transparent) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, transparent 420px);
  mask-image: linear-gradient(to bottom, #000 0, transparent 420px);
}
.whn-sc__wrap {
  position: relative;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 640px)  { .whn-sc__wrap { padding: 0 24px; } }
@media (min-width: 1024px) { .whn-sc__wrap { padding: 0 32px; } }

/* --- Шапка секции и П-рамка --------------------------------------------- */
.whn-sc__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
  margin-bottom: 28px;
}
.whn-sc__p {
  position: relative;
  padding: 20px 24px 0;
}
.whn-sc__p::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 22px;
  border: 3px solid var(--sc-gold);
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
}
.whn-sc__eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sc-gold);
}
.whn-sc__title {
  margin: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--sc-ink);
}
.whn-sc__lead {
  margin: 0;
  max-width: 46ch;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--sc-muted);
}

/* --- Чипы городов --------------------------------------------------------- */
.whn-sc__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.whn-sc-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px 9px 12px;
  background: var(--sc-card);
  border: 1px solid var(--sc-line);
  border-radius: 999px;
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1;
  color: var(--sc-ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .22s var(--sc-ease), box-shadow .22s ease, border-color .22s ease, background-color .22s ease;
}
.whn-sc-chip:hover { transform: translateY(-2px); border-color: var(--sc-gold-40); box-shadow: 0 8px 18px -14px rgba(0,0,0,.3); }
.whn-sc-chip:focus-visible { outline: 0; border-color: var(--sc-gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sc-gold) 28%, transparent); }
.whn-sc-chip.is-active { border-color: var(--sc-gold); background: color-mix(in srgb, var(--sc-gold) 7%, var(--sc-card)); box-shadow: 0 0 0 1px var(--sc-gold); }
.whn-sc-chip__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: color-mix(in srgb, var(--sc-muted) 55%, transparent);
  transition: background-color .22s ease, box-shadow .22s ease;
}
.whn-sc-chip.is-active .whn-sc-chip__dot { background: var(--sc-gold); box-shadow: 0 0 0 4px var(--sc-gold-14); }
.whn-sc-chip__name { white-space: nowrap; }
.whn-sc-chip__count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 7px;
  font-size: .7rem; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--sc-muted);
  background: color-mix(in srgb, var(--sc-muted) 12%, transparent);
  border-radius: 999px;
  transition: background-color .22s ease, color .22s ease;
}
.whn-sc-chip.is-active .whn-sc-chip__count { color: var(--sc-on-gold); background: var(--sc-gold); }

/* Города «Скоро откроемся» — в шапке на месте подзаголовка. Тот же фильтр, но вторым планом: пунктир и полая
   точка, как у «Скоро открытие» на вкладке объекта; выбранный — как обычный чип */
.whn-sc-soon { display: flex; flex-direction: column; gap: 9px; max-width: 28rem; }
.whn-sc-soon__label { margin: 0; font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--sc-muted); }
.whn-sc-soon__list { display: flex; flex-wrap: wrap; gap: 6px; }
.whn-sc-chip--soon { gap: 8px; padding: 7px 12px 7px 11px; font-size: .82rem; border-style: dashed; }
.whn-sc-chip--soon.is-active { border-style: solid; }
.whn-sc-chip--soon .whn-sc-chip__dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--sc-muted); }
.whn-sc-chip--soon.is-active .whn-sc-chip__dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--sc-gold), 0 0 0 4px var(--sc-gold-14); }

/* --- Карточки объектов (вкладки) ------------------------------------------ */
.whn-sc__tabs-label {
  margin: 0 0 10px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--sc-muted);
}
.whn-sc__tabs-label b { font-weight: 800; color: var(--sc-ink); }
.whn-sc__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.whn-sc-tab {
  position: relative;
  flex: 1 1 250px;
  max-width: 380px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  row-gap: 3px;
  align-items: center;
  text-align: left;
  padding: 12px 16px;
  background: var(--sc-card);
  border: 1px solid var(--sc-line);
  border-radius: 14px;
  font: inherit;
  color: var(--sc-ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .26s var(--sc-ease), box-shadow .26s ease, border-color .22s ease, background-color .22s ease, opacity .28s ease;
}
.whn-sc-tab[hidden] { display: none; }
.whn-sc-tab.is-filtered-out { opacity: 0; transform: scale(.96) translateY(-4px); pointer-events: none; }
.whn-sc-tab:hover { transform: translateY(-3px); border-color: var(--sc-gold-40); box-shadow: 0 14px 30px -18px rgba(0,0,0,.34); }
.whn-sc-tab:focus-visible { outline: 0; border-color: var(--sc-gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sc-gold) 28%, transparent); }
.whn-sc-tab.is-active {
  border-color: var(--sc-gold);
  background: color-mix(in srgb, var(--sc-gold) 6%, var(--sc-card));
  box-shadow: 0 0 0 1px var(--sc-gold), 0 16px 32px -20px color-mix(in srgb, var(--sc-gold) 55%, rgba(0,0,0,.4));
}
.whn-sc-tab.is-active::after {
  content: "";
  position: absolute; left: 50%; bottom: -8px;
  border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 8px solid var(--sc-gold);
  transform: translateX(-50%);
}
.whn-sc-tab__ico {
  grid-row: 1 / span 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 11px;
  color: var(--sc-gold); background: var(--sc-gold-14);
  transition: background-color .22s ease, color .22s ease;
}
.whn-sc-tab__ico svg { width: 19px; height: 19px; }
.whn-sc-tab.is-active .whn-sc-tab__ico { background: var(--sc-gold); color: var(--sc-on-gold); }
.whn-sc-tab__addr { align-self: end; font-size: .98rem; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.whn-sc-tab__facts { align-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; color: var(--sc-muted); }

/* Точка состояния: золотая с пульсом — работает, контурная — скоро */
.whn-sc-dot { position: relative; display: inline-block; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; }
.whn-sc-dot--on { background: var(--sc-gold); }
.whn-sc-dot--on::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  background: var(--sc-gold); opacity: .5;
  animation: whn-sc-pulse 2.2s ease-out infinite;
}
.whn-sc-dot--soon { border: 1.5px solid var(--sc-muted); }
@keyframes whn-sc-pulse { from { transform: scale(1); opacity: .5; } to { transform: scale(3); opacity: 0; } }

/* --- Панель объекта --------------------------------------------------------- */
.whn-sc-panel {
  background: var(--sc-card);
  border: 1px solid var(--sc-line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 26px 60px -34px rgba(0,0,0,.4);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .45s ease, transform .5s var(--sc-ease);
}
.whn-sc-panel.is-active { opacity: 1; transform: none; }
.whn-sc-panel[hidden] { display: none; }
.whn-sc-panel__top {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: stretch;
}
.whn-sc-map { position: relative; min-height: clamp(320px, 40vw, 460px); overflow: hidden; }
.whn-sc-map .wh-map { width: 100%; height: 100%; }

.whn-sc-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border-left: 1px solid var(--sc-line);
}
.whn-sc-info__addr { display: flex; align-items: flex-start; gap: 12px; }
.whn-sc-info__ico {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 12px;
  color: var(--sc-gold); background: var(--sc-gold-14);
}
.whn-sc-info__ico svg { width: 21px; height: 21px; }
.whn-sc-info__addr p { margin: 0; font-size: 1.4rem; font-weight: 800; line-height: 1.2; letter-spacing: -.015em; }
.whn-sc-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.whn-sc-facts li { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--sc-muted); }
.whn-sc-facts li b { font-weight: 800; color: var(--sc-ink); font-variant-numeric: tabular-nums; }
.whn-sc-facts svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--sc-gold); }
.whn-sc-info__soon { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--sc-muted); }

/* --- Тарифы: компактный список (как .whn-obj-tar на главной) ----------------- */
.whn-sc-prices { display: flex; flex-direction: column; gap: 9px; }
.whn-sc-tariffs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.whn-sc-tar {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto auto;
  align-items: center;
  column-gap: 11px;
  row-gap: 2px;
  padding: 9px 13px;
  border: 1px solid var(--sc-line);
  border-radius: 11px;
  background: var(--sc-card);
  transition: border-color .22s ease, background-color .22s ease, box-shadow .22s ease, transform .22s var(--sc-ease), opacity .22s ease;
}
.whn-sc-tar:hover,
.whn-sc-tar:focus-within { z-index: 5; }               /* подсказка с картинкой поверх соседних строк */
.whn-sc-tar:hover { border-color: var(--sc-gold-40); transform: translateY(-1px); }
.whn-sc-tar.is-default { border-color: color-mix(in srgb, var(--sc-gold) 55%, transparent); background: color-mix(in srgb, var(--sc-gold) 7%, var(--sc-card)); }
.whn-sc-tar.is-none { opacity: .6; border-style: dashed; }
.whn-sc-tar.is-none:hover { opacity: .9; }
.whn-sc-tar.is-unknown { border-style: dashed; }
.whn-sc-tar__ico {
  grid-column: 1; grid-row: 1 / span 3; align-self: center;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  color: var(--sc-gold); background: var(--sc-gold-14);
  transition: background-color .22s ease, color .22s ease;
}
.whn-sc-tar__ico svg { width: 16px; height: 16px; }
.whn-sc-tar.is-default .whn-sc-tar__ico { background: var(--sc-gold); color: var(--sc-on-gold); }
/* Строка названия: название с «i» и объём «от … до … м³»; не поместился — объём переносится под название.
   Объём — сосед __name, а не его часть: подсказка с картинкой встаёт справа от __name (left: 100% + 10px)
   и внутри уехала бы за объём */
.whn-sc-tar__head {
  grid-column: 2; grid-row: 1; align-self: end;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px;
  min-width: 0;
}
.whn-sc-tar__name {
  position: relative;
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 7px;
  min-width: 0;
  font-size: .9rem; font-weight: 700; line-height: 1.2; color: var(--sc-ink);
}
.whn-sc-tar__vol { font-size: .72rem; font-weight: 600; line-height: 1.2; color: var(--sc-muted); font-variant-numeric: tabular-nums; }
.whn-sc-tar__desc { grid-column: 2; grid-row: 2; font-size: .72rem; line-height: 1.35; color: var(--sc-muted); }
.whn-sc-tar__avail {
  grid-column: 2; grid-row: 3; align-self: start;
  display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px;
  margin-top: 2px;
  font-size: .72rem; font-weight: 600; line-height: 1.35; color: var(--sc-ink);
}
.whn-sc-tar__head + .whn-sc-tar__avail { grid-row: 2; }  /* без описания (витрина его не прислала) — сразу под названием */
.whn-sc-tar__avail b { font-weight: 800; font-variant-numeric: tabular-nums; }
.whn-sc-tar__avail--none { color: var(--sc-muted); font-weight: 700; }
.whn-sc-tar__avail--soon { color: var(--sc-muted); }
.whn-sc-tar__avail--ask { font-weight: 700; }
.whn-sc-tar__ask {
  padding: 0; border: 0; background: none; font: inherit;
  font-size: .72rem; font-weight: 700; color: var(--sc-gold); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.whn-sc-tar__ask:hover { text-decoration: none; }
/* Пиксельная полоска: доля свободных ячеек класса */
.whn-sc-strip { display: inline-flex; gap: 2px; }
.whn-sc-strip i { display: block; width: 6px; height: 6px; border-radius: 1.5px; background: var(--sc-line); }
.whn-sc-strip i.is-on { background: var(--sc-gold); }
.whn-sc-strip--soon i.is-on { background: transparent; box-shadow: inset 0 0 0 1px var(--sc-gold); }  /* объект не открыт: ячейки есть, арендовать пока нельзя */

.whn-sc-tar__price {
  grid-column: 3; grid-row: 1 / span 3; align-self: center; justify-self: end;
  display: flex; flex-direction: column; align-items: flex-end; gap: 3px;
  min-width: 73px; text-align: right; white-space: nowrap;
}
.whn-sc-tar__from { font-size: .76rem; font-weight: 600; line-height: 1.1; color: var(--sc-muted); }
.whn-sc-tar__from b { font-size: 1.18rem; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--sc-ink); transition: color .22s ease; }
.whn-sc-tar.is-default .whn-sc-tar__from b { color: var(--sc-gold); }
.whn-sc-tar__from sup { font-size: .7em; line-height: 0; color: var(--sc-gold); }
/* «до …» (price_max) — второй строкой под «от …», мельче: в одну строку колонка цены теснила бы название */
.whn-sc-tar__to { margin-top: -2px; font-size: .68rem; font-weight: 600; line-height: 1.1; color: var(--sc-muted); font-variant-numeric: tabular-nums; }
.whn-sc-tar__to b { font-weight: 700; color: var(--sc-ink); }
.whn-sc-tar__base { font-size: .64rem; font-weight: 600; color: var(--sc-muted); font-variant-numeric: tabular-nums; }
.whn-sc-tar__noprice { max-width: 7em; font-size: .66rem; font-weight: 600; line-height: 1.25; white-space: normal; color: var(--sc-muted); }
/* Неоткрытый объект — как тариф без цены на главной: пиксельная «крутилка» .whn-px-spin (custom_styles.css) и золотое
   «скоро», над списком — «Цены скоро появятся»; её правый край — по колонке цены (поле строки 13px + рамка) */
.whn-sc-tar__soon { display: inline-flex; align-items: center; gap: 7px; font-size: .76rem; font-weight: 700; line-height: 1.1; color: var(--sc-gold); }
.whn-sc-prices__soon {
  margin: 0 0 1px; padding-right: 14px; text-align: right;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sc-gold);
}
.whn-sc-badge {
  display: inline-flex; align-items: center;
  padding: 3px 6px; border-radius: 5px;
  font-size: .56rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; line-height: 1.1; white-space: nowrap;
  color: var(--sc-badge-fg); background: var(--sc-badge-bg);
}
/* Строка с акцией: сверху полоса под ярлык — слева в углу красная лента «Акция», справа к рамке подвешен ярлык
   с названием. Ярлык внутри строки, а не над ней: с top: -10px при зазоре 7px он закрывал рамку соседней строки */
.whn-sc-tar.is-promo { padding-top: 22px; }
.whn-sc-tar__promo {
  position: absolute; top: -1px; right: -1px;
  display: inline-flex; align-items: center; gap: 4px;
  max-width: calc(100% - 58px);   /* левее — лента «Акция» */
  padding: 3px 9px 3px 7px; border-radius: 0 11px 0 8px;
  font-size: .6rem; font-weight: 900; line-height: 1; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap;
  color: var(--sc-on-gold); background: var(--sc-gold);
  overflow: hidden;
}
.whn-sc-tar__promo svg { width: 13px; height: 13px; flex-shrink: 0; }
.whn-sc-tar__promo span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }  /* узкий экран — с многоточием; полное название — в сноске */
/* Лента «Акция» — копия углового бейджа тарифов на главной (там inline-стили в index.php; whn-flag-beat — из
   custom_styles.css). Красный вне брендовой пары — как на главной */
.whn-sc-flag {
  position: absolute; top: -6px; left: -3px; z-index: 3;
  display: block; width: 3.625rem; height: 3.625rem;
  pointer-events: none;
  background: #fa2c37;
  -webkit-clip-path: path('M51.8187 26.4853L28.8481 3.51472C26.5977 1.26428 23.5454 0 20.3628 0H2.1618C0.379992 0 -0.51234 2.15429 0.74759 3.41422L51.9192 54.5858C53.1791 55.8457 55.3334 54.9534 55.3334 53.1716V34.9706C55.3334 31.788 54.0691 28.7357 51.8187 26.4853Z');
  clip-path: path('M51.8187 26.4853L28.8481 3.51472C26.5977 1.26428 23.5454 0 20.3628 0H2.1618C0.379992 0 -0.51234 2.15429 0.74759 3.41422L51.9192 54.5858C53.1791 55.8457 55.3334 54.9534 55.3334 53.1716V34.9706C55.3334 31.788 54.0691 28.7357 51.8187 26.4853Z');
  transform: rotate(-90deg);
  animation: whn-flag-beat 4s ease-in-out infinite;
}
.whn-sc-flag__txt {
  display: block; width: 60px;
  transform: rotate(45deg) translate(15px, 10px);
  font-size: 11px; font-weight: 900; line-height: 1; letter-spacing: 1px; text-align: center;
  color: #fff;
}
.whn-sc-tar__promo::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg);
  animation: whn-sc-sheen 3.4s ease-in-out infinite;
}
@keyframes whn-sc-sheen { 0%, 60% { left: -60%; } 100% { left: 130%; } }

/* Выбор класса для заявки — пока окно выбора ячейки выключено ($scCellPicker в block.php). Строка со свободными
   ячейками выбирается целиком: радиокнопка — в label, у которого ::before растянут на строку; видна только отметка
   в четвёртой колонке. Над растянутой целью — лишь кнопки строки, как у .is-pickable (см. ниже, почему не текст) */
.whn-sc-tar.is-selectable { grid-template-columns: auto 1fr auto auto; cursor: pointer; }
.whn-sc-tar.is-selectable .whn-obj-tar__info,
.whn-sc-tar.is-selectable .whn-sc-tar__ask { position: relative; z-index: 2; }
.whn-sc-tar__sel { grid-column: 4; grid-row: 1 / span 3; align-self: center; display: inline-flex; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.whn-sc-tar__sel::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 11px; }
.whn-sc-tar__radio { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }  /* не display: none — фокус и стрелки остаются у неё */
.whn-sc-tar__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border: 2px solid var(--sc-gold-40); border-radius: 50%;
  background: var(--sc-card); color: transparent;
  transition: background-color .22s ease, border-color .22s ease, color .22s ease;
}
.whn-sc-tar__mark svg { width: 12px; height: 12px; }
.whn-sc-tar.is-selectable:hover .whn-sc-tar__mark { border-color: var(--sc-gold); }
.whn-sc-tar__radio:checked + .whn-sc-tar__mark { border-color: var(--sc-gold); background: var(--sc-gold); color: var(--sc-on-gold); }
/* Выбранная строка — как выбранный тариф на главной (.whn-obj-tar.is-selected); сильнее .is-default и :hover */
.whn-sc-tar:has(.whn-sc-tar__radio:checked) {
  border-color: var(--sc-gold);
  background: color-mix(in srgb, var(--sc-gold) 10%, var(--sc-card));
  box-shadow: 0 0 0 1px var(--sc-gold), 0 10px 22px -16px color-mix(in srgb, var(--sc-gold) 60%, rgba(0,0,0,.4));
}
.whn-sc-tar:has(.whn-sc-tar__radio:checked) .whn-sc-tar__ico { background: var(--sc-gold); color: var(--sc-on-gold); }
.whn-sc-tar:has(.whn-sc-tar__radio:checked) .whn-sc-tar__from b { color: var(--sc-gold); }
.whn-sc-tar:has(.whn-sc-tar__radio:focus-visible) { outline: 2px solid color-mix(in srgb, var(--sc-gold) 55%, transparent); outline-offset: 2px; }

/* Сноски под списком: акции с условиями */
.whn-sc-notes { display: flex; flex-direction: column; gap: 5px; margin-top: 2px; }
.whn-sc-note { margin: 0; display: flex; gap: 6px; align-items: flex-start; font-size: .72rem; line-height: 1.45; color: var(--sc-muted); }
.whn-sc-note__star { color: var(--sc-gold); font-weight: 800; font-style: normal; }
.whn-sc-note--soon { font-weight: 600; }
.whn-sc-note svg { width: 13px; height: 13px; flex-shrink: 0; margin-top: 2px; color: var(--sc-gold); }
.whn-sc-note b { font-weight: 700; color: var(--sc-ink); }
.whn-sc-note a { color: var(--sc-gold); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.whn-sc-note a:hover { text-decoration: none; }

/* Как считается цена — под списком, до действия: слоган, формула, фраза про «от» */
.whn-sc-explain {
  margin: 2px 0 0; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 7px;
  border-left: 3px solid var(--sc-gold); border-radius: 0 10px 10px 0;
  background: var(--sc-gold-08);
}
.whn-sc-explain__title { margin: 0; font-size: .86rem; font-weight: 800; letter-spacing: -.01em; color: var(--sc-ink); }
.whn-sc-explain__formula { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: .72rem; font-weight: 700; line-height: 1.2; color: var(--sc-ink); }
.whn-sc-explain__formula span { padding: 4px 8px; border-radius: 6px; background: var(--sc-card); border: 1px solid var(--sc-line); white-space: nowrap; }
.whn-sc-explain__formula i { font-style: normal; font-size: .95rem; font-weight: 800; color: var(--sc-gold); }
.whn-sc-explain__text { margin: 0; font-size: .74rem; line-height: 1.45; color: var(--sc-muted); }

/* Действия */
.whn-sc-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 4px; }
.whn-sc-cta .whn-sc-btn { flex: 1 1 auto; }
.whn-sc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; border: 2px solid transparent;
  font: inherit; font-size: .95rem; font-weight: 700; line-height: 1;
  cursor: pointer; text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.whn-sc-btn svg { width: 16px; height: 16px; }
.whn-sc-btn--primary { color: var(--sc-on-gold); background: var(--sc-gold); border-color: var(--sc-gold); box-shadow: 0 12px 24px -14px color-mix(in srgb, var(--sc-gold) 80%, #000); }
.whn-sc-btn--primary:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--sc-gold) 88%, #000); border-color: color-mix(in srgb, var(--sc-gold) 88%, #000); }
.whn-sc-btn--ghost { color: var(--sc-ink); background: var(--sc-card); border-color: var(--sc-gold); }
.whn-sc-btn--ghost:hover { color: var(--sc-on-gold); background: var(--sc-gold); }
.whn-sc-btn:focus-visible { outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--sc-gold) 35%, transparent); }

/* Форма заявки на бронь класса — модалка как в footer.php, плюс сводка выбора над ней */
.whn-sc-book :is(input, textarea, button) { font-family: inherit; }   /* custom_styles.css ставит полям Nunito Sans */
.whn-sc-book__facts {
  display: flex; flex-direction: column; gap: 6px;
  margin: 10px 0 14px; padding: 12px 14px;
  border: 1px solid var(--sc-line); border-radius: 12px;
}
.whn-sc-book__facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .88rem; line-height: 1.35; }
.whn-sc-book__facts dt { flex-shrink: 0; color: var(--sc-muted); }
.whn-sc-book__facts dd { margin: 0; font-weight: 700; text-align: right; color: var(--sc-ink); }
.whn-sc-book__facts dd.is-empty { font-weight: 600; color: var(--sc-muted); }

/* Запасное состояние: API не ответило или объектов нет */
.whn-sc-fail {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 28px; border: 1px dashed var(--sc-gold-40); border-radius: var(--sc-radius);
  background: var(--sc-card);
}
.whn-sc-fail__ico { display: inline-flex; flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; align-items: center; justify-content: center; color: var(--sc-gold); background: var(--sc-gold-14); }
.whn-sc-fail__ico svg { width: 26px; height: 26px; }
.whn-sc-fail__title { margin: 0; font-size: 1.15rem; font-weight: 800; }
.whn-sc-fail__text { margin: 6px 0 0; max-width: 60ch; font-size: .95rem; line-height: 1.55; color: var(--sc-muted); }
.whn-sc-fail__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* Служебное администратору: плашка над блоком и сырой ответ. Плашка — не .whn-sc-note: до 2026-10-14 делила
   с ним класс, и сноски под тарифами (акции, «Стоимость… после запуска») рисовались её чёрной полосой */
.whn-sc-admin { background: #231f20; color: #fff; font-size: .8rem; }
.whn-sc-admin__wrap { max-width: 80rem; margin: 0 auto; padding: 8px 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; }
.whn-sc-admin a { color: #b79357; text-decoration: underline; text-underline-offset: 2px; }
.whn-sc-admin code { font-size: .78rem; color: #d4b896; }
.whn-sc-debug { max-width: 80rem; margin: 0 auto; padding: 20px 16px 40px; font-size: .85rem; }
.whn-sc-debug summary { cursor: pointer; font-weight: 700; }
.whn-sc-debug__hint { margin: 10px 0; color: var(--whn-muted); }
.whn-sc-debug pre { max-height: 70vh; overflow: auto; padding: 14px; border-radius: 12px; border: 1px solid var(--whn-border); background: var(--whn-card); font-size: .75rem; line-height: 1.45; }

/* --- Адаптив ------------------------------------------------------------------ */
@media (max-width: 900px) {
  .whn-sc-panel__top { grid-template-columns: 1fr; }
  .whn-sc-map { min-height: 0; height: clamp(240px, 56vw, 380px); }
  .whn-sc-info { border-left: 0; border-top: 1px solid var(--sc-line); padding: 22px 20px; }
  /* Подсказка с картинкой разворачивается под иконкой и привязывается к строке
     (правила .whn-obj-tip для узких экранов — в custom_styles.css) */
  .whn-sc-tar__name { position: static; }
}
@media (max-width: 640px) {
  .whn-sc { padding: 40px 0 56px; }
  .whn-sc__head { margin-bottom: 20px; }
  .whn-sc-tab { flex-basis: 100%; max-width: none; }
  .whn-sc-cta .whn-sc-btn { flex: 1 1 100%; }
  .whn-sc-fail { flex-direction: column; }
}
@media (max-width: 560px) {
  .whn-sc-tar { column-gap: 9px; }
  .whn-sc-tar__price { min-width: 64px; }
}

/* --- Меньше движения ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .whn-sc-chip, .whn-sc-tab, .whn-sc-tar, .whn-sc-tar__mark, .whn-sc-btn, .whn-sc-panel { transition: none; }
  .whn-sc-chip:hover, .whn-sc-tab:hover, .whn-sc-tar:hover, .whn-sc-btn--primary:hover { transform: none; }
  .whn-sc-panel { opacity: 1; transform: none; }
  .whn-sc-dot--on::after { animation: none; display: none; }
  .whn-sc-tar__promo::after, .whn-sc-flag { animation: none; }
}

/* ===========================================================================
   Окно выбора ячейки и заявка на бронь.
   Строка тарифа со свободными кладовыми кликабельна целиком (.is-pickable: растянутая
   кнопка-шеврон). Окно — штатная .whn-modal футера с модификатором --sc: шапка с шагами,
   сцена с дверцами (шаг 1) либо форма (шаг 2), справа — сводка выбора под П-рамкой.
   Сигнатура — дверцы кладовых с номерными табличками, как на фото объекта: выбранная
   открывается (поворот вокруг левого края), за ней — тёмный интерьер с галочкой.
   =========================================================================== */

/* --- Строка тарифа: кликабельна целиком ------------------------------------------ */
.whn-sc-prices__hint { margin: 0 0 1px; font-size: .74rem; line-height: 1.4; color: var(--sc-muted); }
.whn-sc-tar.is-pickable { grid-template-columns: auto 1fr auto auto; cursor: pointer; }
/* Над растянутой кнопкой — только кнопки самой строки: иконка подсказки и «Заказать звонок». Текст остаётся под ней,
   и клик по нему открывает окно. Поднимать __name / __avail целиком нельзя: каждый стал бы своим слоем, клик по их
   тексту не доходил бы до кнопки, а подсказка с картинкой (z-index 30, но внутри __name) уходила бы под __avail */
.whn-sc-tar.is-pickable .whn-obj-tar__info,
.whn-sc-tar.is-pickable .whn-sc-tar__ask { position: relative; z-index: 2; }
.whn-sc-tar__pick {
  grid-column: 4; grid-row: 1 / span 3; align-self: center;
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%;
  background: var(--sc-gold-14); color: var(--sc-gold); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .22s ease, color .22s ease;
}
.whn-sc-tar__pick svg { width: 14px; height: 14px; transition: transform .22s var(--sc-ease); }
.whn-sc-tar__pick::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 11px; }  /* вся строка — цель клика */
.whn-sc-tar__pick:focus-visible { outline: 0; }
.whn-sc-tar.is-pickable:hover,
.whn-sc-tar.is-pickable:focus-within { border-color: var(--sc-gold); box-shadow: 0 10px 24px -16px color-mix(in srgb, var(--sc-gold) 70%, #000); }
.whn-sc-tar.is-pickable:hover .whn-sc-tar__pick,
.whn-sc-tar__pick:focus-visible { background: var(--sc-gold); color: var(--sc-on-gold); }
.whn-sc-tar.is-pickable:hover .whn-sc-tar__pick svg { transform: translateX(1px); }
.whn-sc-tar__noprice--pick { font-weight: 700; color: var(--sc-gold); }  /* «выбрать ячейку» вместо цены — действие, а не справка */

/* --- Окно: каркас ----------------------------------------------------------------- */
/* Специфичность (0,2,0): custom_styles.css подключён после showcase.css, иначе .whn-modal перебил бы отступы и выравнивание */
.whn-modal.whn-modal--sc { padding: 20px 16px; }
.whn-modal.whn-modal--sc[hidden] { display: none; }
/* Высота постоянная, а не по содержимому: у классов разное число дверец, и окно (центрируется margin: auto)
   прыгало бы при каждом переключении. Лишнее прокручивается внутри сцены и формы */
.whn-modal--sc .whn-modal__dialog {
  display: flex; flex-direction: column;
  max-width: 980px; height: min(780px, calc(100vh - 40px)); height: min(780px, calc(100dvh - 40px));
  padding: 0; overflow: hidden; border-radius: 22px;
  font-family: var(--sc-font);
}
.whn-modal__x.whn-sc-modal__x { top: 16px; right: 16px; z-index: 3; }
.whn-sc-modal__head { position: relative; flex-shrink: 0; padding: 22px 64px 16px 28px; border-bottom: 1px solid var(--sc-line); }
.whn-sc-steps { display: flex; align-items: center; gap: 12px; list-style: none; margin: 0 0 12px; padding: 0; }
.whn-sc-steps__item {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sc-muted);
  transition: color .22s ease;
}
.whn-sc-steps__item + .whn-sc-steps__item::before { content: ""; width: 16px; height: 1.5px; margin-right: 3px; background: var(--sc-line); }
.whn-sc-steps__item b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid currentColor;
  font-size: .66rem; font-weight: 800; line-height: 1;
  transition: background-color .22s ease, border-color .22s ease, color .22s ease;
}
.whn-sc-steps__item.is-current { color: var(--sc-ink); }
.whn-sc-steps__item.is-current b { background: var(--sc-gold); border-color: var(--sc-gold); color: var(--sc-on-gold); }
.whn-sc-steps__item.is-done { color: var(--sc-gold); }
.whn-sc-modal__eyebrow { margin: 0 0 5px; font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--sc-gold); }
.whn-sc-modal__eyebrow i { font-style: normal; margin: 0 6px; opacity: .6; }
.whn-sc-modal__title { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--sc-ink); }
.whn-sc-modal__lead { margin: 6px 0 0; max-width: 58ch; font-size: .88rem; line-height: 1.45; color: var(--sc-muted); }

/* Переключатель классов объекта (кнопки строит showcase.js) — как чипы городов, но компактнее.
   Поля по 3px — чтобы прокрутка ряда не обрезала рамку активной кнопки и кольцо фокуса */
.whn-sc-mtabs {
  display: flex; gap: 6px;
  margin: 11px -3px -3px; padding: 3px;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
}
.whn-sc-mtabs::-webkit-scrollbar { display: none; }
.whn-sc-mtabs[hidden] { display: none; }
.whn-sc-mtab {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 7px 6px 13px; border: 1px solid var(--sc-line); border-radius: 999px;
  background: var(--sc-card);
  font: inherit; font-size: .84rem; font-weight: 700; line-height: 1; white-space: nowrap; color: var(--sc-ink);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: border-color .22s ease, background-color .22s ease, box-shadow .22s ease;
}
.whn-sc-mtab:hover { border-color: var(--sc-gold-40); }
.whn-sc-mtab.is-active { border-color: var(--sc-gold); background: color-mix(in srgb, var(--sc-gold) 8%, var(--sc-card)); box-shadow: 0 0 0 1px var(--sc-gold); }
.whn-sc-mtab:focus-visible { outline: 0; border-color: var(--sc-gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sc-gold) 28%, transparent); }  /* после is-active: фокус обычно на активной */
.whn-sc-mtab.has-pick::before { content: ""; width: 7px; height: 7px; margin-right: -2px; border-radius: 50%; background: var(--sc-gold); }  /* здесь выбранная ячейка */
.whn-sc-mtab__count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  font-size: .68rem; font-weight: 800; font-variant-numeric: tabular-nums;
  color: var(--sc-muted); background: color-mix(in srgb, var(--sc-muted) 12%, transparent);
  transition: background-color .22s ease, color .22s ease;
}
.whn-sc-mtab.is-active .whn-sc-mtab__count { color: var(--sc-on-gold); background: var(--sc-gold); }

.whn-sc-modal__body { display: grid; grid-template-columns: minmax(0, 1fr) 304px; flex: 1 1 auto; min-height: 0; }
.whn-sc-modal__stage,
.whn-sc-modal__form { min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 18px 28px 26px; }  /* gutter: полоса прокрутки, появляясь, не сдвигает сетку дверец */
.whn-sc-modal__stage[hidden],
.whn-sc-modal__form[hidden] { display: none; }
.whn-sc-modal__stage.is-in,
.whn-sc-modal__form.is-in { animation: whn-sc-step-in .38s var(--sc-ease) both; }
@keyframes whn-sc-step-in { from { opacity: 0; transform: translateX(12px); } }

/* --- Шаг 1: факты тарифа и дверцы --------------------------------------------------- */
.whn-sc-modal__facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.whn-sc-modal__fact {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--sc-line);
  font-size: .74rem; font-weight: 600; color: var(--sc-muted); white-space: nowrap;
}
.whn-sc-modal__fact b { font-weight: 800; color: var(--sc-ink); font-variant-numeric: tabular-nums; }
.whn-sc-modal__fact--free { border-color: var(--sc-gold-40); background: var(--sc-gold-08); color: var(--sc-ink); }
.whn-sc-modal__hint { margin: 16px 0 0; font-size: .74rem; line-height: 1.45; color: var(--sc-muted); }

.whn-sc-cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 14px 8px; }
.whn-sc-cell {
  --door-w: 72px; --door-h: 94px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 8px 4px 9px; border: 0; border-radius: 12px; background: none;
  font: inherit; color: var(--sc-ink); cursor: pointer; -webkit-tap-highlight-color: transparent;
  animation: whn-sc-door-in .5s var(--sc-ease) both;
  animation-delay: calc(var(--i, 0) * 22ms);
  transition: background-color .2s ease;
}
@keyframes whn-sc-door-in { from { opacity: 0; transform: translateY(8px); } }
.whn-sc-cell:hover { background: var(--sc-gold-08); }
.whn-sc-cell:focus-visible { outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--sc-gold) 35%, transparent); }
.whn-sc-cell.is-selected { background: var(--sc-gold-14); }
.whn-sc-cell__vol { font-size: .8rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; transition: color .2s ease; }
.whn-sc-cell__price { font-size: .72rem; font-weight: 600; line-height: 1.1; color: var(--sc-muted); font-variant-numeric: tabular-nums; }
.whn-sc-cell.is-selected .whn-sc-cell__vol { color: var(--sc-gold); }

/* Дверца: рифлёное золото с табличкой; интерьер за ней — тёмный, с галочкой */
.whn-sc-door {
  --door: var(--sc-gold);
  --door-light: color-mix(in srgb, var(--sc-gold) 78%, #fff);
  --door-dark: color-mix(in srgb, var(--sc-gold) 70%, #000);
  --room: color-mix(in srgb, #231f20 90%, var(--sc-gold));
  position: relative; width: var(--door-w); height: var(--door-h);
  border-radius: 7px; perspective: 420px;
  transition: box-shadow .25s ease;
}
html.dark .whn-sc-door { --room: #15110f; }
.whn-sc-door__room {
  position: absolute; inset: 0; border-radius: 7px; background: var(--room);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), inset 10px 0 18px -8px rgba(0,0,0,.85);
  display: flex; align-items: center; justify-content: center; padding-left: 22px;
  color: var(--sc-gold);
}
.whn-sc-door__room svg {
  width: 22px; height: 22px; opacity: 0; transform: scale(.5);
  transition: opacity .25s ease .14s, transform .4s var(--sc-ease) .14s;
}
.whn-sc-door__leaf {
  position: absolute; inset: 0; border-radius: 7px;
  transform-origin: 0 50%;
  background: repeating-linear-gradient(180deg, var(--door) 0 10px, var(--door-dark) 10px 11px, var(--door-light) 11px 12px);
  box-shadow: inset 0 0 0 1.5px var(--door-dark), 0 1px 2px rgba(0,0,0,.18);
  transition: transform .5s var(--sc-ease), box-shadow .3s ease;
  backface-visibility: hidden;
}
.whn-sc-door__plate {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  min-width: 30px; padding: 3px 6px; border-radius: 3px; text-align: center;
  font-size: .78rem; font-weight: 800; line-height: 1; letter-spacing: .04em; font-variant-numeric: tabular-nums; white-space: nowrap;
  color: #b79357; background: #231f20;
  box-shadow: 0 1px 0 rgba(255,255,255,.3);
}
.whn-sc-door__plate.is-long { font-size: .62rem; letter-spacing: .02em; }
.whn-sc-door__handle {
  position: absolute; right: 9px; top: 50%; width: 5px; height: 14px; margin-top: -7px;
  border-radius: 3px; background: var(--door-dark); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
}
.whn-sc-cell:hover .whn-sc-door__leaf { transform: rotateY(-16deg); }
.whn-sc-cell.is-selected .whn-sc-door { box-shadow: 0 0 0 2px var(--sc-gold); }
.whn-sc-cell.is-selected .whn-sc-door__leaf {
  transform: rotateY(-50deg);
  box-shadow: inset 0 0 0 1.5px var(--door-dark), 14px 0 22px -10px rgba(0,0,0,.6);
}
.whn-sc-cell.is-selected .whn-sc-door__room svg { opacity: 1; transform: scale(1); }

/* --- Сводка выбора (справа) --------------------------------------------------------- */
.whn-sc-modal__side {
  position: relative; min-height: 0; overflow: auto; overscroll-behavior: contain;
  padding: 22px 24px 24px; border-left: 1px solid var(--sc-line);
  background: var(--sc-gold-08);
}
.whn-sc-pick { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px 6px 0; }
.whn-sc-pick::before {   /* П-рамка — та же, что у заголовка блока */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18px;
  border: 3px solid var(--sc-gold); border-bottom: 0; border-radius: 2px 2px 0 0;
}
.whn-sc-pick[hidden] { display: none; }
.whn-sc-pick--empty { gap: 10px; }
.whn-sc-pick__mascot { display: inline-flex; width: 54px; height: 54px; margin-top: 4px; color: var(--sc-gold); }
.whn-sc-pick__mascot svg { width: 100%; height: 100%; }
.whn-sc-pick__empty-text { margin: 0; font-size: .86rem; line-height: 1.5; color: var(--sc-muted); }
.whn-sc-pick__eyebrow { font-size: .66rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--sc-gold); }
.whn-sc-pick__title { margin: 0; font-size: 1.45rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--sc-ink); }
.whn-sc-pick__title b { font-weight: 800; color: var(--sc-gold); font-variant-numeric: tabular-nums; }
.whn-sc-pick__name { margin: -8px 0 0; font-size: .72rem; font-weight: 600; letter-spacing: .05em; color: var(--sc-muted); }
.whn-sc-pick__mini { display: none; margin: 0; }
.whn-sc-pick__name[hidden] { display: none; }
.whn-sc-pick__facts { display: flex; flex-direction: column; gap: 6px; margin: 2px 0 0; }
.whn-sc-pick__facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .84rem; line-height: 1.35; }
.whn-sc-pick__facts div[hidden] { display: none; }
.whn-sc-pick__facts dt { flex-shrink: 0; color: var(--sc-muted); }
.whn-sc-pick__facts dd { margin: 0; font-weight: 700; text-align: right; color: var(--sc-ink); }
.whn-sc-pick__price { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 0; }
.whn-sc-pick__price b { font-size: 1.35rem; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--sc-ink); }
.whn-sc-pick__price.is-ask b { font-size: .95rem; font-weight: 700; color: var(--sc-muted); }
.whn-sc-pick__price.is-loading b { font-size: .9rem; font-weight: 600; color: var(--sc-muted); animation: whn-sc-blink 1.1s ease-in-out infinite; }
@keyframes whn-sc-blink { 50% { opacity: .45; } }
.whn-sc-pick__price small { font-size: .72rem; color: var(--sc-muted); font-variant-numeric: tabular-nums; }
.whn-sc-pick__price small[hidden] { display: none; }
.whn-sc-pick__book { width: 100%; margin-top: 4px; }
.whn-sc-pick__book[hidden] { display: none; }
.whn-sc-pick__change {
  align-self: flex-start; padding: 0; border: 0; background: none;
  font: inherit; font-size: .82rem; font-weight: 700; color: var(--sc-gold);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.whn-sc-pick__change:hover { text-decoration: none; }
.whn-sc-pick__change[hidden] { display: none; }
.whn-sc-pick__note { margin: 0; font-size: .74rem; line-height: 1.45; color: var(--sc-muted); }

/* --- Шаг 2: форма — поля футера, подогнанные под окно ---------------------------- */
.whn-sc-modal__form { gap: 12px; }
.whn-sc-modal__form .whn-field > span { font-size: .8rem; }
.whn-sc-modal__form .whn-check { font-size: .78rem; }
.whn-sc-modal__submit { width: 100%; font-family: var(--sc-font); }

/* --- Адаптив: на телефоне окно — шторка снизу, сводка — закреплённая полоса ------- */
@media (max-width: 760px) {
  .whn-modal.whn-modal--sc { padding: 0; align-items: flex-end; }
  .whn-modal--sc .whn-modal__dialog {
    max-width: none; height: 94vh; height: 94dvh; margin: auto 0 0;   /* шторка тоже постоянной высоты */
    border-radius: 22px 22px 0 0; border-bottom: 0;
  }
  .whn-sc-modal__head { padding: 18px 56px 14px 18px; }
  .whn-modal__x.whn-sc-modal__x { top: 12px; right: 12px; }
  .whn-sc-mtabs { margin: 9px -56px -3px -18px; padding: 3px 18px; }  /* ряд — от края до края окна, первая кнопка — по линии текста */
  .whn-sc-modal__body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .whn-sc-modal__stage,
  .whn-sc-modal__form { padding: 14px 18px 20px; }
  .whn-sc-cells { grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 10px 4px; }
  .whn-sc-cell { --door-w: 60px; --door-h: 80px; padding: 6px 2px 7px; }
  .whn-sc-modal__side {
    overflow: visible; border-left: 0; border-top: 1px solid var(--sc-line);
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .whn-sc-pick { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto auto; align-items: center; gap: 1px 12px; padding: 0; }
  .whn-sc-pick::before { display: none; }
  .whn-sc-pick--empty { display: flex; align-items: center; gap: 10px; }
  .whn-sc-pick__mascot { width: 32px; height: 32px; margin: 0; flex-shrink: 0; }
  .whn-sc-pick__empty-text { font-size: .78rem; line-height: 1.4; }
  .whn-sc-pick__eyebrow, .whn-sc-pick__name, .whn-sc-pick__facts, .whn-sc-pick__note { display: none; }
  .whn-sc-pick__title { grid-column: 1 / span 2; grid-row: 1; font-size: .98rem; }
  .whn-sc-pick__mini { display: block; grid-column: 1 / span 2; grid-row: 2; font-size: .72rem; font-weight: 600; color: var(--sc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .whn-sc-pick__price { grid-column: 1 / span 2; grid-row: 3; margin: 0; }
  .whn-sc-pick__price b { font-size: .98rem; }
  .whn-sc-pick__price small { display: none; }
  .whn-sc-pick__book { grid-column: 3; grid-row: 1 / span 3; width: auto; margin: 0; padding: 12px 14px; font-size: .88rem; }
  .whn-sc-pick__change { grid-column: 3; grid-row: 1 / span 3; margin: 0; font-size: .78rem; }
}

/* --- Меньше движения ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .whn-sc-cell, .whn-sc-modal__stage.is-in, .whn-sc-modal__form.is-in, .whn-sc-pick__price.is-loading b { animation: none; }
  .whn-sc-door, .whn-sc-door__leaf, .whn-sc-door__room svg, .whn-sc-cell, .whn-sc-cell__vol,
  .whn-sc-tar__pick, .whn-sc-tar__pick svg, .whn-sc-steps__item, .whn-sc-steps__item b,
  .whn-sc-mtab, .whn-sc-mtab__count { transition: none; }
  .whn-sc-cell:hover .whn-sc-door__leaf { transform: none; }
  .whn-sc-tar.is-pickable:hover .whn-sc-tar__pick svg { transform: none; }
}
