/* ЛотРадар — дизайн-система.
   Нейтральная палитра, крупная типографика, много воздуха, стекло и мягкие тени. */

:root {
  --bg: #fbfbfd;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --faint: #86868b;
  --line: rgba(0, 0, 0, .08);
  --line-strong: rgba(0, 0, 0, .14);
  --accent: #2f7a5c;
  --accent-hover: #28684e;
  --accent-ink: #ffffff;
  --accent-soft: rgba(47, 122, 92, .1);
  --teal: #4a9c8c;
  --good: #1a8f4c;
  --mid: #c26a00;
  --bad: #d70015;
  --warn-soft: #fff6e0;
  --nav-bg: rgba(251, 251, 253, .72);
  --r-xs: 8px; --r-sm: 12px; --r: 18px; --r-lg: 24px; --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04);
  --shadow: 0 2px 6px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.07);
  --shadow-lg: 0 4px 12px rgba(0,0,0,.05), 0 30px 80px rgba(0,0,0,.14);
  --ease: cubic-bezier(.25, .1, .25, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --bg-alt: #0b0b0c; --surface: #1c1c1e; --surface-2: #2c2c2e;
    --ink: #f5f5f7; --ink-2: #d2d2d7; --muted: #a1a1a6; --faint: #86868b;
    --line: rgba(255,255,255,.1); --line-strong: rgba(255,255,255,.18);
    --accent: #6bbf9c; --accent-hover: #84ccae; --accent-ink: #06170f; --accent-soft: rgba(107,191,156,.14);
    --teal: #6cbfae; --good: #32d74b; --mid: #ffb340; --bad: #ff6961; --warn-soft: #2b2310;
    --nav-bg: rgba(22, 22, 23, .72);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
    --shadow: 0 2px 8px rgba(0,0,0,.5), 0 12px 32px rgba(0,0,0,.4);
    --shadow-lg: 0 30px 80px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}

/* ---------- основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.47 var(--font); letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.022em; }
svg { flex: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 22px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-size: 15px; font-weight: 500; letter-spacing: -.01em;
  padding: 9px 18px; border-radius: 980px; text-decoration: none !important; white-space: nowrap;
  transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(.97); }
.btn svg { width: 16px; height: 16px; }
.btn-lg { font-size: 17px; padding: 13px 26px; }
.btn.small { font-size: 14px; padding: 7px 14px; }
.btn.wide { width: 100%; }
.btn-plain { background: transparent; color: var(--accent); padding-left: 10px; padding-right: 10px; }
.btn-plain:hover { background: transparent; text-decoration: underline !important; text-underline-offset: 4px; }
.btn.ghost, .btn-gray { background: var(--surface-2); color: var(--ink); }
.btn.ghost:hover, .btn-gray:hover { background: color-mix(in srgb, var(--surface-2) 80%, var(--ink) 8%); }
.btn-white { background: #fff; color: #1d1d1f; }
.btn-white:hover { background: #f0f0f2; }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 0; letter-spacing: inherit; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- навигация (стекло) ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { max-width: 1200px; margin: 0 auto; padding: 0 22px; height: 52px; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 17px; letter-spacing: -.02em; text-decoration: none !important; }
.logo-mark { width: 24px; height: 24px; }
.nav-links { display: flex; gap: 26px; flex: 1; justify-content: center; }
.nav-links a { color: var(--ink); opacity: .8; font-size: 13px; letter-spacing: -.005em; text-decoration: none; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.account { display: flex; gap: 12px; align-items: center; font-size: 13px; }
.account .btn { font-size: 13px; padding: 5px 13px; }
.account .sub { color: var(--good); font-weight: 600; white-space: nowrap; }
.account .meta { color: var(--muted); }

.demo-banner { background: var(--warn-soft); color: var(--ink-2); text-align: center; font-size: 13px; padding: 9px 22px; }

/* ---------- первый экран ---------- */
.hero { position: relative; padding: clamp(64px, 11vw, 132px) 0 0; text-align: center; overflow: hidden; isolation: isolate; }
.hero-glow { position: absolute; inset: -10% -10% auto; height: 120%; z-index: -1; pointer-events: none; filter: blur(80px); opacity: .5; }
.hero-glow i { position: absolute; border-radius: 50%; }
.hero-glow i:nth-child(1) { width: 46vw; height: 46vw; left: 4%; top: 6%; background: radial-gradient(circle, #b4dccd 0%, transparent 65%); animation: drift 18s var(--ease) infinite alternate; }
.hero-glow i:nth-child(2) { width: 40vw; height: 40vw; right: 2%; top: 0; background: radial-gradient(circle, #cfe3c0 0%, transparent 65%); animation: drift 22s var(--ease) infinite alternate-reverse; }
.hero-glow i:nth-child(3) { width: 38vw; height: 38vw; left: 32%; top: 30%; background: radial-gradient(circle, #c7e2ea 0%, transparent 65%); animation: drift 26s var(--ease) infinite alternate; }
@media (prefers-color-scheme: dark) { .hero-glow { opacity: .32; } }
@keyframes drift { to { transform: translate3d(4vw, 3vw, 0) scale(1.08); } }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; color: var(--ink-2); margin: 0 0 22px;
  padding: 7px 14px 7px 12px; border-radius: 980px; background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: none; animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 55%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }

.hero h1 { font-size: clamp(40px, 7.2vw, 96px); line-height: 1.04; letter-spacing: -.045em; font-weight: 700; margin: 0 auto .36em; max-width: 18ch; }
.grad { background: linear-gradient(92deg, #2d6a60 0%, #3d8565 50%, #6b9550 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-color-scheme: dark) { .grad { background-image: linear-gradient(92deg, #7cc4b4 0%, #84c9a2 50%, #b6d08e 100%); } }
.grad-light { background: linear-gradient(92deg, #9fd6c8, #b9e0c4 50%, #dcebc0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(19px, 2.1vw, 24px); line-height: 1.4; color: var(--muted); max-width: 760px; margin: 0 auto; letter-spacing: -.016em; font-weight: 400; }
.hero-cta { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; margin: 36px 0 0; }

.stats { display: flex; justify-content: center; gap: clamp(28px, 6vw, 80px); flex-wrap: wrap; margin: 64px 0 0; }
.stats > div { display: flex; flex-direction: column; align-items: center; min-width: 140px; }
.stats b { font-family: var(--font-display); font-size: clamp(34px, 4.4vw, 52px); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* витрина: настоящие лоты, веером */
.showcase { position: relative; height: clamp(340px, 40vw, 500px); margin: 72px auto 0; max-width: 1100px; perspective: 1600px; }
.showcase::after { content: ""; position: absolute; left: -100vw; right: -100vw; bottom: 0; height: 32%; background: linear-gradient(transparent, var(--bg)); z-index: 5; pointer-events: none; }
.show-card { position: absolute; left: 50%; top: 0; width: clamp(240px, 28vw, 340px); background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; text-align: left; transform-origin: 50% 100%;
  transition: transform 1.2s var(--ease-out), opacity 1.2s var(--ease-out); opacity: 0; }
.show-card .si { aspect-ratio: 4/3; background: var(--surface-2) center/cover no-repeat; }
.show-card .sb { padding: 16px 18px 20px; }
.show-card .sb small { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.show-card .sb p { margin: 8px 0 10px; font-size: 15px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.show-card .sb b { font-family: var(--font-display); font-size: 22px; letter-spacing: -.02em; }
.showcase.in .show-card { opacity: 1; }
.showcase .show-card:nth-child(1) { transform: translateX(-50%) translateY(40px) rotateY(0); z-index: 3; }
.showcase.in .show-card:nth-child(1) { transform: translateX(-50%) translateY(0); }
.showcase.in .show-card:nth-child(2) { transform: translateX(calc(-50% - 78%)) translateY(36px) rotate(-6deg) scale(.92); z-index: 2; }
.showcase.in .show-card:nth-child(3) { transform: translateX(calc(-50% + 78%)) translateY(36px) rotate(6deg) scale(.92); z-index: 2; }
.showcase.in .show-card:nth-child(4) { transform: translateX(calc(-50% - 150%)) translateY(90px) rotate(-11deg) scale(.82); z-index: 1; opacity: .9; }
.showcase.in .show-card:nth-child(5) { transform: translateX(calc(-50% + 150%)) translateY(90px) rotate(11deg) scale(.82); z-index: 1; opacity: .9; }
.showcase .show-card:nth-child(n+2) { transform: translateX(-50%) translateY(60px) scale(.9); }

/* ---------- заголовки секций ---------- */
.eyebrow-sm { font-size: 17px; font-weight: 600; color: var(--accent); margin: 0 0 10px; letter-spacing: -.01em; }
.section-title { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.05; letter-spacing: -.04em; font-weight: 700; margin: 0 0 22px; }
.muted-title { color: var(--faint); }
.section-lead { font-size: clamp(18px, 1.8vw, 21px); color: var(--muted); max-width: 720px; margin: 0 0 48px; line-height: 1.45; }
.lead { color: var(--muted); max-width: 760px; font-size: 17px; }
.note { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ---------- возможности (бенто) ---------- */
.features { padding: clamp(80px, 10vw, 140px) 0; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.tile { position: relative; background: var(--surface); border-radius: var(--r-xl); padding: 34px 32px; min-height: 300px; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.tile:hover { transform: translateY(-4px) scale(1.005); box-shadow: var(--shadow); }
.tile h3 { font-size: clamp(21px, 2vw, 26px); line-height: 1.2; letter-spacing: -.025em; margin: auto 0 0; }
.tile-kicker { font-size: 14px; font-weight: 600; color: var(--muted); margin: 0 0 16px; }
.tile-big { font-family: var(--font-display); font-size: clamp(64px, 8vw, 104px); font-weight: 700; letter-spacing: -.05em; line-height: 1; margin: 6px 0 24px; }
.tile-wide { grid-column: span 2; }
.tile-dark { background: #000; color: #f5f5f7; }
.tile-dark .tile-kicker { color: #a1a1a6; }
.tile-dark h3 { font-size: clamp(26px, 3vw, 40px); max-width: 20ch; margin: 0 0 32px; letter-spacing: -.035em; }
@media (prefers-color-scheme: dark) { .tile-dark { background: linear-gradient(160deg, #1c1c1e, #0b0b0c); border: 1px solid var(--line); } }
.origin-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.origin-row span { display: inline-flex; align-items: center; font-size: 14px; color: #d2d2d7; padding: 8px 14px; border-radius: 980px; background: rgba(255,255,255,.08); }
.tile-teal { background: linear-gradient(150deg, #24564d, #2f7062 55%, #4e8f7d); color: #fff; }
.tile-teal .tile-kicker { color: rgba(255,255,255,.75); }
.tile-link { color: #fff; font-weight: 600; margin-top: 18px; font-size: 16px; }
.tile-metrics { display: grid; gap: 10px; margin: 0 0 26px; }
.tile-metrics span { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--muted);
  padding: 10px 14px; background: var(--surface-2); border-radius: var(--r-sm); }
.tile-metrics b { font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.tile-map { position: relative; height: 130px; margin: 0 0 22px; border-radius: var(--r); overflow: hidden;
  background: radial-gradient(circle at 30% 40%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
              repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 22px), repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 22px), var(--surface-2); }
.tile-map i { position: absolute; left: var(--x); top: var(--y); width: 12px; height: 12px; border-radius: 50%; background: var(--c);
  border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); animation: ping 3s var(--ease) infinite; }
.tile-map i:nth-child(2n) { animation-delay: .8s; } .tile-map i:nth-child(3n) { animation-delay: 1.6s; }
@keyframes ping { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }

/* ---------- каталог ---------- */
.catalog { background: var(--bg-alt); padding: clamp(72px, 9vw, 120px) 0 80px; }
@media (prefers-color-scheme: dark) { .catalog { background: var(--bg); } }
.catalog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }

.segmented { display: flex; gap: 4px; padding: 4px; margin: 8px 0 32px; background: color-mix(in srgb, var(--ink) 6%, transparent);
  border-radius: 980px; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.segmented::-webkit-scrollbar { display: none; }
.segmented button { display: inline-flex; align-items: center; border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 500;
  padding: 9px 16px; border-radius: 980px; cursor: pointer; white-space: nowrap; transition: background .25s var(--ease), color .25s, box-shadow .25s; }
.segmented button:hover { color: var(--ink); }
.segmented button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 3px 10px rgba(0,0,0,.06); }
@media (prefers-color-scheme: dark) { .segmented button[aria-selected="true"] { background: #3a3a3c; } }

.layout { display: grid; grid-template-columns: 290px 1fr; gap: 28px; align-items: start; }

/* фильтры */
.filters { position: sticky; top: 72px; background: var(--surface); border-radius: var(--r-lg); padding: 22px 20px; max-height: calc(100vh - 92px);
  overflow: auto; box-shadow: var(--shadow-sm); scrollbar-width: thin; }
.filters-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.filters-head h3 { font-size: 21px; margin: 0; }
.filters-head .link { font-size: 15px; }
.sheet-close { display: none; }
.field { display: block; border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.field > span, .field legend, .field .label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; padding: 0; letter-spacing: -.005em; }
input[type=search], input[type=number], input[type=email], input[type=password], input[type=text], select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--surface-2); border: 1px solid transparent;
  border-radius: var(--r-sm); padding: 10px 12px; transition: border-color .2s, box-shadow .2s, background .2s; letter-spacing: -.01em; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2386868b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 11px; }
textarea { resize: vertical; }
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; }
input[type=number] { -moz-appearance: textfield; }
.search-field { position: relative; }
.search-field svg { position: absolute; left: 12px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search-field input { padding-left: 38px; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.presets, .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.chips { margin-top: 0; }
.presets button, .chips button { font: inherit; font-size: 13px; font-weight: 500; border: 1px solid var(--line-strong); background: transparent;
  color: var(--ink-2); border-radius: 980px; padding: 6px 12px; cursor: pointer; transition: all .2s var(--ease); }
.presets button:hover, .chips button:hover { border-color: var(--ink-2); }
.chips button[aria-pressed="true"], .presets button.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.checks label { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: 15px; }
.checks .n { margin-left: auto; color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; }
.checks .ico { width: 18px; height: 18px; color: var(--muted); }
input[type=checkbox] { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; flex: none; cursor: pointer; }

/* переключатели в стиле iOS */
.toggles { margin: 4px 0 20px; border-radius: var(--r); background: var(--surface-2); padding: 2px 14px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; cursor: pointer; font-size: 15px; }
.toggles .toggle + .toggle { border-top: 1px solid var(--line); }
.toggle small.n { color: var(--faint); font-size: 12px; }
.toggle input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 980px; background: color-mix(in srgb, var(--ink) 16%, transparent);
  position: relative; transition: background .25s var(--ease); }
.toggle input[type=checkbox]::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,.2), 0 0 1px rgba(0,0,0,.2); transition: transform .25s var(--ease-out); }
.toggle input[type=checkbox]:checked { background: #3f8f68; }
.toggle input[type=checkbox]:checked::after { transform: translateX(18px); }
.filters > .toggle { padding: 4px 0 0; }
.paid-filters legend small { color: var(--faint); font-weight: 500; }

/* результаты */
.results { min-width: 0; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.results-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.results-tools select { width: auto; background-color: var(--surface); font-size: 14px; padding-top: 8px; padding-bottom: 8px; border-radius: 980px; padding-left: 16px; }
.count { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.filters-toggle { display: none; }
.view-toggle { display: inline-flex; padding: 3px; border-radius: 980px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.view-toggle button { border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 500; padding: 6px 15px; border-radius: 980px; cursor: pointer; transition: all .25s var(--ease); }
.view-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
@media (prefers-color-scheme: dark) { .view-toggle button[aria-pressed="true"] { background: #3a3a3c; } }
.paywall-hint { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--surface); border-radius: var(--r); padding: 14px 18px;
  margin-bottom: 20px; font-size: 14px; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.paywall-hint svg { width: 20px; height: 20px; color: var(--accent); }
.paywall-hint a { font-weight: 600; }

/* карточки лотов */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; transition: opacity .25s; }
.card { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
  animation: rise .6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 35ms); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.card-img { aspect-ratio: 4/3; background: linear-gradient(145deg, var(--surface-2), color-mix(in srgb, var(--origin, var(--accent)) 10%, var(--surface-2)));
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; color: color-mix(in srgb, var(--origin, var(--muted)) 55%, var(--muted)); }
.card-img > svg { width: 52px; height: 52px; opacity: .55; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.card:hover .card-img img { transform: scale(1.05); }
.card-origin { position: absolute; left: 12px; top: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  color: #1d1d1f; background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(12px) saturate(180%); backdrop-filter: blur(12px) saturate(180%);
  padding: 5px 10px 5px 8px; border-radius: 980px; letter-spacing: -.005em; }
.card-origin .dot { margin: 0; width: 8px; height: 8px; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 980px; background: var(--surface-2); color: var(--muted); letter-spacing: -.005em; }
.badge.gov { background: #2563eb18; color: #1d5bd8; }
.badge.debtor { background: #dc262618; color: #c81e1e; }
.badge.confiscated { background: #9333ea18; color: #8526d9; }
.badge.bankrupt { background: #d9770620; color: #b45309; }
.badge.no_auction { background: #16a34a1c; color: #15803d; }
.badge.dup { background: var(--accent-soft); color: var(--accent); }
@media (prefers-color-scheme: dark) {
  .badge.gov { color: #93c5fd; } .badge.debtor { color: #fca5a5; } .badge.confiscated { color: #d8b4fe; }
  .badge.bankrupt { color: #fcd34d; } .badge.no_auction { color: #86efac; }
}
.card h3 { font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -.015em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 2px 0 0; }
.meta { color: var(--muted); font-size: 13px; }
.price { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -.03em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.metrics div { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .03em; font-weight: 500; min-width: 0; }
.metrics b { display: block; font-size: 14px; color: var(--ink); text-transform: none; letter-spacing: -.01em; font-weight: 600; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.locked b { filter: blur(6px); user-select: none; opacity: .7; }
.liq-high { color: var(--good) !important; }
.liq-medium { color: var(--mid) !important; }
.liq-low { color: var(--bad) !important; }
.free-price { color: var(--good); }
.empty { grid-column: 1/-1; text-align: center; padding: 80px 16px; color: var(--muted); font-size: 17px; }
.skeleton { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.skeleton::before { content: ""; display: block; aspect-ratio: 4/3; }
.skeleton::after { content: ""; display: block; height: 150px; }
.skeleton::before, .skeleton::after { background: linear-gradient(90deg, var(--surface-2) 0%, color-mix(in srgb, var(--surface-2) 50%, var(--surface)) 50%, var(--surface-2) 100%);
  background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton::after { margin: 18px 20px; border-radius: var(--r-sm); }
@keyframes shimmer { to { background-position: -200% 0; } }

.pager { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pager button { min-width: 40px; height: 40px; border: 0; background: var(--surface); color: var(--ink); border-radius: 980px; cursor: pointer; font: inherit; font-size: 15px;
  box-shadow: var(--shadow-sm); transition: all .2s var(--ease); font-variant-numeric: tabular-nums; }
.pager button:hover:not(:disabled) { transform: translateY(-1px); }
.pager button[aria-current="page"] { background: var(--ink); color: var(--bg); }
.pager button:disabled { opacity: .35; cursor: default; box-shadow: none; background: transparent; }

/* земля от государства */
.free-land { background: var(--surface); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 44px); margin-bottom: 32px; box-shadow: var(--shadow-sm); }
.free-land > h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.03em; }
.free-land .lead { margin-top: 0; }
.free-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 28px 0 20px; }
.free-grid > div { background: var(--surface-2); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.free-grid h3 { font-size: 19px; margin: 0; letter-spacing: -.02em; }
.free-grid p { margin: 0; color: var(--muted); font-size: 15px; }
.free-grid .link { text-align: left; margin-top: auto; font-weight: 600; font-size: 15px; }
.free-num { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(140deg, #2d6a60, #4e8f7d); color: #fff; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px; margin-bottom: 4px; }
.free-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: auto; }
.free-actions .link { margin-top: 0; }
.lock-box { background: var(--accent-soft); border-radius: var(--r); padding: 18px 20px; margin: 16px 0; font-size: 15px; line-height: 1.5; }
.lock-box .btn { margin-left: 8px; }

/* карта */
.map-wrap { margin-bottom: 24px; }
.map { height: min(72vh, 700px); border-radius: var(--r-lg); z-index: 0; box-shadow: var(--shadow-sm); overflow: hidden; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.map-legend button { display: inline-flex; align-items: center; gap: 2px; border: 0; background: var(--surface); box-shadow: var(--shadow-sm);
  color: var(--ink); font: inherit; font-size: 13px; padding: 7px 13px; border-radius: 980px; cursor: pointer; transition: opacity .2s; }
.map-legend button.dim { opacity: .4; }
.map-legend .n { margin-left: 6px; color: var(--faint); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; flex: none; }
.lot-dot span { display: block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.cluster span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; color: #fff; font-weight: 600; font-size: 13px;
  border: 3px solid rgba(255,255,255,.9); box-shadow: 0 2px 10px rgba(0,0,0,.25); font-family: var(--font); }
.popup { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; font: 13px/1.4 var(--font); }
.popup b { font-size: 14px; }
.popup strong { font-size: 18px; letter-spacing: -.02em; }
.popup small { color: var(--muted); }
.popup .btn { color: var(--accent-ink); }
.popup .badge { color: #fff; }
.leaflet-container { font-family: var(--font); background: var(--surface-2); }
.leaflet-popup-content-wrapper { border-radius: var(--r) !important; box-shadow: var(--shadow-lg) !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface); color: var(--ink); }
.leaflet-bar { border: 0 !important; box-shadow: var(--shadow) !important; border-radius: var(--r-sm) !important; overflow: hidden; }
.leaflet-bar a { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--line) !important; }

/* ---------- обучение ---------- */
.learn { padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 7vw, 100px); }
.lesson-section { font-size: 21px; color: var(--ink); margin: 40px 0 16px; letter-spacing: -.02em; }
.lesson-section:first-child { margin-top: 0; }
.lesson-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.lesson { display: flex; gap: 16px; align-items: flex-start; text-align: left; font: inherit; color: var(--ink); cursor: pointer; background: var(--surface);
  border: 0; border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.lesson:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.lesson-play { flex: none; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--bg); }
.lesson-play svg { width: 18px; height: 18px; }
.locked-lesson .lesson-play { background: var(--surface-2); color: var(--muted); }
.lesson-text { display: flex; flex-direction: column; gap: 5px; }
.lesson-text b { font-size: 17px; letter-spacing: -.02em; line-height: 1.25; }
.lesson-text span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.lesson-text small { color: var(--accent); font-size: 12px; font-weight: 600; margin-top: 2px; }
.lesson-video { width: 100%; border-radius: var(--r); background: #000; aspect-ratio: 16/9; margin: 8px 0 16px; }
.lesson-steps { padding-left: 22px; }
.lesson-steps li { margin: 10px 0; line-height: 1.5; }

/* ---------- как считаем ---------- */
.method { padding: clamp(80px, 10vw, 140px) 0; background: var(--bg-alt); }
@media (prefers-color-scheme: dark) { .method { background: var(--bg-alt); } }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 56px 0 32px; }
.step { background: var(--surface); border-radius: var(--r-xl); padding: 32px 28px; box-shadow: var(--shadow-sm); }
.step-n { display: block; font-family: var(--font-display); font-size: 56px; font-weight: 700; letter-spacing: -.05em; line-height: 1; margin-bottom: 28px;
  background: linear-gradient(140deg, var(--ink) 20%, var(--faint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 21px; letter-spacing: -.02em; }
.step p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* ---------- тарифы ---------- */
.pricing { padding: clamp(80px, 10vw, 140px) 0; text-align: center; }
.pricing .section-lead { margin-left: auto; margin-right: auto; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 380px)); justify-content: center; gap: 24px; text-align: left; }
.plan { position: relative; border-radius: var(--r-xl); padding: 40px 34px 34px; display: flex; flex-direction: column; gap: 14px; background: var(--surface);
  box-shadow: var(--shadow); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plan h3 { font-size: 24px; margin: 0; letter-spacing: -.025em; }
.plan .amount { font-family: var(--font-display); font-size: 52px; font-weight: 700; letter-spacing: -.045em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.plan .amount small { display: block; font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: -.01em; margin-top: 6px; }
.plan ul { list-style: none; margin: 10px 0 18px; padding: 0; }
.plan li { display: flex; gap: 10px; align-items: flex-start; margin: 11px 0; font-size: 15px; color: var(--ink-2); line-height: 1.4; }
.plan li svg { width: 18px; height: 18px; margin-top: 1px; color: var(--good); }
.plan .btn { margin-top: auto; font-size: 17px; padding: 13px 22px; }
.plan.best { background: #1d1d1f; color: #f5f5f7; }
.plan.best .amount small, .plan.best li { color: #d2d2d7; }
.plan.best li svg { color: #9fd6c8; }
.plan.best .btn { background: #fff; color: #1d1d1f; }
.plan.best .btn:hover { background: #e8e8ed; }
.plan.best::before { content: "Выгоднее на 16%"; position: absolute; top: 18px; right: 20px; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 980px;
  background: linear-gradient(92deg, #2d6a60, #3d8565 50%, #6b9550); color: #fff; }
@media (prefers-color-scheme: dark) { .plan.best { background: linear-gradient(160deg, #2c2c2e, #1c1c1e); outline: 1px solid rgba(255,255,255,.12); } }

/* ---------- подвал ---------- */
.footer { background: var(--bg-alt); color: var(--muted); font-size: 12px; padding: 22px 0 36px; border-top: 1px solid var(--line); }
.footer-note { margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); line-height: 1.6; }
.footer-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a, .footer-links .link { color: var(--ink-2); font-size: 12px; }

/* ---------- диалоги ---------- */
.dialog { border: 0; border-radius: var(--r-xl); padding: 0; width: min(440px, calc(100vw - 24px)); max-height: calc(100vh - 40px); background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-lg); }
.dialog[open] { animation: pop .45s var(--ease-out); }
.dialog::backdrop { background: rgba(0, 0, 0, .38); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.wide-dialog { width: min(800px, calc(100vw - 24px)); }
.dialog-body { padding: 36px; position: relative; }
.dialog-body > h2, .detail h2 { font-size: 28px; letter-spacing: -.03em; padding-right: 36px; }
.close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--surface-2); font-size: 20px;
  color: var(--muted); cursor: pointer; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background .2s; z-index: 2; }
.close:hover { background: color-mix(in srgb, var(--surface-2) 70%, var(--ink) 12%); color: var(--ink); }
.error { color: var(--bad); font-size: 14px; min-height: 20px; margin-bottom: 10px; }
.switch { text-align: center; font-size: 14px; color: var(--muted); margin: 16px 0 0; }

.detail .badges { margin-bottom: 12px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 22px 0; }
.detail-grid div { background: var(--surface-2); border-radius: var(--r); padding: 14px 16px; font-size: 12px; color: var(--muted); font-weight: 500; }
.detail-grid b { display: block; font-family: var(--font-display); font-size: 19px; color: var(--ink); margin-top: 4px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.detail dl { display: grid; grid-template-columns: 200px 1fr; gap: 0; margin: 22px 0; font-size: 15px; border-top: 1px solid var(--line); }
.detail dt, .detail dd { padding: 11px 0; border-bottom: 1px solid var(--line); }
.detail dt { color: var(--muted); }
.detail dd { margin: 0; word-break: break-word; }
.detail .desc { font-size: 14px; color: var(--muted); white-space: pre-line; max-height: 200px; overflow: auto; background: var(--surface-2); border-radius: var(--r); padding: 16px 18px; line-height: 1.55; }
.detail .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.detail .actions .btn { font-size: 16px; padding: 12px 22px; }
.copies { margin: 22px 0; background: var(--surface-2); border-radius: var(--r); padding: 18px 20px; }
.copies h3 { font-size: 17px; margin: 0 0 4px; }
.copies p { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.copies ul { list-style: none; margin: 0; padding: 0; }
.copies li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.copies .etp { font-weight: 600; }
.copies .muted { color: var(--muted); font-size: 13px; }
.copies .go { margin-left: auto; }

/* ---------- обратная связь ---------- */
.feedback-fab { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font: inherit;
  font-size: 14px; font-weight: 500; background: color-mix(in srgb, var(--ink) 88%, transparent); color: var(--bg); padding: 12px 18px 12px 15px; border-radius: 980px;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 8px 30px rgba(0,0,0,.22); transition: transform .3s var(--ease-out); }
.feedback-fab svg { width: 18px; height: 18px; }
.feedback-fab:hover { transform: translateY(-2px) scale(1.02); }

/* ---------- появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .showcase.reveal { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-wide { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav-links { gap: 18px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-in { gap: 12px; justify-content: space-between; }
  .account .meta { display: none; }
  .layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: auto 0 0 0; top: auto; max-height: 86vh; border-radius: var(--r-xl) var(--r-xl) 0 0; z-index: 60; padding: 26px 22px 40px;
    box-shadow: 0 -10px 60px rgba(0,0,0,.25); transform: translateY(105%); transition: transform .45s var(--ease-out); visibility: hidden; }
  .filters.open { transform: none; visibility: visible; }
  .filters-head { position: sticky; top: -26px; background: var(--surface); padding: 10px 0; z-index: 1; margin-top: -10px; }
  .sheet-close { display: inline-flex; border: 0; background: var(--accent); color: var(--accent-ink); font: inherit; font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 980px; cursor: pointer; }
  .filters-toggle { display: inline-flex; }
  .showcase .show-card:nth-child(n+4) { display: none; }
  .showcase.in .show-card:nth-child(2) { transform: translateX(calc(-50% - 52%)) translateY(36px) rotate(-6deg) scale(.88); }
  .showcase.in .show-card:nth-child(3) { transform: translateX(calc(-50% + 52%)) translateY(36px) rotate(6deg) scale(.88); }
  .detail dl { grid-template-columns: 1fr; }
  .detail dt { border-bottom: 0; padding-bottom: 0; font-size: 13px; }
  .detail dd { padding-top: 2px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, .nav-in { padding: 0 16px; }
  .bento { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; }
  .tile { min-height: 240px; padding: 28px 24px; }
  .steps { grid-template-columns: 1fr; }
  .stats > div { min-width: 0; flex: 1 1 40%; }
  .grid { grid-template-columns: 1fr; }
  .results-tools { width: 100%; }
  .results-tools select { flex: 1; min-width: 0; }
  .dialog-body { padding: 28px 22px; }
  .dialog-body > h2, .detail h2 { font-size: 21px; line-height: 1.25; }
  .feedback-fab { right: 14px; bottom: 14px; padding: 12px; }
  .feedback-fab span { display: none; }
  .account .sub { font-size: 12px; }
  .plan { padding: 34px 26px 28px; }
  .plan .amount { font-size: 44px; }
}

/* ================= витрина, категории и эффекты ================= */

/* заголовок первого экрана выезжает построчно */
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero h1 .line > span { display: inline-block; }
.js .hero h1 .line > span { transform: translateY(105%); transition: transform 1.1s var(--ease-out); }
.js .hero h1.in .line > span { transform: none; }
.js .hero h1.in .line:nth-child(2) > span { transition-delay: .12s; }
.js .hero h1.reveal { opacity: 1; transform: none; }

/* витрина: карточки-иллюстрации веером, лёгкий параллакс */
.showcase-inner { position: absolute; inset: 0; will-change: transform; }
.show-card { cursor: pointer; }
.show-card .si { background-size: cover; background-position: center; }
.show-card:hover { z-index: 6 !important; }
.showcase.in .show-card:hover { box-shadow: 0 40px 100px rgba(0,0,0,.25); }


/* что можно купить */
.cats { padding: clamp(80px, 10vw, 130px) 0 0; overflow: hidden; }
.cats-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin-top: 44px; perspective: 1400px; }
.cat { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px; padding: 24px; border-radius: var(--r-xl); overflow: hidden;
  color: #fff; text-decoration: none !important; cursor: pointer; border: 0; font: inherit; text-align: left; background: #222 center/cover no-repeat;
  box-shadow: var(--shadow); transform-style: preserve-3d; transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); isolation: isolate; }
.cat::before { content: ""; position: absolute; inset: 0; background: inherit; background-size: cover; z-index: -2; transition: transform 1.2s var(--ease-out); }
.cat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.72)); }
.cat:hover::before { transform: scale(1.08); }
.cat:hover { box-shadow: var(--shadow-lg); }
.cat:nth-child(2), .cat:nth-child(4) { margin-top: 48px; }
.cat b { font-family: var(--font-display); font-size: 24px; letter-spacing: -.03em; line-height: 1.1; }
.cat small { font-size: 14px; opacity: .85; margin-top: 6px; font-variant-numeric: tabular-nums; }
.cat .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 980px; width: max-content;
  background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: background .3s; }
.cat:hover .go { background: rgba(255,255,255,.32); }


/* плитки возможностей с картинкой */
.tile-art { position: absolute; right: -40px; bottom: -30px; width: 62%; aspect-ratio: 4/3; border-radius: var(--r-lg); background: center/cover no-repeat;
  box-shadow: var(--shadow-lg); transform: rotate(-6deg); transition: transform .8s var(--ease-out); opacity: .95; }
.tile:hover .tile-art { transform: rotate(-3deg) scale(1.04); }
.tile-dark .tile-art { width: 42%; right: -30px; bottom: -40px; }
.tile-dark h3, .tile-dark .origin-row { position: relative; z-index: 1; max-width: 62%; }

/* варианты появления: выезд слева/справа, масштаб, размытие */
.js .reveal-left { transform: translateX(-70px); }
.js .reveal-right { transform: translateX(70px); }
.js .reveal-scale { transform: scale(.9); }
.js .reveal-blur { filter: blur(14px); transform: translateY(20px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out), filter 1.1s var(--ease-out); }
.js .reveal-up { transform: translateY(90px); }
.js .reveal.in { transform: none; filter: none; }

/* наклон в 3D за курсором */
.tilt { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0)); }
.cat.tilt:hover { --ty: -6px; }

@media (max-width: 1080px) {
  .cats-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(250px, 42%); overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 4px 22px 30px; margin: 44px -22px 0; scrollbar-width: none; }
  .cats-row::-webkit-scrollbar { display: none; }
  .cat { scroll-snap-align: start; min-height: 380px; }
  .cat:nth-child(2), .cat:nth-child(4) { margin-top: 0; }
}
@media (max-width: 640px) {
  .cats-row { grid-auto-columns: 78%; padding: 4px 16px 26px; margin: 36px -16px 0; }
  .tile-art { width: 55%; }
  .tile-dark .tile-art { display: none; }
  .tile-dark h3, .tile-dark .origin-row { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero h1 .line > span { transform: none; }
}
.js .cat.reveal.in.settled { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0));
  transition: transform .5s var(--ease-out), box-shadow .6s var(--ease-out); transition-delay: 0s; }

/* ================= шапка: в одну строку ================= */
.nav-in { gap: 20px; }
.logo { flex: none; white-space: nowrap; }
.nav-links { gap: 22px; min-width: 0; white-space: nowrap; }
.nav-links a { white-space: nowrap; }
.account { flex: none; white-space: nowrap; }
.acct { position: relative; }
.acct-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--surface-2); color: var(--ink); font: inherit; font-size: 13px; font-weight: 500;
  padding: 3px 12px 3px 3px; border-radius: 980px; cursor: pointer; transition: background .2s; }
.acct-btn:hover { background: color-mix(in srgb, var(--surface-2) 80%, var(--ink) 8%); }
.avatar { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
  color: #fff; background: linear-gradient(140deg, #2d6a60, #6b9550); }
.acct-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 250px; background: var(--surface); border-radius: var(--r); padding: 8px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); z-index: 70; animation: pop .3s var(--ease-out); white-space: normal; }
.acct-email { font-size: 13px; font-weight: 600; padding: 8px 10px 0; word-break: break-all; }
.acct-status { font-size: 12px; color: var(--accent); padding: 2px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.acct-menu a, .acct-menu button { display: block; width: 100%; text-align: left; border: 0; background: none; font: inherit; font-size: 14px; color: var(--ink);
  padding: 9px 10px; border-radius: var(--r-xs); cursor: pointer; text-decoration: none !important; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--surface-2); }
.menu-btn { display: none; flex: none; width: 36px; height: 36px; border: 0; background: transparent; cursor: pointer; position: relative; border-radius: 50%; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease-out), top .3s; }
.menu-btn span:first-child { top: 14px; } .menu-btn span:last-child { top: 21px; }
.nav.open .menu-btn span:first-child { top: 17.5px; transform: rotate(45deg); }
.nav.open .menu-btn span:last-child { top: 17.5px; transform: rotate(-45deg); }
@media (max-width: 1180px) { .nav-links { gap: 16px; } .nav-links a { font-size: 12.5px; } }
@media (max-width: 1060px) {
  .menu-btn { display: inline-block; }
  .nav-in { justify-content: flex-start; }
  .account { margin-left: auto; }
  .nav-links { display: flex !important; position: absolute; left: 0; right: 0; top: 52px; flex-direction: column; gap: 0; padding: 8px 22px 18px;
    background: var(--nav-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { font-size: 17px; padding: 12px 0; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav-links a:last-child { border-bottom: 0; }
}
@media (max-width: 520px) { .acct-label { display: none; } .acct-btn { padding-right: 3px; } .account .btn { padding: 5px 11px; } }

/* ================= карточка без фото: размытое фото категории ================= */
.card-img .ph { position: absolute; inset: -30px; background: center/cover no-repeat; filter: blur(18px) saturate(.85) brightness(1.02); transform: scale(1.05); }
.card-img > .ph-ico { position: relative; z-index: 1; width: 66px; height: 66px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #2b4a3f; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.card-img > .ph-ico svg { width: 30px; height: 30px; opacity: .85; }
.card-img img { z-index: 2; }
.card-origin { z-index: 3; }

/* ================= поиск по каталогу: строка, быстрые кнопки, панель «Все фильтры» ================= */
.finder { position: sticky; top: 52px; z-index: 30; margin: 0 -22px 22px; padding: 14px 22px 12px;
  background: color-mix(in srgb, var(--bg-alt) 86%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
@media (prefers-color-scheme: dark) { .finder { background: color-mix(in srgb, var(--bg) 86%, transparent); } }
.finder-bar { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1.1fr) auto; background: var(--surface); border-radius: 980px;
  box-shadow: var(--shadow); padding: 6px; align-items: center; }
.fb-field { position: relative; display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 6px 20px; border-right: 1px solid var(--line); }
.fb-field:last-of-type { border-right: 0; }
.fb-label { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.finder-bar input, .finder-bar select { background: transparent; border: 0; padding: 2px 0; border-radius: 0; font-size: 15px; box-shadow: none !important; }
.finder-bar input:focus, .finder-bar select:focus { background: transparent; }
.finder-bar select { background-position: right 0 center; padding-right: 20px; }
.fb-search { flex-direction: row; align-items: center; gap: 10px; padding-left: 18px; }
.fb-search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.fb-search input { font-size: 16px; padding: 10px 0; }
.fb-range { display: flex; align-items: center; gap: 6px; }
.fb-range span { color: var(--faint); }
.fb-range input { width: 100%; min-width: 0; }
.fb-more { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-size: 15px; font-weight: 600; white-space: nowrap;
  background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 980px; transition: transform .2s var(--ease), background .2s; }
.fb-more:hover { transform: scale(1.02); }
.fb-more svg { width: 18px; height: 18px; }
.fb-count { min-width: 20px; height: 20px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.kinds, .quick { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding: 2px 1px; }
.kinds::-webkit-scrollbar, .quick::-webkit-scrollbar { display: none; }
.kinds button, .quick button { flex: none; border: 0; cursor: pointer; font: inherit; font-size: 14px; font-weight: 500; white-space: nowrap; transition: all .2s var(--ease); }
.kinds button { background: var(--surface); color: var(--ink); padding: 9px 16px; border-radius: 980px; box-shadow: var(--shadow-sm); }
.kinds button:hover { transform: translateY(-1px); }
.kinds button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.quick { margin-top: 8px; }
.quick button { background: transparent; color: var(--ink-2); padding: 6px 12px; border-radius: 980px; border: 1px solid var(--line-strong); font-size: 13px; }
.quick button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.quick button[aria-pressed="true"]::before { content: "✓ "; }

/* каталог на всю ширину: 4 колонки */
.catalog .results { width: 100%; }
.catalog .grid { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }

/* выдвижная панель */
.filters.drawer { position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: min(440px, 100vw); max-height: none; border-radius: var(--r-xl) 0 0 var(--r-xl);
  z-index: 80; padding: 0; display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(0,0,0,.18); background: var(--surface);
  transform: translateX(104%); visibility: hidden; transition: transform .45s var(--ease-out), visibility .45s; overflow: hidden; }
.filters.drawer.open { transform: none; visibility: visible; }
.drawer-bg { position: fixed; inset: 0; z-index: 75; background: rgba(0,0,0,.32); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fadein .3s var(--ease-out); }
@keyframes fadein { from { opacity: 0; } }
body.noscroll { overflow: hidden; }
.drawer-head { display: flex; align-items: center; gap: 14px; padding: 22px 24px 14px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-size: 22px; flex: 1; }
.drawer-head .close.drawer-close { position: static; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px 24px; overscroll-behavior: contain; }
.drawer-foot { padding: 14px 24px 22px; border-top: 1px solid var(--line); background: var(--surface); }
.fgroup { padding: 18px 0 6px; border-bottom: 1px solid var(--line); }
.fgroup:last-of-type { border-bottom: 0; }
.fgroup h4 { font-size: 17px; margin: 0 0 14px; letter-spacing: -.015em; }
.fgroup h4 small { color: var(--faint); font-weight: 500; font-size: 13px; }
.drawer .toggle.dups { padding-top: 16px; }
@media (max-width: 900px) {
  .finder { top: 52px; margin: 0 -22px 18px; }
  .finder-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; border-radius: 24px; row-gap: 2px; }
  .fb-search { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
  .fb-field { padding: 6px 14px; }
  .fb-more { padding: 11px 14px; }
  .filters.drawer { top: auto; left: 0; right: 0; width: auto; height: 88vh; border-radius: var(--r-xl) var(--r-xl) 0 0; transform: translateY(104%); }
}
@media (max-width: 640px) {
  .finder { margin: 0 -16px 16px; padding: 12px 16px 10px; }
  .fb-more { font-size: 0; gap: 0; padding: 11px; }
  .fb-more svg { width: 20px; height: 20px; }
  .fb-count { font-size: 11px; margin-left: 4px; }
}

/* ===== бенто: карта России и баннер «Земля от государства» ===== */
.tile-mapbox { display: grid; grid-template-columns: minmax(200px, .8fr) 1.6fr; gap: 10px; align-items: center; min-height: 340px; }
.tile-mapbox-text { display: flex; flex-direction: column; height: 100%; }
.tile-mapbox-text h3 { margin-top: auto; }
.tile-link-dark { color: var(--accent); font-weight: 600; margin-top: 16px; font-size: 16px; }
.tile-russia { width: 100%; height: auto; display: block; transform: scale(1.08); transform-origin: center; transition: transform 1.2s var(--ease-out); }
.tile:hover .tile-russia { transform: scale(1.12); }
@media (prefers-color-scheme: dark) { .tile-russia { filter: brightness(1.25); } }
.tile-full { grid-column: 1 / -1; min-height: 320px; justify-content: flex-end; }
.tile-teal.tile-full { background: linear-gradient(90deg, rgba(25,58,50,.92) 0%, rgba(25,58,50,.72) 45%, rgba(25,58,50,.15) 100%), url(/static/img/land.jpg) center/cover no-repeat; }
.tile-teal.tile-full h3 { max-width: 560px; font-size: clamp(24px, 2.6vw, 34px); margin: 0; }
.tile-teal.tile-full .tile-kicker { margin-bottom: auto; }
.tile-teal .tile-art { display: none; }
@media (max-width: 1080px) { .tile-mapbox { grid-template-columns: 1fr; } .tile-mapbox-text h3 { margin-top: 0; } }
@media (max-width: 640px) { .tile-full { grid-column: auto; } .tile-teal.tile-full { background: linear-gradient(0deg, rgba(25,58,50,.95) 20%, rgba(25,58,50,.35)), url(/static/img/land.jpg) center/cover no-repeat; } }

/* ===== телефон: первый экран ===== */
@media (max-width: 640px) {
  /* три цифры в один ряд */
  .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 40px; }
  .stats > div { min-width: 0; flex: none; }
  .stats b { font-size: clamp(20px, 6.4vw, 28px); letter-spacing: -.03em; white-space: nowrap; }
  .stats span { font-size: 11.5px; line-height: 1.3; margin-top: 4px; }
  /* витрина: в центре карточка целиком, по бокам — только фото, без обрезанного текста */
  .showcase { height: auto; min-height: 0; aspect-ratio: auto; margin-top: 44px; padding-bottom: 8px; }
  .showcase-inner { position: relative; height: calc(64vw * .75 + 170px); }
  .show-card { width: 64vw; }
  .showcase .show-card:nth-child(n+2) .sb { display: none; }
  .showcase .show-card:nth-child(n+2) .si { aspect-ratio: 1 / 1; }
  .showcase.in .show-card:nth-child(2) { transform: translateX(calc(-50% - 58%)) translateY(28px) rotate(-7deg) scale(.78); }
  .showcase.in .show-card:nth-child(3) { transform: translateX(calc(-50% + 58%)) translateY(28px) rotate(7deg) scale(.78); }
  .showcase::after { height: 18%; }
  .show-card .sb { padding: 14px 16px 16px; }
  .show-card .sb b { font-size: 19px; }
  /* меньше пустоты между блоками */
  .cats { padding-top: 48px; }
  .features, .learn, .method, .pricing { padding-top: 64px; padding-bottom: 64px; }
  .catalog { padding-top: 56px; }
  .hero { padding-top: 48px; }
  .hero-cta { margin-top: 28px; }
}

/* ===== каскад-карусель: позиции задаёт data-pos, JS сдвигает их по кругу ===== */
.showcase .show-card[data-pos] { transition: transform 1s var(--ease-out), opacity 1s var(--ease-out), box-shadow .5s; }
.showcase .show-card.jump { transition: none !important; opacity: 0 !important; }
.showcase.in .show-card[data-pos="0"]  { transform: translateX(-50%) translateY(0) rotate(0) scale(1); z-index: 4; opacity: 1; }
.showcase.in .show-card[data-pos="-1"] { transform: translateX(calc(-50% - 78%)) translateY(36px) rotate(-6deg) scale(.92); z-index: 3; opacity: 1; }
.showcase.in .show-card[data-pos="1"]  { transform: translateX(calc(-50% + 78%)) translateY(36px) rotate(6deg) scale(.92); z-index: 3; opacity: 1; }
.showcase.in .show-card[data-pos="-2"] { transform: translateX(calc(-50% - 150%)) translateY(90px) rotate(-11deg) scale(.82); z-index: 2; opacity: .9; }
.showcase.in .show-card[data-pos="2"]  { transform: translateX(calc(-50% + 150%)) translateY(90px) rotate(11deg) scale(.82); z-index: 2; opacity: .9; }
.showcase .show-card[data-pos]:not([data-pos="0"]) { cursor: pointer; }
.showcase .show-card[data-pos]:not([data-pos="0"]) .sb { opacity: .55; transition: opacity .6s; }
.showcase .show-card[data-pos="0"] .sb { opacity: 1; transition: opacity .6s; }

@media (max-width: 900px) {
  .showcase .show-card { display: block !important; }
  .showcase.in .show-card[data-pos="-1"] { transform: translateX(calc(-50% - 52%)) translateY(36px) rotate(-6deg) scale(.88); }
  .showcase.in .show-card[data-pos="1"]  { transform: translateX(calc(-50% + 52%)) translateY(36px) rotate(6deg) scale(.88); }
  .showcase.in .show-card[data-pos="-2"] { transform: translateX(calc(-50% - 90%)) translateY(60px) rotate(-10deg) scale(.75); opacity: 0; }
  .showcase.in .show-card[data-pos="2"]  { transform: translateX(calc(-50% + 90%)) translateY(60px) rotate(10deg) scale(.75); opacity: 0; }
}

/* телефон: у всех карточек подпись поверх фото — карточки одной высоты, ничего не обрезается при прокрутке */
@media (max-width: 640px) {
  .showcase-inner { height: calc(62vw * 1.25 + 44px); }
  .show-card { width: 62vw; border-radius: 22px; overflow: hidden; }
  .showcase .show-card .si, .showcase .show-card:nth-child(n+2) .si { aspect-ratio: 4 / 5; }
  .showcase .show-card .sb, .showcase .show-card:nth-child(n+2) .sb { display: block; position: absolute; left: 0; right: 0; bottom: 0;
    padding: 56px 16px 16px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.72)); color: #fff; }
  .show-card .sb small { color: rgba(255,255,255,.85); font-size: 11px; }
  .show-card .sb small .dot { background: #9fe0c1 !important; }
  .show-card .sb p { color: #fff; font-size: 14px; margin: 6px 0 6px; }
  .show-card .sb b { color: #fff; font-size: 17px; }
  .showcase.in .show-card[data-pos="-1"] { transform: translateX(calc(-50% - 60%)) translateY(26px) rotate(-6deg) scale(.8); }
  .showcase.in .show-card[data-pos="1"]  { transform: translateX(calc(-50% + 60%)) translateY(26px) rotate(6deg) scale(.8); }
  .showcase .show-card[data-pos]:not([data-pos="0"]) .sb { opacity: 0; }
  .showcase::after { height: 12%; }
}

/* Ничего не выходит за правый край: свечение в шапке и плитки, которые выезжают сбоку,
   раньше расширяли страницу на телефоне до ~444px, и всё съезжало вправо. */
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }

/* ===== телефон: каталог ===== */
.fab-filters { display: none; }
@media (max-width: 640px) {
  /* строка поиска не закрывает треть экрана при прокрутке лотов */
  .finder { position: static; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .fab-filters { display: inline-flex; align-items: center; gap: 8px; position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 60; border: 0; cursor: pointer; font: inherit; font-size: 15px; font-weight: 600; color: var(--bg); background: var(--ink);
    padding: 13px 20px; border-radius: 980px; box-shadow: 0 10px 30px rgba(0,0,0,.25);
    transform: translate(-50%, 140%); opacity: 0; pointer-events: none; transition: transform .45s var(--ease-out), opacity .3s; }
  .fab-filters.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
  .fab-filters svg { width: 18px; height: 18px; }
  .fab-filters .fb-count { margin-left: 2px; }
  /* окно лота: цифры в две колонки, чтобы прибыль и срок были видны без долгой прокрутки */
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 18px 0; }
  .detail-grid div { padding: 11px 12px; font-size: 11.5px; line-height: 1.3; }
  .detail-grid b { font-size: 17px; }
  .dialog-body > h2, .detail h2 { font-size: 19px; }
  /* карточки лота: заголовок в две строки, меньше воздуха */
  .card h3 { -webkit-line-clamp: 2; font-size: 15.5px; }
  .results-head { flex-wrap: wrap; gap: 10px; }
  .results-tools { width: 100%; justify-content: space-between; }
  /* у Премиума есть кнопка Excel — тогда сортировка уходит на свою строку и не обрезается */
  .results-tools #export:not([hidden]) ~ select { flex-basis: 100%; }
  /* цифры на первом экране не упираются в края */
  .stats b { font-size: clamp(18px, 5.6vw, 26px); }
  .hero-lead { font-size: 17px; line-height: 1.45; }
}
