:root {
  color-scheme: dark;
  --bg: #080a0d;
  --surface: rgba(17, 20, 25, 0.72);
  --surface-solid: #111419;
  --surface-raised: rgba(23, 27, 33, 0.88);
  --surface-hover: rgba(27, 31, 38, 0.9);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f4f5;
  --muted: #9ca1aa;
  --subtle: #6f7580;
  --gold: #d8b978;
  --gold-bright: #efd8a4;
  --gold-soft: rgba(213, 181, 116, 0.12);
  --green: #75c79a;
  --danger: #dd8e8e;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --font: "Segoe UI Variable", "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --font-display: var(--font);
}

* { box-sizing: border-box; }

html { background: var(--bg); scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: linear-gradient(180deg, #0a0c10 0, var(--bg) 420px);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.app-shell { min-height: 100vh; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 64px;
  padding: 8px clamp(20px, 3vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 12, 16, 0.72);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 0;
  color: inherit;
  text-decoration: none;
}

.brand__logo {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
  transition: opacity 160ms ease, transform 160ms ease;
}
.brand:hover .brand__logo { opacity: 0.86; transform: translateY(-1px); }

.source-state {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 10px;
  color: var(--muted);
}

.source-state > span:last-child { display: grid; line-height: 1.2; }
.source-state b { color: #c9c9c6; font-size: 12px; font-weight: 600; }
.source-state small { margin-top: 3px; color: var(--subtle); font-size: 11px; }

.source-state__dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(117, 199, 154, 0.09);
  animation: live-breathe 2.8s ease-in-out infinite;
}

.top-action {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 9px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.top-action:hover { border-color: var(--line-strong); background: var(--surface-hover); }
.top-action:active { transform: scale(0.98); }
.top-action .icon { color: var(--gold); font-size: 21px; line-height: 1; }
.top-action b {
  display: grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 10px;
  background: #23272c;
  color: #d4d4d0;
  font-size: 11px;
}
.top-action[aria-pressed="true"] { border-color: rgba(213, 181, 116, 0.35); background: var(--gold-soft); }

.workspace {
  display: grid;
  grid-template-columns: 274px minmax(0, 1fr);
  gap: clamp(28px, 3.4vw, 54px);
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 30px clamp(20px, 3vw, 48px) 80px;
}

.filters {
  position: sticky;
  top: 84px;
  align-self: start;
  min-height: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(17, 20, 25, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 16px 44px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}

.filters__mobile-head, .filters__apply { display: none; }
.filter-intro { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.filter-intro h2, .filters__mobile-head h2 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 650; letter-spacing: -0.035em; }
.filter-intro p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.filter-group { margin-top: 20px; }
.filter-group > label {
  display: block;
  margin-bottom: 9px;
  color: #d9d8d4;
  font-size: 12px;
  font-weight: 650;
}

.price-field { position: relative; }
.price-field input, .filter-group select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  background-color: rgba(8, 9, 11, 0.7);
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.price-field input { padding: 0 42px 0 13px; }
.price-field span {
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--gold);
  transform: translateY(-50%);
}
.filter-group select {
  appearance: none;
  padding: 0 38px 0 13px;
  background-image: linear-gradient(45deg, transparent 50%, #777 50%), linear-gradient(135deg, #777 50%, transparent 50%);
  background-position: calc(100% - 17px) 20px, calc(100% - 12px) 20px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}
.price-field input:focus, .filter-group select:focus, .search-box:focus-within {
  border-color: rgba(213, 181, 116, 0.55);
  box-shadow: 0 0 0 3px rgba(213, 181, 116, 0.08);
}
.field-hint { margin: 8px 0 0; color: var(--subtle); font-size: 11px; line-height: 1.45; }

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  cursor: pointer;
}
.switch-row span { display: grid; }
.switch-row b { color: #d9d8d4; font-size: 12px; }
.switch-row small { max-width: 190px; margin-top: 3px; color: var(--subtle); font-size: 10px; line-height: 1.35; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch-row i {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: #17191d;
  transition: 160ms ease;
}
.switch-row i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #8e9298;
  transition: 160ms ease;
}
.switch-row input:checked + i { border-color: var(--gold); background: var(--gold-soft); }
.switch-row input:checked + i::after { left: 19px; background: var(--gold-bright); }

.secondary-button, .primary-button {
  min-height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  transition: 160ms ease;
}
.secondary-button:active, .primary-button:active, .top-action:active, .favorite-icon:active { transform: scale(0.975); }
.secondary-button { border: 1px solid var(--line); background: transparent; color: #c4c4c0; }
.secondary-button:hover { border-color: var(--line-strong); background: var(--surface); color: var(--text); }
.primary-button { border: 1px solid var(--gold); background: var(--gold); color: #17130c; }
.primary-button:hover { background: var(--gold-bright); }
#reset-filters { width: 100%; margin-top: 27px; }

.source-note {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 28px;
  padding: 14px;
  border: 1px solid rgba(117, 199, 154, 0.14);
  border-radius: 12px;
  background: rgba(117, 199, 154, 0.038);
}
.source-note p { display: grid; margin: 0; }
.source-note b { font-size: 11px; }
.source-note small { margin-top: 2px; color: var(--muted); font-size: 10px; }

.catalog { min-width: 0; }
.search-row { display: flex; gap: 12px; }
.search-box {
  display: flex;
  flex: 1;
  align-items: center;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(17, 20, 25, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.search-box svg, .filter-trigger svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}
.search-box svg { margin-left: 17px; color: var(--gold); }
.search-box input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}
.search-box input::placeholder { color: #6f737a; }
.search-box kbd {
  margin-right: 13px;
  padding: 3px 7px;
  border: 1px solid #30343a;
  border-radius: 6px;
  background: #181b1f;
  color: var(--subtle);
  font-family: inherit;
  font-size: 10px;
}
.filter-trigger {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  cursor: pointer;
}
.filter-trigger b {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #19140c;
  font-size: 10px;
}

.category-tabs {
  position: relative;
  display: flex;
  gap: 5px;
  margin-top: 18px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}
.tab-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--tab-width, 0px);
  height: 34px;
  border: 1px solid rgba(216, 185, 120, 0.24);
  border-radius: 9px;
  background: var(--gold-soft);
  pointer-events: none;
  transform: translate3d(var(--tab-x, 0px), 0, 0);
  transition: transform 340ms cubic-bezier(0.2, 0.78, 0.25, 1), width 260ms cubic-bezier(0.2, 0.78, 0.25, 1);
}
.tab-indicator.is-instant { transition: none; }
.category-tabs button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.category-tabs button:hover { color: #dddcd7; }
.category-tabs button.is-active { border-color: transparent; background: transparent; color: var(--gold-bright); }
.category-tabs button:active { transform: scale(0.97); }
.category-tabs span { color: var(--subtle); font-size: 10px; }
.category-tabs .is-active span { color: var(--gold); }

.catalog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding: 28px 0 18px;
}
.catalog-head h1 { margin: 0; font-family: var(--font-display); font-size: clamp(28px, 3vw, 36px); font-weight: 650; letter-spacing: -0.042em; line-height: 1.08; }
.catalog-head p { margin: 0 0 4px; color: var(--muted); font-size: 12px; white-space: nowrap; }

.active-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: -5px 0 21px; }
.active-filters:empty { display: none; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid #38332a;
  border-radius: 8px;
  background: rgba(213, 181, 116, 0.07);
  color: #d9c79f;
  font-size: 10px;
}
.filter-chip button { padding: 0; border: 0; background: transparent; color: #a38f69; cursor: pointer; font-size: 15px; }

.listing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  transition: opacity 120ms ease, transform 120ms ease;
}
.listing-grid.is-updating-left, .listing-grid.is-updating-right { opacity: 0.16; pointer-events: none; }
.listing-grid.is-updating-left { transform: translate3d(-14px, 0, 0); }
.listing-grid.is-updating-right { transform: translate3d(14px, 0, 0); }
.listing-grid.motion-in-left { animation: grid-in-left 280ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.listing-grid.motion-in-right { animation: grid-in-right 280ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.listing-grid.motion-in-left .listing-card, .listing-grid.motion-in-right .listing-card { animation: none; }

@keyframes grid-in-left { from { opacity: 0; transform: translate3d(-22px, 0, 0); } }
@keyframes grid-in-right { from { opacity: 0; transform: translate3d(22px, 0, 0); } }

.listing-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 278px;
  flex-direction: column;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: rgba(17, 20, 25, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  contain: layout paint;
  cursor: pointer;
  animation: card-reveal 360ms cubic-bezier(0.2, 0.78, 0.25, 1) both;
  animation-delay: calc(var(--card-index, 0) * 18ms);
  transition: transform 220ms cubic-bezier(0.2, 0.78, 0.25, 1), border-color 180ms ease, background 180ms ease, box-shadow 220ms ease;
}
.listing-card:focus-visible {
  border-color: #3a3e44;
  background: var(--surface-raised);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
  transform: translateY(-3px);
}
.listing-card::before { content: none; }
.listing-card__top { display: flex; align-items: center; justify-content: space-between; }
.category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(213, 181, 116, 0.19);
  border-radius: 7px;
  background: var(--gold-soft);
  color: var(--gold-bright);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.category-pill[data-category="exchange"] { border-color: rgba(117, 199, 154, 0.18); background: rgba(117, 199, 154, 0.07); color: #a8d9bd; }
.favorite-icon {
  width: 32px;
  height: 32px;
  padding: 0 0 2px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(18, 20, 23, 0.82);
  color: #8a8e94;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.favorite-icon:hover, .favorite-icon.is-active { border-color: rgba(213, 181, 116, 0.35); color: var(--gold-bright); background: var(--gold-soft); }
.favorite-icon:active { transform: scale(0.9); }
.listing-card__meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; color: var(--subtle); font-size: 10px; }
.listing-source { color: #b2b3b1; }
.listing-card h2 {
  display: -webkit-box;
  margin: 11px 0 0;
  overflow: hidden;
  color: #f1efe9;
  font-size: 19px;
  font-weight: 620;
  letter-spacing: -0.025em;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.listing-location { min-height: 18px; margin: 8px 0 0; color: var(--gold); font-size: 11px; }
.listing-location:empty::after { content: "Локация не указана"; color: #62666d; }
.listing-excerpt {
  display: -webkit-box;
  margin: 14px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.listing-card__foot { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-top: auto; padding-top: 20px; }
.listing-price { color: var(--text); font-size: 20px; font-weight: 620; letter-spacing: -0.035em; }
.listing-price.is-unknown { color: var(--subtle); font-size: 12px; font-weight: 500; letter-spacing: 0; }
.detail-link { color: #b8b9bb; font-size: 11px; transition: color 160ms ease, transform 160ms ease; }
.detail-link b { margin-left: 3px; color: var(--gold); }

.skeleton { cursor: default; animation: none; }
.skeleton:hover { transform: none; box-shadow: none; }
.skeleton-line { height: 12px; margin-top: 13px; border-radius: 6px; background: #1c1f23; animation: pulse 1.4s ease-in-out infinite; }
.skeleton-line:nth-child(2) { width: 45%; margin-top: 60px; }
.skeleton-line:nth-child(3) { width: 88%; height: 22px; }
.skeleton-line:nth-child(4) { width: 70%; }
.skeleton-line:nth-child(5) { width: 93%; margin-top: 30px; }
@keyframes pulse { 50% { opacity: 0.42; } }
@keyframes card-reveal {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes live-breathe {
  0%, 100% { opacity: 0.72; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes drawer-content-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.empty-state {
  grid-column: 1 / -1;
  padding: 65px 25px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  text-align: center;
}
.empty-state span { color: var(--gold); font-size: 28px; }
.empty-state h2 { margin: 10px 0 6px; font-size: 20px; }
.empty-state p { max-width: 410px; margin: 0 auto; color: var(--muted); font-size: 12px; }
.empty-state button { margin-top: 18px; padding: 0 18px; }

.load-more-wrap { padding-top: 22px; text-align: center; }
.load-more { min-width: 180px; padding: 0 20px; }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.overlay:not([hidden]) { animation: overlay-in 200ms ease both; }
.detail-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  width: min(520px, 100%);
  height: 100dvh;
  padding: 25px 28px 35px;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: rgba(15, 18, 23, 0.94);
  box-shadow: var(--shadow);
  transform: translateX(102%);
  transition: transform 300ms cubic-bezier(0.2, 0.78, 0.25, 1);
}
.detail-drawer.is-open { transform: translateX(0); }
.detail-drawer.is-open > * { animation: drawer-content-in 330ms 80ms cubic-bezier(0.2, 0.78, 0.25, 1) both; }
.detail-drawer__head { display: flex; align-items: center; justify-content: space-between; }
.icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0 0 3px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 23px;
}
.detail-category { display: inline-flex; margin-top: 25px; }
.detail-drawer h2 { margin: 15px 0 0; font-size: clamp(25px, 4vw, 34px); font-weight: 620; letter-spacing: -0.045em; line-height: 1.15; }
.detail-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 23px; }
.detail-fact { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.detail-fact small { display: block; color: var(--subtle); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; }
.detail-fact strong { display: block; margin-top: 5px; color: #e8e6e0; font-size: 13px; font-weight: 600; }
.detail-body { margin-top: 25px; padding-top: 24px; border-top: 1px solid var(--line); color: #bbbcb9; font-size: 13px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.detail-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 28px; }
.detail-actions a, .detail-actions button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 17px; text-decoration: none; }
.detail-favorite { min-width: 50px; font-size: 20px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 80;
  max-width: calc(100% - 30px);
  padding: 11px 15px;
  border: 1px solid #3a3429;
  border-radius: 10px;
  background: #1a1814;
  color: #e2d4b4;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: 180ms ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.mobile-dock { display: none; }
body.has-modal { overflow: hidden; }

@media (max-width: 1050px) {
  .workspace { grid-template-columns: 270px minmax(0, 1fr); gap: 28px; }
  .listing-grid { grid-template-columns: 1fr; }
}

@media (hover: hover) and (pointer: fine) {
  .listing-card:hover {
    border-color: rgba(231, 222, 200, 0.19);
    background-color: var(--surface-raised);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
  }
  .listing-card:hover .detail-link { color: var(--gold-bright); transform: translateX(-2px); }
}

@media (max-width: 780px) {
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .topbar { grid-template-columns: 1fr auto; min-height: 67px; padding: 10px 16px; }
  .brand__logo { width: 36px; height: 36px; }
  .source-state, .top-action span:not(.icon) { display: none; }
  .top-action { width: 41px; min-height: 41px; justify-content: center; padding: 0; }
  .top-action b { position: absolute; top: 8px; right: 8px; width: 16px; min-width: 16px; height: 16px; font-size: 8px; }

  .workspace { display: block; padding: 24px 14px 35px; }
  .filters {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 65;
    max-height: 88dvh;
    padding: 21px 19px calc(22px + env(safe-area-inset-bottom));
    overflow-y: auto;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
    background: #101215;
    box-shadow: var(--shadow);
    transform: translateY(105%);
    transition: transform 300ms cubic-bezier(0.2, 0.78, 0.25, 1);
  }
  .filters.is-open { transform: translateY(0); }
  .filters__mobile-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
  .filters__mobile-head .eyebrow { margin-bottom: 2px; }
  .filters__mobile-head h2 { font-size: 21px; }
  .filter-intro { display: none; }
  .filters__apply { display: block; width: 100%; margin-top: 10px; }
  .source-note { display: none; }
  .filter-group { margin-top: 19px; }

  .search-box { height: 50px; }
  .search-box kbd { display: none; }
  .filter-trigger { display: inline-flex; }
  .filter-trigger svg { width: 17px; }
  .category-tabs { margin-right: -14px; padding-right: 14px; overflow-x: auto; scrollbar-width: none; }
  .category-tabs::-webkit-scrollbar { display: none; }
  .catalog-head { padding: 29px 2px 19px; }
  .catalog-head h1 { font-size: 28px; }
  .catalog-head p { margin-bottom: 2px; }
  .listing-card { min-height: 286px; }

  .detail-drawer { top: auto; bottom: 0; width: 100%; height: min(91dvh, 830px); padding: 20px 18px calc(30px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); border-left: 0; border-radius: 22px 22px 0 0; transform: translateY(102%); }
  .detail-drawer.is-open { transform: translateY(0); }
  .detail-drawer h2 { font-size: 28px; }

  .mobile-dock {
    position: fixed;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    left: 10px;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 60px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 17px;
    background: rgba(20, 22, 25, 0.94);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
  }
  .mobile-dock button { display: grid; place-items: center; align-content: center; gap: 1px; border: 0; border-radius: 12px; background: transparent; color: var(--subtle); font-size: 9px; cursor: pointer; }
  .mobile-dock span { font-size: 19px; line-height: 1.1; }
  .mobile-dock button.is-active { background: var(--gold-soft); color: var(--gold-bright); }
  .toast { bottom: calc(82px + env(safe-area-inset-bottom)); }
}

@media (max-width: 460px) {
  .search-row { gap: 8px; }
  .filter-trigger { width: 50px; justify-content: center; padding: 0; font-size: 0; }
  .filter-trigger b { position: absolute; margin: -26px 0 0 27px; }
  .category-tabs button { padding: 0 11px; }
  .catalog-head { align-items: start; }
  .catalog-head p { padding-top: 9px; }
  .listing-card { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .tab-indicator { transition-duration: 260ms !important; }
  .listing-grid { transition-duration: 120ms !important; }
  .listing-grid.motion-in-left, .listing-grid.motion-in-right { animation-duration: 280ms !important; }
}
