/* 1.12: Geologica and the flag's colours replace Unbounded/Onest and black-and-yellow (owner: too AI-looking).
   ieftin Mini App — «Витрина» with «Линейка» (owner's pick, 27.11.2026: a mix of prototypes A and C).
   From A: warm off-white ground, products standing on flat colour fields (multiply drops the shops' white photo
   backgrounds), prices set big in Unbounded, catalog tiles of different sizes, one black floating bar, yellow as the
   single accent. From C: every shop's price as a point on one ruler (cheapest yellow, dearest coral), clean white
   product cards in the results, tabular figures.
   Colour roles: yellow = cheapest / chosen, black = action, coral = dearer or an error, green = a price drop.
   Fonts: Unbounded for prices and headings, Onest (made for Cyrillic) for everything read.
   What we avoid and why: docs/research/anti-slop.md; the direction: docs/research/app-design-skills.md. */


@font-face { font-family: Geologica; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/geologica-cyrillic-wght-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Geologica; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/geologica-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Geologica; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/geologica-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* by role (1.12, owner: "очень уж ИИ продукт"): the Moldovan flag's three colours, each with one job —
     blue acts, yellow marks the cheapest price, red the dearest. White ground, navy ink, one family: Geologica. */
  --ground: #ffffff;
  --surface: #ffffff;
  --sunken: #f1f3f6;
  --ink: #0d1b33;
  --ink-2: #33405a;
  --muted: #66708a;
  --line: #e2e6ee;
  --accent: #ffd200;
  --accent-ink: #0d1b33;
  --action: #0046ae;
  --action-ink: #ffffff;
  --bar: #ffffff;
  --bar-ink: #66708a;
  --cheaper: #0b7a43;
  --cheaper-bg: #e2f4ea;
  --dearer: #cc092f;
  --mid: #b7bfcd;
  --focus: #0046ae;
  --photo: #ffffff;
  --field: #f1f3f6;
  /* product photos are shot on white: they always stand on a light plate (multiply on a dark one turns them navy) */
  --plate: #f1f3f6;
  --on-field: #0d1b33;
  /* radius by role: fields and sheets round a little, rows not at all, chips are tags, not pills */
  --r-chip: 8px;
  --r-card: 14px;
  --r-row: 12px;
  --r-field: 12px;
  --r-sheet: 20px;
  --display: Geologica, system-ui, sans-serif;
  --safe-top: var(--tg-content-safe-area-inset-top, 0px);
  --safe-bottom: max(var(--tg-safe-area-inset-bottom, 0px), env(safe-area-inset-bottom, 0px));
  --nav-h: 62px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
.dark {
  --ground: #0a1426;
  --surface: #111e35;
  --sunken: #182844;
  --ink: #eef2f8;
  --ink-2: #c9d2e2;
  --muted: #8d99b2;
  --line: #22324f;
  --action: #4d8dff;
  --action-ink: #ffffff;
  --bar: #111e35;
  --bar-ink: #8d99b2;
  --cheaper: #4cc38a;
  --cheaper-bg: #12301f;
  --dearer: #ff5c6c;
  --mid: #4a5a78;
  --focus: #7aa7ff;
  --field: #eef1f6;
  --plate: #e4e8ef;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { min-height: 100vh; background: var(--ground); color: var(--ink); font: 400 16px/1.4 Geologica, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; text-align: inherit; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i--sm { width: 18px; height: 18px; }
.num { font-variant-numeric: tabular-nums; }
/* A price in the display face: figures big, "лей" small in the text face. */
.price { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1; }
.price small { font-family: Geologica, sans-serif; font-weight: 600; font-size: max(12px, .42em); letter-spacing: 0; margin-left: .25em; }
.price .from { margin: 0 .3em 0 0; }

/* ---------- Layout ---------- */
.app { max-width: 560px; margin: 0 auto; }
.view { min-height: 100vh; padding: calc(4px + var(--safe-top)) 0 calc(var(--nav-h) + var(--safe-bottom) + 44px); }
.view--bar { padding-bottom: calc(100px + var(--safe-bottom)); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px 6px; min-height: 56px; }
.h1 { margin: 0; font: 700 28px/1.1 var(--display); letter-spacing: -.02em; }
.h2 { margin: 0; font: 700 17px/1.25 var(--display); letter-spacing: -.02em; }
.hello { margin: 14px 20px 0; font: 700 34px/1.04 var(--display); letter-spacing: -.02em; }
.block { margin-top: 30px; }
.block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 20px 12px; }
.block__note { font-size: 13px; color: var(--muted); }
.link { font-weight: 600; font-size: 14px; padding: 6px 0; color: var(--muted); }
.link--quiet { color: var(--muted); }
.foot { margin: 22px 20px 0; font-size: 13px; line-height: 1.45; color: var(--muted); }

/* Wordmark: the name in the display face, a coral full stop. */
.brand { font: 800 20px var(--display); letter-spacing: -.02em; }
.brand b { color: var(--dearer); }

/* ---------- Search ---------- */
.search { margin: 0 16px; height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 6px 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-chip); }
.search:focus-within { border-color: var(--ink); }
.search__i { color: var(--muted); }
.search__input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; height: 100%; }
.search__input::placeholder { color: var(--muted); }
.search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
/* Home: the black field from A, with the yellow go button. */
.search--big { margin-top: 18px; height: 58px; padding-left: 20px; background: var(--bar); border-color: var(--bar); color: #fff; }
.search--big:focus-within { border-color: var(--accent); }
.search--big .search__i { color: #9a9a93; }
.search--big .search__input::placeholder { color: #9a9a93; }
.search__go { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; transition: transform .12s var(--ease); }
.search__go:active { transform: scale(.92); }
.search--bar { margin: 0; flex: 1; height: 44px; padding-right: 14px; }
.search--sheet { margin: 0 16px 8px; padding-right: 14px; }
.suggest { list-style: none; margin: 8px 16px 0; padding: 6px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; position: relative; z-index: 5; }
.suggest__item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 16px; color: var(--ink-2); }
.suggest__item b { color: var(--ink); font-weight: 600; }
.suggest__item .i { width: 18px; height: 18px; color: var(--muted); }
.suggest__item[aria-selected='true'], .suggest__item:active { background: var(--ground); }

/* ---------- Pills & chips ---------- */
.pill { height: 38px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; flex: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-chip); font-size: 14.5px; font-weight: 500; }
.pill:active { background: var(--sunken); }
.pill--ghost { border-color: transparent; background: none; color: var(--ink-2); padding: 0 4px; max-width: 52%; font-weight: 500; }
.pill--ghost span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill--on { background: var(--action); border-color: var(--action); color: var(--action-ink); }
.pill__n { font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px; }
.chips--active { margin-top: 10px; }
/* brands of a catalog node: one scrolling row, not a wall of chips */
.chips--rail { margin-top: 12px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; scroll-padding: 0 16px; }
.chips--rail::-webkit-scrollbar { display: none; }
.chips--rail .chip { flex: none; }
.crumbs { margin: 4px 20px -6px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; font-size: 13px; color: var(--muted); }
.crumbs button { padding: 4px 0; color: var(--ink-2); font-weight: 500; }
.crumbs__sep { opacity: .5; }
.foot--more { text-align: center; min-height: 24px; }
.chip { height: 38px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-chip); font-size: 14.5px; }
.chip:active { background: var(--sunken); }
.chip .i { width: 16px; height: 16px; color: var(--muted); }
.chip[aria-pressed='true'], .chip--on { background: var(--action); border-color: var(--action); color: var(--action-ink); }
.chip[aria-pressed='true'] .i, .chip--on .i { color: inherit; }
.chip:disabled { opacity: .4; }
.chip__n { font-size: 13px; color: var(--muted); }
.chip[aria-pressed='true'] .chip__n { color: inherit; opacity: .7; }

/* ---------- Buttons: round, one primary, one secondary ---------- */
.btn { height: 52px; padding: 0 22px; border-radius: var(--r-chip); font-weight: 600; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .12s var(--ease), opacity .15s; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .4; }
.btn--primary { background: var(--action); color: var(--action-ink); }
.btn--soft { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn--grow { flex: 1; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; flex: none; }
.icon-btn:active { background: var(--sunken); }

/* ---------- Photos and loading ---------- */
.ph { background: var(--sunken); border-radius: 6px; min-height: 14px; }
.pic { background: var(--photo); display: grid; place-items: center; overflow: hidden; color: #a5a59f; }
.pic img { width: 100%; height: 100%; object-fit: contain; }
/* On a colour field the photo loses its white box. */
.pic--float { background: none; }
.pic--float img { mix-blend-mode: multiply; }
.pic--float .i { width: 40px; height: 40px; color: rgb(11 11 15 / 30%); }

.tag { display: inline-flex; align-items: baseline; font-size: 17px; }
.drop { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; background: var(--ink); color: var(--accent); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.old { font-size: 13px; color: var(--muted); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.paper { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 10px; border: 1px dashed var(--muted); color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; }

/* ---------- Home: the day's best prices, on colour fields ---------- */
/* on a light row in the dark theme ink is light too: a yellow pill with dark text reads on both */
.dark .drop, .shop--best .drop { background: var(--accent); color: var(--accent-ink); }

/* ---------- Home: watching ---------- */
.strip { list-style: none; margin: 0 16px; padding: 0; background: var(--surface); border-radius: var(--r-card); overflow: hidden; }
.strip > li + li { border-top: 1px solid var(--line); }
.mini { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 13px 16px; }
.mini:active { background: var(--sunken); }
.mini__q { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini__s { grid-column: 1; font-size: 13px; color: var(--muted); }
.mini__s--ok { color: var(--cheaper); font-weight: 600; }
.mini__p { grid-row: 1 / 3; grid-column: 2; align-self: center; font-size: 17px; }

/* ---------- Home: the sale going on, drops since yesterday, popular sections in one row ---------- */
.event { margin: 18px 16px 0; padding: 16px 18px; border-radius: var(--r-card); border: 1px solid rgb(255 255 255 / 10%); background: var(--ev-bg, var(--ink)); color: var(--ev-fg, #fff); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: center; }
.event__e { grid-row: 1 / 3; font-size: 30px; line-height: 1; }
.event__n { font: 700 19px/1.1 var(--display); letter-spacing: -.02em; }
.event__s { font-size: 13.5px; opacity: .78; font-variant-numeric: tabular-nums; }
.home-more { display: block; box-sizing: border-box; text-align: center; color: var(--ink); margin: 10px 16px 0; width: calc(100% - 32px); height: 44px; border-radius: var(--r-chip); background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; }
.home-more:active { background: var(--sunken); }
.secs { list-style: none; margin: 0; padding: 0 16px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 16px; scrollbar-width: none; }
.secs::-webkit-scrollbar { display: none; }
.secs > li { flex: none; width: 132px; height: 164px; scroll-snap-align: start; }

/* ---------- Home: category tiles of different sizes on colour fields ----------
   Name and price on top, the photo below them in its own box, centred and whole (28.11: the owner found photos
   pushed into the bottom-right corner and cut off poor). A wide tile puts the photo on its right. */
.bento { list-style: none; margin: 0; padding: 0 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; grid-auto-flow: dense; gap: 10px; }
.bento > .tall { grid-row: span 2; }
.bento > .wide { grid-column: span 2; }
.tile { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: stretch; padding: 14px 14px 10px; border-radius: var(--r-card); background: var(--tint, var(--field)); color: var(--on-field); overflow: hidden; text-align: left; transition: transform .15s var(--ease); }
.tile:active { transform: scale(.98); }
.tile__name { font: 700 15px/1.15 var(--display); letter-spacing: -.02em; overflow-wrap: normal; }
.tile__from { margin-top: 3px; white-space: nowrap; font-size: 12.5px; font-weight: 500; color: rgb(11 11 15 / 68%); font-variant-numeric: tabular-nums; }
.tile__name, .tile__from { order: -1; }
.tile__pic { flex: 1; min-height: 0; margin-top: 8px; position: relative; }
/* the photo fills its box and never pushes past it: object-fit keeps it whole */
.tile__pic img { position: absolute; inset: 0; }
.tall .tile__pic { margin: 12px -4px 0; }
.wide .tile { display: grid; grid-template-columns: minmax(0, 1fr) 46%; grid-template-rows: auto 1fr; column-gap: 8px; padding-bottom: 14px; }
.wide .tile__name { grid-column: 1; }
.wide .tile__from { grid-column: 1; align-self: start; }
.wide .tile__pic { grid-column: 2; grid-row: 1 / 3; margin: 0; }
.tile--ph { background: var(--sunken); }

/* ---------- Catalog tab: sections as a sticky row of chips, every node as a photo with its name under it ---------- */
.top--stack { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 2px; }
.top__note { margin: 0; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.top__note:empty { display: none; }
.secbar { position: sticky; top: 0; z-index: 3; margin-top: 12px; padding: calc(6px + var(--safe-top)) 0 10px; background: var(--ground); }
.secbar__row { display: flex; gap: 8px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; scroll-padding: 16px; }
.secbar__row::-webkit-scrollbar { display: none; }
.sec-chip { height: 40px; flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 0 15px 0 12px; border-radius: var(--r-chip); background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; font-weight: 500; white-space: nowrap; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.sec-chip--ph { background: var(--sunken); border-color: var(--sunken); }
.sec-chip .i { width: 19px; height: 19px; color: var(--muted); }
.sec-chip[aria-current='true'] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.sec-chip[aria-current='true'] .i { color: inherit; }
.cat { padding: 4px 16px 0; }
.cat__sec { scroll-margin-top: calc(64px + var(--safe-top)); padding-top: 14px; }
.cat__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 2px 12px; }
.cat__h { margin: 0; font: 700 19px/1.2 var(--display); letter-spacing: -.02em; }
.cat__all { display: inline-flex; align-items: center; gap: 2px; padding: 6px 0; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cat__all .i { width: 16px; height: 16px; }
.cat__count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cat__g { margin: 18px 2px 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); letter-spacing: -.01em; }
.cat__more { margin: 14px 2px 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.cat__link { color: var(--ink-2); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.node__from { margin-top: -3px; padding: 0 2px; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cat__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
.node { width: 100%; display: flex; flex-direction: column; gap: 7px; text-align: left; }
.node__pic { width: 100%; aspect-ratio: 1; border-radius: 20px; background: var(--tint, var(--field)); padding: 12%; transition: transform .15s var(--ease); }
.node__pic img { min-height: 0; }
.node:active .node__pic { transform: scale(.96); }
.node__name { padding: 0 2px; font-size: 13px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; overflow-wrap: normal; hyphens: auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.node__n { margin-top: -4px; padding: 0 2px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.node--ph .node__pic { background: var(--sunken); }
.node--ph .node__name { height: 14px; width: 70%; background: var(--sunken); border-radius: 6px; }

/* ---------- Profile ---------- */
.me-hero { margin: 6px 16px 0; padding: 18px; border-radius: var(--r-card); background: var(--sunken); color: var(--ink); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.me-hero:empty { display: none; }
.me-stat { display: flex; flex-direction: column; gap: 4px; }
.me-stat b { font: 700 26px/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.me-stat span { font-size: 13px; color: var(--muted); }
.me-stat--accent b { color: var(--cheaper); }
.me-h { margin: 26px 20px 8px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.rows { list-style: none; margin: 0 16px; padding: 0; background: var(--surface); border-radius: var(--r-card); overflow: hidden; }
.rows > li + li { border-top: 1px solid var(--line); }
.row { width: 100%; min-height: 62px; display: flex; align-items: center; gap: 14px; padding: 12px 16px; cursor: pointer; text-align: left; }
.row:active { background: var(--sunken); }
.row > .i:first-child { color: var(--muted); }
.row__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-weight: 500; }
.row__t small { font-size: 13px; font-weight: 400; color: var(--muted); line-height: 1.3; }
.row__go { color: var(--muted); }
.row--danger, .row--danger > .i:first-child { color: var(--dearer); }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 50px; height: 30px; margin: 0; border-radius: 15px; background: var(--mid); position: relative; cursor: pointer; transition: background .2s var(--ease); }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch:checked { background: var(--action); }
.switch:checked::after { transform: translateX(20px); background: var(--accent); }
.dark .switch:checked::after { background: var(--action-ink); }

/* ---------- Results ---------- */
.bar { display: flex; align-items: center; gap: 4px; padding: calc(8px + var(--safe-top)) 12px 8px 4px; margin-top: calc(-4px - var(--safe-top)); position: sticky; top: 0; z-index: 4; background: var(--ground); }
.res-head { padding: 14px 20px 2px; }
.h1--res { font-size: 26px; overflow-wrap: anywhere; }
.res-sub { margin: 6px 0 0; color: var(--muted); font-size: 14px; min-height: 20px; font-variant-numeric: tabular-nums; }
/* Two pills: shops or 999.md ads. */
.seg { margin: 14px 16px 0; padding: 4px; display: flex; gap: 4px; background: var(--sunken); border-radius: var(--r-chip); }
.seg__btn { flex: 1; height: 38px; border-radius: var(--r-chip); font-weight: 600; font-size: 14.5px; color: var(--muted); text-align: center; white-space: nowrap; transition: background .15s, color .15s; }
.seg__btn[aria-selected='true'] { background: var(--action); color: var(--action-ink); }
.seg__n { font-weight: 500; opacity: .7; font-variant-numeric: tabular-nums; }
.tools { display: flex; gap: 8px; padding: 12px 16px 0; overflow-x: auto; scrollbar-width: none; }
.tools::-webkit-scrollbar { display: none; }

/* Product cards from C: a white card, the photo on white, the price big. */
.grid { list-style: none; margin: 14px 0 0; padding: 0 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
/* a brand's sections (task 0.11): catalog nodes, two to a row, big enough for "Фены, бритвы и красота" */
.brand-secs { margin-top: 16px; padding: 0 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.brand-secs .node__name { font-size: 15px; }
.grid > li { position: relative; }
.card { width: 100%; height: 100%; display: flex; flex-direction: column; padding: 8px; background: var(--surface); border-radius: var(--r-card); overflow: hidden; transition: transform .15s var(--ease); }
.card:active { transform: scale(.98); }
.card__pic { aspect-ratio: 1 / 1; padding: 12px; border-radius: 16px; }
.card__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 8px 6px 4px; }
.card__name { font-weight: 500; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.card__meta { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.card__row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.card .price { font-size: 18px; }
.card__where { font-size: 12.5px; color: var(--muted); }
.card--off { opacity: .55; }
.heart { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; display: grid; place-items: center; color: #8a8a84; }
.heart .i { width: 21px; height: 21px; }
.heart[aria-pressed='true'] { color: var(--dearer); }
.heart[aria-pressed='true'] .i { fill: currentColor; }
.heart.pop .i { animation: pop .3s var(--ease); }
@keyframes pop { 40% { transform: scale(1.25); } }

.ads { list-style: none; margin: 14px 16px 0; padding: 0; background: var(--surface); border-radius: var(--r-card); overflow: hidden; }
.ads > li + li { border-top: 1px solid var(--line); }
.ad { width: 100%; display: flex; gap: 12px; align-items: center; padding: 10px 14px; }
.ad:active { background: var(--sunken); }
.ad__pic { width: 72px; height: 72px; border-radius: 12px; flex: none; padding: 4px; border: 1px solid var(--line); }
.ad__body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ad__name { font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad__sub { font-size: 12.5px; color: var(--muted); }
.ad--warn .ad__sub { color: var(--dearer); }
.ad__cond { font-weight: 600; color: var(--ink-2); }
.ad__cond--ref { color: var(--accent-ink); background: var(--accent); padding: 0 5px; border-radius: 4px; }
.ad .price { font-size: 17px; }

/* Live check while searching: every source and what it answered. Stops when the search ends. */
.live { margin: 14px 16px 0; padding: 14px 16px; background: var(--surface); border-radius: var(--r-card); }
.live__head { display: flex; align-items: baseline; gap: 10px; font-weight: 600; font-size: 15px; }
.live__count { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.live__list { list-style: none; margin: 8px 0 0; padding: 0; }
.live__item { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 28px; font-size: 14px; color: var(--muted); }
.live__item .i { width: 16px; height: 16px; }
.live__item--done { color: var(--ink); }
.live__item--done .i { color: var(--cheaper); }
.live__item--fail .i { color: var(--dearer); }
.live__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live__p { font-variant-numeric: tabular-nums; font-weight: 600; }
.live__spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Product ---------- */
.view--product { padding-top: 0; }
.bar--float { position: absolute; top: 0; left: 0; right: 0; margin: 0; padding: calc(14px + var(--safe-top)) 16px 0; justify-content: space-between; background: none; max-width: 560px; margin-inline: auto; }
.bar--float .icon-btn { background: var(--surface); color: var(--ink); }
.bar--float .icon-btn--heart[aria-pressed='true'] { color: var(--dearer); }
.bar--float .icon-btn--heart[aria-pressed='true'] .i { fill: currentColor; }
.view--product { position: relative; }
.p-hero { display: flex; flex-direction: column; }
.p-hero__pic { height: calc(360px + var(--safe-top)); padding: calc(64px + var(--safe-top)) 40px 44px; background: var(--field); }
.p-hero__pic img { mix-blend-mode: multiply; }
.p-hero__info { position: relative; margin-top: -28px; padding: 22px 20px 0; border-radius: var(--r-sheet) var(--r-sheet) 0 0; background: var(--ground); display: flex; flex-direction: column; gap: 4px; }
.h1--product { font: 600 19px/1.25 Geologica, sans-serif; letter-spacing: -.01em; }
.p-hero__sub { margin: 0; color: var(--muted); font-size: 14px; }
.p-price { margin-top: 16px; display: flex; align-items: baseline; gap: 8px; }
.p-price__from { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.p-price__n { font: 700 56px/.9 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.p-price__cur { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.p-where { margin: 10px 0 0; font-size: 15px; color: var(--ink-2); }
.p-where b { color: var(--ink); }
.save { margin: 14px 20px 0; padding: 9px 14px; display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-ink); border-radius: 14px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.save .i { width: 18px; height: 18px; }
.save b { font-variant-numeric: tabular-nums; }
.view--product > .save { display: flex; width: fit-content; max-width: calc(100% - 40px); }

/* The ruler from C: every shop's price as a point on one line. Cheapest yellow, dearest coral, the rest grey. */
.spread { margin: 16px 16px 0; padding: 14px 16px 6px; border-radius: var(--r-card); background: var(--surface); }
.spread__k { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 600; }
.spread__k span { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.ruler { position: relative; height: 96px; margin: 8px 8px 0; }
.ruler__axis { position: absolute; left: 0; right: 0; top: 46px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--mid) 45%, var(--dearer)); opacity: .45; }
.ruler__pt { position: absolute; top: 40px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--mid); box-shadow: 0 0 0 3px var(--surface); transform: scale(0); animation: pt .5s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 50ms + 80ms); }
.ruler__pt--best { background: var(--accent); box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink); width: 18px; height: 18px; margin-left: -9px; top: 39px; z-index: 1; }
.ruler__pt--dear { background: var(--dearer); }
@keyframes pt { to { transform: scale(1); } }
.ruler__lbl { position: absolute; transform: translateX(-50%); white-space: nowrap; font-size: 12px; font-weight: 600; line-height: 1.2; text-align: center; color: var(--muted); }
.ruler__lbl b { display: block; font: 700 14px var(--display); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.ruler__lbl--up { top: 0; }
.ruler__lbl--down { top: 64px; }
.ruler__lbl--down b { color: var(--dearer); }

.seg--product { margin-top: 20px; }
.shops { list-style: none; margin: 12px 16px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.shops:empty { display: none; }
.shops + .shops { margin-top: 18px; }
.shop { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--surface); border-radius: var(--r-row); transition: transform .15s var(--ease); }
.shop:active { transform: scale(.985); }
.shop__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mid); flex: none; }
.shop__dot--best { background: var(--accent); }
.shop__dot--dear { background: var(--dearer); }
.shop__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.shop__name { font-weight: 600; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop__sub { font-size: 12.5px; color: var(--muted); }
.shop__sub--ok { color: var(--cheaper); }
.shop__right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.shop__p { font-size: 18px; }
.shop__d { font-size: 12.5px; font-weight: 600; color: var(--dearer); font-variant-numeric: tabular-nums; }
.shop .i { width: 16px; height: 16px; color: var(--muted); }
/* The cheapest shop: the black row from A. */
.shop--best { background: var(--action); color: var(--action-ink); }
.shop--best .shop__sub, .shop--best .shop__sub--ok { color: color-mix(in srgb, var(--action-ink) 65%, transparent); }
.shop--best .shop__d { color: var(--accent); }
.dark .shop--best .shop__d { color: var(--ink-2); }
.shop--best .i { color: inherit; }
.shop--best .shop__dot { box-shadow: 0 0 0 2px var(--action); }
.shop--off { opacity: .5; }
.more { width: 100%; padding: 12px 16px; font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 6px; color: var(--muted); }

.chart { margin: 12px 16px 0; padding: 16px; background: var(--surface); border-radius: var(--r-card); }
.chart__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.chart__t { font-weight: 600; font-size: 15px; }
.chart__range { font-size: 13px; color: var(--muted); }
.chart svg { display: block; width: 100%; height: 180px; margin-top: 10px; overflow: visible; }
.chart__line { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.chart__grid { stroke: var(--line); stroke-width: 1; }
.chart__lbl { fill: var(--muted); font: 500 11px Geologica, sans-serif; }
.chart__dot { fill: var(--accent); stroke: var(--ink); stroke-width: 2; }
.facts { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.fact { padding: 12px 0 0; display: flex; flex-direction: column; gap: 4px; }
.fact__k { font-size: 12.5px; color: var(--muted); }
.fact__v { font-size: 17px; }
.note { margin: 12px 16px 0; padding: 18px; background: var(--surface); border-radius: var(--r-card); }
.note p { margin: 8px 0 0; color: var(--ink-2); line-height: 1.45; }

/* ---------- Мои цены ---------- */
.mine-sum { margin: 2px 20px 4px; font-size: 15px; color: var(--ink-2); }
.mine-sum b { color: var(--ink); }
.watch-list { list-style: none; margin: 14px 16px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.watch-list:empty { display: none; }
.watch { padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); border-radius: var(--r-card); }
.watch__top { display: flex; align-items: flex-start; gap: 8px; }
.watch__q { flex: 1; font-weight: 600; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.watch__del { width: 36px; height: 36px; margin: -6px -8px 0 0; color: var(--muted); }
.watch__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.watch__row .price { font-size: 26px; }
.watch__state { font-size: 13.5px; color: var(--muted); }
.watch__state--ok { color: var(--cheaper); font-weight: 600; }
.goal { display: flex; flex-direction: column; gap: 6px; }
.goal__bar { height: 6px; border-radius: 3px; background: var(--sunken); overflow: hidden; }
.goal__fill { height: 100%; border-radius: 3px; background: var(--ink); transform-origin: left; transform: scaleX(var(--share, 0)); transition: transform .3s var(--ease); }
.goal__txt { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.watch__open { align-self: flex-start; height: 36px; padding: 0 14px; border-radius: var(--r-chip); background: var(--sunken); font-weight: 600; font-size: 14px; }

/* ---------- Empty / error states: words and the next step, no illustration ---------- */
.empty { margin: 32px 20px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.empty p { margin: 0; color: var(--ink-2); line-height: 1.45; }
.empty__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.empty .btn { height: 46px; }

/* ---------- Bottom bar (1.12): a plain full-width bar, every tab labelled, the open one in blue with a line on top ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; height: calc(var(--nav-h) + var(--safe-bottom)); padding: 0 6px var(--safe-bottom); display: flex; align-items: stretch; background: var(--bar); border-top: 1px solid var(--line); }
.tabbar--hide { display: none; }
/* Our own "Назад" on every inner screen: big, labelled, bottom left, above the tab bar or Telegram's button. */
.backpill { position: fixed; left: 14px; bottom: calc(var(--nav-h) + 12px + var(--safe-bottom)); z-index: 11; height: 48px; padding: 0 18px 0 14px; display: flex; align-items: center; gap: 8px; border-radius: var(--r-chip); background: var(--surface); color: var(--ink); border: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.backpill:active { transform: scale(.97); }
.backpill[hidden] { display: none; }
.backpill--low { bottom: calc(16px + var(--safe-bottom)); }
html:has(dialog[open]) .backpill { display: none; }
@media (min-width: 1024px) { .backpill { display: none; } }
.tabbar__btn { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--bar-ink); font-size: 11.5px; font-weight: 500; transition: color .2s var(--ease); }
.tabbar__btn::before { content: ''; position: absolute; top: -1px; left: 28%; right: 28%; height: 2px; background: transparent; }
.tabbar__btn[aria-current='page'] { color: var(--action); }
.tabbar__btn[aria-current='page']::before { background: var(--action); }

.tabbar__n { position: absolute; top: 4px; right: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--dearer); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
/* Outside Telegram: the buy button floats like the bar. */
.webbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 11; max-width: 560px; margin: 0 auto; display: flex; gap: 8px; padding: 10px 16px calc(14px + var(--safe-bottom)); }
.webbar .btn { height: 60px; }
.webbar .btn--primary { flex: 2.4; padding: 0 8px 0 22px; justify-content: space-between; white-space: nowrap; overflow: hidden; background: var(--bar); color: #fff; }
.dark .webbar .btn--primary { background: var(--action); color: var(--action-ink); }
.webbar .btn--primary .go { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.webbar .btn--primary span:first-child { overflow: hidden; text-overflow: ellipsis; }
.webbar .btn--soft { flex: none; padding: 0 20px; }

/* ---------- Sheets ---------- */
.sheet { width: 100%; max-width: 560px; max-height: 88vh; margin: auto auto 0; padding: 0 0 calc(10px + var(--safe-bottom)); border: 0; border-radius: var(--r-sheet) var(--r-sheet) 0 0; background: var(--surface); color: var(--ink); display: flex; flex-direction: column; }
.sheet:not([open]) { display: none; }
.sheet[open] { animation: sheet-up .32s var(--ease); }
.sheet::backdrop { background: rgb(0 0 0 / 45%); }
@keyframes sheet-up { from { transform: translateY(60px); opacity: 0; } }
.sheet--tall { height: 88vh; }
.sheet__grip { width: 36px; height: 4px; border-radius: 2px; background: var(--line); margin: 8px auto 0; flex: none; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 6px 20px; flex: none; }
.sheet__body { overflow-y: auto; padding: 0 0 8px; flex: 1; overscroll-behavior: contain; }
.sheet__foot { display: flex; gap: 8px; padding: 10px 16px 4px; border-top: 1px solid var(--line); flex: none; }
.facet { padding: 14px 20px; border-top: 1px solid var(--line); }
.facet:first-child { border-top: 0; }
.facet__t { margin: 0 0 10px; font-weight: 700; font-size: 15.5px; }
.facet__vals { display: flex; flex-wrap: wrap; gap: 8px; }
.range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.range span { color: var(--muted); }
.field { height: 46px; width: 100%; padding: 0 14px; border-radius: var(--r-field); border: 1px solid var(--line); background: var(--surface); font-variant-numeric: tabular-nums; outline: 0; }
.field:focus { border-color: var(--ink); }
.dual { position: relative; height: 32px; margin-top: 6px; }
.dual__track, .dual__fill { position: absolute; top: 14px; height: 4px; border-radius: 2px; }
.dual__track { left: 0; right: 0; background: var(--sunken); }
.dual__fill { background: var(--ink); }
.dual input { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.dual input::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); border: 2px solid var(--ink); }
.dual input::-moz-range-thumb { pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 2px solid var(--ink); }
.switch-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.switch-row__t { font-weight: 700; font-size: 15.5px; }
.switch-row__s { display: block; font-size: 13px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.switch { width: 50px; height: 30px; border-radius: 15px; background: var(--sunken); position: relative; flex: none; transition: background .15s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 25%); transition: transform .2s var(--ease); }
[aria-checked='true'] > .switch { background: var(--ink); }
[aria-checked='true'] > .switch::after { transform: translateX(20px); background: var(--accent); }
.options { list-style: none; margin: 0; padding: 0; }
.options > li + li { border-top: 1px solid var(--line); }
.option { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 20px; font-size: 16px; }
.option:active { background: var(--sunken); }
.option__sub { color: var(--muted); font-size: 13.5px; margin-left: 8px; }
.places__group { padding: 16px 20px 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.places__none { padding: 10px 20px; color: var(--muted); }
.watch__name { margin: 0 20px; font-weight: 600; font-size: 17px; line-height: 1.3; }
.watch__now { margin: 4px 20px 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.watch__target { margin: 16px 20px 12px; display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 15px; }
.money-input { display: flex; align-items: center; gap: 8px; height: 62px; padding: 0 18px; border-radius: var(--r-field); border: 1.5px solid var(--ink); }
.money-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 700 28px var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.money-input span { color: var(--muted); font-weight: 600; font-size: 17px; }
.watch__hint { margin: 12px 20px 0; font-size: 13.5px; color: var(--muted); line-height: 1.4; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(var(--nav-h) + var(--safe-bottom) + 26px); z-index: 30; max-width: 528px; margin: 0 auto; padding: 14px 16px; border-radius: 18px; background: var(--ink); color: var(--ground); font-size: 14.5px; line-height: 1.35; animation: sheet-up .3s var(--ease); }

@media (max-width: 350px) { .hello { font-size: 28px; } .cat__grid { gap: 14px 8px; } .node__name { font-size: 12.5px; } .p-price__n { font-size: 46px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; } }

/* model page (29.11): variants of the model, a live search for 999.md */
.p-variants { display: flex; gap: 8px; padding: 4px 16px 12px; overflow-x: auto; scrollbar-width: none; }
.p-variants::-webkit-scrollbar { display: none; }
.p-variants .chip { flex: none; flex-direction: column; align-items: flex-start; height: auto; padding: 8px 14px; gap: 2px; }
.p-variants .chip small { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.p-variants .chip[aria-pressed='true'] small { color: inherit; opacity: .8; }
.p-live { display: block; width: calc(100% - 32px); margin: 12px 16px 0; }

/* ---------- Start screen from our base (29.11) ----------
   Owner: "random discounts on the start screen, bad search buttons, not clear what one can do". The first screen
   says how big the comparison is, offers three ways in (words, a shop's link, an example) and shows the thing a
   price comparison is for: one model, every shop's price as a dot on one ruler (C), photos on flat fields (A). */
.fresh { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.fresh::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--cheaper); }
.hello { font-size: 32px; }
.scale { margin: 12px 20px 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--muted); }
.scale b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.scale__ph { display: block; width: 260px; height: 18px; }
.search--big .search__go { width: auto; height: 46px; padding: 0 20px; border-radius: var(--r-chip); font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; }
.search__clear { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); flex: none; }
.search__clear:active { background: var(--sunken); }
.search--bar:has(.search__clear:not([hidden])) { padding-right: 5px; }

.ways { margin-top: 12px; }
.way { margin: 0 16px; width: calc(100% - 32px); display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: var(--r-row); background: var(--surface); border: 1px solid var(--line); text-align: left; transition: transform .12s var(--ease); }
.way:active { transform: scale(.99); background: var(--sunken); }
.way > .i { width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); stroke-width: 2; }
.way__t { display: flex; flex-direction: column; font-weight: 700; font-size: 15.5px; line-height: 1.2; }
.way__t small { margin-top: 3px; font-weight: 500; font-size: 13px; line-height: 1.3; color: var(--muted); }
.tries { margin-top: 10px; align-items: center; }
.tries__k { flex: none; font-size: 13px; color: var(--muted); }
.tries .chip { height: 34px; font-size: 14px; padding: 0 12px; }

.cmps { list-style: none; margin: 0; padding: 0 16px; display: grid; gap: 10px; }
.cmp { width: 100%; display: grid; grid-template-columns: 76px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 14px; row-gap: 6px; padding: 14px 16px 14px 14px; border-radius: var(--r-card); background: var(--surface); text-align: left; align-items: start; transition: transform .12s var(--ease); }
.cmp:active { transform: scale(.99); }
.cmp__pic { grid-row: 1 / 3; width: 76px; height: 76px; border-radius: 16px; background: var(--tint, var(--field)); }
.cmp__pic img { padding: 6px; }
.cmp__name { font-weight: 650; font-size: 15px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cmp__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cmp__save { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; background: var(--cheaper-bg); color: var(--cheaper); font-size: 12px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mruler { grid-column: 1 / -1; position: relative; display: block; height: 18px; margin: 8px 7px 0; }
.mruler__axis { position: absolute; left: 0; right: 0; top: 8px; height: 2px; border-radius: 1px; background: var(--line); }
.mruler__pt { position: absolute; top: 3px; width: 2px; height: 12px; margin-left: -1px; border-radius: 1px; background: var(--muted); opacity: .55; }
.mruler__pt--best, .mruler__pt--dear { top: 2px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; opacity: 1; z-index: 1; }
.mruler__pt--best { background: var(--accent); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--ink); }
.mruler__pt--dear { background: var(--dearer); box-shadow: 0 0 0 2px var(--surface); }
.cmp__ends { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cmp__lo { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.cmp__lo .price { font-size: 22px; }
.cmp__shop { font-size: 13px; font-weight: 600; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp__hi { flex: none; font-size: 13px; font-weight: 600; color: var(--dearer); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cmp--ph { height: 172px; background: var(--sunken); }

/* the answer to a pasted shop link: the page as it is, then where the same product costs less */
.linkcard { margin: 12px 16px 0; border-radius: var(--r-card); background: var(--surface); overflow: hidden; }
.linkcard__page { width: 100%; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; text-align: left; }
.linkcard__k { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.linkcard__t { font-weight: 650; font-size: 15px; line-height: 1.3; }
.linkcard__there { color: var(--ink-2); }
.linkcard__there .price { font-size: 20px; }
.linkcard__v { margin: 0; padding: 14px 16px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.35; color: var(--ink-2); }
.linkcard__v--win { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 10px; border-top: 0; background: var(--accent); color: var(--accent-ink); text-align: left; }
.linkcard__v--win > .i { grid-row: 1 / 3; grid-column: 2; }
.linkcard__w { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkcard__p { display: flex; align-items: center; gap: 8px; }
.linkcard__p .price { font-size: 22px; }
.linkcard__v--win .cmp__save { background: var(--accent-ink); color: var(--accent); }
.linkcard__v--same { color: var(--cheaper); font-weight: 600; }

/* every tab says its name (owner, 29.11: "not clear what one can do"): icon over a short label */
.tabbar { padding: 6px; }
.tabbar__btn { flex-direction: column; gap: 2px; height: 50px; min-width: 70px; padding: 0 8px; font-size: 11px; font-weight: 600; }
.tabbar__btn[aria-current='page'] { padding: 0 8px; }
.tabbar__btn .i { width: 21px; height: 21px; }
.tabbar__btn:not([aria-current='page']) .tabbar__t { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
.tabbar__n { top: 2px; right: 10px; }
@media (max-width: 340px) { .tabbar__btn { min-width: 62px; } }

/* big comparison cards: a colour field (A), the gap between the dearest and the cheapest shop set huge, the ruler (C) */
.heroes { list-style: none; margin: 0 0 10px; padding: 0 16px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 16px; scrollbar-width: none; }
.heroes::-webkit-scrollbar { display: none; }
.heroes > li { flex: none; scroll-snap-align: start; }
.hero { width: 300px; height: 318px; position: relative; display: flex; flex-direction: column; padding: 16px 18px 16px; border-radius: 26px; background: var(--tint, var(--field)); color: var(--on-field); overflow: hidden; text-align: left; transition: transform .15s var(--ease); }
.hero:active { transform: scale(.98); }
.hero--ph { background: var(--sunken); }
.hero__k { position: relative; z-index: 1; align-self: flex-start; padding: 4px 10px; border-radius: 12px; background: var(--on-field); color: #fff; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hero__name { position: relative; z-index: 1; margin-top: 10px; max-width: 54%; font-weight: 700; font-size: 16px; line-height: 1.22; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hero__pic { position: absolute; right: 6px; top: 14px; width: 142px; height: 150px; }
.hero__save { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.hero__l { font-size: 12.5px; font-weight: 600; color: rgb(11 11 15 / 62%); }
.hero__save .price { font-size: 42px; letter-spacing: -.02em; }
.hero .mruler { margin: 12px 7px 0; }
.hero .mruler__axis { background: rgb(11 11 15 / 16%); }
.hero .mruler__pt { background: var(--on-field); opacity: .38; }
.hero .mruler__pt--best { opacity: 1; background: var(--accent); box-shadow: 0 0 0 2px var(--tint, var(--field)), 0 0 0 3.5px var(--on-field); }
.hero .mruler__pt--dear { opacity: 1; background: #d9431f; box-shadow: 0 0 0 2px var(--tint, var(--field)); }
.hero__ends { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 12px; font-weight: 600; color: rgb(11 11 15 / 62%); }
.hero__lo, .hero__hi { display: flex; flex-direction: column; min-width: 0; }
.hero__hi { text-align: right; align-items: flex-end; }
.hero__lo span, .hero__hi span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 130px; }
.hero__ends b { font: 700 16px var(--display); letter-spacing: -.02em; color: var(--on-field); font-variant-numeric: tabular-nums; }
.hero__hi b { color: #b8361a; }

/* ---------- Start screen, action first (owner, 29.11: "the first page is a call to action") ----------
   Mockup: docs/design/mockup-2026-11-29/Main.dc.html. The search in a white field with a black ring, a yellow card
   for a shop link, two cards for the catalog and for waiting for a drop, today's gaps between shops with section
   tabs, the sections as photo tiles. Who we are lives on the about screen (About.dc.html). */
.top .about-btn { margin-left: auto; max-width: none; }
.top .about-btn .i { color: var(--muted); }
.hello { margin: 12px 20px 0; font-size: 32px; }
.lead { margin: 8px 20px 0; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.search--big { margin-top: 16px; height: 60px; padding: 0 6px 0 16px; background: var(--surface); color: var(--ink); border: 2px solid var(--ink); border-radius: 18px; }
.search--big:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 70%, transparent); }
.search--big .search__i { color: var(--ink); }
.search--big .search__input::placeholder { color: var(--muted); }
.search--big .search__go { height: 48px; padding: 0 18px; border-radius: 13px; background: var(--action); color: var(--action-ink); font-weight: 600; font-size: 15px; }
.tries { margin-top: 12px; }
.tries .chip { height: 36px; font-size: 14px; padding: 0 14px; font-weight: 500; }

.acts { margin: 22px 16px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.act { border-radius: 24px; padding: 16px; text-align: left; display: flex; flex-direction: column; gap: 6px; min-height: 150px; transition: transform .12s var(--ease); }
button.act:active { transform: scale(.98); }
.act__t { margin: 0; font-weight: 700; font-size: 16px; line-height: 1.2; }
.act__s { margin: 0; font-size: 13px; line-height: 1.35; color: var(--muted); }
.act__i { width: 28px; height: 28px; margin-bottom: auto; }
.act--link { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; gap: 14px; padding: 18px; background: var(--accent); color: var(--accent-ink); }
.act--link .act__t { font-size: 18px; }
.act--link .act__s { font-size: 14px; color: var(--accent-ink); opacity: .85; }
.act__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.act__btn { margin-top: 8px; height: 46px; padding: 0 18px; border-radius: var(--r-chip); background: #0b0b0f; color: #fff; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.act__btn:active { transform: scale(.97); }
.act__demo { width: 100px; flex: none; display: flex; flex-direction: column; align-items: stretch; }
.demo__p { display: flex; flex-direction: column; padding: 7px 9px; border-radius: 10px; background: rgb(255 255 255 / 70%); color: #0b0b0f; font-size: 11px; line-height: 1.25; }
.demo__p span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #3a3a3f; }
.demo__p b { font-size: 13px; font-variant-numeric: tabular-nums; }
.demo__p--win { background: #0b0b0f; }
.demo__p--win span { color: #c9c9c3; }
.demo__p--win b { color: #ffd60a; }
.demo__arrow { align-self: center; width: 2px; height: 12px; background: #0b0b0f; }
.act--cat { background: var(--surface); color: var(--ink); }
.act--watch { background: var(--bar); color: #fff; }
.act--watch .act__s { color: #c9c9c3; }
.act--watch .act__i { color: var(--accent); }

.h2--big { font-size: 20px; }
.block__head--stack { flex-direction: column; align-items: flex-start; gap: 4px; }
.dtabs { margin-bottom: 10px; gap: 6px; }
.dtab { height: 36px; padding: 0 13px; font-size: 14px; font-weight: 600; }
.deals { list-style: none; margin: 0 16px; padding: 0; background: var(--surface); border-radius: var(--r-card); overflow: hidden; }
.deals > li + li { border-top: 1px solid var(--line); }
.deal { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; }
.deal:active { background: var(--sunken); }
.deal--ph { height: 88px; background: var(--sunken); }
.deal__pic { width: 64px; height: 64px; flex: none; border-radius: 14px; background: var(--tint, var(--field)); }
.deal__pic img { padding: 5px; }
.deal__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.deal__name { font-weight: 600; font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.tiles3 { list-style: none; margin: 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile3 { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 6px; padding: 5px 5px 10px; border-radius: 20px; background: var(--surface); text-align: left; transition: transform .12s var(--ease); }
.tile3:active { transform: scale(.97); }
.tile3--ph { height: 140px; background: var(--sunken); }
.tile3__pic { height: 84px; border-radius: 15px; background: var(--tint, var(--field)); }
.tile3__pic img { padding: 8px; }
.tile3__name { padding: 0 6px; font-weight: 600; font-size: 13px; line-height: 1.2; }
.tile3__n { padding: 0 6px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.aboutlink { margin: 22px 16px 0; width: calc(100% - 32px); min-height: 56px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: 18px; border: 1px solid var(--line); font-size: 14.5px; font-weight: 600; }
.aboutlink:active { background: var(--sunken); }
.foot:has(.fresh[hidden]) { display: none; }
/* ---------- About: four slides, one idea each, shown on the first open and behind "О сервисе" ----------
   Owner, 30.11: the long page was "переполнено, вообще не понятно". Now: scale → one product's price gap → the usual
   overpay → how to use. Swipe or "Далее". Motion only where it carries the data: numbers count up, the shops' dots
   land on the ruler cheap to dear, the waffle fills to the share of models that differ by over 10 %. */
.about { position: fixed; inset: 0; z-index: 20; overflow: hidden; background: #0b0b0f; }
.about-open body { overflow: hidden; }
.about__top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; gap: 14px; max-width: 560px; margin: 0 auto; padding: calc(10px + var(--safe-top)) 16px 6px; color: #fff; transition: color .35s; }
.about[data-tone="light"] .about__top, .about[data-tone="accent"] .about__top { color: #0b0b0f; }
.about[data-tone="accent"] .brand b { color: #0b0b0f; }
.about__dots { flex: 1; display: flex; gap: 4px; }
.about__dots button { position: relative; flex: 1; height: 28px; }
.about__dots button::before, .about__dots button::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: currentColor; }
.about__dots button::before { opacity: .22; }
.about__dots button::after { transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease); }
.about__dots button.on::after, .about__dots button.past::after { transform: scaleX(1); }
.about__skip { min-height: 44px; padding: 0 2px; font-weight: 600; font-size: 14px; opacity: .75; }
.about__track { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.about__track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; display: flex; overflow-x: hidden; overflow-y: auto; scroll-snap-align: start; scroll-snap-stop: always; }
.slide[hidden] { display: none; }
.slide--dark { background: #0b0b0f; color: #fff; }
.slide--light { background: #f6f5f0; color: #0b0b0f; --ink: #0b0b0f; --ink-2: #3a3a3f; --muted: #6c6c66; --line: #d6d5cd; --surface: #f6f5f0; --mid: #a9a8a1; --dearer: #e2482a; --accent: #ffd60a; }
.slide--accent { background: #ffd60a; color: #0b0b0f; }
.slide__in { position: relative; width: 100%; max-width: 560px; margin: auto; padding: calc(64px + var(--safe-top)) 22px calc(104px + var(--safe-bottom)); }
.slide__in--end { margin-bottom: 0; }
.slide__h { margin: 0; font: 700 31px/1.06 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.slide__p { margin: 14px 0 0; font-size: 16px; line-height: 1.4; opacity: .7; max-width: 34ch; }
.slide__k { margin: 0; font-size: 14px; font-weight: 600; opacity: .6; }
.slide__note { margin: 16px 0 0; font-size: 14px; line-height: 1.4; opacity: .72; }
.slide__lead { margin: 12px 0 0; font-size: 19px; font-weight: 600; line-height: 1.3; max-width: 26ch; }
.slide__link { margin-top: 14px; min-height: 44px; display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 15px; }
.slide__link span { border-bottom: 2px solid currentColor; }

/* 1. scale: every shop of the base drifting by, the example's two ends lit */
.wall { position: absolute; inset: 0 0 auto; height: 58%; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding-top: calc(40px + var(--safe-top)); overflow: hidden; -webkit-mask-image: linear-gradient(#000 50%, transparent); mask-image: linear-gradient(#000 50%, transparent); font: 600 17px/1.1 var(--display); letter-spacing: -.02em; color: #46464a; white-space: nowrap; }
.wall__row { display: flex; }
.wall__run { display: flex; flex: none; animation: wall var(--t, 60s) linear infinite; animation-play-state: paused; }
.wall__row:nth-child(even) .wall__run { animation-direction: reverse; }
.slide.is-on .wall__run { animation-play-state: running; }
.wall__run span { padding-right: 20px; }
.wall .lo { color: #ffd60a; }
.wall .hi { color: #ff7a5c; }
@keyframes wall { to { transform: translateX(-50%); } }
.slide__big { margin-top: 22px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.slide__big b { font: 800 80px/.9 var(--display); letter-spacing: -.02em; color: #ffd60a; font-variant-numeric: tabular-nums; }
.slide__big span { font-size: 17px; font-weight: 600; }

/* 2. one product, its shops on one ruler */
.ex__model { margin-top: 14px; display: flex; gap: 14px; align-items: center; }
.ex__pic { width: 92px; height: 80px; flex: none; border-radius: 18px; background: #fff; }
.ex__pic img { padding: 8px; mix-blend-mode: normal; }
.ex__name { font-weight: 700; font-size: 16px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ex__gap { margin-top: 28px; font: 800 64px/.92 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ex__gap small { margin-left: 8px; font-size: 24px; letter-spacing: -.02em; }
.bruler { position: relative; height: 108px; margin: 26px 6px 0; }
.bruler__axis { position: absolute; left: -6px; right: -6px; bottom: 50px; height: 2px; background: var(--line); transform-origin: left; transition: transform .8s var(--ease); }
.bruler__pt { position: absolute; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--mid); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1) calc(var(--d, 0) * 1ms + 300ms), opacity .2s calc(var(--d, 0) * 1ms + 300ms); }
.bruler__pt--lo { background: var(--accent); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--ink); z-index: 1; }
.bruler__pt--hi { background: var(--dearer); z-index: 1; }
.bruler__l, .bruler__r { position: absolute; bottom: 0; display: flex; flex-direction: column; font-size: 12px; color: var(--ink-2); max-width: 48%; transition: opacity .4s 1s; }
.bruler__l { left: -6px; }
.bruler__r { right: -6px; text-align: right; align-items: flex-end; }
.bruler__l b, .bruler__r b { font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.bruler__r b { color: var(--dearer); }
.bruler__l span, .bruler__r span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.slide:not(.is-on) .bruler__axis { transform: scaleX(0); transition: none; }
.slide:not(.is-on) .bruler__pt { transform: scale(0); opacity: 0; transition: none; }
.slide:not(.is-on) :is(.bruler__l, .bruler__r) { opacity: 0; transition: none; }

/* 3. the usual overpay */
.ov__pct { font: 800 116px/.85 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ov__pct small { font-size: 54px; letter-spacing: -.02em; }
.waffle { margin-top: 26px; width: min(100%, 260px); display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.waffle i { aspect-ratio: 1; border-radius: 4px; background: rgb(11 11 15 / 14%); }
.waffle i.on { background: #0b0b0f; transition: background-color .2s calc(var(--i) * 9ms + 250ms); }
.slide:not(.is-on) .waffle i.on { background: rgb(11 11 15 / 14%); transition: none; }

/* 4. how to use */
.howto { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.howto li { display: flex; gap: 16px; align-items: center; transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i) * 110ms + 120ms); }
.slide:not(.is-on) .howto li { opacity: 0; transform: translateX(28px); transition: none; }
.howto__i { width: 52px; height: 52px; flex: none; border-radius: 16px; background: #222227; color: #ffd60a; display: grid; place-items: center; }
.howto b { display: block; font-size: 17px; line-height: 1.25; }
.howto div span { display: block; margin-top: 3px; font-size: 14.5px; line-height: 1.35; color: #a9a9a3; }
.about__search { margin-top: 30px; height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: var(--r-field); background: #fff; color: #0b0b0f; }
.about__search .i { color: #6c6c66; flex: none; }
.about__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 400 16px Geologica, system-ui, sans-serif; color: #0b0b0f; }
.about__search input::placeholder { color: #6c6c66; }
.about__search:focus-within { box-shadow: 0 0 0 3px #ffd60a; }

.about__cta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; max-width: 560px; margin: 0 auto; padding: 10px 16px calc(16px + var(--safe-bottom)); pointer-events: none; }
.about__next { pointer-events: auto; width: 100%; height: 58px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: var(--r-chip); background: #ffd60a; color: #0b0b0f; font-weight: 700; font-size: 17px; transition: background-color .35s, color .35s, transform .15s; }
.about__next:active { transform: scale(.98); }
.about[data-tone="light"] .about__next, .about[data-tone="accent"] .about__next { background: #0b0b0f; color: #fff; }

/* ---------- Node page (mockup 29.11: Section.dc.html, Filter.dc.html) ----------
   Kinds as photo tiles, the filter and the node's facets as chips, the count with the sort, cards with the photo on
   a light field. */
.kinds { list-style: none; margin: 18px 16px 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kind { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 6px; padding: 5px 5px 10px; border-radius: 18px; background: var(--surface); text-align: left; transition: transform .12s var(--ease); }
.kind:active { transform: scale(.97); }
.kind[aria-pressed='true'] { box-shadow: inset 0 0 0 2px var(--ink); }
.kind__pic { height: 78px; border-radius: 14px; background: var(--field); }
.kind__pic img { padding: 6px; }
.kind__pic--price { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--accent); color: #0b0b0f; line-height: 1; gap: 2px; }
.kind__pic--price small { font-size: 11px; font-weight: 600; }
.kind__pic--price b { font: 700 20px/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kind__name { padding: 0 5px; font-weight: 600; font-size: 13px; line-height: 1.2; overflow-wrap: anywhere; }
.kind__n { padding: 0 5px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.nfacets { margin-top: 18px; gap: 8px; }
.nf { height: 38px; display: inline-flex; align-items: center; gap: 4px; padding: 0 12px 0 14px; border-radius: var(--r-chip); background: var(--surface); border: 1px solid var(--line); font-weight: 500; font-size: 14px; max-width: 100%; }
.nf .i { width: 14px; height: 14px; color: var(--muted); flex: none; }
.nf:active { background: var(--sunken); }
.nf--on { border-color: var(--ink); font-weight: 600; }
.nf--all { gap: 7px; padding: 0 14px 0 12px; background: var(--action); border-color: var(--action); color: var(--action-ink); font-weight: 600; }
.nf--all .i { color: inherit; width: 16px; height: 16px; }
.nf__n { min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--r-chip); background: var(--accent); color: #0b0b0f; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.nhead { margin: 20px 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nhead[hidden] { display: none; }
.nhead__n { margin: 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.nhead__n b { font-size: 16px; color: var(--ink); }
.nsort { position: relative; flex: none; height: 44px; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; }
.nsort select { appearance: none; -webkit-appearance: none; border: 0; background: none; color: var(--ink); font: inherit; padding: 0 18px 0 0; height: 44px; cursor: pointer; }
.nsort .i { position: absolute; right: 0; pointer-events: none; width: 14px; height: 14px; }
#results .nhead + .chips--active { margin-top: 2px; }
.chips--active .chip--on { height: 32px; padding: 0 10px 0 12px; background: var(--sunken); border-color: var(--sunken); color: var(--ink); font-size: 13px; font-weight: 500; }
.chips--active .chip--on .i { width: 14px; height: 14px; color: var(--ink-2); }
.card--model { padding: 6px 6px 14px; }
.card--model .card__pic { aspect-ratio: auto; height: 160px; padding: 0; border-radius: 16px; background: var(--field); }
.card--model .card__pic img { width: 84%; height: 84%; margin: auto; }
.card--model .card__body { padding: 10px 6px 0; gap: 10px; }
.card--model .card__name { font-weight: 600; line-height: 1.25; min-height: 35px; }
.card--model .price { font-weight: 600; letter-spacing: -.02em; }
.card--model .card__meta { gap: 2px; }

/* the filter sheet: reset on top, price bars over the slider, white knobs with a black ring, one wide button */
.sheet__reset { height: 44px; padding: 0 12px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.sheet__reset:disabled { opacity: .4; }
#filter-sheet .facet { border-top: 0; padding: 10px 20px 8px; }
#filter-sheet .facet__t { display: flex; align-items: baseline; justify-content: space-between; font-size: 16px; }
#filter-sheet .facet__t small { font-size: 13px; font-weight: 400; color: var(--muted); }
#filter-sheet .facet__vals .chip { height: 40px; font-size: 14px; font-weight: 500; }
.pbars { height: 64px; display: flex; align-items: flex-end; gap: 3px; margin-top: 4px; }
.pbars i { flex: 1; border-radius: 4px 4px 0 0; background: var(--line); }
.pbars i.on { background: var(--ink); }
.facet--price .dual { margin-top: 0; height: 24px; }
.facet--price .dual__track, .facet--price .dual__fill { top: 10px; }
.facet--price .dual__track { height: 2px; top: 11px; background: var(--line); }
.facet--price .dual input::-webkit-slider-thumb { width: 22px; height: 22px; background: #fff; border: 2px solid var(--ink); }
.facet--price .dual input::-moz-range-thumb { width: 18px; height: 18px; background: #fff; border: 2px solid var(--ink); }
.facet--price .range { margin-top: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pfield { height: 48px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 14px; background: var(--ground); }
.pfield span { font-size: 13px; color: var(--muted); }
.pfield__in { width: 100%; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font: 600 16px Geologica, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.pfield:focus-within { box-shadow: 0 0 0 2px var(--ink); }
.facet--stock { margin: 6px 20px 4px; padding: 0 !important; border-top: 1px solid var(--line) !important; border-bottom: 1px solid var(--line); }
.facet--stock .switch-row { min-height: 48px; }
.facet--stock .switch-row__t { font-weight: 600; font-size: 15px; }
.facet--stock .switch-row__s { display: inline; margin: 0; }
#filter-sheet .sheet__foot { padding: 12px 16px 6px; }
#filter-sheet #filter-apply { height: 56px; border-radius: var(--r-chip); font-size: 16px; }
.nhead__n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ---------- Model page (mockup 29.11: Model.dc.html) ----------
   The photo on a light field, the node above the name, configurations as cards, one white card with the price and
   the ruler, the shops as one list, the history and the characteristics as cards, a black bar with "Следить". */
.view--product .p-hero__pic { height: 280px; margin: calc(70px + var(--safe-top)) 16px 0; padding: 18px 24px; border-radius: 22px; background: var(--field); }
.view--product .p-hero__info { margin-top: 0; padding: 14px 16px 0; border-radius: 0; background: none; gap: 4px; }
.p-kicker { margin: 0; font-size: 13px; color: var(--muted); }
.view--product .h1--product { font: 600 23px/1.15 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.view--product .p-hero__sub { margin-top: 2px; font-size: 14px; color: var(--ink-2); }
.p-label { margin: 18px 16px 0; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.p-label[hidden] { display: none; }
.view--product .p-variants { margin: 8px 16px 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; overflow: visible; }
.view--product .p-variants[hidden] { display: none; }
.variant { min-height: 64px; padding: 10px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: left; display: flex; flex-direction: column; gap: 2px; }
.variant__t { font-weight: 600; font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.variant small { font-size: 13px; color: var(--ink-2); }
.variant[aria-pressed='true'] { border-color: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.p-card { margin: 16px 16px 0; padding: 18px 18px 16px; border-radius: var(--r-card); background: var(--surface); }
.p-card[hidden] { display: none; }
.p-pricecard .p-price { margin-top: 0; gap: 6px; }
.p-pricecard .p-price__from { display: none; }
.p-pricecard .p-price__n { font: 700 36px/1 var(--display); letter-spacing: -.02em; }
.p-pricecard .p-price__cur { font-size: 16px; color: var(--ink); }
.p-pricecard .p-where { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
.p-pricecard .p-where b { font-weight: 500; color: var(--ink-2); }
.p-pricecard .spread { margin: 22px 0 0; padding: 0; background: none; border-radius: 0; }
.p-pricecard .ruler { height: 44px; margin: 0 6px; }
.p-pricecard .ruler__axis { top: 13px; height: 2px; border-radius: 1px; background: var(--line); opacity: 1; left: -6px; right: -6px; }
.p-pricecard .ruler__pt { top: 8px; width: 12px; height: 12px; margin-left: -6px; box-shadow: 0 0 0 2px var(--surface); }
.p-pricecard .ruler__pt--best { width: 12px; height: 12px; margin-left: -6px; box-shadow: 0 0 0 2px var(--surface); }
.ruler__lo, .ruler__mid, .ruler__hi { position: absolute; top: 30px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ruler__lo { left: -6px; }
.ruler__mid { transform: translateX(-50%); font-weight: 400; color: var(--muted); }
.ruler__hi { right: -6px; color: #b8381c; }
.dark .ruler__hi { color: var(--dearer); }
.p-gap { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }
.p-gap[hidden] { display: none; }
.p-gap b { font-weight: 600; }
.p-sec { margin: 22px 16px 0; }
.p-sec[hidden] { display: none; }
.p-sec__t { margin: 0; font: 600 19px var(--display); letter-spacing: -.01em; }
.p-sec__t:empty { display: none; }
.shops--list { margin: 10px 0 0; gap: 0; background: var(--surface); border-radius: var(--r-row); overflow: hidden; }
.shops--list > li + li { border-top: 1px solid var(--line); }
.shops--list .shop { min-height: 60px; padding: 8px 16px; border-radius: 0; background: none; }
.shops--list .shop:active { transform: none; background: var(--sunken); }
.shops--list .shop__name { font-size: 15px; }
.shops--list .shop__sub { font-size: 13px; }
.shops--list .shop__p { font: 700 16px Geologica, system-ui, sans-serif; letter-spacing: 0; }
.shops--list .shop__p small { font-size: 12px; font-weight: 500; margin-left: 3px; }
.shops--list .shop__d { font-size: 12px; font-weight: 400; color: var(--muted); }
.shops--list .shop--low .shop__d { color: var(--cheaper); font-weight: 600; }
.shop__dot--none { visibility: hidden; }
.shops--list .more, .shops__more .more { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; font-size: 14px; }
.p-sec .p-live { width: 100%; margin: 12px 0 0; }
.p-hist { margin-top: 22px; padding: 16px; border-radius: var(--r-row); }
.p-hist__t { margin: 0; font-weight: 700; font-size: 16px; }
.p-hist__p { margin: 6px 0 0; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.p-hist .chart { margin: 10px 0 0; padding: 0; background: none; }
.specs { margin: 10px 0 0; background: var(--surface); border-radius: var(--r-row); overflow: hidden; }
.specs__row { min-height: 46px; padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.specs__row + .specs__row { border-top: 1px solid var(--line); }
.specs dt { font-size: 14px; color: var(--muted); }
.specs dd { margin: 0; font-size: 14px; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.p-report { margin-top: 10px; height: 44px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.view--product.view--bar { padding-bottom: calc(120px + var(--safe-bottom)); }
/* the bar with a note: the lowest price on the left, the yellow action on the right, one black pill */
.webbar__note[hidden] { display: none; }
.webbar--note { left: 16px; right: 16px; bottom: calc(24px + var(--safe-bottom)); height: 62px; padding: 0 8px 0 22px; align-items: center; gap: 12px; border-radius: var(--r-chip); background: var(--bar); border: 1px solid var(--line); }
.webbar__note { flex: 1; min-width: 0; margin: 0; display: flex; flex-direction: column; color: var(--ink); }
.webbar__note small { font-size: 12px; color: var(--bar-ink); }
.webbar__note b { font: 600 17px var(--display); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.webbar--note .btn--primary { flex: none; height: 46px; padding: 0 18px; gap: 8px; justify-content: center; border-radius: var(--r-chip); background: var(--accent); color: #0b0b0f; font-weight: 700; font-size: 15px; }
.webbar--note .btn--primary .i { width: 18px; height: 18px; }
/* on the product screen "Назад" lives inside this bar, left of the price: a floating pill would sit on the bar or the shops */
.webbar__back { flex: none; width: 46px; height: 46px; margin-left: -14px; border-radius: 50%; display: grid; place-items: center; background: var(--sunken); color: var(--ink); }
.webbar__back:active { transform: scale(.94); }
.webbar__back[hidden] { display: none; }
html:has(.webbar--note:not([hidden])) .backpill { display: none; }
/* no pop-in stagger on the model's ruler (anti-slop: no stagger), and the dots stay drawn in a background tab */
.p-pricecard .ruler__pt { transform: none; animation: none; }
.p-pricecard .spread { margin-top: 36px; }

/* ---------- The site on a wide screen (mockup 29.11: Desktop.dc.html) ----------
   A black bar with the logo, the search and the menu; a node page with the kinds in a row, the filters on the left
   applied at once and the models in a grid. Other screens stay a phone-wide column in the middle. */
.sitebar { display: none; }
.naside[hidden] { display: none; }
@media (min-width: 1024px) {
  .sitebar { display: block; position: sticky; top: 0; z-index: 12; background: #0b0b0f; color: #fff; }
  .sitebar__in { max-width: 1280px; margin: 0 auto; padding: 14px 32px; display: flex; align-items: center; gap: 16px 28px; }
  .sitebar__logo { font: 700 22px var(--display); letter-spacing: -.02em; color: #fff; }
  .sitebar__logo b { color: var(--accent); }
  .sitebar__search { position: relative; flex: 1 1 360px; height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: 14px; background: #fff; color: #0b0b0f; }
  .sitebar__search .i { color: #6c6c66; flex: none; }
  .sitebar__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 400 15px Geologica, system-ui, sans-serif; color: #0b0b0f; }
  .sitebar__search:focus-within { box-shadow: 0 0 0 3px var(--accent); }
  .suggest--site { position: absolute; top: 52px; left: 0; right: 0; margin: 0; color: var(--ink); box-shadow: 0 12px 32px rgb(0 0 0 / 12%); }
  .sitebar__nav { display: flex; gap: 22px; font-size: 14px; font-weight: 500; }
  .sitebar__nav button { color: #c9c9c3; min-height: 44px; }
  .sitebar__nav button:hover, .sitebar__logo:hover { color: #fff; }
  .tabbar { display: none; }
  .view { padding-bottom: 64px; }
  .about { top: 74px; }

  .app { max-width: 1280px; }
  .app > .view:not(#results) { max-width: 640px; margin-inline: auto; }
  #results { padding: 0 32px 64px; }
  #results > .bar, #results > .suggest--bar { display: none; }
  #results .crumbs { margin: 24px 0 0; font-size: 13px; }
  #results .res-head { padding: 10px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
  #results .h1--res { font-size: 34px; }
  #results .res-sub { margin: 0; font-size: 15px; }
  #results .kinds { margin: 20px 0 0; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
  #results .kind { flex-direction: row; align-items: center; gap: 10px; padding: 6px; }
  #results .kind__pic { width: 64px; height: 56px; flex: none; border-radius: 13px; }
  #results .kind__pic--price b { font-size: 13px; }
  #results .kind__pic--price small { display: none; }
  #results .kind__name { padding: 0; font-size: 14px; }
  #results .kind__n { padding: 0; }
  #results .kind > span:not(.kind__pic) { display: block; }
  #results .kind { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-content: center; }
  #results .kind__pic { grid-row: 1 / 3; }
  #results .seg, #results .tools, #results .linkcard { margin-inline: 0; padding-inline: 0; }
  .nwide { margin-top: 24px; display: flex; gap: 24px; align-items: flex-start; }
  .naside { flex: 0 0 300px; position: sticky; top: 98px; max-height: calc(100vh - 116px); overflow-y: auto; overscroll-behavior: contain; padding: 18px 0 8px; border-radius: var(--r-card); background: var(--surface); scrollbar-width: thin; }
  .naside__head { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 0 18px; }
  .naside__head h2 { margin: 0; font: 600 18px var(--display); }
  .naside .facet { border-top: 0; padding: 10px 18px 8px; }
  .naside .facet + .facet:not(.facet--stock) { border-top: 1px solid var(--line); padding-top: 14px; }
  .naside .facet__t { display: flex; align-items: baseline; justify-content: space-between; font-size: 16px; }
  .naside .facet__t small { font-size: 13px; font-weight: 400; color: var(--muted); }
  .naside .facet__vals .chip { height: 34px; padding: 0 12px; font-size: 13px; font-weight: 500; }
  .naside .pbars { height: 48px; }
  .naside .pfield { height: 40px; border-radius: 12px; }
  .naside .pfield__in { font-size: 14px; }
  .naside .facet--stock { margin: 6px 18px 4px; }
  .nmain { flex: 1; min-width: 0; }
  #results .nhead { margin: 0; }
  #results .nhead__n b { font-size: 17px; }
  #results .chips--active { margin-inline: 0; padding-inline: 0; }
  #results .grid { padding: 0; margin-top: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
  #results .card--model { padding: 8px 8px 16px; }
  #results .card--model .card__pic { height: 200px; }
  #results .card--model .card__name { font-size: 15px; }
  .nmain .foot, .nmain .empty { margin-inline: 0; }
  .card:hover .card__pic, .kind:hover .kind__pic:not(.kind__pic--price) { background: #e5e4dd; }
  .webbar, .bar--float { max-width: 640px; }
}

/* ---------- Статистика владельца и «Написать нам» ---------- */
.bar__t { flex: 1; min-width: 0; margin: 0 0 0 4px; font: 700 17px/1.25 var(--display); letter-spacing: -.02em; }
.adm { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 calc(var(--nav-h) + 28px + var(--safe-bottom)); }
.adm .me-hero { margin-top: 0; }
.adm-delta { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.adm-surge { margin: 0 16px; padding: 14px 16px; border-radius: var(--r-card); background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.adm-card { margin: 0 16px; padding: 16px; border-radius: var(--r-card); background: var(--surface); }
.adm-h { margin: 0; font: 700 15px/1.25 var(--display); letter-spacing: -.02em; }
.adm-cap { margin: 4px 0 12px; min-height: 18px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bars { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 2px; height: 120px; align-items: end; }
.bars__b { height: 100%; padding: 0; display: flex; align-items: flex-end; cursor: pointer; touch-action: manipulation; }
.bars__b span { width: 100%; border-radius: 4px 4px 1px 1px; background: var(--bar-ink); transition: background .12s; }
.bars__b--now span, .bars__b[aria-pressed='true'] span { background: var(--ink); }
.bars__b:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-radius: 4px; }
.bars__axis { position: relative; height: 16px; margin-top: 6px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bars__axis span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.bars__axis span:first-child { transform: none; margin-left: -4px; }
.bars__axis span:last-child:not(:first-child) { transform: translateX(-100%); margin-left: 4px; }
.adm-kvs, .adm-rank, .adm-msgs { list-style: none; margin: 8px 0 0; padding: 0; }
.adm-kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 14px; border-top: 1px solid var(--line); }
.adm-kv:first-child, .adm-rank li:first-child, .adm-msgs li:first-child { border-top: 0; }
.adm-kv span { color: var(--ink-2); }
.adm-kv b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.adm-rank li { position: relative; display: flex; gap: 12px; padding: 9px 0 11px; font-size: 14px; border-top: 1px solid var(--line); }
.adm-rank__q { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-rank b { font-weight: 600; font-variant-numeric: tabular-nums; }
.adm-rank__bar { position: absolute; left: 0; bottom: 3px; height: 3px; border-radius: 2px; background: var(--bar-ink); }
.adm-msgs li { padding: 10px 0; border-top: 1px solid var(--line); }
.adm-msgs__top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.adm-msgs__t { margin: 4px 0 0; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.adm-ok { color: var(--cheaper); font-weight: 600; }
.adm-wait { color: var(--dearer); font-weight: 600; }
.adm-none { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.adm-none--big { margin: 48px 20px; text-align: center; }
.adm-foot { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.support__text { display: block; width: calc(100% - 40px); margin: 4px 20px 0; min-height: 140px; resize: vertical; padding: 14px 16px; border: 0; border-radius: var(--r-field); background: var(--field); color: var(--on-field); font: inherit; }
.support__text:focus-visible { outline: 2px solid var(--focus); }

/* ---------- Labelling (the owner's) ---------- */
.lab { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 12px; }
.lab-head { margin: 0 20px; }
.lab-head__t { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-height: 32px; font-size: 14px; color: var(--ink-2); }
.lab-head__t b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.lab-bar { height: 6px; border-radius: 3px; background: var(--sunken); overflow: hidden; }
.lab-bar span { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.lab-card { padding: 14px 16px 16px; }
.lab-q { margin: 0 0 10px; font: 700 17px/1.25 var(--display); letter-spacing: -.02em; }
.lab-pic { position: relative; height: 176px; border-radius: var(--r-field); background: var(--field); color: #8a8a84; display: grid; place-items: center; overflow: hidden; }
.lab-pic .lab-img { position: absolute; inset: 0; background: none; }
.lab-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 10px; }
.lab-t { margin: 12px 0 8px; font-weight: 600; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.lab-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lab-meta .price { font-size: 22px; }
.lab-why { font-size: 13px; color: var(--muted); text-align: right; }
.lab-shop { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.lab-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lab-acts .btn { padding: 0 10px; font-size: 15px; }
.lab-junk { color: var(--dearer); }
.lab-guess { grid-column: 1 / -1; }
.lab-lesson, .lab-prog { margin-top: 12px; }
.lab-prog { margin-bottom: calc(var(--nav-h) + 28px + var(--safe-bottom)); }
.lab-list { list-style: none; margin: 8px 0 0; padding: 0; }
.lab-row { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.lab-list li:first-child .lab-row { border-top: 0; }
.lab-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.lab-row[aria-current] .lab-row__t { font-weight: 700; }
.lab-sec { margin: 14px 20px 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
#label-undo:disabled { opacity: .4; }

/* ---------- Home, 1.12: a search, one real price ruler, four plain actions, then lists ---------- */
.hello { margin: 10px 20px 0; font: 700 28px/1.1 var(--display); letter-spacing: -.02em; }
.lead { color: var(--muted); }
.search--big { border: 1.5px solid var(--ink); border-radius: var(--r-field); background: var(--surface); box-shadow: none; }
.search--big .search__go { background: var(--action); color: var(--action-ink); border-radius: 9px; }
.tries .chip { background: var(--sunken); border: 0; border-radius: var(--r-chip); font-weight: 500; }
.today { margin: 22px 20px 0; padding: 18px 0 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.today__k { margin: 0; font-size: 13px; color: var(--muted); }
.today__name { display: block; margin: 6px 0 0; font: 600 19px/1.25 var(--display); letter-spacing: -.01em; color: var(--ink); text-align: left; }
.today__name:active { color: var(--action); }
.hruler { position: relative; height: 34px; margin: 16px 6px 0; }
.hruler__axis { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--line); }
.hruler__t { position: absolute; top: 50%; width: 2px; height: 14px; margin: -7px 0 0 -1px; background: var(--mid); border-radius: 1px; }
.hruler__t--lo, .hruler__t--hi { width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid var(--ground); }
.hruler__t--lo { background: var(--accent); box-shadow: 0 0 0 1.5px var(--ink); z-index: 1; }
.hruler__t--hi { background: var(--dearer); }
.today__ends { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; }
.today__ends span { display: flex; flex-direction: column; gap: 1px; }
.today__ends b { font: 700 24px/1.1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.today__ends small { font-size: 13px; color: var(--muted); }
.today__hi { text-align: right; align-items: flex-end; }
.today__hi b { color: var(--dearer); font-weight: 500; }
.today__lo b { background: linear-gradient(transparent 58%, var(--accent) 58%); padding: 0 2px; margin-left: -2px; }
.today__gap { margin: 10px 0 0; font-size: 14.5px; color: var(--ink-2); }
/* 1.12: the link as one wide row (people come with a link), the rest as plain words in one line */
.quick { margin: 18px 20px 0; }
.quick__link { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px dashed var(--mid); border-radius: var(--r-field); font-size: 14px; line-height: 1.35; color: var(--ink-2); text-align: left; }
.quick__link b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.quick__link .i { color: var(--action); }
.quick__link:active { background: var(--sunken); border-style: solid; }
.quick__more { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 12px; }
.quick__more button { padding: 6px 0; font-size: 14px; font-weight: 500; color: var(--action); }
.dark .quick__more button, .dark .quick__link .i { color: #9cc0ff; }
.today__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 17px; }
.tries { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-right: 20px; }
.tries::-webkit-scrollbar { display: none; }
.tries .chip { flex: none; }
/* lists, not cards: rows on the page itself, photos on one quiet field (no colour per product) */
.dtabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-right: 20px; }
.dtabs::-webkit-scrollbar { display: none; }
.dtabs .chip { flex: none; border-radius: var(--r-chip); }
.chip[aria-pressed='true'], .chip[aria-selected='true'] { background: var(--ink); color: var(--ground); }
.deals { margin: 0 20px; background: none; border-radius: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.deal { padding: 14px 0; align-items: flex-start; gap: 14px; }
.deal__pic { width: 72px; height: 72px; background: var(--plate) !important; border-radius: 10px; }
.deal__name { font-size: 15px; }
.deal__lo { margin-top: 6px; font-size: 14px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deal__lo b { font: 700 17px/1.2 var(--display); letter-spacing: -.02em; color: var(--ink); }
.deal__save { margin-top: 2px; font-size: 13px; line-height: 1.3; font-weight: 500; color: var(--cheaper); overflow-wrap: anywhere; }
.home-more { border-radius: var(--r-field); }
/* sections: a photo on its plate and two lines under it, no card around them */
.tile3 { padding: 0; border-radius: 0; background: none; gap: 4px; }
.tile3--ph { height: 128px; background: var(--sunken); border-radius: 10px; }
.tile3__pic { height: 96px; margin-bottom: 4px; background: var(--plate) !important; border-radius: 10px; }
.tile3__name, .tile3__n { padding: 0 2px; }
.tiles3 { gap: 18px 10px; margin: 0 20px; }
.tile3__name { font-size: 13px; overflow-wrap: normal; hyphens: auto; letter-spacing: -.01em; }
.bar--float #p-share { margin-left: auto; margin-right: 8px; }
.share__what { margin: 0 20px 6px; font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.option .i { color: var(--action); margin-right: 10px; flex: none; }
.help__h { margin: 18px 0 8px; font-size: 15px; font-weight: 600; }
.help__h:first-child { margin-top: 4px; }
.help__check { display: flex; gap: 8px; }
.help__in { flex: 1; min-width: 0; height: 46px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: var(--r-field); background: var(--surface); font-size: 16px; }
.help__in:focus { outline: none; border-color: var(--action); }
.help__check .btn { height: 46px; }
.help__res { margin: 10px 0 0; padding: 10px 12px; border-radius: var(--r-row); background: var(--sunken); font-size: 14px; line-height: 1.4; }
.help__res--yes { background: var(--cheaper-bg); }
.help__how { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.help__how li + li { margin-top: 6px; }
.option > .i + span { flex: 1; text-align: left; }

/* ---------- 2.12 redesign, steps 1, 2 and 4 of docs/research/references-board.html ----------
   Three weights by role, as Stripe and Apple do it: headings thin (300), everything read normal (400), bold (700)
   only for a price and the one main number of a screen. The logo keeps its own weight. */
.hello, .h1, .h2--big, .cat__h, .slide__h, .p-sec__t, .bar__t, .h1--product, .view--product .h1--product { font-weight: 300; }
.hello { font-size: 36px; letter-spacing: -.03em; }
.h2, .p-hist__t, .chart__t, .facet__t, .switch-row__t, .facet--stock .switch-row__t, .adm-h, .naside__head h2 { font-weight: 400; }
.card__name, .card--model .card__name, .deal__name, .tile__name, .tile3__name, .node__name, .kind__name, .today__name,
.variant__t, .watch__q, .watch__name, .mini__q, .way__t, .act__t, .ex__name, .slide__lead, .live__head, .quick__link b,
.link, .cat__g, .cat__all, .places__group, .me-h, .p-label, .spread__k, .dtab, .seg__btn, .more, .home-more,
.linkcard__k, .cmp__shop, .cmp__hi, .shop__name, .shop__d, .specs dd, .p-price__from, .p-price__cur, .price small,
.ruler__lo, .ruler__mid, .ruler__hi, .p-gap b, .mini__s--ok, .watch__state--ok, .linkcard__v--same, .ad__cond,
.btn, .search--big .search__go, .chip, .tries .chip, .tabbar__btn, .sheet__reset, .about__skip, .p-report, .nf--on,
.webbar--note .btn--primary, .suggest__item b, .node__from, .pill__n, .watch__target, .money-input span, .slide__k,
.event__n, .hero__name, .hero__l, .kind__pic--price small, .shops--list .shop--low .shop__d { font-weight: 400; }
.price, .p-price__n, .p-pricecard .p-price__n, .card--model .price, .shop__p, .shops--list .shop__p, .today__ends b,
.today__lo b, .me-stat b, .ruler__lbl b, .kind__pic--price b, .webbar__note b, .fact__v.price, .deal__lo b,
.money-input input { font-weight: 700; }
/* the dearer end is a fact beside the main number, not a second main number */
.today__hi b { font-weight: 400; }
/* the explanation in the same breath, grey (Stripe's two-tone line) */
.lead { color: var(--muted); }

/* ---------- labels on the photo (Kaspi, Airbnb): small plates in its corners instead of lines of text ---------- */
.card--model .card__pic, .today__pic { position: relative; }
.onpic { position: absolute; left: 8px; display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border-radius: 11px; font-size: 11.5px; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums;
  background: var(--surface); color: var(--ink-2); max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; }
.onpic--top { top: 8px; }
.onpic--low { bottom: 8px; }
.onpic--gap { background: var(--cheaper-bg); color: var(--cheaper); }
.card--model .card__pic img { mix-blend-mode: multiply; }

/* ---------- the home opens with a product: today's model with a big photo, the ruler under it ---------- */
.today { padding-top: 14px; }
.today__pic { display: block; width: 100%; height: 210px; margin: 0 0 14px; border-radius: var(--r-card); background: var(--field); }
.today__pic img { width: 78%; height: 86%; margin: auto; object-fit: contain; mix-blend-mode: multiply; }
.today__name { font-size: 19px; line-height: 1.25; }
.today__img { width: 100%; height: 100%; display: grid; place-items: center; }

/* ---------- "цена сейчас низкая / обычная / высокая" (board step 3, Google Flights) ---------- */
.plevel { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.plevel__t { margin: 0 0 10px; font-size: 15px; color: var(--ink-2); }
.plevel__w { font-weight: 700; }
.plevel__w--low { color: var(--cheaper); }
.plevel__w--high { color: var(--dearer); }
.plevel__bar { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.plevel__seg { height: 6px; border-radius: 3px; position: relative; }
.plevel__seg small { position: absolute; top: 10px; left: 0; right: 0; text-align: center; font-size: 11.5px; color: var(--muted); }
.plevel__seg--low { background: var(--cheaper); }
.plevel__seg--normal { background: var(--line); }
.plevel__seg--high { background: var(--dearer); opacity: .75; }
.plevel__mark { position: absolute; top: -5px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--surface); border: 3px solid var(--ink); }
.plevel__k { margin: 30px 0 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.plevel--wait .plevel__seg { background: var(--line); opacity: 1; }
.plevel--wait .plevel__bar { margin-bottom: 26px; }
.plevel--wait .plevel__t { margin: 0; font-size: 13.5px; color: var(--muted); }
.plevel--wait .plevel__bar { order: -1; }
.plevel--wait { display: flex; flex-direction: column; }
.plevel[hidden] { display: none; }

/* ---------- filters in one row (board step 7, Kaspi and Google Flights): scrolls sideways, never wraps ---------- */
.nfacets { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; scroll-padding: 0 16px; -webkit-overflow-scrolling: touch; }
.nfacets::-webkit-scrollbar { display: none; }
.nfacets .nf { flex: none; white-space: nowrap; }
.nf--chosen { background: var(--ink); border-color: var(--ink); color: var(--surface); gap: 6px; padding: 0 10px 0 14px; }
.nf--chosen .i { color: inherit; width: 14px; height: 14px; }
.dark .nf--chosen { background: var(--ink); color: var(--ground); }

/* ---------- under the product's name: range and shops, then the specs grey (board step 5) ---------- */
.view--product .p-hero__sub { display: flex; flex-direction: column; gap: 3px; }
.p-sub__k { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.p-sub__specs { color: var(--muted); font-size: 13px; }

/* ---------- motion with a meaning (board step 8); with less motion asked, none of it ---------- */
#p-pic { view-transition-name: photo; }
::view-transition-group(photo) { animation-duration: .34s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }
.onpic { animation: onpic-in .24s var(--ease) both; }
.onpic--low { animation-delay: 40ms; }
@keyframes onpic-in { from { opacity: 0; transform: translateY(4px); } }
.sheet__grip, .sheet__head { touch-action: none; }
.sheet__grip { width: 44px; height: 5px; margin-top: 10px; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .onpic { animation: none; }
}

/* ---------- the shops on a map (board step 6) ---------- */
.pmap { height: 260px; border-radius: var(--r-card); overflow: hidden; background: var(--field); z-index: 0; }
.pmap__k { margin: 8px 2px 0; font-size: 12.5px; color: var(--muted); }
.pmark { background: none; border: 0; }
.pmark__b { display: inline-block; transform: translate(-50%, -50%); padding: 4px 8px; border-radius: 12px; background: var(--surface); color: var(--ink);
  font: 700 12.5px/1 Geologica, system-ui, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; border: 1px solid var(--line); }
.pmark__b--best { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pmap__pop { display: flex; flex-direction: column; gap: 3px; font: 400 13px/1.3 Geologica, system-ui, sans-serif; color: #0d1b33; min-width: 160px; }
.pmap__pop b { font-weight: 400; font-size: 14px; }
.pmap__p { font-weight: 700; font-size: 15px; }
.pmap__go { margin-top: 4px; color: var(--action); }
.pmap .leaflet-control-attribution { font-size: 10px; }
.dark .pmap .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.9); }
.pmark__dot { display: block; width: 10px; height: 10px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--ink-2); border: 2px solid var(--surface); }
.pmark__dot--best { background: var(--accent); }

/* ---------- Other models of the series (2.12) ---------- */
.near { margin: 22px 0 4px; }
.near__t { margin: 0 20px; font: 700 15px/1.25 var(--display); letter-spacing: -.02em; }
.near .chips--rail { margin-top: 10px; }
.near__chip small { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }

/* ---------- Similar by price on the product page (2.12) ---------- */
.p-sim .p-sec__t { margin-bottom: 10px; }
.grid.simrail { display: flex; grid-template-columns: none; gap: 10px; overflow-x: auto; padding: 0 16px 4px; margin: 0; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding: 0 16px; }
.grid.simrail::-webkit-scrollbar { display: none; }
.grid.simrail > li { flex: 0 0 152px; scroll-snap-align: start; }
/* the section sits 16px in already: the rail runs from the screen's edge; the gap label is the node page's story */
.p-sim .grid.simrail { margin: 0 -16px; }
.simrail .onpic--gap { display: none; }

/* ---------- Live counter on the start screen (2.12, board step 9) ---------- */
.pulse { margin: 10px 20px 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; color: var(--muted); font-size: 13.5px; }
.pulse::before { content: ''; align-self: center; width: 8px; height: 8px; border-radius: 50%; background: var(--cheaper); box-shadow: 0 0 0 0 color-mix(in srgb, var(--cheaper) 50%, transparent); animation: pulse-ring 2s ease-out infinite; }
.pulse__n { font: 300 22px/1 var(--display); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
@keyframes pulse-ring { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .pulse::before { animation: none; } }

/* ---------- The main numbers of a model (2.12, board step 10) ---------- */
.bigspecs { margin: 14px 16px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: var(--r-card); overflow: hidden; }
.bigspec { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 14px 16px 16px; background: var(--surface); min-width: 0; }
.bigspec__v { margin: 0; font: 300 30px/1 var(--display); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bigspec__v--long { font-size: 22px; line-height: 30px; }
.bigspec__v small { margin-left: 3px; font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--ink-2); }
.bigspec__k { font-size: 12.5px; color: var(--muted); }
.bigspecs:has(> :nth-child(3):last-child) > :last-child { grid-column: 1 / -1; }

/* The channel wall (owner's rule, 2.12): over everything until the person joins our channel. */
.cwall { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 32px 22px calc(28px + env(safe-area-inset-bottom)); background: var(--ground); color: var(--ink); }
.cwall__title { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.1; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.cwall__text { font-size: 16px; line-height: 1.45; color: var(--muted, var(--ink)); margin: 0; max-width: 34ch; }
.cwall__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.cwall__actions .btn { width: 100%; }
.cwall__note { min-height: 1.4em; font-size: 14px; color: var(--muted, var(--ink)); margin: 0; }
