/* 1. Fonts */
@font-face { font-family:"Inter"; src:url("/static/assets/fonts/inter-cyrillic.woff2") format("woff2"); font-weight:100 900; font-display:swap; unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family:"Inter"; src:url("/static/assets/fonts/inter-latin.woff2") format("woff2"); font-weight:100 900; font-display:swap; unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+20BD,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:"Manrope"; src:url("/static/assets/fonts/manrope-cyrillic.woff2") format("woff2"); font-weight:200 800; font-display:swap; unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family:"Manrope"; src:url("/static/assets/fonts/manrope-latin.woff2") format("woff2"); font-weight:200 800; font-display:swap; unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+20BD,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* 2. Tokens */
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg:#070b14; --surface:#0d1422; --surface-2:#131c2e; --surface-3:#1a253a;
  --line:#1f2b42; --line-2:#2c3c5c;
  --ink:#eef3fb; --ink-2:#a8b5cb; --ink-3:#73829b;
  --accent:#2563eb; --accent-hover:#3b76f0; --accent-ink:#ffffff;
  --accent-text:#7aa7ff; --accent-weak:rgba(59,130,246,.14); --accent-glow:rgba(59,130,246,.35);
  --great:#34d399; --great-bg:rgba(52,211,153,.14);
  --good:#2dd4bf;  --good-bg:rgba(45,212,191,.13);
  --check:#fbbf24; --check-bg:rgba(251,191,36,.14);
  --suspicious:#f87171; --suspicious-bg:rgba(248,113,113,.14);
  --band:rgba(59,130,246,.28);
  --skeleton:#16203a; --skeleton-shine:#1f2c4a;
  --shadow-card:0 1px 0 rgba(255,255,255,.04) inset, 0 10px 30px rgba(0,0,0,.35);
  --shadow-pop:0 18px 50px rgba(0,0,0,.55);
  --glass:rgba(255,255,255,.06); --glass-line:rgba(255,255,255,.14); --glass-shadow:0 30px 60px -30px rgba(0,0,0,.8);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg:#f4f6fb; --surface:#ffffff; --surface-2:#eef2f9; --surface-3:#e4eaf5;
  --line:#dde4f0; --line-2:#c5d0e3;
  --ink:#0b1424; --ink-2:#47556d; --ink-3:#5f6d86;
  --accent:#1d4ed8; --accent-hover:#2457e6; --accent-ink:#ffffff;
  --accent-text:#1d4ed8; --accent-weak:rgba(29,78,216,.09); --accent-glow:rgba(29,78,216,.22);
  --great:#047857; --great-bg:#d9f5ea;
  --good:#0f766e;  --good-bg:#d5f3f0;
  --check:#a16207; --check-bg:#fbefd2;
  --suspicious:#b91c1c; --suspicious-bg:#fbe1e1;
  --band:rgba(29,78,216,.18);
  --skeleton:#e6ebf4; --skeleton-shine:#f2f5fa;
  --shadow-card:0 1px 2px rgba(11,20,36,.05), 0 8px 24px rgba(11,20,36,.06);
  --shadow-pop:0 18px 50px rgba(11,20,36,.18);
  --glass:rgba(255,255,255,.72); --glass-line:rgba(255,255,255,.9); --glass-shadow:0 24px 50px -24px rgba(11,20,36,.35);
}
:root {
  --font-ui: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Manrope", var(--font-ui);
  --t-xs:12px; --t-sm:13px; --t-base:15px; --t-md:17px; --t-lg:21px; --t-xl:27px; --t-2xl:34px; --t-3xl:46px;
  --w-regular:400; --w-medium:500; --w-bold:650;
  --lh-tight:1.15; --lh-snug:1.3; --lh-body:1.55;
  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:24px; --s6:32px; --s7:48px; --s8:64px;
  --r-sm:8px; --r-md:12px; --r-lg:18px; --r-pill:999px;
  --dur-fast:120ms; --dur-base:200ms; --ease:cubic-bezier(.2,.8,.2,1);
  --header-h:64px; --page-pad:clamp(16px,3vw,48px); --content-max:1440px;
}

/* 3. Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--line-2) transparent; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: var(--w-regular) var(--t-base)/var(--lh-body) var(--font-ui);
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: var(--w-bold); line-height: var(--lh-tight); }
h1 { font-family: var(--font-display); font-size: var(--t-2xl); }
h2 { font-family: var(--font-display); font-size: var(--t-xl); }
h3 { font-size: var(--t-md); }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }
::selection { background: var(--accent-weak); color: var(--ink); }

/* 4. Layout */
#app { display: block; min-height: 100vh; }
.rail {
  position: sticky; top: 0; z-index: 30; height: var(--header-h); display: flex; align-items: center; gap: var(--s5);
  padding: 0 var(--page-pad); background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line);
}
.rail .brand, .brand {
  display: flex; align-items: center; gap: var(--s2); flex: none; min-width: 0; color: var(--ink); text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-name { font-family: var(--font-display); font-size: var(--t-md); font-weight: var(--w-bold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.brand-accent { color: var(--accent-text); }
.navlinks { display: flex; gap: var(--s1); flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.burger { display: none; width: 40px; height: 40px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink); flex: none; }
.burger .i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.navlinks::-webkit-scrollbar { display: none; }
.rail a {
  padding: var(--s2) var(--s3); border-radius: var(--r-sm); color: var(--ink-2); font-size: var(--t-sm);
  font-weight: var(--w-medium); white-space: nowrap; transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.rail a:hover { color: var(--ink); background: var(--surface-2); }
.rail a.active { color: var(--ink); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--accent); }
.rail-foot { flex: none; }
#account { border-radius: var(--r-pill); white-space: nowrap; }
#theme { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; border-radius: var(--r-sm); flex: none; }
main#view, main { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--page-pad) var(--s8); outline: none; width: 100%; }
.site-footer {
  display: flex; flex-wrap: wrap; gap: var(--s5); align-items: center; padding: var(--s6) var(--page-pad);
  border-top: 1px solid var(--line); color: var(--ink-3); font-size: var(--t-sm);
}
.site-footer > span { flex: 1; }
.site-footer a { color: var(--ink-2); }

/* 5. Primitives */
button { cursor: pointer; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 40px; padding: 0 var(--s4);
  border-radius: var(--r-sm); border: 1px solid transparent; background: var(--accent); color: var(--accent-ink);
  font-weight: var(--w-medium); font-size: var(--t-sm); text-decoration: none;
  transition: background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn:hover { background: var(--accent-hover); box-shadow: 0 6px 20px var(--accent-glow); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn.on .i { fill: currentColor; }
.btn.secondary { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { border-color: var(--line-2); background: var(--surface-3); box-shadow: none; }
.btn.danger { background: transparent; color: var(--suspicious); border-color: var(--line); }
.btn.small { min-height: 32px; padding: 0 var(--s3); font-size: var(--t-xs); }
.ghost { background: none; border: 0; color: var(--ink-2); padding: var(--s2) var(--s3); border-radius: var(--r-sm); transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.ghost:hover { background: var(--surface-2); color: var(--ink); }

input:not([type=checkbox]):not([type=radio]), select, textarea {
  min-height: 40px; padding: 0 var(--s3); background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); color: var(--ink); font: inherit; font-size: var(--t-sm); min-width: 0;
}
textarea { padding: var(--s2) var(--s3); min-height: 72px; }
input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: 1; }
input:not([type=checkbox]):not([type=radio]):focus, select:focus, textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); outline: none;
}
select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238ca0bf' fill='none' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right var(--s3) center; padding-right: 32px;
}
input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; }
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.18em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fav-btn.on .i { fill: currentColor; }

.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 var(--s3);
  border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  font-size: var(--t-sm); text-decoration: none; cursor: pointer; transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.chip:hover { border-color: var(--line-2); text-decoration: none; }
.chip.on, .chip[aria-pressed="true"] { background: var(--accent-weak); color: var(--accent-text); border-color: var(--accent); }
.chip small { color: var(--ink-3); }
.chip .x { background: none; border: 0; color: inherit; padding: 0 0 0 4px; font-size: 15px; line-height: 1; }
.chip[data-cat]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cat-c, var(--ink-3)); }
.chip[data-cat="great"] { --cat-c: var(--great); }
.chip[data-cat="good"] { --cat-c: var(--good); }
.chip[data-cat="check"] { --cat-c: var(--check); }
.chip[data-cat="suspicious"] { --cat-c: var(--suspicious); }
.grow { flex: 1; min-width: 200px; }

.tag { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 var(--s2); border-radius: var(--r-pill); font-size: var(--t-xs); font-weight: var(--w-medium); background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.tag.great { background: var(--great-bg); color: var(--great); }
.tag.good { background: var(--good-bg); color: var(--good); }
.tag.check { background: var(--check-bg); color: var(--check); }
.tag.suspicious { background: var(--suspicious-bg); color: var(--suspicious); }
.priority-label { display: inline-flex; align-items: center; height: 24px; padding: 0 var(--s2); border-radius: var(--r-pill); font-size: var(--t-xs); font-weight: var(--w-medium); background: var(--accent-weak); color: var(--accent-text); }

.switch { display: inline-flex; align-items: center; gap: var(--s3); cursor: pointer; }
.switch input {
  appearance: none; width: 38px; height: 22px; border-radius: var(--r-pill); background: var(--line); position: relative;
  transition: background var(--dur-base) var(--ease); border: 0; padding: 0; cursor: pointer;
}
.switch input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-ink); transition: transform var(--dur-base) var(--ease); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(16px); }
label.check { display: flex; align-items: center; gap: var(--s2); font-size: var(--t-sm); color: var(--ink); cursor: pointer; }

.field { display: flex; flex-direction: column; gap: var(--s1); font-size: var(--t-sm); color: var(--ink-2); }
.field input, .field select { color: var(--ink); font-size: var(--t-base); }
.field .help, .help { font-size: var(--t-xs); color: var(--ink-3); }
.fgroup { display: flex; flex-direction: column; gap: var(--s2); }
.fgroup > label:first-child { font-size: var(--t-xs); font-weight: var(--w-medium); color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.fgroup small { display: block; margin-top: var(--s2); line-height: var(--lh-body); color: var(--ink-3); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }

/* 6. Components */
.feed-hero {
  position: relative; isolation: isolate; border-bottom: 1px solid var(--line); color: #eef3fb;
  margin: 0 calc(var(--page-pad) * -1) var(--s6); padding: var(--s7) var(--page-pad);
  background:
    radial-gradient(900px 480px at 85% 0%, rgba(37,99,235,.35), transparent 60%),
    radial-gradient(600px 400px at 10% 120%, rgba(45,212,191,.10), transparent 60%),
    repeating-linear-gradient(118deg, transparent 0 72px, rgba(122,167,255,.06) 72px 73px),
    #060a13;
  min-height: 420px; display: flex; flex-direction: column; justify-content: center; gap: var(--s4);
}
/* Заголовок страницы: компактный, без баннера. Главное на экране — содержимое. */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: var(--s3) var(--s5); margin: 0 0 var(--s5); padding: var(--s6) 0 var(--s4); border-bottom: 1px solid var(--line); }
.page-head > div { max-width: 720px; }
.page-head h1 { margin-top: var(--s1); font-family: var(--font-display); font-size: clamp(26px, 3vw, var(--t-2xl)); line-height: var(--lh-tight); letter-spacing: -.02em; font-weight: var(--w-bold); color: var(--ink); }
.page-head p { margin-top: var(--s2); color: var(--ink-2); font-size: var(--t-base); max-width: 64ch; }
.feed-hero-copy { max-width: 660px; }
.feed-hero h1 { font-family: var(--font-display); font-size: clamp(32px, 4vw, var(--t-3xl)); line-height: var(--lh-tight); letter-spacing: -.03em; font-weight: var(--w-bold); color: #eef3fb; }
.feed-hero p { color: #a8b5cb; font-size: var(--t-md); max-width: 60ch; }
.eyebrow { font-size: var(--t-xs); font-weight: var(--w-bold); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.accent-text { color: var(--accent-text); }
.feed-hero .eyebrow { color: #7aa7ff; }
.feed-hero .accent-text { color: #7aa7ff; }
.feed-hero a { color: #9cc0ff; }
.hero-run { position: absolute; top: var(--s5); right: var(--page-pad); }

.ask {
  position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); max-width: 760px;
  padding: var(--s2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
}
.ask input { flex: 1 1 auto; min-width: 160px; }
.feed-hero .ask {
  max-width: 760px; background: rgba(13,20,34,.82); border-color: #2c3c5c; backdrop-filter: blur(10px); box-shadow: var(--shadow-pop);
}
.feed-hero .ask input { background: transparent; border: 0; min-height: 48px; font-size: var(--t-md); color: #eef3fb; }
.feed-hero .ask .btn { min-height: 48px; }
.ask-icon { margin-left: var(--s3); color: var(--ink-3); }
.feed-hero .ask-icon { color: #c9d6ea; }
#askExamples { margin: -6px 0 var(--s4); }
.feed-hero #askExamples { flex-wrap: nowrap; overflow-x: auto; }
.feed-hero #askExamples .chip { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); color: #c9d6ea; }
.parsed { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s4) var(--s5); margin-bottom: var(--s4); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); }
.parsed strong { font-weight: var(--w-bold); }

.suggest-wrap { position: relative; }
.suggest-list {
  position: absolute; left: 0; right: 0; top: calc(100% + var(--s1)); background: var(--surface-3); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-pop); max-height: 280px; overflow-y: auto; z-index: 40; padding: var(--s1);
}
.suggest-item { padding: var(--s2) var(--s3); border-radius: var(--r-sm); cursor: pointer; font-size: var(--t-sm); display: flex; align-items: baseline; gap: var(--s2); justify-content: space-between; }
.suggest-item:hover, .suggest-item.hi { background: var(--surface-2); }
.suggest-item mark { background: none; color: var(--accent-text); font-weight: var(--w-bold); padding: 0; }
.suggest-item small { flex: none; }

/* карточка объявления */
.list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s5); }
.list.list-xl { grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); }
.list > .empty, .list > p { grid-column: 1 / -1; }
.list-xl .title { font-size: var(--t-lg); }
.list-xl .price { font-size: var(--t-xl); }

.row {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden; cursor: pointer;
  transition: transform var(--dur-base) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.row:hover, .row:focus-visible { transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--shadow-card); }
.thumb { position: relative; aspect-ratio: 16/10; background: var(--surface-2); overflow: hidden; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-base) var(--ease); }
.row:hover .thumb img { transform: scale(1.03); }
.thumb.catalog img { filter: saturate(.6); }
.no-photo { display: grid; place-items: center; gap: var(--s1); height: 100%; color: var(--ink-3); font-size: var(--t-sm); }
.photo-label { position: absolute; left: var(--s3); bottom: var(--s3); background: rgba(7,11,20,.72); color: #eef3fb; height: 24px; display: inline-flex; align-items: center; padding: 0 var(--s2); border-radius: var(--r-pill); font-size: var(--t-xs); font-weight: var(--w-medium); }
.thumb-badges { position: absolute; top: var(--s3); left: var(--s3); right: 56px; display: flex; flex-wrap: wrap; gap: 6px; }
.thumb-badges .tag { backdrop-filter: blur(8px); background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid color-mix(in srgb, currentColor 40%, transparent); }
.thumb .fav-btn {
  position: absolute; top: var(--s3); right: var(--s3); width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(7,11,20,.6); color: #fff; border: 0; backdrop-filter: blur(6px);
  transition: background var(--dur-fast) var(--ease);
}
.thumb .fav-btn:hover { background: rgba(7,11,20,.8); }
.thumb .fav-btn.on { color: #ff6b81; }
.info { padding: var(--s4) var(--s4) var(--s2); display: grid; gap: 6px; min-width: 0; }
.title { font-size: var(--t-md); font-weight: var(--w-bold); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub { font-size: var(--t-sm); color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; flex-wrap: wrap; gap: var(--s2); font-size: var(--t-xs); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; }
.meta > span + span::before { content: "·"; margin-right: var(--s2); color: var(--line-2); }
.pricebox { margin-top: auto; padding: var(--s2) var(--s4) var(--s3); display: grid; gap: 6px; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.price { font-family: var(--font-display); font-size: var(--t-xl); font-weight: var(--w-bold); letter-spacing: -.02em; white-space: nowrap; color: var(--ink); }
.gap { font-size: var(--t-sm); font-weight: var(--w-medium); }
.gap.great { color: var(--great); } .gap.good { color: var(--good); } .gap.check { color: var(--check); } .gap.suspicious { color: var(--suspicious); }
.gap.provisional, .gap .muted { color: var(--ink-3); font-weight: var(--w-regular); font-size: var(--t-xs); }
.market-range { font-size: var(--t-xs); color: var(--ink-3); }
.market-range:empty { display: none; }
.row-actions { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: var(--s2) var(--s4); border-top: 1px solid var(--line); }
.freshness { font-size: var(--t-xs); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.compare-btn { min-height: 30px; padding: 0 var(--s2); font-size: var(--t-xs); gap: 6px; display: inline-flex; align-items: center; }
.compare-btn[aria-pressed="true"] { color: var(--accent-text); background: var(--accent-weak); }

/* рейтинг и шкала */
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); color: var(--ink-2); vertical-align: middle; }
.rating b { color: var(--ink); font-weight: var(--w-bold); font-variant-numeric: tabular-nums; }
.rbars { display: inline-flex; gap: 2px; }
.seg { width: 4px; height: 12px; border-radius: 2px; background: var(--line-2); }
.rating.great .seg.on { background: var(--great); } .rating.good .seg.on { background: var(--good); }
.rating.check .seg.on { background: var(--check); } .rating.suspicious .seg.on { background: var(--suspicious); }
.rating.big { font-size: var(--t-sm); gap: var(--s2); }
.rating.big .seg { width: 6px; height: 16px; }
.ruler { position: relative; height: 22px; margin-top: var(--s2); }
.ruler .track { position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 2px; background: var(--line); }
.ruler .band { position: absolute; top: 6px; height: 10px; border-radius: 5px; background: var(--band); }
.ruler .fairtick { position: absolute; top: 3px; width: 2px; height: 16px; background: var(--ink-3); transform: translateX(-1px); }
.ruler .mark {
  position: absolute; top: 2px; width: 18px; height: 18px; border-radius: 50%; transform: translateX(-9px);
  background: var(--cat, var(--accent)); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--cat, var(--accent));
}
.ruler-legend { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s3); font-size: var(--t-xs); color: var(--ink-3); margin-top: var(--s1); }
.ruler-legend .mid { text-align: center; }
.ruler-note { margin-top: var(--s1); font-size: var(--t-xs); color: var(--ink-3); }
.ruler.big { height: 30px; margin-top: var(--s3); }
.ruler.big .track { top: 13px; } .ruler.big .band { top: 9px; height: 12px; border-radius: 6px; }
.ruler.big .fairtick { top: 5px; height: 22px; } .ruler.big .mark { top: 4px; width: 22px; height: 22px; transform: translateX(-11px); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s5); margin-bottom: var(--s4); min-width: 0; }
.panel h2 { font-size: var(--t-md); margin-bottom: var(--s1); }
.hint { color: var(--ink-2); font-size: var(--t-sm); margin-bottom: var(--s4); max-width: 70ch; }
.panel:has(> table) { overflow-x: auto; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s4); }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--s3); margin: 0 0 var(--s5); }
.stats > span { display: flex; flex-direction: column; gap: 2px; padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink-3); font-size: var(--t-xs); }
.stats b { font-family: var(--font-display); font-size: var(--t-xl); font-weight: var(--w-bold); color: var(--ink); }
.stats.ops-summary { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.empty {
  grid-column: 1 / -1; display: grid; justify-items: center; gap: var(--s2); text-align: center;
  padding: var(--s8) var(--s5); background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-md); color: var(--ink-2);
}
.empty::before { content: ""; width: 56px; height: 56px; border-radius: 50%; background: var(--accent-weak); box-shadow: inset 0 0 0 1px var(--accent-glow); }
.empty strong { font-size: var(--t-lg); color: var(--ink); font-family: var(--font-display); }
.empty-action { display: inline-block; margin-top: var(--s4); text-decoration: none; }

.row.skeleton { pointer-events: none; cursor: default; }
.sk, .row.skeleton .thumb { background: linear-gradient(90deg, var(--skeleton) 0%, var(--skeleton-shine) 50%, var(--skeleton) 100%); background-size: 200% 100%; animation: sk 1.2s ease-in-out infinite; border-radius: 6px; }
.row.skeleton .thumb { border-radius: 0; }
.sk { display: block; height: 12px; }
.sk-title { height: 16px; width: 70%; }
.sk-line { width: 90%; }
.sk-line.short { width: 55%; }
.sk-price { height: 22px; width: 45%; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.toast {
  position: fixed; left: 50%; bottom: var(--s5); transform: translate(-50%, 16px); opacity: 0;
  background: var(--surface-3); color: var(--ink); border: 1px solid var(--line-2); padding: var(--s3) var(--s4);
  border-radius: var(--r-md); box-shadow: var(--shadow-pop); font-size: var(--t-sm); pointer-events: none;
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease); z-index: 60;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.scrim { position: fixed; inset: 0; background: rgba(3,6,12,.6); backdrop-filter: blur(2px); z-index: 40; }
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(760px, 100vw); background: var(--bg); border-left: 1px solid var(--line);
  box-shadow: var(--shadow-pop); transform: translateX(102%); transition: transform 260ms var(--ease); overflow-y: auto; z-index: 50;
}
.drawer.open { transform: none; }
.drawer .inner { padding: var(--s5) var(--s6) var(--s7); }
.drawer .top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s3); }
.drawer h1 { font-size: var(--t-xl); }
.listing-freshness { margin-top: var(--s2); }
.drawer h3 { margin: var(--s6) 0 var(--s3); font-size: var(--t-md); }
.drawer .photo { aspect-ratio: 16/10; border-radius: var(--r-md); background: var(--surface-2) center/cover no-repeat; margin: var(--s4) 0 var(--s2); }
.gallery { display: flex; gap: var(--s2); overflow-x: auto; padding-bottom: var(--s1); margin-bottom: var(--s2); }
.gallery .g { flex: none; width: 88px; height: 60px; border-radius: var(--r-sm); border: 2px solid transparent; padding: 0; overflow: hidden; background: var(--surface-2); cursor: pointer; }
.gallery .g img { width: 100%; height: 100%; object-fit: cover; }
.gallery .g.active, .gallery .g:hover { border-color: var(--accent); }
.bigprice { font-family: var(--font-display); font-size: clamp(36px, 5vw, 54px); font-weight: 800; line-height: 1.1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; margin-top: var(--s4); }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin: var(--s4) 0; }
.kv > div { background: var(--surface); padding: var(--s3); }
.kv small { display: block; color: var(--ink-3); font-size: var(--t-xs); }
.kv span { font-weight: var(--w-medium); }
.receipt { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s2) var(--s4); font-variant-numeric: tabular-nums; }
.receipt .line { display: flex; align-items: baseline; gap: var(--s2); padding: var(--s2) 0; }
.receipt .line + .line { border-top: 1px dashed var(--line); }
.receipt .dots { flex: 1; border-bottom: 1px dotted var(--line-2); transform: translateY(-4px); min-width: 12px; }
.receipt .plus { color: var(--great); font-weight: var(--w-bold); }
.receipt .minus { color: var(--suspicious); font-weight: var(--w-bold); }
.receipt .total { margin: var(--s2) calc(var(--s4) * -1) 0; padding: var(--s3) var(--s4); background: var(--accent-weak); border-top: 0; font-weight: var(--w-bold); }
.notes { display: flex; flex-direction: column; gap: var(--s2); margin: var(--s3) 0; }
.note { padding: var(--s3); border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); font-size: var(--t-sm); }
.note.good { background: var(--great-bg); border-color: transparent; }
.note.bad { background: var(--check-bg); border-color: transparent; }
.note.scam { background: var(--suspicious-bg); border-color: transparent; }
.desc { white-space: pre-wrap; max-height: 280px; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s3) var(--s4); font-size: var(--t-sm); color: var(--ink-2); }
mark.ev { color: inherit; border-radius: 3px; padding: 0 2px; }
mark.ev.pos { background: var(--great-bg); box-shadow: inset 0 -2px 0 var(--great); }
mark.ev.neg { background: var(--check-bg); box-shadow: inset 0 -2px 0 var(--check); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s6); }
#reportListing { margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
#reportListing label { flex: 1 1 100%; font-weight: var(--w-medium); }
.passport { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: var(--s2); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--s3); display: flex; flex-direction: column; gap: 1px; }
.tile small { color: var(--ink-3); font-size: var(--t-xs); }
.tile b { font-weight: var(--w-bold); font-size: var(--t-base); }
.tile span { color: var(--ink-3); font-size: var(--t-xs); }
.tile.ok b { color: var(--great); } .tile.bad b { color: var(--suspicious); } .tile.mid b { color: var(--check); } .tile.none b { color: var(--ink-3); font-weight: var(--w-regular); }

.chart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s3); }
.chart svg text, svg text { fill: var(--ink-3); font-size: 11px; font-family: var(--font-ui); }
.hbars { display: flex; flex-direction: column; gap: var(--s2); }
.hbrow { display: grid; grid-template-columns: 150px 1fr 56px; gap: var(--s3); align-items: center; font-size: var(--t-sm); }
.hblabel { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbtrack { height: 10px; background: var(--surface-2); border-radius: 5px; overflow: hidden; }
.hbfill { display: block; height: 100%; background: var(--band); border-right: 2px solid var(--accent-text); border-radius: 5px; }
.hbn { text-align: right; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.progress { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; margin: var(--s3) 0 var(--s2); }
.progress > div { height: 100%; background: var(--accent); transition: width var(--dur-base) var(--ease); }
.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: var(--s2); background: var(--great); }
.status-dot.bad { background: var(--suspicious); } .status-dot.warn { background: var(--check); } .status-dot.off { background: var(--ink-3); }

table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--t-sm); }
th { text-align: left; font-size: var(--t-xs); font-weight: var(--w-medium); color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; background: var(--surface-2); }
th, td { padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:hover { background: var(--surface-2); }
.cmp { table-layout: fixed; min-width: 720px; }
.cmp th:first-child, .cmp td:first-child { position: sticky; left: 0; background: var(--surface); width: 180px; z-index: 1; }
.cmp thead th img, .compare-photo-placeholder { width: 100%; aspect-ratio: 16/10; height: auto; object-fit: cover; border-radius: var(--r-sm); }
.compare-photo-placeholder { display: grid; place-items: center; background: var(--surface-2); color: var(--ink-3); font-size: var(--t-sm); }
.comparison-price { font-family: var(--font-display); font-size: var(--t-lg); font-weight: var(--w-bold); margin: var(--s2) 0; color: var(--ink); }
.cmp td.best { color: var(--great); background: var(--great-bg); font-weight: var(--w-medium); }
.compare-diff-toggle { display: inline-flex; align-items: center; gap: var(--s2); margin-bottom: var(--s4); }

/* 7. Pages */
/* --- лента --- */
.feed-tools { display: grid; gap: var(--s3); margin-bottom: var(--s4); }
.feed-tools > div:first-child strong { font-size: var(--t-md); font-weight: var(--w-bold); }
.feed-tools .fgroup { gap: var(--s2); }
.brandchip {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); padding: 5px var(--s3) 5px 5px; border-radius: var(--r-pill); font-size: var(--t-sm); font-weight: var(--w-medium);
  cursor: pointer; transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.brandchip:hover { border-color: var(--accent); transform: translateY(-1px); }
.brand-glyph { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--accent); }
.brand-glyph img { width: 28px; height: 28px; object-fit: contain; }
.brand-glyph svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; }
.brand-initials { font-size: var(--t-sm); font-weight: var(--w-bold); color: var(--ink); letter-spacing: -.04em; }
.brandchip .brand-glyph { flex: 0 0 22px; width: 22px; height: 22px; }
.brandchip .brand-glyph img { width: 16px; height: 16px; }
.brandchip .brand-initials { font-size: 10px; }
.searchchip small { opacity: .7; font-weight: var(--w-regular); }
.brandrow { gap: var(--s2); }
.filters {
  display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; padding: var(--s3); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: var(--s5);
}
.filters select, .filters input { min-height: 36px; font-size: var(--t-sm); }

/* --- поиск --- */
.geo-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: var(--s3) var(--s4); padding: var(--s3) var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: var(--s5); }
.geo-radius { display: flex; align-items: center; gap: var(--s2); color: var(--ink-2); white-space: nowrap; }
.geo-radius select { min-height: 36px; }
.subscription-link { align-self: center; white-space: nowrap; }
.browse { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); align-items: start; }
.fpanel { position: static; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s5); }
.fpanel summary { font-size: var(--t-md); font-weight: var(--w-bold); cursor: pointer; list-style: none; margin-bottom: var(--s3); }
.fpanel summary::-webkit-details-marker { display: none; }
.fpanel > details > summary { grid-column: 1 / -1; }
.filter-grid, .advanced-grid { display: grid; gap: var(--s4); }
.advanced-filters { border-top: 1px solid var(--line); padding-top: var(--s4); margin-top: var(--s4); }
.advanced-filters summary { font-size: var(--t-sm); color: var(--accent-text); cursor: pointer; margin: 0; list-style: none; }
.advanced-filters summary::-webkit-details-marker { display: none; }
.car-select { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
.car-select-picks { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
.car-select-pick { display: grid; gap: var(--s1); min-width: 0; }
.car-select-pick > label { color: var(--ink-2); font-size: var(--t-xs); }
.car-select-pick select { width: 100%; min-width: 0; }
.all-cars-toggle { display: flex; align-items: center; gap: var(--s3); cursor: pointer; }
.all-cars-toggle input { width: 18px; min-height: 18px; flex: none; accent-color: var(--accent); }
.all-cars-toggle strong, .all-cars-toggle small { display: block; }
.all-cars-toggle small { margin-top: 2px; color: var(--ink-2); font-weight: var(--w-regular); }
.model-mods { grid-column: 1 / -1; padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.model-mods > .muted { display: block; margin-bottom: var(--s2); font-size: var(--t-xs); }
.model-mods .chip { cursor: pointer; }
.model-mods .chip small { display: inline; margin: 0 0 0 4px; color: var(--ink-2); font-size: 11px; line-height: 1; }
#breset { justify-self: start; grid-column: 1 / -1; min-height: 30px; padding: 0; border: 0; background: none; color: var(--ink-2); font-size: var(--t-xs); }
.bhead { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-bottom: var(--s4); }
.bhead > div { flex: 1 1 auto; }
#btotal { font-size: var(--t-md); }

/* --- каталог --- */
.catalog-tools { display: flex; align-items: center; gap: var(--s4); margin-bottom: var(--s4); }
.catalog-tools input { width: min(360px, 70%); }
.catalog-popular { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s5); }
.catalog-popular > span { margin-right: var(--s2); font-size: var(--t-sm); color: var(--ink-2); }
.catalog-popular button { display: inline-flex; align-items: center; gap: var(--s2); }
.catalog-popular .brand-glyph { width: 22px; height: 22px; flex-basis: 22px; }
.catalog-popular .brand-glyph img { width: 18px; height: 18px; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s3); }
.catalog-choice { border: 0; background: transparent; padding: 0; text-align: left; cursor: pointer; color: var(--ink); }
.catalog-choice.brand-choice { display: flex; align-items: center; gap: var(--s3); padding: var(--s3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color var(--dur-fast) var(--ease); }
.catalog-choice.brand-choice:hover { border-color: var(--accent); }
.brand-choice-copy { flex: 1; min-width: 0; }
.brand-choice-copy strong, .model-choice-copy strong { display: block; margin-bottom: 4px; font-size: var(--t-base); font-weight: var(--w-bold); color: var(--ink); }
.brand-choice-copy > span, .model-choice-copy > span { display: flex; justify-content: space-between; gap: var(--s2); color: var(--ink-3); font-size: var(--t-xs); }
.catalog-choice.model-choice { display: flex; flex-direction: column; align-items: stretch; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color var(--dur-fast) var(--ease); }
.catalog-choice.model-choice:hover { border-color: var(--accent); }
.model-choice > img, .model-placeholder { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--surface-2); }
.model-placeholder { display: flex; flex-direction: column; gap: var(--s2); justify-content: center; align-items: center; color: var(--ink-3); }
.model-placeholder svg { width: 64px; height: 42px; stroke: var(--ink-3); fill: none; stroke-width: 2; }
.model-placeholder small { font-size: var(--t-xs); }
.model-choice-copy { padding: var(--s3); }

/* --- топ --- */
.top-periods { margin-bottom: var(--s5); }

/* --- рынок --- */
.market-shortlist { margin-top: var(--s3); }
#mres:has(#trend) { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s5); align-items: start; }
#mres .panel { margin-top: 0; }

/* --- мои поиски --- */
.rows-simple > * + * { border-top: 1px solid var(--line); }
.srow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); padding: var(--s4) 0; }
.srow small { display: block; color: var(--ink-3); font-size: var(--t-xs); }

/* --- вход / аккаунт --- */
.login { max-width: 360px; margin: 18vh auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s6); }
.login form { display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s4); }
.auth-layout { display: grid; grid-template-columns: 1fr 440px; gap: var(--s7); align-items: center; max-width: 1040px; margin: var(--s7) auto; }
.auth-intro h1 { font-size: clamp(32px, 4vw, 52px); line-height: var(--lh-tight); margin: var(--s4) 0 var(--s5); }
.auth-intro p { color: var(--ink-2); max-width: 35ch; font-size: var(--t-md); margin-bottom: var(--s6); }
.auth-box { background: var(--surface); border: 1px solid var(--line); padding: var(--s6); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); }
.auth-box h2 { font-size: var(--t-xl); }
.auth-box form { margin-top: var(--s5); }
.auth-box label { display: grid; gap: var(--s2); font-size: var(--t-sm); margin: var(--s4) 0; }
.auth-box input:not([type=checkbox]) { width: 100%; min-height: 44px; }
.auth-box .btn { width: 100%; }
.auth-status { font-size: var(--t-sm); margin: var(--s3) 0; color: var(--ink-2); overflow-wrap: anywhere; }
.login-code { padding: 2px var(--s2); border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); font-weight: var(--w-bold); color: var(--ink); }
.auth-divider { display: flex; align-items: center; gap: var(--s4); font-size: var(--t-xs); color: var(--ink-3); margin: var(--s5) 0; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.auth-links { display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-top: var(--s6); font-size: var(--t-sm); }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--s5); }
.account-grid h2 { margin-bottom: var(--s3); }
.account-grid h3 { margin-top: var(--s5); }
.account-grid .btn, .account-grid a { margin-top: var(--s4); display: inline-block; }

/* --- подписка --- */
.plan-name { display: block; font-size: var(--t-lg); margin-bottom: var(--s3); }
.offer-price { display: flex; gap: var(--s3); align-items: baseline; flex-wrap: wrap; margin: var(--s5) 0 var(--s2); }
.offer-price strong { font-family: var(--font-display); font-size: 44px; font-weight: var(--w-bold); color: var(--accent-text); }
.offer-price span, .offer-regular { color: var(--ink-2); font-size: var(--t-sm); }
.demo-list { margin-top: var(--s5); }
.demo-car { display: flex; gap: var(--s3); align-items: center; padding: var(--s4) 0; border-top: 1px solid var(--line); }
.demo-car img { width: 96px; height: 64px; object-fit: cover; border-radius: var(--r-sm); }
.demo-car strong { font-size: var(--t-sm); }
.demo-car p { margin: var(--s1) 0 0; font-size: var(--t-xs); color: var(--ink-2); }

/* --- о сервисе / блог --- */
.section-heading { display: flex; justify-content: space-between; align-items: center; margin: var(--s6) 0 var(--s4); }
.method-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s4); }
.step-number { display: block; color: var(--accent-text); font-weight: var(--w-bold); font-size: var(--t-2xl); font-family: var(--font-display); margin-bottom: var(--s5); }
.method-grid p, .about-bottom p { color: var(--ink-2); line-height: var(--lh-body); }
.about-bottom { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--s4); margin-top: var(--s5); }
.journal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s5); }
.journal-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.journal-card img { display: block; width: 100%; height: 220px; object-fit: cover; }
.journal-card > div { padding: var(--s5); }
.journal-card h2 { font-size: var(--t-xl); margin: var(--s3) 0; }
.journal-card p { min-height: 60px; color: var(--ink-2); line-height: var(--lh-body); }
.guide-article { max-width: 760px; margin: var(--s6) auto; padding: var(--s6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.guide-article p { font-size: var(--t-md); line-height: var(--lh-body); color: var(--ink-2); }

/* --- админка --- */
.ops-table { overflow-x: auto; }
.ops-table table { width: 100%; min-width: 680px; }
.ops-table td { overflow-wrap: anywhere; }

/* 8. Responsive */
@media (max-width: 1200px) {
  .browse { grid-template-columns: 260px minmax(0, 1fr); }
  .list.list-xl { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
}
.rail .nav-bot { display: none; }
@media (max-width: 960px) {
  html { scroll-padding-top: 72px; }
  .rail { height: 56px; flex-wrap: nowrap; gap: var(--s2); padding-top: 0; padding-bottom: 0; }
  .rail #botlink { display: none; }
  .rail .nav-bot { display: flex; }
  .brand-logo { height: 26px; width: auto; }
  #account { padding: var(--s1) var(--s3); min-height: 36px; font-size: var(--t-sm); }
  .burger { width: 36px; height: 36px; }
  #account, #theme { margin-left: 0; }
  #account { margin-left: auto; }
  .burger { display: grid; order: -1; }
  .navlinks { display: none; }
  .rail.open .navlinks { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; overflow: visible; background: var(--surface); border-bottom: 1px solid var(--line); padding: var(--s3) var(--page-pad); box-shadow: var(--shadow-pop); z-index: 31; }
  .rail.open .navlinks a { min-height: 44px; display: flex; align-items: center; }
  .browse { grid-template-columns: minmax(0, 1fr); }
  .fpanel { position: static; max-height: none; }
  .auth-layout { grid-template-columns: minmax(0, 1fr); }
  #mres:has(#trend) { grid-template-columns: minmax(0, 1fr); }
  .drawer { width: 100vw; }
}
@media (max-width: 720px) {
  .page-head { flex-direction: column; align-items: flex-start; gap: var(--s3); }
  .feed-hero { min-height: 0; padding: var(--s6) var(--page-pad); }
  .page-head { padding: var(--s5) 0 var(--s3); }
  .page-head h1, .feed-hero h1 { font-size: 30px; }
  .feed-hero .ask { flex-direction: column; align-items: stretch; }
  .feed-hero .ask .btn { width: 100%; }
  .list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .filters select, .filters input { flex: 1 1 140px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-grid, .journal-grid, .about-bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .brand-name { display: none; }
}
@media (max-width: 480px) {
  .list, .list.list-xl { grid-template-columns: minmax(0, 1fr); }
  .brand-name { font-size: var(--t-base); }
  .rail #account, .rail .bell, .rail #theme, .rail .burger { min-height: 36px; }
  .btn, .chip, input:not([type=checkbox]):not([type=radio]), select, textarea { min-height: 44px; }
  .btn.small { min-height: 36px; }
  .row-actions .compare-btn { min-height: 40px; }
  .drawer .inner { padding: var(--s4); }
  .method-grid, .journal-grid, .about-bottom { grid-template-columns: minmax(0, 1fr); }
}

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

/* колокольчик уведомлений */
.bell-wrap { position: relative; flex: none; }
.bell { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; border-radius: var(--r-sm); position: relative; }
.bell .i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bell-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: var(--w-bold); display: grid; place-items: center; }
.bell-count[hidden] { display: none; }
.bell-panel { position: absolute; top: calc(100% + var(--s2)); right: 0; width: min(360px, 92vw); max-height: 60vh; overflow: auto; background: var(--surface-3); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-pop); padding: var(--s2); z-index: 40; }
.bell-panel[hidden] { display: none; }
.bell-item { display: block; white-space: pre-line; padding: var(--s2) var(--s3); border-radius: var(--r-sm); color: var(--ink); font-size: var(--t-sm); text-decoration: none; }
.bell-item:hover { background: var(--surface-2); text-decoration: none; }
.bell-item.unread { font-weight: var(--w-bold); }
.bell-panel p { margin: var(--s2) var(--s3); }

/* ---------- «Мои»: вкладки разделов ---------- */
.subtabs { display: flex; gap: var(--s2); flex-wrap: wrap; margin: 0 0 var(--s4); }

/* ---------- главная для новых посетителей ---------- */
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin: 0 0 var(--s4); }
.active-filters[hidden] { display: none; }
.active-filters .chip.on span { margin-left: 2px; opacity: .7; }
.link-btn { background: none; border: 0; padding: var(--s1) var(--s2); color: var(--accent-text); font: inherit; font-size: var(--t-sm); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--ink); }

/* ---------- главная: тёмный герой, плитки, шаги, оценка, уведомления, помощь ---------- */
.brand-logo { flex: none; width: auto; height: 30px; }

/* ---------- админка: оболочка с меню, показатели, таблицы ---------- */
.admin-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s5); align-items: start; padding-top: var(--s5); }
.admin-nav { position: sticky; top: calc(var(--header-h) + var(--s4)); display: grid; gap: 2px; padding: var(--s2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.admin-nav a { display: grid; gap: 2px; padding: var(--s2) var(--s3); border-radius: var(--r-md); color: var(--ink-2); text-decoration: none; }
.admin-nav a strong { font-size: var(--t-sm); font-weight: var(--w-medium); color: var(--ink); }
.admin-nav a small { font-size: var(--t-xs); color: var(--ink-3); }
.admin-nav a:hover { background: var(--surface-2); text-decoration: none; }
.admin-nav a.active { background: var(--accent-weak); box-shadow: inset 3px 0 0 var(--accent); }
.admin-nav a.active strong { color: var(--accent-text); }
.admin-pane { display: grid; gap: var(--s4); min-width: 0; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--s4); }
.kpi { display: grid; gap: 4px; padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.kpi small { font-size: var(--t-xs); color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.kpi b { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.1; }
.admin-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.table-wrap { overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; }
.table-wrap th, .table-wrap td { padding: var(--s2) var(--s3); text-align: left; border-bottom: 1px solid var(--line); font-size: var(--t-sm); vertical-align: middle; }
.table-wrap thead th { font-size: var(--t-xs); color: var(--ink-3); font-weight: var(--w-medium); }
.table-wrap tr[hidden] { display: none; }
.seo-table th, .seo-table td { white-space: nowrap; }   /* публичные страницы: числа и цены не рвутся по символам на узком экране, таблица прокручивается */
.toolbar { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s4); }
.toolbar input[type="search"] { flex: 1 1 240px; min-width: 0; }
.row-actions-cell { display: flex; flex-wrap: wrap; gap: var(--s2); }
.tag-ok { background: var(--great-bg); color: var(--great); }
.tag-warn { background: var(--check-bg); color: var(--check); }
.tag-bad { background: var(--suspicious-bg); color: var(--suspicious); }
.tag-muted { color: var(--ink-3); }
.form-stack { display: grid; gap: var(--s4); max-width: 640px; }
.form-stack label { display: grid; gap: 6px; font-size: var(--t-sm); }
.form-stack textarea, .form-stack select { width: 100%; }
.link-arrow { display: inline-block; margin-top: var(--s3); color: var(--accent-text); font-weight: var(--w-medium); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; }
  .admin-nav a small { display: none; }
  .admin-grid-2 { grid-template-columns: 1fr; }
}
.admin-pane .actions { margin-top: 0; align-items: center; gap: var(--s3); }

/* ---------- окно объявления: закреплённая панель закрытия ---------- */
.drawer .dbar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: var(--s3); padding: calc(var(--s2) + env(safe-area-inset-top, 0px)) var(--s4) var(--s2); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.dbar-btn { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4); border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font: inherit; font-weight: var(--w-medium); cursor: pointer; }
.dbar-btn:hover { background: var(--surface-2); }
.dbar-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: var(--w-bold); }

/* ---------- карточка объявления: цена и выгода в рублях, факты чипами ---------- */
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px var(--s3); }
.price-line .gap { padding: 2px 10px; border-radius: var(--r-pill); font-size: var(--t-sm); font-weight: var(--w-medium); white-space: nowrap; }
.price-line .gap.great { background: var(--great-bg); } .price-line .gap.good { background: var(--good-bg); }
.price-line .gap.check { background: var(--check-bg); } .price-line .gap.suspicious { background: var(--suspicious-bg); }
.price-line .gap.provisional { background: var(--surface-2); }
.facts { display: flex; flex-wrap: wrap; gap: 6px; }
.facts span { padding: 3px 9px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-2); font-size: var(--t-sm); }
.row .warn { font-size: var(--t-xs); color: var(--check); }
.row .near { color: var(--accent-text); font-weight: var(--w-medium); }
.confidence { font-size: var(--t-xs); color: var(--ink-3); }
.confidence.solid { color: var(--ink-2); }
.confidence:empty { display: none; }
.row .info { gap: var(--s2); }
.row .pricebox { padding-top: 0; }

/* ---------- переключатель вида списка ---------- */
.seg-toggle { flex: none; display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); }
.seg-toggle button { min-height: 32px; padding: 0 var(--s3); border: 0; border-radius: var(--r-pill); background: none; color: var(--ink-2); font-size: var(--t-sm); font-weight: var(--w-medium); cursor: pointer; }
.seg-toggle button[aria-pressed="true"] { background: var(--accent-weak); color: var(--accent-text); }
.list.compact { grid-template-columns: 1fr; gap: var(--s3); }
.list.compact .row { display: grid; grid-template-columns: 280px minmax(0, 1fr) 260px; grid-template-areas: "thumb info price" "thumb info actions"; }
.list.compact .row:hover { transform: none; }
.list.compact .thumb { grid-area: thumb; aspect-ratio: auto; min-height: 190px; }
.list.compact .info { grid-area: info; align-content: center; padding: var(--s4) var(--s5); }
.list.compact .pricebox { grid-area: price; align-self: end; padding: var(--s4) var(--s5) 0; }
.list.compact .row-actions { grid-area: actions; border-top: 0; align-self: start; }
@media (max-width: 860px) {
  .list.compact .row { display: flex; }
  .list.compact .thumb { aspect-ratio: 16 / 10; min-height: 0; }
}

/* ---------- панель фильтров: широкие поля вместо обрезанных ---------- */
.fpanel input[type="text"], .fpanel input[type="search"], .fpanel select { width: 100%; min-width: 0; }
.fpanel #brandQuery { width: 100%; }
.fpanel .chips { gap: 6px; }
.bhead > .seg-toggle { flex: none; }

/* ---------- окно объявления: блок «Вывод» и таблица расчёта ---------- */
.verdict { --cat: var(--accent); display: grid; gap: var(--s2); margin: var(--s4) 0; padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--cat); border-radius: var(--r-md); }
.verdict.great { --cat: var(--great); } .verdict.good { --cat: var(--good); } .verdict.check { --cat: var(--check); } .verdict.suspicious { --cat: var(--suspicious); }
.verdict strong { font-size: var(--t-md); }
.verdict p { color: var(--ink-2); }
.verdict ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--ink-2); font-size: var(--t-sm); }
.verdict li.scam, .verdict li.bad { color: var(--suspicious); }
.verdict li.good { color: var(--great); }
.receipt .line > span:last-child { white-space: nowrap; }
.receipt .line > span:first-child { min-width: 0; }

/* подпанель разделов под шапкой */
.subnav { max-width: var(--content-max); margin: var(--s4) auto 0; padding: 0 var(--page-pad); }

/* ---------- движение: появление секций главной; отключается при prefers-reduced-motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 450ms var(--ease), transform 450ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
/* ---------- сенсорные экраны: цели касания не меньше 44 px ---------- */
@media (pointer: coarse) {
  .btn, .chip, .ghost, .seg-toggle button, .link-btn, select, input[type="search"], input[type="text"], input[type="number"] { min-height: 44px; }
  .compare-btn, .fav-btn { min-width: 44px; min-height: 44px; }
}

/* ---------- стайлгайд ---------- */
.sg-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s3); }
.sg-swatch { display: grid; gap: 2px; font-size: var(--t-xs); }
.sg-swatch span { display: block; height: 44px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.sg-swatch small { color: var(--ink-3); }
.sg-narrow { max-width: 520px; }

/* ---------- главная: живые данные ---------- */

/* ---------- админка в бургере: только для администратора ---------- */
.admin-drop { position: absolute; top: calc(100% - 6px); left: var(--page-pad); z-index: 35; display: grid; gap: 2px; min-width: 280px; padding: var(--s2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); }
.admin-drop-title { padding: var(--s2) var(--s3); font-size: var(--t-xs); font-weight: var(--w-bold); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.rail .admin-drop a { display: grid; gap: 2px; padding: var(--s2) var(--s3); border-radius: var(--r-md); color: var(--ink); white-space: normal; }
.rail .admin-drop a small { color: var(--ink-3); font-size: var(--t-xs); font-weight: var(--w-regular); }
.rail .admin-drop a:hover { background: var(--surface-2); text-decoration: none; }
.nav-title { padding: var(--s3) var(--s3) var(--s1); font-size: var(--t-xs); font-weight: var(--w-bold); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
@media (min-width: 961px) {
  body.is-admin .burger { display: grid; }
  .navlinks .admin-only { display: none; }
}

/* ================= главная: живой рынок ================= */
.fx-intro { position: fixed; inset: 0; z-index: 400; pointer-events: none; }
.fx-cur { position: absolute; left: 0; right: 0; height: 50.2%; background: var(--bg); transition: transform 1.05s cubic-bezier(.76, 0, .18, 1); }
.fx-cur.t { top: 0; } .fx-cur.b { bottom: 0; }
.fx-intro.open .fx-cur.t { transform: translateY(-101%); } .fx-intro.open .fx-cur.b { transform: translateY(101%); }
.fx-core { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: var(--s4); transition: opacity .45s ease, transform 1s cubic-bezier(.76, 0, .18, 1); }
.fx-intro.open .fx-core { opacity: 0; transform: scale(.94); }
.fx-logo { width: min(320px, 62vw); height: auto; clip-path: inset(0 100% 0 0); transition: clip-path 1s cubic-bezier(.6, 0, .2, 1); }
:root:not([data-theme="light"]) .fx-logo { filter: brightness(1.7) saturate(1.1); }
.fx-intro.on .fx-logo { clip-path: inset(0 0 0 0); }
.fx-bar { display: block; width: 0; height: 2px; background: var(--accent); transition: width 1.1s cubic-bezier(.6, 0, .2, 1) .1s; }
.fx-intro.on .fx-bar { width: min(220px, 50vw); }
/* герой на фото: днём студия из стекла, ночью трасса; поиск — стеклянная панель; цвета берутся из токенов обеих тем */
.home-hero { --h-ink: #fff; --h-ink2: #c4d0e4; --h-accent: #7aa7ff; --h-bg: #05080f; --h-rgb: 5, 8, 15; contain: paint; position: relative; isolation: isolate; margin: 0 calc(-1 * var(--page-pad)); min-height: min(calc(100svh - var(--header-h)), 800px); display: flex; flex-direction: column; padding: clamp(40px, 7vh, 88px) var(--page-pad) var(--s4); color: var(--h-ink); background: var(--h-bg); border-radius: 0 0 var(--r-lg) var(--r-lg); overflow: hidden; }
:root[data-theme="light"] .home-hero { --h-ink: #0b1424; --h-ink2: #47556d; --h-accent: #1d4ed8; --h-bg: #f1f6fe; --h-rgb: 241, 246, 254; }
.hx-photo { position: absolute; z-index: -1; max-width: none; pointer-events: none; transform: translate3d(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -7px + var(--sy, 0) * 56px), 0); will-change: transform; }
.hx-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hx-photo.night { --ph: min(80vh, 700px); top: 0; right: 0; width: max(100%, calc(var(--ph) * 2.8)); aspect-ratio: 2098 / 749; -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 100%); mask-image: linear-gradient(180deg, #000 58%, transparent 100%); }
.hx-photo.night img { filter: brightness(1.4) contrast(1.08) saturate(1.12); }
.hx-photo.day { display: none; right: -5.5vw; bottom: 0; width: 90vw; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 24%); mask-image: linear-gradient(180deg, transparent 0, #000 24%); }
.hx-photo.day img { height: auto; }
.hx-lamp { position: absolute; left: var(--lx); top: var(--ly); width: 13%; aspect-ratio: 1; border-radius: 50%; opacity: 0; transform: translate(-50%, -50%) scale(.2); mix-blend-mode: screen; background: radial-gradient(circle, rgba(200, 230, 255, .95) 0%, rgba(90, 160, 255, .55) 22%, rgba(40, 100, 255, .16) 48%, transparent 70%); }
.hx-lamp.l { --lx: 56.5%; --ly: 51.5%; } .hx-lamp.r { --lx: 75%; --ly: 51%; }
.hx-sweep { position: absolute; inset: 0; opacity: 0; mix-blend-mode: overlay; transform: translateX(-110%); background: linear-gradient(100deg, transparent 36%, rgba(255, 255, 255, .95) 50%, transparent 64%); }
:root[data-theme="light"] .hx-photo.day { display: block; }
:root[data-theme="light"] .hx-photo.night { display: none; }
.home-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, var(--h-bg) 0%, rgba(var(--h-rgb), .78) 24%, rgba(var(--h-rgb), 0) 50%); }
.home-hero.fx-wait .hx-copy h1 .w > span { transform: translateY(115%); }
.home-hero.fx-wait .home-lead, .home-hero.fx-wait .hx-link, .home-hero.fx-wait .home-search { opacity: 0; }
.home-hero.fx-wait .hx-photo.night img { filter: brightness(.45) contrast(1.05) saturate(.8); }
.home-hero.fx-wait .hx-photo.day img { opacity: .2; filter: blur(10px) brightness(1.2); }
.home-hero.fx-go .hx-copy h1 .w > span { animation: fx-word 1.2s var(--ease) calc(var(--i) * 85ms + 150ms) backwards; }
.home-hero.fx-go .home-lead { animation: fx-rise 1s var(--ease) .95s backwards; }
.home-hero.fx-go .hx-link { animation: fx-rise 1s var(--ease) 1.1s backwards; }
.home-hero.fx-go .home-search { animation: fx-rise 1.1s var(--ease) 1.2s backwards; }
.home-hero.fx-go .hx-photo.night img { animation: fx-dawn 3s var(--ease) backwards; }
.home-hero.fx-go .hx-photo.day img { animation: fx-focus 2.4s var(--ease) backwards; }
.home-hero.fx-go .hx-lamp { animation: fx-ignite 2.6s cubic-bezier(.2, .8, .2, 1) .55s both; }
.home-hero.fx-go .hx-lamp.r { animation-delay: .72s; }
.home-hero.fx-go .hx-sweep { animation: fx-sweep 2.6s cubic-bezier(.5, .1, .2, 1) .7s both; }
@keyframes fx-word { from { transform: translateY(115%); } }
@keyframes fx-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes fx-dawn { from { filter: brightness(.45) contrast(1.05) saturate(.8); } }
@keyframes fx-focus { from { opacity: .2; filter: blur(10px) brightness(1.2); } }
@keyframes fx-ignite { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.2); } 16% { opacity: .95; } 24% { opacity: .2; } 38% { opacity: 1; transform: translate(-50%, -50%) scale(.8); } 100% { opacity: .85; transform: translate(-50%, -50%) scale(1); } }
@keyframes fx-sweep { 0% { opacity: 0; transform: translateX(-110%); } 14% { opacity: 1; } 86% { opacity: 1; } 100% { opacity: 0; transform: translateX(110%); } }
.hx-copy { position: relative; text-shadow: 0 2px 28px rgba(var(--h-rgb), .55); transform: translate3d(calc(var(--px, 0) * 6px), calc(var(--sy, 0) * -34px), 0); margin-top: clamp(0px, 3vh, 36px); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .03em .14em; margin: 0 -.03em -.14em; }
.w > span { display: inline-block; will-change: transform; }
.reveal:not(.in) .w > span { transform: translateY(112%); }
.reveal .w > span { transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.home-statement .w { overflow: visible; }
.home-statement .reveal:not(.in) .w > span, .home-statement.reveal:not(.in) .w > span { transform: none; }
.mag { transition: transform .35s var(--ease); will-change: transform; }
.hx-copy h1 { margin: 0; max-width: 8.4em; font-family: var(--font-display); font-weight: 800; font-size: clamp(42px, 6.2vw, 96px); line-height: .94; letter-spacing: -.045em; text-wrap: balance; color: var(--h-ink); }
.hx-accent { color: var(--h-accent); }
.home-lead { margin: var(--s5) 0 0; max-width: 22em; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.5; color: var(--h-ink2); }
.hx-link { display: inline-block; margin-top: var(--s4); padding: 10px 0; font-weight: var(--w-medium); color: var(--h-ink); text-decoration: underline; text-decoration-color: var(--h-accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.hx-link:hover { color: var(--h-accent); text-decoration-color: currentColor; }
.home-search { position: relative; z-index: 1; margin: auto 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: stretch; padding: 12px; color: var(--ink); border-radius: 30px; background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5); box-shadow: var(--glass-shadow); }
.home-search label { display: grid; gap: 2px; min-width: 0; padding: 10px 26px 8px; border-left: 1px solid var(--line-2); font-size: 12px; font-weight: var(--w-medium); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.home-search label:first-of-type { border-left: 0; padding-left: 20px; }
.home-search select { appearance: none; -webkit-appearance: none; width: 100%; height: 42px; padding: 0 28px 0 0; border: 0; border-radius: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%23eef3fb' stroke-width='2.2'%3E%3Cpath d='m1 1 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 2px center; color: var(--ink); font: 700 clamp(17px, 1.6vw, 22px) var(--font-display); letter-spacing: -.02em; text-transform: none; cursor: pointer; }
:root[data-theme="light"] .home-search select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%230b1424' stroke-width='2.2'%3E%3Cpath d='m1 1 6 6 6-6'/%3E%3C/svg%3E"); }
.home-search select:hover { color: var(--accent-text); }
.home-search select option { background: var(--surface); color: var(--ink); font: var(--w-regular) var(--t-base) var(--font-ui); }
.home-search .btn { min-height: 72px; height: auto; padding: 0 36px; border-radius: 20px; font-size: var(--t-md); font-weight: 700; white-space: nowrap; }
.home-search-hint { grid-column: 1 / -1; margin: 10px 14px 2px; font-size: var(--t-sm); color: var(--ink-3); }
.hx-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hx-blob { position: absolute; border-radius: 50%; filter: blur(70px); animation: hx-drift 18s ease-in-out infinite alternate; }
.hx-blob.b1 { width: 520px; height: 520px; top: -160px; right: -80px; background: #2563eb; opacity: .55; }
.hx-blob.b3 { width: 360px; height: 360px; top: 30%; left: -120px; background: #7c3aed; opacity: .28; animation-duration: 26s; }
@keyframes hx-drift { to { transform: translate3d(40px, 30px, 0) scale(1.12); } }
.demo-note { font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #8da2c4; }

.home-block { padding: var(--s7) 0 var(--s5); }
.home-block h2 { margin: var(--s2) 0 var(--s5); font-size: clamp(26px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -.02em; }
.home-live { padding-top: var(--s6); }
.home-live-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s2) var(--s5); margin-bottom: var(--s4); }
.home-live-head h2 { margin: 0; }
.home-numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--s4); }
.num-tile { position: relative; overflow: hidden; display: grid; gap: 4px; padding: var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.num-tile::after { content: ""; position: absolute; right: -40px; bottom: -70px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(var(--accent-glow), transparent 70%); }
.num-tile b { font-family: var(--font-display); font-size: clamp(32px, 3.6vw, 50px); line-height: 1; letter-spacing: -.03em; background: linear-gradient(90deg, var(--accent-text), var(--good)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num-tile span { font-weight: var(--w-medium); }
.num-tile small { color: var(--ink-3); }
.home-sources { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s4); }
.home-sources small { color: var(--ink-3); }
.home-sources span { padding: 4px 12px; border-radius: var(--r-pill); background: var(--surface-2); font-size: var(--t-sm); }
.home-live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s4); }
.home-live-card { display: grid; gap: 2px; padding: 0 0 var(--s3); overflow: hidden; color: var(--ink); text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.home-live-card:hover { text-decoration: none; border-color: var(--line-2); box-shadow: var(--shadow-card); }
.home-live-card .thumb { display: block; aspect-ratio: 16 / 10; margin-bottom: var(--s2); background: var(--surface-2); }
.home-live-card img { width: 100%; height: 100%; object-fit: cover; }
.home-live-card > strong, .home-live-card > span:not(.thumb), .home-live-card > small { padding: 0 var(--s3); }
.home-live-card > strong { font-family: var(--font-display); font-size: var(--t-lg); }
.home-live-card small { color: var(--ink-3); }
.home-live-note { margin-top: var(--s3); font-size: var(--t-sm); }

.hx-marquee { display: grid; gap: var(--s3); margin: var(--s6) calc(-1 * var(--page-pad)) 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.hx-marquee .track { display: flex; gap: var(--s3); width: max-content; animation: hx-scroll 80s linear infinite; }
.hx-marquee .rev .track { animation-direction: reverse; animation-duration: 100s; }
.hx-marquee:hover .track { animation-play-state: paused; }
@keyframes hx-scroll { to { transform: translateX(-50%); } }
.hx-logo { display: grid; place-items: center; flex: none; width: 88px; height: 58px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.hx-logo img { max-width: 58%; max-height: 58%; object-fit: contain; }

.bento { display: grid; border-bottom: 1px solid var(--line); }
.bento-tile { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "h demo" "p demo"; grid-template-rows: auto 1fr; column-gap: var(--s8); row-gap: var(--s3); padding: var(--s7) 0; border-top: 1px solid var(--line); }
.bento-tile h3 { grid-area: h; align-self: end; margin: 0; font-size: clamp(26px, 3vw, 44px); line-height: 1.04; letter-spacing: -.035em; transition: color var(--dur-base) var(--ease); }
.bento-tile:hover h3 { color: var(--accent-text); }
.bento-tile p { grid-area: p; margin: 0; max-width: 32em; font-size: var(--t-md); color: var(--ink-2); }
.bento-tile .bento-demo { grid-area: demo; align-self: center; margin: 0; }
.bento-demo { position: relative; margin-top: auto; padding: var(--s4); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); }
.bento-demo .demo-note { position: absolute; top: 8px; right: 12px; color: var(--ink-3); }
.tg-stack { display: grid; gap: var(--s2); padding-top: 28px; }
.msg { display: grid; gap: 2px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px 12px 12px 4px; font-size: var(--t-sm); animation: hx-msg 9s ease-in-out infinite both; }
.msg span { color: var(--ink-2); }
.msg.m2 { animation-delay: 1.2s; } .msg.m3 { animation-delay: 2.4s; }
@keyframes hx-msg { 0% { opacity: 0; transform: translateY(10px); } 10%, 78% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; } }
.hl-text { padding-top: var(--s3); line-height: 1.8; color: var(--ink-2); }
.hl-text mark { padding: 1px 6px; border-radius: 6px; color: inherit; }
.hl-text mark.ok { background: var(--great-bg); color: var(--great); }
.hl-text mark.bad { background: var(--suspicious-bg); color: var(--suspicious); }
.hl-text mark.warn { background: var(--check-bg); color: var(--check); }
.typo { display: flex; align-items: center; height: 48px; padding: 0 14px; font-size: var(--t-lg); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.typo .caret { width: 2px; height: 1.2em; margin-left: 2px; background: var(--accent-text); animation: hx-blink 1s steps(1) infinite; }
@keyframes hx-blink { 50% { opacity: 0; } }
.typo-result { min-height: 28px; margin-top: var(--s2); color: var(--great); font-weight: var(--w-medium); opacity: 0; transition: opacity .3s; }
.typo-result.on { opacity: 1; }
.mini-table { display: grid; gap: 6px; padding-top: var(--s3); font-size: var(--t-sm); }
.mini-table > div { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--s2); }
.mini-table i { font-style: normal; color: var(--ink-2); }
.mini-table i.best { color: var(--great); font-weight: var(--w-bold); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding-top: 30px; }
.bars i { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--accent), var(--accent-weak)); transform-origin: bottom; transition: transform .9s var(--ease); }
.reveal:not(.in) .bars i { transform: scaleY(0); }
.bars i:nth-child(2) { transition-delay: .08s; } .bars i:nth-child(3) { transition-delay: .16s; } .bars i:nth-child(4) { transition-delay: .24s; } .bars i:nth-child(5) { transition-delay: .32s; } .bars i:nth-child(6) { transition-delay: .4s; }
.dots { display: flex; flex-wrap: wrap; gap: 8px; }
.dots span { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); font-size: var(--t-sm); }
.dots span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.home-also { margin-top: var(--s5); font-size: var(--t-sm); color: var(--ink-2); }

.home-routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); align-items: start; }
.home-route { position: relative; display: block; aspect-ratio: 5 / 6; overflow: hidden; isolation: isolate; color: #fff; text-decoration: none; background: var(--surface-2); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.home-route:nth-child(2) { margin-top: var(--s7); }
.home-route::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(7, 12, 22, .82), rgba(7, 12, 22, 0) 58%); }
.home-route:hover { text-decoration: none; }
.home-route:hover img { transform: scale(1.07); }
.home-route:hover span::after { background-color: var(--accent); transform: translateX(4px); }
.home-route img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.home-route span { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; gap: 4px; padding: var(--s5); padding-right: calc(var(--s5) + 64px); }
.home-route strong { font-family: var(--font-display); font-size: clamp(22px, 2.3vw, 32px); line-height: 1.05; letter-spacing: -.035em; }
.home-route span::after { content: ""; position: absolute; right: var(--s5); bottom: var(--s5); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 22px no-repeat; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background-color var(--dur-base) var(--ease), transform .4s var(--ease); }
.home-route small { color: #d5e1f5; }
.home-statement { position: relative; isolation: isolate; overflow: hidden; margin: var(--s7) calc(-1 * var(--page-pad)) 0; padding: var(--s8) var(--page-pad); border-radius: var(--r-lg); color: #fff; background: linear-gradient(90deg, #070b14 0%, #070b14 34%, rgba(7, 11, 20, .35) 68%, rgba(7, 11, 20, 0) 100%), url("/static/assets/home/statement.jpg") right center / cover no-repeat, #070b14; min-height: 300px; display: grid; align-content: center; }
.home-statement p { max-width: 20ch; margin: 0 0 var(--s3); font-size: clamp(30px, 4.8vw, 60px); font-weight: var(--w-bold); line-height: 1.08; letter-spacing: -.02em; }
.home-statement small { color: #9db0cf; }
.hx-final { position: relative; isolation: isolate; overflow: hidden; display: grid; justify-items: center; gap: var(--s3); margin: var(--s7) 0 0; padding: var(--s8) var(--s5); text-align: center; color: #fff; background: #070b14; border-radius: var(--r-lg); }
.hx-final .btn { min-height: 56px; padding: 0 var(--s6); font-size: var(--t-md); font-weight: 700; }
.hx-final h2 { max-width: 20ch; font-size: clamp(28px, 4vw, 48px); letter-spacing: -.02em; }
.hx-final p { color: #b9c6dc; }
.home-faq { padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.home-faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 44px; padding: var(--s2) 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-size: clamp(18px, 1.9vw, 24px); font-weight: var(--w-bold); letter-spacing: -.025em; }
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary::after { content: ""; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--accent-weak) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%235b8def' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1 6 6 6-6'/%3E%3C/svg%3E") center no-repeat; transition: transform .4s var(--ease); }
.home-faq[open] summary::after { transform: rotate(180deg); }
.home-faq[open] p { animation: fx-rise .6s var(--ease) backwards; }
.home-faq p { max-width: 62ch; margin: var(--s2) 0 0; color: var(--ink-2); }
.home-tariffs { margin-top: var(--s4); }

@media (max-width: 960px) {
  .home-search { grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 26px; } .home-search .btn { grid-column: 1 / -1; margin-top: 8px; justify-content: center; }
  .bento-tile { grid-template-columns: minmax(0, 1fr); grid-template-areas: "h" "p" "demo"; padding: var(--s6) 0; }
  .bento-tile .bento-demo { align-self: stretch; }
}
@media (max-width: 760px) {
  .home-routes { grid-template-columns: 1fr; }
  .home-hero { min-height: 0; padding-top: var(--s6); }
  .home-hero::after { display: none; }
  .hx-copy { order: 1; margin-top: 0; }
  .hx-photo { position: relative; order: 2; transform: none; }
  .hx-copy { transform: none; }
  .hx-photo.day { right: auto; bottom: auto; width: 136%; margin: 8px 0 -64px -18%; }
  .hx-photo.night { top: auto; right: auto; width: calc(100% + 2 * var(--page-pad)); height: 300px; aspect-ratio: auto; margin: 8px calc(-1 * var(--page-pad)) -40px; }
  .hx-photo.night img { object-position: 92% 50%; }
  .hx-lamp { display: none; }
  .home-search { order: 3; grid-template-columns: 1fr; padding: 10px; border-radius: 24px; }
  .home-search label, .home-search label:first-of-type { padding: 10px 16px 6px; border-left: 0; border-top: 1px solid var(--line-2); }
  .home-search label:first-of-type { border-top: 0; }
  .home-search .btn { min-height: 64px; margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .msg, .hx-blob, .hx-marquee .track { animation: none !important; }
  .msg { opacity: 1; }
  .hx-photo, .hx-copy { transform: none; }
  .hx-lamp, .hx-sweep { display: none; }
  .lens-chart *, .odo * { transition: none !important; }
}
.typed { white-space: pre; }

/* ---------- маршрут: знак бренда едет по дороге, пока страница прокручивается ---------- */
.route-story { position: relative; height: 300vh; margin-top: var(--s7); }
.rs-pin { position: sticky; top: calc(var(--header-h) + var(--s5)); min-height: calc(100svh - var(--header-h) - var(--s7)); display: flex; flex-direction: column; justify-content: center; gap: var(--s6); }
.rs-pin h2 { max-width: 18em; margin: 0; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -.02em; }
.rs-stage { position: relative; }
.rs-svg { display: block; width: 100%; height: auto; overflow: visible; }
.rs-road { fill: none; stroke: var(--line-2); stroke-width: 3; stroke-dasharray: 2 14; stroke-linecap: round; }
.rs-trail { fill: none; stroke: var(--accent-text); stroke-width: 5; stroke-linecap: round; }
.rs-stops circle { fill: var(--surface); stroke: var(--line-2); stroke-width: 3; transition: stroke .4s var(--ease), fill .4s var(--ease); }
.rs-stops circle.on { stroke: var(--accent-text); fill: var(--accent-weak); }
.rs-stops text { text-anchor: middle; dominant-baseline: central; font: 700 22px var(--font-display); fill: var(--ink-3); transition: fill .4s var(--ease); }
.rs-stops text.on { fill: var(--accent-text); }
.rs-mark { position: absolute; left: 0; top: 0; width: 72px; height: 72px; pointer-events: none; will-change: transform; filter: drop-shadow(0 10px 18px rgba(37, 99, 235, .4)); }
.rs-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); margin: 0; padding: 0; list-style: none; }
.rs-steps li { padding-top: var(--s4); border-top: 2px solid var(--line); opacity: .38; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease), border-color .6s var(--ease); }
.rs-steps li.on { opacity: 1; transform: none; border-top-color: var(--accent-text); }
.rs-steps strong { display: block; margin-bottom: var(--s2); font-family: var(--font-display); font-size: clamp(24px, 2.8vw, 36px); line-height: 1.05; letter-spacing: -.03em; }
.rs-steps p { max-width: 24em; margin: 0; color: var(--ink-2); }
.rs-static { height: auto; }
.rs-static .rs-pin { position: static; min-height: 0; }
.rs-static .rs-steps li { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .route-story { height: 240vh; }
  .rs-steps { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .rs-mark { width: 48px; height: 48px; }
  .rs-stops text { font-size: 40px; }
  .rs-stops circle { r: 34px; }
  .rs-road { stroke-width: 6; }
  .rs-trail { stroke-width: 9; }
}

/* ---------- шкала цены: распределение аналогов, коридор рынка и перетаскиваемая цена ---------- */
.home-lens { overflow-x: clip; }
.lens-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: var(--s8); align-items: center; }
.lens-copy h2 { margin: 0; }
.lens-lead { max-width: 30em; margin: var(--s4) 0 0; font-size: var(--t-md); color: var(--ink-2); }
.lens-facts { list-style: none; margin: var(--s5) 0 0; padding: 0; display: grid; gap: var(--s3); color: var(--ink-2); }
.lens-facts strong { color: var(--ink); font-weight: var(--w-medium); }
.lens-stage { position: relative; }
.lens-prism { position: absolute; right: -120px; top: -150px; z-index: 0; width: min(470px, 50%); height: auto; pointer-events: none; filter: drop-shadow(0 40px 40px rgba(37, 99, 235, .25)); }
.lens-card { position: relative; z-index: 1; padding: var(--s6) var(--s6) var(--s5); border-radius: 34px; background: color-mix(in srgb, var(--surface) 84%, transparent); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5); box-shadow: var(--glass-shadow); }
.lens-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--s4); }
.lens-who { font-size: var(--t-sm); font-weight: var(--w-medium); color: var(--ink-3); }
.lens-price { display: block; margin-top: 4px; font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 4.4vw, 62px); line-height: 1.05; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.lens-verdict { text-align: right; }
.lens-pill { display: inline-block; min-height: 34px; padding: 7px 16px; border-radius: var(--r-pill); background: var(--accent-weak); color: var(--accent-text); font-size: var(--t-base); font-weight: 700; transition: background var(--dur-base) var(--ease), color var(--dur-base) var(--ease); }
.lens-pill[data-tone="great"] { background: var(--great-bg); color: var(--great); } .lens-pill[data-tone="good"] { background: var(--good-bg); color: var(--good); }
.lens-pill[data-tone="check"] { background: var(--check-bg); color: var(--check); } .lens-pill[data-tone="suspicious"] { background: var(--suspicious-bg); color: var(--suspicious); }
.lens-diff { margin-top: 8px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.lens-detail { min-height: 3.3em; max-width: 46em; margin: var(--s4) 0 0; color: var(--ink-2); }
.lens-chart { position: relative; margin-top: var(--s4); }
.lens-svg { display: block; width: 100%; height: auto; overflow: visible; }
.l-band { fill: var(--band); stroke: var(--accent); stroke-opacity: .25; }
.l-bandtxt { fill: var(--accent-text); font: 600 13px var(--font-ui); letter-spacing: .04em; text-transform: uppercase; }
.l-line { fill: none; stroke: var(--accent-text); stroke-width: 3; stroke-linejoin: round; }
.l-med { stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 4 6; }
.l-medtxt { fill: var(--ink-3); font: 600 12.5px var(--font-ui); }
.l-axis { stroke: var(--line-2); stroke-width: 1.5; }
.l-tick { fill: var(--ink-3); font: 500 13px var(--font-ui); }
.l-dot { fill: var(--accent-text); opacity: .55; transform-box: fill-box; transform-origin: 50% 50%; }
.l-markline { stroke: var(--ink); stroke-width: 2; }
.l-markdot { fill: var(--surface); stroke: var(--ink); stroke-width: 3; }
.l-markcore { fill: var(--ink); }
.lens-chart[data-tone="great"] .l-markcore { fill: var(--great); } .lens-chart[data-tone="great"] .l-markdot, .lens-chart[data-tone="great"] .l-markline { stroke: var(--great); }
.lens-chart[data-tone="good"] .l-markcore { fill: var(--good); } .lens-chart[data-tone="good"] .l-markdot, .lens-chart[data-tone="good"] .l-markline { stroke: var(--good); }
.lens-chart[data-tone="check"] .l-markcore { fill: var(--check); } .lens-chart[data-tone="check"] .l-markdot, .lens-chart[data-tone="check"] .l-markline { stroke: var(--check); }
.lens-chart[data-tone="suspicious"] .l-markcore { fill: var(--suspicious); } .lens-chart[data-tone="suspicious"] .l-markdot, .lens-chart[data-tone="suspicious"] .l-markline { stroke: var(--suspicious); }
.lens-chart:not(.lens-in) .l-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.lens-chart.lens-in .l-line { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.9s cubic-bezier(.6, .1, .2, 1); }
.lens-chart .l-area { transition: opacity 1.2s ease .5s; }
.lens-chart:not(.lens-in) .l-area { opacity: 0; }
.lens-chart .l-band { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .9s var(--ease) .3s; }
.lens-chart:not(.lens-in) .l-band { transform: scaleY(0); }
.lens-chart:not(.lens-in) .l-dot { transform: scale(0); opacity: 0; }
.lens-chart.lens-in .l-dot { transition: transform .5s var(--ease), opacity .4s ease; transition-delay: calc(.7s + var(--i) * 50ms); }
.lens-chart .l-mark { transition: opacity .6s ease .2s; }
.lens-chart:not(.lens-in) .l-mark { opacity: 0; }
.odo { --oh: 1.12em; display: inline-flex; height: var(--oh); overflow: hidden; vertical-align: bottom; line-height: var(--oh); font-variant-numeric: tabular-nums; }
.odo .od { display: block; height: var(--oh); overflow: hidden; }
.odo .od i { display: block; font-style: normal; transition: transform .75s cubic-bezier(.2, .85, .25, 1); will-change: transform; }
.odo .od b { display: block; height: var(--oh); font-weight: inherit; }
.odo .oc { display: block; white-space: pre; }
.odo.cut .od i { transition: none; }
.lens-range { position: absolute; left: 4%; top: 0; width: 92%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: none; }
.lens-range::-webkit-slider-thumb { width: 34px; height: 300px; }
.lens-tip { position: absolute; top: -6px; transform: translateX(-50%); padding: 6px 12px; border-radius: var(--r-pill); background: var(--ink); color: var(--bg); font-size: var(--t-sm); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; pointer-events: none; }
.lens-range:focus-visible ~ .lens-tip { outline: 3px solid var(--accent); outline-offset: 3px; }
.lens-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s5); margin-top: var(--s3); padding-top: var(--s4); border-top: 1px solid var(--line); font-size: var(--t-sm); color: var(--ink-3); }
.lens-foot b { color: var(--ink); font-weight: var(--w-medium); }
.conf-demo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); padding-top: 28px; }
.conf { padding: var(--s3) var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.conf b { display: block; font-size: var(--t-sm); }
.conf span { display: block; font-size: var(--t-xs); color: var(--ink-3); }
.conf .meter { display: flex; gap: 4px; margin-top: var(--s3); }
.conf .meter i { flex: 1; height: 6px; border-radius: 3px; background: var(--line-2); }
.conf.hi .meter i { background: var(--great); }
.conf.lo .meter i:nth-child(-n+2) { background: var(--check); }
@media (max-width: 960px) { .lens-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s7); } }
@media (max-width: 760px) {
  .lens-card { padding: var(--s5) var(--s4) var(--s4); border-radius: 28px; }
  .lens-verdict { text-align: left; }
  .lens-prism { right: -40px; top: -80px; width: 52%; }
  .conf-demo { grid-template-columns: 1fr; }
}
.demo-chips { display: flex; flex-wrap: wrap; gap: 8px; min-height: 40px; margin-top: var(--s3); }
.demo-chips span { padding: 4px 12px; border-radius: var(--r-pill); background: var(--accent-weak); color: var(--accent-text); font-size: var(--t-sm); font-weight: var(--w-medium); opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.demo-chips span.on { opacity: 1; transform: none; }
/* плавность без дёрганья: слои анимированных элементов выносятся на видеокарту, раскладка не пересчитывается */
.hx-blob, .hx-marquee .track { will-change: transform; }

/* ---------- строка поиска словами ---------- */
.browse-search { position: relative; display: flex; align-items: center; gap: var(--s2); margin: 0 0 var(--s3); padding: 6px 6px 6px var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); box-shadow: var(--shadow-card); transition: border-color var(--dur-fast) var(--ease); }
.browse-search:focus-within { border-color: var(--accent); }
.browse-search .ask-icon { flex: none; width: 20px; height: 20px; color: var(--ink-3); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.browse-search input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: none; font-size: var(--t-md); outline: none; }
.bs-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 25; display: grid; padding: var(--s2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); }
.bs-suggest button { padding: 10px 12px; border: 0; border-radius: var(--r-md); background: none; text-align: left; font-size: var(--t-base); cursor: pointer; }
.bs-suggest button:hover, .bs-suggest button:focus-visible { background: var(--surface-2); }
.parsed-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin: 0 0 var(--s3); padding: var(--s2) var(--s4); border-radius: var(--r-md); background: var(--accent-weak); color: var(--ink); font-size: var(--t-sm); }

/* ================= поиск в духе Auto.ru: широкая панель сверху, плитки марок, результаты списком ================= */
.brand-strip { margin: 0 0 var(--s4); }
.bstrip-track { display: flex; gap: var(--s3); padding-bottom: var(--s2); overflow-x: auto; scrollbar-width: thin; scroll-snap-type: x proximity; }
.bstrip-item { display: flex; flex: none; align-items: center; gap: var(--s3); min-width: 150px; padding: var(--s3) var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); cursor: pointer; text-align: left; scroll-snap-align: start; transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.bstrip-item:hover { border-color: var(--accent); box-shadow: var(--shadow-card); }
.bstrip-item span { display: grid; gap: 1px; }
.bstrip-item strong { font-size: var(--t-sm); }
.bstrip-item small { color: var(--ink-3); font-size: var(--t-xs); }

.fpanel .filter-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; gap: var(--s4) var(--s5); }
.fpanel .filter-grid > .fg-car { grid-column: span 6; order: 1; }
.fpanel .filter-grid > .fg-year, .fpanel .filter-grid > .fg-price { grid-column: span 3; }
.fpanel .filter-grid > .fg-year { order: 2; } .fpanel .filter-grid > .fg-price { order: 3; }
.fpanel .filter-grid > .fg-quick { grid-column: span 9; order: 4; }
.fpanel .filter-grid > .fg-cond { grid-column: span 3; order: 5; }
.fpanel .filter-grid > .advanced-filters, .fpanel .filter-grid > .fg-actions { grid-column: 1 / -1; }
.fpanel .filter-grid > .advanced-filters { order: 6; } .fpanel .filter-grid > .fg-actions { order: 7; }
.fpanel .car-select-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fpanel #carModelFields > label[for="brandQuery"], .fpanel #brandQuery { display: none; }
.fpanel .advanced-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); align-items: start; gap: var(--s4) var(--s5); }
.fg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); padding-top: var(--s2); border-top: 1px solid var(--line); }
.fg-actions #showCount { min-height: 48px; padding: 0 var(--s6); font-size: var(--t-md); }
.fpanel select, .fpanel input[type="number"] { min-height: 44px; }

/* результаты списком: крупное фото слева, название и факты в центре, цена справа */

@media (max-width: 960px) {
  .fpanel .filter-grid > .fg-car, .fpanel .filter-grid > .fg-year, .fpanel .filter-grid > .fg-price,
  .fpanel .filter-grid > .fg-quick, .fpanel .filter-grid > .fg-cond { grid-column: 1 / -1; }
  .fpanel { padding: var(--s4); }
  .fg-actions { position: sticky; bottom: var(--s3); z-index: 5; padding: var(--s3); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); }
  .fg-actions #showCount { flex: 1 1 auto; }
}

/* ---------- фотографии главной: кристаллы, самолётик, фон цитаты ---------- */
.hx-crystals { position: absolute; right: -10%; top: -8%; z-index: 0; width: 92%; max-width: 680px; height: auto; pointer-events: none; opacity: .95; animation: hx-float 9s ease-in-out infinite; }
.final-crystals { position: absolute; right: -4%; bottom: -30%; z-index: -1; width: min(52%, 560px); height: auto; opacity: .55; pointer-events: none; }
:root[data-theme="dark"] .brand-logo { filter: brightness(1.7) saturate(1.1) drop-shadow(0 0 6px rgba(96, 165, 250, .35)); }
@media (max-width: 960px) { .hx-crystals { position: static; width: 70%; margin: 0 auto -40px; animation: none; } .final-crystals { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .hx-crystals { animation: none !important; } }

/* ================= профиль: обзор, история, уведомления, безопасность ================= */
.pf-hero { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s5); margin: var(--s5) 0 var(--s4); padding: var(--s6); overflow: hidden; border-radius: var(--r-lg); color: #eef3fb; background: radial-gradient(520px 260px at 90% 0%, rgba(37, 99, 235, .45), transparent 65%), linear-gradient(135deg, #0a1222, #14233f); }
.pf-hero .eyebrow { color: #7aa7ff; }
.pf-avatar { display: grid; place-items: center; flex: none; width: 80px; height: 80px; border-radius: 50%; font-family: var(--font-display); font-size: 28px; font-weight: var(--w-bold); color: #fff; background: linear-gradient(135deg, #2563eb, #0ea5e9 70%, #5eead4); box-shadow: 0 0 0 4px rgba(255, 255, 255, .12), 0 12px 30px rgba(37, 99, 235, .45); }
.pf-id { flex: 1 1 260px; min-width: 0; }
.pf-id h1 { margin: var(--s1) 0 var(--s1); font-size: clamp(24px, 3vw, 34px); color: #fff; letter-spacing: -.02em; overflow-wrap: anywhere; }
.pf-id .muted { color: #b9c6dc; }
.pf-badges { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.pf-hero .tag { background: rgba(255, 255, 255, .12); color: #dbe6f7; }
.pf-hero .tag-ok { background: rgba(52, 211, 153, .2); color: #6ee7b7; }
.pf-hero .tag-warn { background: rgba(251, 191, 36, .2); color: #fcd34d; }
.pf-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.pf-hero .btn.secondary { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .3); }
.pf-hero .btn.ghost { color: #dbe6f7; }
.pf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--s4); margin-bottom: var(--s4); }
.pf-stat { display: grid; gap: 2px; padding: var(--s4) var(--s5); color: var(--ink); text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.pf-stat:hover { border-color: var(--accent); box-shadow: var(--shadow-card); text-decoration: none; }
.pf-stat b { font-family: var(--font-display); font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: -.02em; }
.pf-stat span { font-weight: var(--w-medium); }
.pf-stat small { color: var(--ink-3); }
.pf-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); margin-bottom: var(--s4); align-items: start; }
.pf-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s3); }
.pf-head h2, .pf-form h2 { margin: 0; font-size: var(--t-lg); }
.pf-plan { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); }
.pf-plan h2 { margin: 0 0 var(--s1); font-size: var(--t-lg); }
.pf-list { display: grid; gap: var(--s2); }
.pf-day { margin: var(--s4) 0 var(--s2); font-size: var(--t-sm); font-weight: var(--w-bold); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.pf-day:first-child { margin-top: 0; }
.pf-item { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: var(--s3); padding: var(--s2) var(--s3) var(--s2) var(--s2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease); }
.pf-item:hover, .pf-item:focus-visible { border-color: var(--line-2); background: var(--surface-2); }
.pf-thumb { display: grid; place-items: center; width: 72px; height: 54px; overflow: hidden; border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink-3); }
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pf-body { display: grid; gap: 2px; min-width: 0; }
.pf-body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-sm); }
.pf-body small, .pf-side small { color: var(--ink-3); font-size: var(--t-xs); }
.pf-note { color: var(--accent-text); font-size: var(--t-xs); }
.pf-side { display: grid; gap: 2px; justify-items: end; padding-right: 28px; text-align: right; }
.pf-side b { font-family: var(--font-display); font-size: var(--t-base); white-space: nowrap; }
.pf-delta { padding: 1px 8px; border-radius: var(--r-pill); font-size: var(--t-xs); font-weight: var(--w-medium); white-space: nowrap; }
.pf-delta.down { background: var(--great-bg); color: var(--great); } .pf-delta.up { background: var(--suspicious-bg); color: var(--suspicious); }
.pf-x { position: absolute; top: 50%; right: var(--s2); display: grid; place-items: center; width: 28px; height: 28px; padding: 0; transform: translateY(-50%); border: 0; border-radius: 50%; background: none; color: var(--ink-3); cursor: pointer; }
.pf-x:hover { background: var(--surface-3); color: var(--ink); }
.pf-x .i { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pf-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-bottom: var(--s4); }
.pf-grow { flex: 1; }
.pf-more { display: grid; justify-items: center; margin-top: var(--s4); }
.pf-form { display: grid; gap: var(--s4); }
.pf-form label, .pf-form fieldset { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; font-size: var(--t-sm); }
.pf-form legend { margin-bottom: 6px; padding: 0; font-weight: var(--w-medium); }
.pf-form select, .pf-form input:not([type="checkbox"]) { width: 100%; min-height: 44px; }
.pf-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.pf-switch { display: flex !important; align-items: center; gap: var(--s3); cursor: pointer; }
.pf-switch input { flex: none; width: 22px; height: 22px; min-height: 0; accent-color: var(--accent); }
.pf-methods { display: grid; gap: var(--s3); margin: 0 0 var(--s3); padding: 0; list-style: none; }
.pf-methods li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r-md); }
.pf-methods li > div { display: grid; flex: 1; min-width: 160px; }
.pf-methods small { color: var(--ink-3); overflow-wrap: anywhere; }
.pf-m-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-weak); color: var(--accent-text); }
.pf-m-ico .i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) {
  .pf-cols { grid-template-columns: minmax(0, 1fr); }
  .pf-hero { padding: var(--s5); }
  .pf-item { grid-template-columns: 64px minmax(0, 1fr); }
  .pf-side { grid-column: 2; justify-items: start; grid-auto-flow: column; justify-content: start; gap: var(--s2); padding-right: 28px; text-align: left; }
}

/* ================= поддержка и блок «ваша площадка» ================= */
.sp-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s4); align-items: start; }
.sp-grid .form-stack { max-width: none; }
.sp-side { display: grid; gap: var(--s4); }
.sp-side h2, .sp-grid h2, .sp-mine h2 { margin: 0 0 var(--s3); font-size: var(--t-lg); }
.sp-mine { margin: var(--s6) 0 var(--s5); }
.sp-ticket { display: grid; gap: var(--s2); margin-bottom: var(--s3); padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.sp-ticket header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); }
.sp-ticket p { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.sp-reply { padding: var(--s3) var(--s4); border-left: 3px solid var(--accent); border-radius: var(--r-sm); background: var(--accent-weak); }
.sp-reply small { color: var(--accent-text); }
.home-request { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s5); margin: var(--s5) 0; padding: var(--s6); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.home-request > div:first-child { flex: 1 1 380px; }
.home-request h2 { margin: var(--s2) 0 var(--s3); }
.home-request p { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .sp-grid { grid-template-columns: minmax(0, 1fr); } .home-request { padding: var(--s5); } }
.home-request-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* ================= телефон: страница «Поиск» начинается со строки поиска ================= */
@media (max-width: 720px) {
  #view[data-page="browse"] .page-head { flex-direction: row; align-items: center; flex-wrap: nowrap; padding: var(--s3) 0 var(--s2); margin-bottom: var(--s2); border-bottom: 0; }
  #view[data-page="browse"] .page-head h1 { margin: 0; font-size: 22px; }
  #view[data-page="browse"] .page-head .eyebrow, #view[data-page="browse"] .page-head p, #view[data-page="browse"] .subscription-link + .subscription-link { display: none; }
  #view[data-page="browse"] .subscription-link { flex: none; font-size: var(--t-sm); }
  #view[data-page="browse"] .geo-controls { gap: var(--s3); padding: var(--s2) var(--s3); margin-bottom: var(--s3); }
  #view[data-page="browse"] .geo-radius { flex: none; }
  #view[data-page="browse"] .geo-radius select { width: auto; min-width: 84px; }
}

/* ================= выбор «где искать» и разделитель результатов ================= */
.geo-short { display: none; }
.geo-hint { flex: 1 1 220px; color: var(--ink-2); font-size: var(--t-xs); }
.geo-sep { display: flex; align-items: center; gap: var(--s3); margin: var(--s4) 0 var(--s2); color: var(--ink-3); font-size: var(--t-sm); font-weight: var(--w-medium); }
.geo-sep::before, .geo-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 720px) {
  #view[data-page="browse"] .geo-seg { width: 100%; }
  .geo-long { display: none; }
  .geo-short { display: inline; }
  #view[data-page="browse"] .geo-seg button { flex: 1 1 auto; padding: 0 var(--s2); font-size: var(--t-xs); }
  #view[data-page="browse"] .geo-hint { display: none; }
}

/* ================= справка ================= */
.help-search { display: block; flex: 1 1 280px; max-width: 420px; }
.help-search input { width: 100%; }
.help-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s6); align-items: start; margin-bottom: var(--s6); }
.help-toc { position: sticky; top: calc(var(--header-h) + var(--s4)); display: grid; gap: 2px; }
.help-toc a { padding: var(--s2) var(--s3); border-radius: var(--r-sm); color: var(--ink-2); font-size: var(--t-sm); font-weight: var(--w-medium); }
.help-toc a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.help-toc a.active { background: var(--accent-weak); color: var(--accent-text); }
.help-sec { margin-bottom: var(--s6); scroll-margin-top: calc(var(--header-h) + var(--s4)); }
.help-sec h2 { margin: 0 0 var(--s2); font-size: var(--t-xl); }
.help-a { padding-top: var(--s2); color: var(--ink-2); }
.help-a p, .help-a ul, .help-a ol { margin: 0 0 var(--s3); }
.help-a li { margin-bottom: var(--s1); }
.help-a code { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); font-size: .92em; }
.help-table { width: 100%; border-collapse: collapse; }
.help-table td { padding: var(--s2) var(--s3) var(--s2) 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.help-cta { max-width: 520px; }
.help-cta h2 { margin: 0 0 var(--s2); font-size: var(--t-lg); }
@media (max-width: 860px) {
  .help-layout { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .help-toc { position: static; display: flex; gap: var(--s2); overflow-x: auto; padding-bottom: var(--s2); scrollbar-width: none; }
  .help-toc a { flex: none; border: 1px solid var(--line); border-radius: var(--r-pill); white-space: nowrap; }
}
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ================= повторы объявлений ================= */
.dups { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s2); color: var(--ink-2); font-size: var(--t-xs); }
.dups a { color: var(--accent-text); }

.row-bad td { background: var(--suspicious-bg); }

.home-accuracy { max-width: 760px; margin: var(--s4) 0 0; font-size: var(--t-sm); }

/* ================= динамика цены ================= */
.trend { margin-left: var(--s2); padding: 1px 8px; border-radius: var(--r-pill); font-family: var(--font-body); font-size: var(--t-xs); font-weight: var(--w-medium); white-space: nowrap; vertical-align: middle; }
.trend.down { background: var(--great-bg); color: var(--great); }
.trend.up { background: var(--suspicious-bg); color: var(--suspicious); }
.phist { display: grid; gap: var(--s2); padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.phist-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2); }
.phist-sum.down b { color: var(--great); }
.phist-sum.up b { color: var(--suspicious); }
.phist-sum small { margin-left: auto; color: var(--ink-3); }
.phist svg { width: 100%; height: 70px; }
.phist-rows { display: grid; gap: 2px; font-size: var(--t-sm); }
.phist-rows div { display: flex; justify-content: space-between; gap: var(--s3); color: var(--ink-2); }

.pay-box { display: grid; gap: var(--s2); margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); }
.pay-box h3 { margin: 0; font-size: var(--t-base); }
.pay-box p { margin: 0; }

.pf-invite { display: grid; gap: var(--s3); margin-top: var(--s4); }
.pf-invite h2 { margin: 0 0 var(--s1); font-size: var(--t-lg); }
.pf-invite-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.pf-invite-row input { flex: 1 1 260px; min-width: 0; }

/* ================= рынок: модификации ================= */
.mkt-facets { display: grid; gap: var(--s3); margin: var(--s3) 0; }
.mkt-facet { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: start; gap: var(--s3); }
.mkt-facet-title { padding-top: 6px; color: var(--ink-3); font-size: var(--t-sm); font-weight: var(--w-medium); }
.mkt-picked { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-bottom: var(--s3); }
.mkt-table { width: 100%; border-collapse: collapse; margin-top: var(--s3); font-size: var(--t-sm); }
.mkt-table th { text-align: left; color: var(--ink-3); font-weight: var(--w-medium); padding: var(--s2) var(--s3) var(--s2) 0; }
.mkt-table td { padding: var(--s2) var(--s3) var(--s2) 0; border-top: 1px solid var(--line); }
.mkt-mods tbody tr { cursor: pointer; }
.mkt-mods tbody tr:hover, .mkt-mods tbody tr:focus-visible { background: var(--surface-2); }
@media (max-width: 720px) { .mkt-facet { grid-template-columns: minmax(0, 1fr); gap: var(--s1); } .mkt-facet-title { padding-top: 0; } }

/* ================= документы, cookie, согласие ================= */
.cookie-notice { position: fixed; top: calc(var(--header-h) + var(--s3)); right: var(--s4); z-index: 60; display: grid; gap: var(--s3); width: min(380px, calc(100vw - 2 * var(--s4))); padding: var(--s4); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); animation: cookie-in .8s var(--ease) 1.4s backwards; }
.cookie-notice p { margin: 0; font-size: var(--t-sm); color: var(--ink-2); }
.cookie-notice .btn { justify-self: start; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(-14px); } }
@media (max-width: 760px) { .cookie-notice { top: auto; bottom: var(--s3); left: var(--s3); right: var(--s3); width: auto; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: var(--s3) var(--s4); animation-name: cookie-in-m; } }
@keyframes cookie-in-m { from { opacity: 0; transform: translateY(14px); } }
.consent-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: var(--s4); background: rgba(7, 11, 20, .72); }
.consent-card { width: min(480px, 100%); max-height: 100%; overflow: auto; display: grid; gap: var(--s3); padding: var(--s5); background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: var(--shadow-pop); animation: consent-in .22s ease-out; }
@keyframes consent-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .consent-card { animation: none; } }
.consent-card h2 { margin: 0; font-size: var(--t-lg); line-height: 1.15; letter-spacing: -.01em; }
.consent-card .eyebrow { margin: 0; }
.consent-lead { margin: 0; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.45; }
.consent-points { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.consent-points li { display: grid; grid-template-columns: 36px 1fr; gap: var(--s3); align-items: start; padding: 10px var(--s3); background: var(--accent-weak); border-radius: var(--r-md); }
.consent-points b { display: block; font-size: var(--t-base); }
.consent-points li div span { display: block; margin-top: 2px; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.45; }
.consent-ico { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); color: var(--accent-text); box-shadow: 0 0 0 1px var(--line); }
.consent-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.consent-docs { display: flex; flex-wrap: wrap; gap: var(--s2); }
.consent-docs a { padding: 5px 12px; border-radius: var(--r-pill); border: 1px solid var(--line-2); color: var(--ink-2); font-size: var(--t-xs); text-decoration: none; }
.consent-docs a:hover, .consent-docs a:focus-visible { color: var(--accent-text); border-color: var(--accent-text); }
.consent-ok { width: 100%; padding-block: 14px; font-size: var(--t-md); }
.consent-no { justify-self: center; background: none; border: 0; padding: var(--s2); color: var(--ink-3); font: inherit; font-size: var(--t-sm); cursor: pointer; text-decoration: underline; }
.consent-no:hover { color: var(--ink-2); }
.consent-check { align-items: flex-start !important; font-size: var(--t-sm); }
.auth-note { margin: var(--s3) 0 0; font-size: var(--t-xs); }
.pf-privacy { display: grid; gap: var(--s3); margin-top: var(--s4); }
.pf-privacy h2 { margin: 0; font-size: var(--t-lg); }

/* ---------- админка: роли, постраничный список, рассылки; «Что нового» ---------- */
.user-toolbar select { flex: 0 1 180px; min-width: 0; }
.role-select { min-width: 150px; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); padding-top: var(--s4); }
.bc-group { display: grid; gap: var(--s2); min-width: 0; padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r-md); }
.bc-group legend { padding: 0 var(--s2); font-size: var(--t-sm); font-weight: var(--w-medium); color: var(--ink-2); }
.bc-segment, .bc-picker { display: grid; gap: var(--s3); padding-left: var(--s6); }
.bc-found { display: flex; flex-direction: column; gap: var(--s1); max-height: 260px; overflow-y: auto; }
.bc-found-item { flex: none; display: block; min-height: 44px; padding: var(--s2) var(--s3); line-height: 1.35; overflow-wrap: anywhere; text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; }
.bc-found-item:hover:not(:disabled) { background: var(--surface-2); }
.bc-found-item:disabled { opacity: .5; cursor: default; }
.bc-text { max-width: 320px; white-space: pre-line; }
.news-banner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin: var(--s3) 0; padding: var(--s2) var(--s4); font-size: var(--t-sm); background: var(--accent-weak); border: 1px solid var(--line); border-radius: var(--r-lg); }
.news-banner a { margin-left: auto; font-weight: var(--w-medium); }
.news-banner button { min-width: 36px; min-height: 36px; font-size: 20px; color: var(--ink-2); background: none; border: 0; cursor: pointer; }
.news-list { display: grid; gap: var(--s4); max-width: 760px; }
.news-item header { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.news-item time { font-size: var(--t-sm); color: var(--ink-3); }
.news-item h2 { margin: var(--s2) 0; }
.news-item ul { display: grid; gap: var(--s2); padding-left: var(--s5); }
#newsfoot.has-news::after { content: "новое"; margin-left: 6px; padding: 1px 6px; font-size: 11px; color: #fff; background: var(--accent); border-radius: var(--r-pill); }
@media (max-width: 720px) {
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards tr { margin-bottom: var(--s3); padding: var(--s2) var(--s3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
  .table-cards td { display: flex; justify-content: space-between; gap: var(--s3); padding: var(--s1) 0; text-align: right; white-space: normal; border-bottom: 0; }
  .table-cards td[data-label]::before { content: attr(data-label); flex: none; padding-top: 2px; font-size: var(--t-xs); color: var(--ink-3); text-align: left; }
  .table-cards td.row-actions-cell { flex-wrap: wrap; justify-content: flex-start; text-align: left; }
  .table-cards td.row-actions-cell::before { width: 100%; }
  .users-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "acc id" "role plan" "date date" "act act"; align-items: center; gap: var(--s2) var(--s3); }
  .users-table td { display: block; padding: 0; text-align: left; }
  .users-table td[data-label]::before { content: none; }
  .users-table td.c-acc { grid-area: acc; }
  .users-table td.c-id { grid-area: id; text-align: right; color: var(--ink-3); }
  .users-table td.c-id::before { content: "№"; }
  .users-table td.c-role { grid-area: role; }
  .users-table td.c-plan { grid-area: plan; text-align: right; }
  .users-table td.c-date { grid-area: date; font-size: var(--t-xs); color: var(--ink-3); }
  .users-table td.c-date::before { content: "Регистрация: "; }
  .users-table td.c-act { grid-area: act; display: flex; flex-wrap: wrap; gap: var(--s2); }
  .users-table td.c-act::before { content: none; }
  .users-table .btn.small { min-height: 36px; }
  .channels-table td { flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
  .channels-table td input { width: 100%; }
  .channels-table td[data-label=""]::before { content: none; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
  .kpi { padding: var(--s3); }
  .kpi small { overflow-wrap: anywhere; }
  .bc-segment, .bc-picker { padding-left: 0; }
  .user-toolbar select { flex: 1 1 140px; }
  .bc-text { max-width: none; text-align: left; }
}
.market-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: var(--s3); }

.funnel-bar{display:inline-block;width:120px;height:8px;border-radius:4px;background:var(--line,#e3e6ea);vertical-align:middle;overflow:hidden}
.funnel-bar i{display:block;height:100%;background:var(--accent,#1f6feb);border-radius:4px}
.plain-list{list-style:none;padding:0;margin:0;display:grid;gap:6px}

/* ---------- выдача и окно объявления: карточки появляются по очереди, шкала цены «находит» своё место ---------- */
.row:not(.skeleton) { animation: row-in .75s var(--ease) calc(var(--i, 0) * 55ms) backwards; }
.row:nth-child(2) { --i: 1; }
.row:nth-child(3) { --i: 2; }
.row:nth-child(4) { --i: 3; }
.row:nth-child(5) { --i: 4; }
.row:nth-child(6) { --i: 5; }
.row:nth-child(7) { --i: 6; }
.row:nth-child(8) { --i: 7; }
.row:nth-child(9) { --i: 8; }
.row:nth-child(10) { --i: 9; }
.row:nth-child(11) { --i: 10; }
.row:nth-child(12) { --i: 11; }
@keyframes row-in { from { opacity: 0; transform: translateY(24px) scale(.985); } }
.row .ruler .band { animation: band-in .9s var(--ease) calc(var(--i, 0) * 55ms + .3s) backwards; }
@keyframes band-in { from { transform: scaleX(0); opacity: 0; } }
.row .ruler .mark, .drawer .ruler .mark { animation: mark-in 1.2s cubic-bezier(.2, .8, .2, 1) calc(var(--i, 0) * 55ms + .4s) backwards; }
.drawer .ruler .mark { animation-delay: .5s; }
.drawer .ruler .band { animation: band-in .9s var(--ease) .35s backwards; }
@keyframes mark-in { from { left: 0; } }
.row .price { font-weight: 800; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.drawer.open .inner > * { animation: fx-rise .75s var(--ease) backwards; }
.drawer.open .inner > :nth-child(1) { animation-delay: .1s; } .drawer.open .inner > :nth-child(2) { animation-delay: .15s; }
.drawer.open .inner > :nth-child(3) { animation-delay: .2s; } .drawer.open .inner > :nth-child(4) { animation-delay: .25s; }
.drawer.open .inner > :nth-child(5) { animation-delay: .3s; } .drawer.open .inner > :nth-child(6) { animation-delay: .35s; }
.drawer.open .inner > :nth-child(7) { animation-delay: .4s; } .drawer.open .inner > :nth-child(n+8) { animation-delay: .45s; }
.drawer.open .photo { animation: ph-in 1.1s var(--ease) .2s backwards; }
@keyframes ph-in { from { opacity: 0; transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) {
  .row:not(.skeleton), .row .ruler .band, .row .ruler .mark, .drawer .ruler .mark, .drawer .ruler .band, .drawer.open .inner > *, .drawer.open .photo, .cookie-notice { animation: none; }
}
@media (max-width: 960px) { .home-route:nth-child(2) { margin-top: 0; } }
@media (max-width: 760px) { .home-route { aspect-ratio: 16 / 11; } }
@media (prefers-reduced-motion: reduce) { .home-faq[open] p { animation: none; } .home-route img { transition: none; } }
