/* naity, прототип нового интерфейса (Figma, страница B Архив, Section 2).
   Размеры и цвета сняты с макета 1440 × 850. */

@font-face { font-family: "HND"; font-weight: 500; font-display: block;
  src: local("Helvetica Now Display Medium"), local("HelveticaNowDisplay-Medium"),
       url("fonts/HelveticaNowDisplayMedium.woff2") format("woff2"), url("fonts/HelveticaNowDisplayMedium.otf") format("opentype"); }
@font-face { font-family: "HND"; font-weight: 700; font-display: block;
  src: local("Helvetica Now Display Bold"), local("HelveticaNowDisplay-Bold"),
       url("fonts/HelveticaNowDisplayBold.woff2") format("woff2"), url("fonts/HelveticaNowDisplayBold.otf") format("opentype"); }

:root {
  --bg: #f5f5f5;
  --ink: #434343;
  --ink-soft: #9a9a9a;
  --warm: #b3541e;
  --line: #e4e4e4;
  --line-2: #eaeaea;
  --btn: #434343;
  --btn-h: #292929;
  --dark: #303030;
  --dark-ink: #b9b9b9;
  --dark-mute: #5e5e5e;
  --btn2-h: #575757;
  --col: min(670px, calc(100vw - 32px));
  --hero-top: max(72px, 29vh);          /* 247 px при высоте 850 */
  --hero-top-res: 83px;
  --f: "HND", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* шкала движения transitions.dev (скилл transitions-dev, _root.css) */
  --duration-stagger: 40ms;
  --duration-quick: 150ms;
  --duration-fast: 250ms;
  --duration-medium: 350ms;
  --duration-slow: 400ms;
  --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1);
  /* menu dropdown: поповер чипа растёт из самого чипа */
  --dropdown-open-dur: 250ms;
  --dropdown-close-dur: 150ms;
  --dropdown-pre-scale: 0.97;
  --dropdown-closing-scale: 0.99;
  --dropdown-ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* tabs sliding: выбор спален, тёмная плашка ездит под цифрами */
  --tabs-dur: 250ms;
  --tabs-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tabs-text-muted: #434343;
  --tabs-text-active: #ffffff;
  --tabs-bar-bg: #f3f3f3;
  --tabs-pill-bg: #434343;
  /* toast */
  --toast-open: 350ms;
  --toast-close: 250ms;
  --toast-distance: 16px;
  --toast-blur: 2px;
  --toast-scale: 0.97;
  --toast-ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* skeleton reveal: фото карточки проявляется из заглушки */
  --pulse-dur: 1000ms;
  --pulse-count: infinite;
  --pulse-min: 0.55;
  --reveal-dur: 400ms;
  --reveal-blur: 2px;
  --reveal-ease: ease-in-out;
  /* thinking states: слово статуса переливается, пока идёт работа */
  --shimmer-dur: 1600ms;
  --shimmer-highlight: #ececec;
  --shimmer-band: 400%;
  --shimmer-ease: linear;
  /* заключение AI в карточке дома: знак AI — matrix dot loader transitions.dev без правок */
  --matrix-cycle: 1200ms;
  --matrix-base: #d9d9d9;
  --matrix-active: #85858f;
  --matrix-ease: ease-in-out;
  --aib-bg: #f5f5f5;
  --aib-bg-h: #efefef;
  --aib-dot: #d2d2d2;
  --aib-dot-on: #434343;
  --aib-think-base: #9a9a9a;
  --aib-think-hi: #434343;
  --aib-shimmer: 1600ms;
  --aib-check: 420ms;
}

* { box-sizing: border-box; margin: 0; }
html { background: var(--bg); scrollbar-gutter: stable; }
body {
  font-family: var(--f); font-weight: 500; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  min-height: 100vh; overflow-x: hidden; font-kerning: normal;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
body.is-loading .stage, body.is-loading .corners { visibility: hidden; }

/* смена текста поворотом тубы: у слота своя перспектива, строки вращаются вокруг оси позади */
html[data-text="tube"] .roll { overflow: visible; perspective: var(--tube-persp, 260px); }
html[data-text="tube"] .rl { will-change: transform, filter, opacity; backface-visibility: hidden; }
.tune { position: fixed; left: 16px; bottom: 16px; z-index: 60; width: 250px; padding: 12px; border-radius: 8px;
  background: rgba(255, 255, 255, .96); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -18px rgba(0, 0, 0, .25);
  font-size: 11px; line-height: 14px; }
.tune label { display: grid; grid-template-columns: 92px 1fr 34px; align-items: center; gap: 6px; margin: 4px 0; }
.tune input { width: 100%; accent-color: var(--ink); }
.tune b { font-weight: 500; text-align: right; }
.tune__row { display: flex; gap: 6px; margin-top: 8px; }
.tune button { flex: 1; height: 26px; border-radius: 6px; background: var(--btn); color: #fff; font-size: 10px;
  letter-spacing: .03em; text-transform: uppercase; }
.tune button.is-ghost { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.tune code { display: block; margin-top: 8px; color: var(--ink-soft); font-size: 10px; user-select: all; }

/* смена текста по буквам */
.roll { position: relative; display: block; overflow: hidden; }
.rl { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  white-space: pre; pointer-events: none; }
.rc { display: inline-block; white-space: pre; }
.rl-measure { position: absolute; left: 0; top: 0; visibility: hidden; white-space: pre; }

/* углы */
.corners { position: absolute; top: 20px; left: 38px; right: 40px; z-index: 6;
  display: flex; justify-content: space-between; pointer-events: none; }
.corners__l { display: flex; gap: 8px; }
.ic { width: 24px; height: 24px; color: var(--ink); pointer-events: auto; visibility: hidden; }
.ic svg { width: 24px; height: 24px; display: block; }
.ic__cur { width: 24px; height: 24px; display: grid; place-items: center; box-sizing: border-box; border: 1.5px solid currentColor;
  border-radius: 50%; font-size: 9px; line-height: 1; font-weight: 500; letter-spacing: -.02em; }
.pop--menu { min-width: 176px; padding: 6px; }
.menu__i { display: flex; align-items: center; gap: 8px; width: 100%; height: 32px; padding: 0 10px; border-radius: 6px; font-size: 12px;
  color: var(--ink); text-align: left; cursor: pointer; }
.menu__i:hover { background: var(--tabs-bar-bg); }
.menu__i.is-on { background: var(--btn); color: #fff; }
.menu__s { width: 16px; color: var(--ink-soft); }
.menu__i.is-on .menu__s { color: #bdbdbd; }

/* герой: логотип, строка, чипы */
.stage { position: relative; }
.hero { position: relative; z-index: 2; width: var(--col); margin: 0 auto; padding-top: var(--hero-top); }
body.is-res .hero { padding-top: var(--hero-top-res); }
body.is-res .choices { display: none; }

.logo { position: relative; display: block; width: 150px; height: 47px; margin: 0 auto; }
.logo img { position: absolute; left: 0; top: -12.35px; width: 169px; height: 60px; max-width: none;
  user-select: none; }

.slot { position: relative; z-index: 3; height: 56px; margin-top: 16px; }
/* центр строки держится свойством translate, а не margin: auto — пружина перелетает ширину места,
   и margin: auto тогда прижимал строку влево, текст уезжал вбок на пару пикселей */
.bar { position: absolute; top: 0; left: 50%; translate: -50% 0; width: var(--col); height: 56px;
  background: #fff; border-radius: 8px; overflow: hidden; }
.bar::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); border-radius: inherit;
  pointer-events: none; z-index: 9; }
body.is-intro .bar { cursor: text; }

.bar__label, .bar__typed { position: absolute; left: 18px; right: 18px; top: 50%; height: 27px; margin-top: -13.5px;
  font-size: 16px; line-height: 17px; pointer-events: none; }
.bar__typed { left: 21px; right: 110px; color: var(--ink-soft); }
.bar__typed .rl { justify-content: flex-start; }
body.is-res .bar__label { left: 21px; right: 110px; color: var(--ink-soft); }
body.is-res .bar__label .rl { justify-content: flex-start; }
/* на выдаче текст строки делит место с числом домов: длинный запрос мягко гаснет у своего края, а не
   заходит под число. Слот выше строки, чтобы маска не срезала туше поворот тубы сверху и снизу */
body.is-res .bar__typed, body.is-res .bar__label { height: 67px; margin-top: -33.5px;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }

.bar__input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0 110px 0 21px;
  border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink);
  caret-color: var(--ink); opacity: 0; pointer-events: none; }
.bar.is-typing .bar__input { opacity: 1; pointer-events: auto; }
.bar__input::placeholder { color: transparent; }
.bar__input.is-empty { caret-color: transparent; }
/* подсказка в строке: прижата влево к началу ввода, серая, за ней мигает курсор */
.rl--hint { justify-content: flex-start !important; color: var(--ink-soft); }
body:not(.is-res) .rl--hint { padding-left: 3px; }
.bar__caret { position: absolute; left: 0; top: 50%; width: 1.5px; height: 20px; margin-top: -10px; border-radius: 1px;
  background: var(--ink); visibility: hidden; pointer-events: none; z-index: 3; }
.bar__caret.is-on { visibility: visible; animation: caret 1.06s steps(1) infinite; }
@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.bar__btns { position: absolute; right: 19px; top: 10px; display: flex; gap: 8px; z-index: 2; }
.rb { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; visibility: hidden; }
.rb svg { width: 20px; height: 20px; }
.rb--mic { background: #fff; color: #171717; box-shadow: inset 0 0 0 1px var(--line-2); position: relative; }
.rb--mic::before { content: ""; position: absolute; inset: -1px; border-radius: 50%;
  box-shadow: 0 0 0 1px var(--ink); opacity: 0; }
.rb--mic.is-on::before { animation: listen 1.1s ease-in-out infinite; }
@keyframes listen { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 0; transform: scale(1.28); } }
.rb--send { background: var(--btn); color: #fff; }

/* окно поиска 200 × 124 живёт по центру строки и проявляется, когда строка сжимается */
.bar__search { position: absolute; left: 50%; top: 0; width: 200px; height: 124px; margin-left: -100px;
  pointer-events: none; }
.reel { position: absolute; left: 20px; top: 11px; width: 160px; height: 40px; overflow: hidden; visibility: hidden; }
.reel__strip { position: absolute; left: 0; top: 0; width: 100%; will-change: transform; }
.reel.is-fast .reel__strip { filter: url(#reelF); }
.src { height: 40px; display: flex; align-items: center; gap: 9px; padding: 0 6px; }
.src__av { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; flex: none; background: #eee; }
.src__txt { min-width: 0; display: flex; flex-direction: column; gap: 1px; text-align: left; }
.src__n { font-size: 11px; line-height: 13px; font-weight: 700; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; }
.src__c { font-size: 9px; line-height: 11px; color: var(--ink-soft); white-space: nowrap; }
.src--logo { justify-content: center; }
.src--logo img { height: 26px; width: auto; }
.src__mk { width: 26px; height: 26px; border-radius: 6px; background: #3d5b9a; color: #fff; flex: none;
  display: grid; place-items: center; font: 700 13px/1 var(--f); }

.drip { position: absolute; left: 50%; top: 11px; width: 36px; height: 62px; margin-left: -18px; visibility: hidden; }
.drip__dripper { position: absolute; left: 0; top: 0; width: 31.1px; z-index: 1; }
.drip__jug { position: absolute; left: 2.4px; top: 34.2px; width: 33px; z-index: 3; transform-origin: 50% 100%; }
.drip__fx { position: absolute; inset: 0; width: 36px; height: 62px; overflow: visible; pointer-events: none; }
.drip__fx--under { z-index: 2; }
.drip__fx--over { z-index: 4; }
.drip__drop { fill: #3c3c3c; }
.drip__ring { fill: none; stroke: #5c5c5c; stroke-width: .8; opacity: 0; }

.status { position: absolute; left: 0; right: 0; bottom: 24px; height: 17px; display: flex; justify-content: center;
  align-items: center; gap: 5px; font-size: 16px; line-height: 17px; white-space: nowrap; }
.status__word { display: inline-block; height: 27px; margin: -5px 0; width: 0; }
.status__word::after { content: attr(data-text); position: absolute; inset: 0; display: flex; align-items: center;
  white-space: pre; font-kerning: none; pointer-events: none;
  background-image: linear-gradient(90deg, transparent 0%, transparent 40%, var(--shimmer-highlight) 50%,
    transparent 60%, transparent 100%);
  background-size: var(--shimmer-band) 100%; background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  opacity: 0; transition: opacity var(--duration-fast) var(--ease-smooth-out); }
.status__word.is-shimmer::after { opacity: 1; animation: t-shimmer var(--shimmer-dur) var(--shimmer-ease) infinite; }
@keyframes t-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0% 0; } }
.rc { font-kerning: none; }
.status__word .rl { justify-content: flex-start; }
.status__num { display: inline-flex; visibility: hidden; }

/* одометр */
.odo { display: inline-flex; height: 17px; line-height: 17px; font-variant-numeric: tabular-nums; }
.odo__probe { display: inline-block; line-height: 17px; }
.odo__col { display: inline-block; height: 17px; overflow: hidden; position: relative;
  transition: width .55s cubic-bezier(.16, 1, .3, 1), opacity .35s ease; }
.odo__col.is-off { opacity: 0; transition: width .45s cubic-bezier(.16, 1, .3, 1), opacity .12s ease; }
.odo__strip { display: block; white-space: pre; text-align: center; line-height: 17px; will-change: transform; }
.odo__col.is-fast .odo__strip { filter: url(#odoF); }
.odo__sep { display: inline-block; overflow: hidden; width: .26em; transition: width .55s cubic-bezier(.16, 1, .3, 1), opacity .35s; }
.odo__sep.is-off { width: 0; opacity: 0; transition: width .45s cubic-bezier(.16, 1, .3, 1), opacity .1s; }

/* под строкой: карточки выбора и чипы делят одно место */
.under { display: grid; margin-top: 16px; }
.under > * { grid-area: 1 / 1; }
.choices { display: flex; gap: 16px; justify-content: center; }
.chips { display: flex; gap: 6px; justify-content: center; align-self: start; flex-wrap: wrap; }
/* подписка на поиск: только в выдаче; включённая темнеет, как главная кнопка */
body:not(.is-res) .chip--follow { display: none; }
/* Follow заметнее остальных чипов (Dmitry 04.11): тёмно-серая, как кнопка Connect в плитке бота, без рамки */
/* .chip.chip--follow: общее правило .chip ниже по файлу, без двойного класса оно перебивает цвет */
.chip.chip--follow { background: var(--btn); color: #fff;
  transition: background-color var(--duration-quick) var(--ease-smooth-out), color var(--duration-quick) var(--ease-smooth-out); }
.chip.chip--follow::after { border: 0; }
.chip.chip--follow:hover { background: var(--btn2-h); }
.chip.chip--follow.is-on { background: var(--dark); color: #fff; }
/* кабинет: список сохранённых поисков */
.cq { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cq__l { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cq__t { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; line-height: 20px; color: var(--ink); }
.cq__s { font-size: 12px; line-height: 16px; color: #9a9a9a; }
.cq.is-paused .cq__t { color: #9a9a9a; }
/* сохранённые поиски: строка под чипами, видна, пока пишется запрос */
.saved { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; align-self: start; margin-top: 46px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .3s var(--ease-smooth-out), transform .4s cubic-bezier(.16, 1, .3, 1), visibility 0s .3s; }
body.is-q .saved { opacity: 1; visibility: inherit; transform: none; transition-delay: .3s, .3s, 0s; }
.saved:empty { display: none; }
.sv { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 34px; max-width: 100%; padding: 0 12px;
  border-radius: 8px; background: #fff; font-size: 12px; line-height: 16px; color: var(--ink); }
.sv::after { content: ""; position: absolute; inset: 0; border: 1px dashed #cfcfcf; border-radius: inherit; pointer-events: none;
  transition: border-color var(--duration-quick) var(--ease-smooth-out); }
.sv:hover::after { border-color: var(--ink); }
.sv svg { width: 16px; height: 16px; flex: none; }
.sv__t { overflow: hidden; max-width: 220px; white-space: nowrap; text-overflow: ellipsis; }
.sv__n { flex: none; padding: 1px 6px; border-radius: 4px; background: var(--dark); color: #fff; font-size: 10px; line-height: 14px; }
.sv__n.is-zero { background: none; color: #9a9a9a; padding: 0; }
.card__new { position: absolute; z-index: 2; left: 8px; top: 8px; padding: 2px 7px; border-radius: 4px; background: var(--dark);
  color: #fff; font-size: 10px; line-height: 16px; letter-spacing: .03em; text-transform: uppercase; }
.card__kind { position: absolute; z-index: 2; left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 2px 7px; border-radius: 4px;
  background: var(--warm); color: #fff; font-size: 10px; line-height: 16px; letter-spacing: .03em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.choice { position: relative; width: 327px; height: 222px; flex: none; background: #fff; border-radius: 8px;
  text-align: left; overflow: hidden; }
.choice::after { content: ""; position: absolute; inset: 0; border: 1.05px solid var(--line); border-radius: inherit;
  pointer-events: none; }
.choice__t { position: absolute; left: 14px; top: 14px; font-weight: 700; font-size: 20px; line-height: 22px;
  letter-spacing: .02em; }
.choice__d { position: absolute; left: 14px; top: 42px; width: 170px; font-size: 14px; line-height: 15px;
  letter-spacing: .03em; }
.choice--bike .choice__t, .choice--bike .choice__d { left: 16px; }
.choice--bike .choice__d { width: 247px; }
.choice__img { position: absolute; left: -1px; bottom: 0; width: 176px; height: 120px; pointer-events: none; }
.choice--bike .choice__img { left: 5px; }
.choice .btn { position: absolute; right: 20px; bottom: 19px; }

.btn { display: inline-flex; align-items: center; gap: 6px; height: 31px; padding: 7px 12px 7px 16px; border-radius: 4px;
  background: var(--btn); color: #fff; font-size: 10px; line-height: 17px; letter-spacing: .03em;
  text-transform: uppercase; white-space: nowrap; }
.btn__t { height: 27px; margin: -5px 0; width: auto; }
.btn__t .rl { justify-content: flex-start; }
.btn__ar { position: relative; width: 8px; height: 7px; overflow: hidden; flex: none; }
.btn__ar svg { position: absolute; left: 0; top: 0; width: 8px; height: 7px; }
.btn__ar .a2 { transform: translate(-7px, 7px); }
.btn__ic { display: grid; place-items: center; width: 14px; height: 14px; flex: none; }
.btn__ic img { width: 14px; height: 14px; }

.chip { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 7px 12px 7px 10px;
  border-radius: 8px; background: #fff; font-size: 10px; line-height: 17px; letter-spacing: .03em;
  text-transform: uppercase; white-space: nowrap; visibility: hidden; }
.chip::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); border-radius: inherit;
  pointer-events: none; transition: border-color var(--duration-quick) var(--ease-smooth-out); }
.chip:hover::after, .chip.is-open::after { border-color: #cfcfcf; }
.chip svg { width: 18px; height: 18px; flex: none; }
.chip__t { height: 27px; margin: -5px 0; }
.chip__t .rl { justify-content: flex-start; }

/* выдача */
.results { display: none; padding: 62px 40px 96px; }
body.is-res .results { display: block; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px 20px;
  max-width: 1360px; margin: 0 auto; }
.card { display: flex; flex-direction: column; gap: 12px; min-width: 0; cursor: pointer; visibility: hidden; }
.card__ph { position: relative; aspect-ratio: 325 / 217; border-radius: 4px; overflow: hidden; background: #e8e8e8; }
.card__ph img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
/* лента кадров карточки и стрелки: видны при наведении на карточку (мышь), палец листает рывком (04.11) */
.card__ph { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.card__track { display: flex; will-change: transform; }
.card__sl { flex: 0 0 100%; height: 100%; overflow: hidden; }
.card__arr { position: absolute; top: 50%; z-index: 3; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--ink); opacity: 0;
  pointer-events: none; transition: opacity var(--duration-fast) var(--ease-smooth-out), transform var(--duration-quick) var(--ease-smooth-out); }
.card__arr svg { width: 16px; height: 16px; }
.card__arr--l { left: 10px; }
.card__arr--r { right: 10px; }
.card__arr:active { transform: scale(.9); }
@media (hover: hover) { .card:hover .card__arr:not(.is-end) { opacity: 1; pointer-events: auto; } }
.t-skel { position: relative; }
.t-skel-skeleton,
.t-skel-content { position: absolute; inset: 0; }
.t-skel-skeleton { z-index: 1; opacity: 1; filter: blur(0);
  transition: opacity var(--reveal-dur) var(--reveal-ease), filter var(--reveal-dur) var(--reveal-ease); }
.t-skel-content { z-index: 2; opacity: 0; filter: blur(var(--reveal-blur));
  transition: opacity var(--reveal-dur) var(--reveal-ease), filter var(--reveal-dur) var(--reveal-ease); }
.t-skel.is-revealed .t-skel-skeleton { opacity: 0; filter: blur(var(--reveal-blur)); }
.t-skel.is-revealed .t-skel-content { opacity: 1; filter: blur(0); }
.t-skel-skeleton.is-pulsing > * { animation: t-skel-pulse var(--pulse-dur) ease-in-out var(--pulse-count); }
@keyframes t-skel-pulse { 0%, 100% { opacity: 1; } 50% { opacity: var(--pulse-min); } }
.t-skel-skeleton > i { position: absolute; inset: 0; background: #e6e6e6; }
.card__m { display: flex; justify-content: space-between; align-items: center; height: 25px; gap: 12px;
  font-size: 14px; line-height: 13px; letter-spacing: .02em; white-space: nowrap; }
.card__l { display: flex; gap: 16px; min-width: 0; }
.m { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.m svg { width: 16px; height: 16px; flex: none; }
.m--loc span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px;
  overflow: hidden; text-overflow: ellipsis; }
.m i { font-style: normal; color: var(--ink-soft); }
/* цена в выбранной единице: тёмная — продавец сам её назвал, серая — наш расчёт или догадка (решение 29.09) */
.m.is-est span { color: var(--ink-soft); }
.card__tag { position: absolute; left: 10px; top: 10px; z-index: 3; padding: 4px 9px; border-radius: 12px; background: #fff;
  font-size: 10px; line-height: 14px; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.grid__sep { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 10px 0 2px;
  font-size: 12px; line-height: 16px; color: var(--ink-soft); visibility: hidden; }
.grid__sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.ad { position: relative; aspect-ratio: 325 / 217; border-radius: 4px; background: var(--dark); color: #fff; padding: 18px;
  display: flex; flex-direction: column; justify-content: space-between; visibility: hidden; align-self: start; }
.ad__t { font-weight: 700; font-size: 20px; line-height: 22px; letter-spacing: .02em; }
.ad__d { margin-top: 6px; width: 184px; font-size: 14px; line-height: 15px; letter-spacing: .03em; color: var(--dark-ink); }
.ad__b { display: flex; justify-content: space-between; align-items: center; }
.ad__n { font-size: 14px; line-height: 15px; letter-spacing: -.02em; color: var(--dark-mute); }
.empty { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: var(--ink-soft); font-size: 14px; }

/* поповер чипа */
.pop { position: absolute; z-index: 30; min-width: 232px; max-width: 320px; padding: 12px; background: #fff; border-radius: 8px;
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -18px rgba(0, 0, 0, .22); }
.t-dropdown { transform-origin: top left; transform: scale(var(--dropdown-pre-scale)); opacity: 0; pointer-events: none;
  transition: transform var(--dropdown-open-dur) var(--dropdown-ease), opacity var(--dropdown-open-dur) var(--dropdown-ease);
  will-change: transform, opacity; }
.t-dropdown[data-origin="top-right"] { transform-origin: top right; }
.t-dropdown[data-origin="top-center"] { transform-origin: top center; }
.t-dropdown.is-open { transform: scale(1); opacity: 1; pointer-events: auto; }
.t-dropdown.is-closing { transform: scale(var(--dropdown-closing-scale)); opacity: 0; pointer-events: none;
  transition: transform var(--dropdown-close-dur) var(--dropdown-ease), opacity var(--dropdown-close-dur) var(--dropdown-ease); }
.t-tabs { position: relative; display: inline-flex; align-items: center; gap: 3px; padding: 3px; border-radius: 8px;
  background: var(--tabs-bar-bg); }
.t-tab { position: relative; appearance: none; border: 0; background: transparent; height: 30px; padding: 4px 12px;
  color: var(--tabs-text-muted); cursor: pointer; border-radius: 6px; z-index: 1; font-size: 10px; letter-spacing: .03em;
  text-transform: uppercase; transition: color var(--tabs-dur) var(--tabs-ease); }
.t-tab[aria-selected="true"] { color: var(--tabs-text-active); }
.t-tab:not([aria-selected="true"]):hover { color: #000; }
.t-tabs-pill { position: absolute; top: 3px; left: 0; height: 30px; width: 0; background: var(--tabs-pill-bg); border-radius: 6px;
  transform: translateX(0); transition: transform var(--tabs-dur) var(--tabs-ease), width var(--tabs-dur) var(--tabs-ease);
  will-change: transform, width; z-index: 0; pointer-events: none; }
.pop__h { margin: 0 2px 10px; font-size: 10px; line-height: 12px; letter-spacing: .03em; text-transform: uppercase;
  color: var(--ink-soft); }
.pop__row { display: flex; flex-wrap: wrap; gap: 6px; }
/* районы и подзоны: серое число домов рядом с вариантом; подзоны выбранного района раскрываются второй строкой */
.opt i { margin-left: 6px; font-style: normal; color: var(--ink-soft); }
.opt.is-on i { color: #bdbdbd; }
.pop__sub { height: 0; overflow: hidden; }
/* сколько домов найдено — серым справа в строке; пропадает, пока строку правят, и в шапке карточки */
.bar__count { position: absolute; right: 21px; top: 50%; height: 27px; margin-top: -13.5px; min-width: 40px;
  font-size: 16px; line-height: 17px; color: var(--ink-soft); pointer-events: none;
  transition: opacity var(--duration-fast) var(--ease-smooth-out); }
.bar__count .rl { justify-content: flex-end; }
.bar.is-typing .bar__count, body:not(.is-res) .bar__count { opacity: 0; }
.opt { height: 30px; padding: 0 11px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); font-size: 10px;
  letter-spacing: .03em; text-transform: uppercase; transition: background-color var(--duration-quick) var(--ease-smooth-out), color var(--duration-quick) var(--ease-smooth-out), box-shadow var(--duration-quick) var(--ease-smooth-out); }
.opt:hover { box-shadow: inset 0 0 0 1px #cfcfcf; }
.opt.is-on { background: var(--btn); color: #fff; box-shadow: none; }
/* подзоны: второй уровень под чертой, простым текстом. Без рамки, заглавных и заливки, серым:
   районы остаются единственными кнопками в окне, подзона выбрана цветом строки и тонким подчёркиванием */
.pop__zs { display: flex; flex-wrap: wrap; gap: 0 14px; margin-top: 12px; padding: 6px 2px 0; border-top: 1px solid #efefef; }
.opt--z { height: auto; padding: 5px 0; border-radius: 0; box-shadow: none; font-size: 12px; line-height: 16px;
  letter-spacing: 0; text-transform: none; color: var(--ink-soft); text-decoration: underline 1px transparent;
  text-underline-offset: 4px; transition: color var(--duration-quick) var(--ease-smooth-out),
  text-decoration-color var(--duration-quick) var(--ease-smooth-out); }
.opt--z:hover { box-shadow: none; color: var(--ink); }
.opt--z.is-on { background: none; color: var(--ink); text-decoration-color: currentColor; }
.opt--z i { display: inline-block; margin-left: 4px; color: #c4c4c4; }
.opt--z.is-on i { color: var(--ink-soft); }
.pop__range { width: 100%; margin: 4px 0 10px; accent-color: var(--ink); }
.pop__val { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-soft); }
.pop__val b { color: var(--ink); font-weight: 500; }

.toast-wrap { position: fixed; left: 50%; bottom: 28px; z-index: 40; transform: translateX(-50%); pointer-events: none; }
.toast { padding: 10px 14px; border-radius: 8px; background: var(--dark); color: #fff; font-size: 13px; line-height: 16px;
  width: max-content; max-width: min(420px, calc(100vw - 32px)); text-align: center; text-wrap: balance; }
.t-toast { opacity: 0; transform: translateY(var(--toast-distance)) scale(var(--toast-scale)); filter: blur(var(--toast-blur));
  will-change: transform, opacity, filter;
  transition: opacity var(--toast-close) var(--toast-ease), transform var(--toast-close) var(--toast-ease),
    filter var(--toast-close) var(--toast-ease); }
.t-toast.is-open { opacity: 1; transform: translateY(0) scale(1); filter: blur(0);
  transition: opacity var(--toast-open) var(--toast-ease), transform var(--toast-open) var(--toast-ease),
    filter var(--toast-open) var(--toast-ease); }

/* ───────── карточка дома (house.js; макет «Карточка дома», вариант 2) ─────────
   Строка поиска — шапка карточки: район слева, справа ← → и крестик. Панель 526 по центру
   под шапкой, фон цвета страницы закрывает выдачу целиком. */
/* сам контейнер прозрачен для кликов: он лежит поверх микрофона и отправки, пока его кнопки скрыты */
.bar__nav { position: absolute; right: 10px; top: 10px; display: flex; gap: 6px; z-index: 2; pointer-events: none; }
.bar__nav .rb { pointer-events: auto; }
.rb--nav { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.rb--close { background: var(--btn); color: #fff; }
.rb--nav svg, .rb--close svg { width: 18px; height: 18px; }
.rb--nav svg { transition: opacity var(--duration-fast) var(--ease-smooth-out); }
.rb--nav.is-end { pointer-events: none; }
.rb--nav.is-end svg { opacity: .25; }
body.is-house .hero { pointer-events: none; }
body.is-house .bar { pointer-events: auto; cursor: default; }
body.is-house .bar__typed { right: 140px; color: var(--ink); }
html.hs-lock { overflow: hidden; }

.hs { position: fixed; inset: 0; z-index: 20; visibility: hidden; }
.hs.is-on { visibility: visible; }
.hs__bg { position: absolute; inset: 0; background: var(--bg); opacity: 0; }
.hs__panel { position: absolute; top: 74px; bottom: 10px; left: 50%; width: 526px; margin-left: -263px;
  display: flex; flex-direction: column; background: #fff; border-radius: 8px; overflow: hidden; }
.hs__panel::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); border-radius: inherit;
  pointer-events: none; z-index: 5; }
.hs__scroll { position: relative; flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  padding: 20px 20px 40px; scrollbar-width: none; }
.hs__scroll::-webkit-scrollbar { display: none; }
.hs__fade { position: absolute; left: 0; right: 0; bottom: 88px; height: 40px; pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.hs__foot { display: flex; padding: 20px; }
/* рядом с главной — контурная «Original»: второе действие без новой строки (главное тёмным, второе контуром) */
.hs__orig { flex: none; display: flex; align-items: center; justify-content: center; gap: 6px; width: 132px; height: 48px;
  margin-left: 8px; border-radius: 4px; overflow: hidden; white-space: nowrap; color: var(--ink); text-decoration: none;
  box-shadow: inset 0 0 0 1px #cfcfcf; font-size: 11px; line-height: 17px; letter-spacing: .03em; text-transform: uppercase;
  transition: box-shadow var(--duration-fast) var(--ease-smooth-out); }
.hs__orig:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.hs__cta-ar { overflow: hidden; }
.hs__cta { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 4px;
  background: var(--btn); color: #fff; font-size: 11px; line-height: 17px; letter-spacing: .03em;
  text-transform: uppercase; text-decoration: none; transition: background-color var(--duration-fast) var(--ease-smooth-out); }
.hs__cta:hover { background: var(--btn-h); }
.hs__cta-t { height: 27px; margin: -5px 0; }

/* фото: лента кадров, стрелки по бокам, сердце, текст продавца поверх кадра, счётчик */
.hs__ph { position: relative; aspect-ratio: 3 / 2; border-radius: 4px; overflow: hidden; background: #e8e8e8;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.hs__track { display: flex; height: 100%; will-change: transform; }
.hs__slide { flex: 0 0 100%; height: 100%; overflow: hidden; }
.hs__slide img { width: 100%; height: 100%; object-fit: cover; }
.hs__arr { position: absolute; top: 50%; z-index: 2; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--ink);
  transition: opacity var(--duration-fast) var(--ease-smooth-out); }
.hs__arr svg { width: 16px; height: 16px; }
.hs__arr--l { left: 10px; }
.hs__arr--r { right: 10px; }
.hs__arr.is-end, .hs__ph.is-desc .hs__arr { opacity: 0; pointer-events: none; }
.hs__heart { position: absolute; top: 12px; right: 12px; z-index: 2; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--ink);
  transition: opacity var(--duration-fast) var(--ease-smooth-out); }
.hs__heart svg { width: 17px; height: 17px; }
.hs__desc-btn { position: absolute; left: 12px; bottom: 12px; z-index: 4; display: inline-flex; align-items: center; gap: 7px;
  height: 28px; padding: 0 12px 0 14px; border-radius: 14px; background: #fff; font-size: 10px; line-height: 15px;
  letter-spacing: .03em; text-transform: uppercase; }
.hs__x { position: relative; width: 8px; height: 8px; transition: transform .5s cubic-bezier(.16, 1.08, .38, .98); }
.hs__x i { position: absolute; left: 0; top: 50%; width: 8px; height: 1px; margin-top: -.5px; background: currentColor; }
.hs__x i + i { transform: rotate(90deg); }
.hs__ph.is-desc .hs__x { transform: rotate(45deg); }
.hs__desc { position: absolute; inset: 0; z-index: 3; padding: 16px 16px 52px; overflow-y: auto; overscroll-behavior: contain;
  background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px);
  font-size: 12px; line-height: 17px; color: #555; white-space: pre-line; scrollbar-width: none;
  opacity: 0; transform: translateY(24px); pointer-events: none;
  transition: opacity .5s cubic-bezier(.16, 1.08, .38, .98), transform .5s cubic-bezier(.16, 1.08, .38, .98); }
.hs__ph.is-desc .hs__desc { opacity: 1; transform: none; pointer-events: auto; }
/* текст гаснет над кнопкой, а не уходит под неё */
.hs__desc { -webkit-mask-image: linear-gradient(#000 calc(100% - 64px), transparent calc(100% - 22px));
  mask-image: linear-gradient(#000 calc(100% - 64px), transparent calc(100% - 22px)); }
.hs__panel:focus { outline: none; }
.hs button:focus-visible, .hs a:focus-visible, .bar__nav .rb:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.hs__ph.is-desc .hs__heart, .hs__ph.is-desc .hs__count { opacity: 0; }
.hs__count { position: absolute; right: 12px; bottom: 14px; z-index: 2; display: flex; align-items: center; height: 24px;
  padding: 0 10px; border-radius: 12px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 11px; overflow: hidden;
  transition: opacity var(--duration-fast) var(--ease-smooth-out); }
.hs__count-t { height: 24px; }
.hs__dots { display: flex; gap: 6px; margin-top: 10px; }
.hs__dots i { flex: 1; height: 2px; background: var(--line); transition: background-color .45s var(--ease-smooth-out); }
.hs__dots i.is-on { background: var(--ink); }

/* цена и вердикт рынка текстом, без цвета */
.hs__price { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 18px; }
.hs__yr { display: flex; align-items: baseline; gap: 6px; }
.hs__yr b { font-weight: 700; font-size: 28px; line-height: 34px; letter-spacing: .01em; }
.hs__yr span { font-size: 14px; color: var(--ink-soft); }
.hs__yr.is-est b { color: var(--ink-soft); }
.hs__sub { display: block; font-size: 13px; line-height: 19px; color: var(--ink-soft); }
.hs__vd { display: flex; flex-direction: column; align-items: flex-end; padding-top: 4px; text-align: right; }
.hs__vt { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; white-space: nowrap; }
.hs__vt i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.hs__vd .hs__sub { font-size: 12px; line-height: 18px; white-space: nowrap; }
.hs__warn { display: flex; gap: 6px; align-items: flex-start; margin-top: 8px; font-size: 12px; line-height: 18px;
  color: var(--ink-soft); }
.hs__warn svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }

/* факты строкой значков — единственная картинка, которую Dmitry оставил в варианте 2 */
.hs__facts { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin-top: 14px;
  border-top: 1px solid #efefef; }
.hs__fact { position: relative; display: flex; align-items: center; gap: 6px; height: 34px; padding-left: 14px;
  font-size: 13px; white-space: nowrap; overflow: hidden; }
.hs__fact:first-child { padding-left: 0; }
.hs__fact + .hs__fact::before { content: ""; position: absolute; left: 0; top: 8px; width: 1px; height: 18px; background: #efefef; }
.hs__fact svg { width: 16px; height: 16px; flex: none; }
.hs__fact.is-warm { color: var(--warm); }

/* строки и разделы */
.hs__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 34px;
  border-top: 1px solid #efefef; }
.hs__k { font-size: 10px; line-height: 15px; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-soft); }
.hs__k--ink { color: var(--ink); }
.hs__v { font-size: 14px; line-height: 21px; text-align: right; }
.hs__sec { border-top: 1px solid #efefef; }
.hs__sh { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 34px; text-align: left; }
.hs__pm { position: relative; width: 9px; height: 9px; margin-right: 2px; }
.hs__pm i { position: absolute; left: 0; top: 4px; width: 9px; height: 1.2px; background: var(--ink); }
.hs__pm i + i { transform: rotate(90deg); }
.hs__sb { height: 0; overflow: hidden; }
.hs__si { padding-bottom: 12px; }
.hs__quote, .hs__hist, .hs__pubs { padding: 10px 0 6px; border-top: 1px solid #efefef; }
.hs__quote p { margin-top: 4px; font-size: 13px; line-height: 18px; }
.hs__hist > div, .hs__pub { display: flex; justify-content: space-between; font-size: 13px; line-height: 24px; }
.hs__hist span, .hs__pub span { color: var(--ink-soft); }
.hs__hist b { font-weight: 500; }
.hs__pub a, .hs__v a { color: var(--ink); text-decoration: none; }
.hs__pub a:hover, .hs__v a:hover { text-decoration: underline; text-underline-offset: 2px; }
.hs__chk { display: flex; gap: 6px; padding: 6px 0; font-size: 13px; line-height: 18px; }
.hs__chk svg { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--ink-soft); }
.hs__sw { position: relative; width: 32px; height: 18px; border-radius: 9px; background: #e4e4e4;
  transition: background-color .25s var(--ease-smooth-out); }
.hs__sw i { position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .15); transition: transform .3s var(--ease-smooth-out); }
.hs__sw[aria-checked="true"] { background: var(--ink); }
.hs__sw[aria-checked="true"] i { transform: translateX(14px); }

/* ───────── заключение AI (house.js; решения: docs/ai-check.md) ─────────
   Серая плашка во всю ширину, высота 56, под «On market»: блок отделяет заливка, а не контраст.
   Тёмная плашка отвергнута (29.09): «самое главное действие во всей карточке, а это не так».
   Плашка сама становится панелью (рецепт plus to menu morph), её строка остаётся шапкой. */
.aib { position: relative; margin: 12px 0 14px; border-radius: 4px; background: var(--aib-bg); overflow: hidden;
  transition: background-color var(--duration-fast) var(--ease-smooth-out); }
.aib:not([data-open="true"]):hover { background: var(--aib-bg-h); }
.aib__head { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 0 16px; text-align: left; }
.aib__txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.aib__title { height: 20px; font-size: 14px; line-height: 20px; color: var(--ink); }
.aib__sub { height: 17px; font-size: 12px; line-height: 17px; color: var(--ink-soft); }
.aib__title .rl, .aib__sub .rl { justify-content: flex-start; white-space: nowrap; }
/* знак AI справа: matrix dot loader как есть (квадраты 2 px, зазор 2 px, вариант twinkle — вспышки вразброс).
   В покое цикл вдвое медленнее, в работе в своём темпе, в конце замирает. Плюса, кружка и замка нет. */
.aib__mark { flex: none; display: grid; grid-template-columns: repeat(4, 2px); grid-auto-rows: 2px; gap: 2px; margin: 0 3px 0 0; }
.aib__mark i { display: block; background: var(--matrix-base);
  animation: aib-matrix calc(var(--matrix-cycle) * var(--k, 2)) var(--matrix-ease) infinite;
  animation-delay: calc(var(--d, 0) * var(--k, 2) * 1ms); }
.aib[data-state="think"] .aib__mark { --k: 1; }
.aib[data-state="done"] .aib__mark i { animation: none; }
@keyframes aib-matrix { 0%, 45%, 100% { background-color: var(--matrix-base); } 15% { background-color: var(--matrix-active); } }

/* шаги работы: приходят по одному, активный переливается (thinking states), готовый получает галочку штрихом */
.aib__body { height: 0; overflow: hidden; }
.aib__in { padding: 2px 16px 14px; }
.aib__steps { display: grid; gap: 7px; padding: 4px 0 6px; }
.aib__step { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.aib__step.is-done { color: var(--ink); }
.aib__tick { position: relative; flex: none; width: 18px; height: 18px; display: grid; place-items: center; }
.aib__tick::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--aib-dot);
  transition: transform .3s var(--ease-smooth-out), opacity .2s ease; }
.aib__step.is-on .aib__tick::before { background: var(--aib-dot-on); animation: aib-beat 900ms ease-in-out infinite; }
.aib__step.is-done .aib__tick::before { transform: scale(0); opacity: 0; }
.aib__tick svg { position: absolute; inset: 2px; width: 14px; height: 14px; fill: none; stroke: var(--ink); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16; }
.aib__step.is-done .aib__tick svg { stroke-dashoffset: 0; transition: stroke-dashoffset var(--aib-check) var(--ease-smooth-out) 80ms; }
@keyframes aib-beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.7); } }
.aib__step.is-on .aib__st {
  background-image: linear-gradient(90deg, var(--aib-think-base) 0%, var(--aib-think-base) 35%, var(--aib-think-hi) 50%, var(--aib-think-base) 65%, var(--aib-think-base) 100%);
  background-size: 300% 100%; background-repeat: no-repeat; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; animation: aib-shimmer var(--aib-shimmer) linear infinite; }
@keyframes aib-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0% 0; } }

/* текст заключения */
.aib__take { font-size: 15px; line-height: 22px; text-wrap: pretty; padding: 2px 0 12px; }
/* показ механики у дома без готового заключения: серые строки на месте текста, та же раскладка и то же проступание */
.aib__bar { display: block; height: 8px; margin: 5.5px 0; border-radius: 2px; background: #e4e4e4; }
.aib__take--demo .aib__bar { height: 10px; margin: 6px 0; }
.aib__grp li .aib__bar { margin: 5.5px 0; }
.aib__grp { padding: 10px 0 9px; border-top: 1px solid #e6e6e6; }
.aib__grp > .hs__k { display: block; margin-bottom: 3px; }
.aib__grp p, .aib__grp li { font-size: 13px; line-height: 19px; text-wrap: pretty; }
.aib__grp ul, .aib__grp ol { margin: 0; padding: 0; list-style: none; }
.aib__grp li { position: relative; padding-left: 14px; }
.aib__grp li + li { margin-top: 3px; }
.aib__grp ul li::before { content: ""; position: absolute; left: 1px; top: 9px; width: 5px; height: 1px; background: var(--ink-soft); }
.aib__grp ol { counter-reset: q; }
.aib__grp ol li { counter-increment: q; }
.aib__grp ol li::before { content: counter(q); position: absolute; left: 0; top: 0; font-size: 10px; line-height: 19px; color: var(--ink-soft); }
.aib__add { display: inline-flex; align-items: center; height: 30px; margin-top: 9px; padding: 0 12px; border-radius: 4px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; line-height: 18px; color: var(--ink);
  transition: box-shadow var(--duration-quick) ease, background-color var(--duration-fast) ease, color var(--duration-fast) ease; }
.aib__add:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.aib__add[aria-pressed="true"] { background: var(--btn); color: #fff; box-shadow: none; }
.aib__add-t { height: 18px; }
.aib__sim { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 3px 0; text-align: left;
  font-size: 13px; line-height: 19px; color: var(--ink); }
.aib__sim span:first-child i { font-style: normal; color: var(--ink-soft); }
.aib__sim b { flex: none; font-weight: 500; }
.aib__sim:hover span:first-child { text-decoration: underline; text-underline-offset: 2px; }
.aib__foot { display: flex; justify-content: space-between; gap: 16px; padding-top: 10px; border-top: 1px solid #e6e6e6;
  font-size: 11px; line-height: 16px; color: var(--ink-soft); }
.aib__fb { flex: none; white-space: nowrap; }
.aib__fb button { margin-left: 6px; color: var(--ink); font-size: 11px; line-height: 16px; }
.aib__fb button:hover { text-decoration: underline; text-underline-offset: 2px; }
.aib__w { display: inline-block; white-space: pre; }
.aib button:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

/* гостю окно с предложением войти (рецепт modal open / close: вход 250 мс от масштаба 0.96, выход 150 мс) */
.aim { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.aim.is-on { visibility: visible; }
.aim__bg { position: absolute; inset: 0; background: rgba(48, 48, 48, .32); opacity: 0; transition: opacity var(--duration-quick) ease; }
.aim__box { position: relative; width: min(360px, 100%); padding: 22px 22px 20px; border-radius: 8px; background: #fff;
  opacity: 0; transform: scale(.96); transition: opacity var(--duration-quick) var(--ease-smooth-out), transform var(--duration-quick) var(--ease-smooth-out); }
.aim.is-open .aim__bg { opacity: 1; transition-duration: var(--duration-fast); }
.aim.is-open .aim__box { opacity: 1; transform: none; transition-duration: var(--duration-fast); }
.aim__t { font-size: 17px; line-height: 23px; font-weight: 700; color: var(--ink); text-wrap: balance; }
.aim__d { margin-top: 8px; font-size: 13px; line-height: 19px; color: var(--ink-soft); text-wrap: pretty; }
.aim__row { display: flex; gap: 8px; margin-top: 18px; }
.aim__go { flex: 1; height: 44px; border-radius: 4px; background: var(--btn); color: #fff; font-size: 12px; letter-spacing: .03em;
  text-transform: uppercase; transition: background-color var(--duration-quick) ease; }
.aim__go:hover { background: var(--btn-h); }
.aim__no { flex: none; height: 44px; padding: 0 16px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink);
  font-size: 12px; letter-spacing: .03em; text-transform: uppercase; transition: box-shadow var(--duration-quick) ease; }
.aim__no:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.aim button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ручка листа: на телефоне карточку можно стянуть вниз пальцем, ручка об этом говорит */
.hs__grab { display: none; }
@media (max-width: 720px) {
  .hs__panel { top: 76px; bottom: 0; left: 0; right: 0; width: auto; margin-left: 0; border-radius: 12px 12px 0 0; }
  .hs__grab { display: block; position: absolute; top: 6px; left: 50%; width: 36px; height: 4px; margin-left: -18px;
    border-radius: 2px; background: #dedede; z-index: 6; pointer-events: none; }
  .hs__scroll { padding: 16px 16px 40px; }
  .hs__foot { padding: 16px 16px max(16px, env(safe-area-inset-bottom)); }
  .hs__fade { bottom: 80px; }
  .hs__price { flex-direction: column; gap: 4px; }
  .hs__vd { flex-direction: row; align-items: baseline; justify-content: space-between; width: 100%; padding-top: 2px; }
  .hs__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs__fact:nth-child(odd) { padding-left: 0; }
  .hs__fact:nth-child(odd)::before { display: none; }
  .hs__fact:nth-child(n+3) { border-top: 1px solid #efefef; }
  .hs__fact:nth-child(n+3)::before { top: 8px; }
}

/* узкие экраны */
@media (max-width: 720px) {
  :root { --hero-top: max(64px, 18vh); --hero-top-res: 64px; }
  .corners { left: 16px; right: 16px; top: 16px; }
  .choices { flex-direction: column; align-items: center; }
  .choice { width: 100%; max-width: 360px; }
  .bar__label { font-size: 14px; }
  body:not(.is-intro):not(.is-res) .bar__label { right: 104px; }
  .results { padding: 40px 16px 72px; }
  .grid { grid-template-columns: 1fr; }
}

/* меньше движения: рецепты transitions.dev без переходов, переливания и пульса */
@media (prefers-reduced-motion: reduce) {
  .t-dropdown, .t-toast, .t-tabs-pill, .t-tab, .t-skel-skeleton, .t-skel-content { transition: none !important; }
  .t-skel-skeleton.is-pulsing > * { animation: none !important; }
  .status__word.is-shimmer::after { animation: none !important; opacity: 0 !important; }
  .odo__col, .odo__sep { transition: none !important; }
  .aib__mark i, .aib__step.is-on .aib__tick::before { animation: none !important; }
  .aib__step.is-on .aib__st { animation: none; -webkit-text-fill-color: currentColor; background: none; }
  .aib__step.is-done .aib__tick svg { transition: none; }
  .aim__bg, .aim__box { transition: none !important; }
}

/* ───────── кабинет (cabinet.js): тот же лист, что у карточки дома, строка поиска — его шапка ───────── */
.ic--me { position: relative; }
.ic__me { position: absolute; inset: 0; display: none; place-items: center; border-radius: 50%; background: var(--ink); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1; }
.ic--me.is-in svg { visibility: hidden; }
.ic--me.is-in .ic__me { display: grid; }

body.is-cab .hero { pointer-events: none; }
body.is-cab .bar { pointer-events: auto; cursor: default; }
body.is-cab .bar__typed { right: 60px; color: var(--ink); }
.cb { position: fixed; inset: 0; z-index: 20; visibility: hidden; }
.cb.is-on { visibility: visible; }
.cb__bg { position: absolute; inset: 0; background: var(--bg); opacity: 0; }
.cb__panel { position: absolute; top: 74px; bottom: 10px; left: 50%; width: 526px; margin-left: -263px;
  display: flex; flex-direction: column; background: #fff; border-radius: 8px; overflow: hidden; }
.cb__panel::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); border-radius: inherit;
  pointer-events: none; z-index: 5; }
.cb__panel:focus { outline: none; }
.cb__grab { display: none; }
.cb__scroll { position: relative; flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  padding: 18px 20px 40px; scrollbar-width: none; }
.cb__scroll::-webkit-scrollbar { display: none; }
.cb button:focus-visible, .cb a:focus-visible, .cb input:focus-visible, .cb textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* разделы: простой текст, как подзоны; выбранный — цветом строки, под ним ездит черта */
.cb__tabs { position: relative; display: flex; gap: 22px; padding-bottom: 12px; border-bottom: 1px solid #efefef; }
.cb__tab { font-size: 14px; line-height: 20px; color: var(--ink-soft); transition: color var(--duration-fast) var(--ease-smooth-out); }
.cb__tab:hover { color: var(--ink); }
.cb__tab[aria-selected="true"] { color: var(--ink); }
.cb__tab sup { margin-left: 3px; font-size: 10px; vertical-align: 5px; }
.cb__ul { position: absolute; left: 0; bottom: -1px; height: 1.5px; width: 0; background: var(--ink);
  transition: transform var(--tabs-dur) var(--tabs-ease), width var(--tabs-dur) var(--tabs-ease); }
.cb__view { will-change: transform; }
.cb__k { display: block; margin: 22px 0 4px; font-size: 10px; line-height: 15px; letter-spacing: .03em; text-transform: uppercase;
  color: var(--ink-soft); }
.cb__demo { margin-left: 6px; padding: 1px 5px; border-radius: 3px; background: #f1f1f1; font-size: 9px; letter-spacing: .03em;
  text-transform: uppercase; color: var(--ink-soft); vertical-align: 1px; }
.cb__p { font-size: 13px; line-height: 19px; color: var(--ink-soft); text-wrap: pretty; }

/* сохранённый дом: фото, где и сколько, сердце; ниже строка изменения, вопрос о продавце и своя заметка */
.cs { position: relative; padding: 14px 0; border-bottom: 1px solid #efefef; overflow: hidden; }
.cs__top { display: flex; gap: 12px; align-items: center; }
.cs__open { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: center; text-align: left; }
.cs__ph { flex: none; width: 88px; height: 62px; border-radius: 4px; object-fit: cover; background: #e8e8e8; }
.cs__txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cs__t { font-size: 14px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs__open:hover .cs__t { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cs__pr { font-size: 14px; line-height: 20px; font-weight: 700; }
.cs__pr span { font-weight: 500; font-size: 12px; color: var(--ink-soft); margin-left: 4px; }
.cs__pr.is-est { color: var(--ink-soft); }
.cs__heart { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); }
.cs__heart svg { width: 18px; height: 18px; }
.cs__more { padding-left: 100px; }
.cs__ch { display: flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 13px; line-height: 18px; }
.cs__ch i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.cs__ch.is-soft { color: var(--ink-soft); }
.cs__ch.is-soft i { background: var(--ink-soft); }
.cs__ask { margin-top: 10px; padding: 10px 12px 12px; border-radius: 6px; background: #f6f6f6; }
.cs__ask p { font-size: 13px; line-height: 18px; }
.cs__opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cs__opt { height: 28px; padding: 0 10px; border-radius: 4px; background: #fff; box-shadow: inset 0 0 0 1px var(--line);
  font-size: 12px; color: var(--ink); }
.cs__opt:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.cs__said { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.cs__lnk { font-size: 12px; line-height: 18px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: #d4d4d4; }
.cs__lnk:hover { color: var(--ink); text-decoration-color: currentColor; }
.cs__note { margin-top: 8px; }
.cs__nt { display: block; width: 100%; text-align: left; font-size: 13px; line-height: 18px; color: var(--ink); }
.cs__nt::before { content: "Note  "; font-size: 10px; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-soft); }
.cs__ed { height: 0; overflow: hidden; }
.cs__ta { display: block; width: 100%; min-height: 64px; margin-top: 8px; padding: 9px 11px; border: 0; border-radius: 6px;
  background: #f6f6f6; font: inherit; font-size: 13px; line-height: 18px; color: var(--ink); resize: none; }
.cs__ta:focus { outline: none; box-shadow: inset 0 0 0 1px #cfcfcf; }
.cs__row { display: flex; gap: 6px; margin-top: 8px; }
.cs.is-gone .cs__ph { filter: grayscale(1); opacity: .6; }
.cs.is-gone .cs__t, .cs.is-gone .cs__pr { color: var(--ink-soft); }

/* пустое сохранённое */
.ce { padding: 48px 8px 24px; text-align: center; }
.ce svg { width: 28px; height: 28px; color: var(--ink-soft); }
.ce__t { margin-top: 12px; font-size: 16px; line-height: 22px; font-weight: 700; }
.ce .cb__p { max-width: 320px; margin: 6px auto 0; }

/* кнопки кабинета: тёмная главная и контурная, как в карточке */
.cb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 4px;
  background: var(--btn); color: #fff; font-size: 12px; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.cb-btn:hover { background: var(--btn-h); }
.cb-btn svg { width: 16px; height: 16px; }
.cb-btn--line { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.cb-btn--line:hover { background: none; box-shadow: inset 0 0 0 1px var(--ink); }
.cb-btn--wide { width: 100%; height: 48px; }
.cb-btn.is-wait { pointer-events: none; }

/* подключения */
.cc { padding: 18px 0; border-bottom: 1px solid #efefef; }
.cc__h { display: flex; align-items: center; gap: 12px; }
.cc__ic { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #f3f3f3; }
.cc__ic svg { width: 18px; height: 18px; }
.cc__h > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cc__n { font-size: 14px; line-height: 20px; font-weight: 700; }
.cc__s { font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.cc__s.is-on::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%;
  background: var(--ink); vertical-align: 1px; }
.cc .cb__p { margin-top: 10px; }
.cc__sw { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; font-size: 13px; }
.cc__sw:first-of-type { margin-top: 8px; }
.cc__body { overflow: hidden; }
.ck { margin-top: 14px; padding: 12px; border-radius: 6px; background: #f6f6f6; }
.ck__row { display: flex; align-items: center; gap: 10px; min-height: 34px; }
.ck__row + .ck__row { border-top: 1px solid #ebebeb; }
.ck__l { flex: none; width: 52px; font-size: 10px; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-soft); }
.ck__v { flex: 1; min-width: 0; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; line-height: 18px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck__cp { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px; border-radius: 4px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 11px; color: var(--ink); }
.ck__cp:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.ck__cp svg { width: 12px; height: 12px; }
.ck__cp .roll { height: 16px; }
.ck__steps { margin-top: 10px; padding-left: 18px; font-size: 13px; line-height: 20px; color: var(--ink-soft); }
.ck__steps b { font-weight: 500; color: var(--ink); }

/* аккаунт */
.ca { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 52px; border-bottom: 1px solid #efefef; }
.ca__k { font-size: 10px; line-height: 15px; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-soft); }
.ca__v { font-size: 14px; line-height: 20px; }
.ca__l { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ca .t-tabs { flex: none; }
.ca__ed { height: 0; overflow: hidden; }
.cb__in { width: 100%; height: 44px; padding: 0 12px; border: 0; border-radius: 4px; background: #f6f6f6; font: inherit; font-size: 14px;
  color: var(--ink); }
.cb__in:focus { outline: none; box-shadow: inset 0 0 0 1px #cfcfcf; }
.cb__in.is-bad { animation: t-shake .36s var(--ease-smooth-out); box-shadow: inset 0 0 0 1px #c9c9c9; }
@keyframes t-shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.ca__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; }

/* вход без пароля */
.cg { padding: 28px 4px 8px; }
.cg__t { font-size: 22px; line-height: 28px; font-weight: 700; text-wrap: balance; }
.cg .cb__p { margin-top: 8px; font-size: 14px; line-height: 20px; }
.cg__or { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-size: 12px; color: var(--ink-soft); }
.cg__or::before, .cg__or::after { content: ""; flex: 1; height: 1px; background: #efefef; }
.cg__mail { display: flex; flex-direction: column; gap: 8px; }
.cg__tg { margin-top: 24px; }
.cg__sent { text-align: left; }
.cg__sent .cs__row { margin-top: 18px; }

@media (max-width: 720px) {
  .cb__panel { top: 76px; bottom: 0; left: 0; right: 0; width: auto; margin-left: 0; border-radius: 12px 12px 0 0; }
  .cb__grab { display: block; position: absolute; top: 6px; left: 50%; width: 36px; height: 4px; margin-left: -18px;
    border-radius: 2px; background: #dedede; z-index: 6; pointer-events: none; }
  .cb__scroll { padding: 18px 16px 40px; }
  .cs__ph { width: 76px; height: 54px; }
  .cs__more { padding-left: 0; }
  .ca { flex-wrap: wrap; padding: 8px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cb__ul, .cb__tab { transition: none !important; }
  .cb__in.is-bad { animation: none; }
}
.cb__view > .ca:first-child { margin-top: 6px; }

/* правила закреплены в левом нижнем углу на всех экранах (04.11): в подвале бесконечной выдачи их не догнать.
   Плашка цвета фона, чтобы читаться поверх фото карточек; под карточкой дома и кабинетом прячется */
.legal { position: fixed; left: 34px; bottom: 16px; z-index: 20; display: flex; gap: 14px; padding: 5px 10px;
  border-radius: 999px; background: rgba(245, 245, 245, .88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 12px; line-height: 16px; transition: opacity .3s ease, visibility .3s; }
.legal a { color: var(--ink-soft); text-decoration: none; }
.legal a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
body.is-loading .legal, body.is-house .legal, body.is-cab .legal { opacity: 0; visibility: hidden; }
@media (max-width: 767px) { .legal { left: 12px; bottom: 12px; } }

/* лента источников: агентство без фото получает первую букву названия вместо «f» Facebook (04.11) */
.src__mk--ag { background: var(--ink); text-transform: uppercase; }

/* строка «дома старше 30 дней» в конце свежих (04.11): та же тихая строка, что разделитель про цены, кнопка ссылкой */
.grid__sep--older span { max-width: 640px; }
.grid__more { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #c4c4c4;
  font: inherit; padding: 0; margin-left: 2px; }
.grid__more:hover { text-decoration-color: currentColor; }
/* плашка согласия на запись сессий (analytics.js) стоит внизу по центру: на экранах уже ~1100 px и на телефоне
   она закрывала правила слева. Пока она открыта, правила поднимаются над ней (нашёл Максим 04.11) */
.legal { transition: opacity .3s ease, visibility .3s, bottom .25s ease; }
@media (max-width: 1119px) { body:has(.cns.is-open) .legal { bottom: 84px; } }
@media (max-width: 767px) { body:has(.cns.is-open) .legal { bottom: 128px; } }
