@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;700;800&display=swap");

:root {
  --bg: #030405;
  --panel: #090b0e;
  --panel-2: #101318;
  --line: rgba(255, 255, 255, 0.13);
  --text: #f4f4f4;
  --muted: #9aa3b2;
  --accent: #ff6a2a;
  --accent-soft: #ff8b55;
  --alien: #66ffe3;
  --alien-violet: #8a6cff;
  --ok: #7ee787;
  --info: #5ec8ff;
  --radius: 18px;
  --font: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 12% 4%, rgba(102, 255, 227, 0.12), transparent 25rem),
    radial-gradient(circle at 88% 18%, rgba(138, 108, 255, 0.13), transparent 30rem),
    repeating-linear-gradient(90deg, rgba(102,255,227,.018) 0 1px, transparent 1px 54px),
    repeating-linear-gradient(0deg, rgba(138,108,255,.014) 0 1px, transparent 1px 54px),
    linear-gradient(115deg, #020303 0%, #090b0e 48%, #020303 100%);
  color: var(--text);
  font-family: var(--font);
  text-shadow: 0 0 8px rgba(198, 255, 246, 0.24);
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
img { display: block; max-width: 100%; }

h1,
h2,
h3,
.logo,
.card-title,
.site-drawer-head strong {
  text-shadow:
    0 0 7px rgba(255,255,255,.28),
    0 0 18px rgba(102,255,227,.18);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* —— ticker (always visible sold counter) —— */
.ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0b1018;
  color: #a8b4c8;
  font-size: 0.78rem;
  white-space: nowrap;
  height: var(--ticker-h, 34px);
}

.ticker-track {
  display: inline-flex;
  gap: 48px;
  padding: 8px 0;
  animation: ticker 40s linear infinite;
  will-change: transform;
}

.ticker-track span { opacity: 0.95; }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

body.has-sold-ticker {
  padding-top: var(--ticker-h, 34px);
}

body.has-sold-ticker .top.top-float {
  top: calc(12px + var(--ticker-h, 34px));
}

body.has-sold-ticker .top:not(.top-float) {
  top: var(--ticker-h, 34px);
}

/* —— header / drawer (site-nav) —— */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 6vw;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 13, 0.92);
  backdrop-filter: blur(14px);
}

.top.top-float {
  top: 12px;
  margin: 12px 4vw 0;
  padding: 12px 18px;
  border: 1px solid rgba(102, 255, 227, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(105deg, rgba(255,255,255,.08), transparent 26%, rgba(255,255,255,.025) 54%, transparent 72%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, rgba(0,0,0,.08) 2px 6px),
    rgba(5, 7, 9, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    inset 0 -1px 0 rgba(0, 0, 0, 0.72),
    0 0 28px rgba(102, 255, 227, 0.06),
    0 16px 44px rgba(0, 0, 0, 0.58);
}

.logo {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.top-contacts {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.top-phone {
  color: var(--text);
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
}

.top-msg {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.top-msg:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.28);
}

.top-catalog {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.top-catalog:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn,
.top-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #111;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.top-cta:hover,
.btn:hover { filter: brightness(1.06); }

button:not(.card-wh-copy),
.btn,
.top-cta,
.top-catalog {
  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    background-color .18s ease,
    filter .18s ease,
    transform .18s ease;
}

button:not(.card-wh-copy):hover,
button:not(.card-wh-copy):focus-visible,
.top-catalog:hover,
.top-catalog:focus-visible {
  border-color: rgba(102,255,227,.88);
  box-shadow:
    0 0 0 1px rgba(102,255,227,.38),
    0 0 9px rgba(102,255,227,.55),
    0 0 24px rgba(102,255,227,.22);
  outline: none;
}

.btn:hover,
.btn:focus-visible,
.top-cta:hover,
.top-cta:focus-visible,
.btn-find:hover,
.btn-find:focus-visible,
.lang-btn.is-active:hover,
.lang-btn.is-active:focus-visible {
  border-color: rgba(255,239,229,.98);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.45),
    0 0 0 1px rgba(255,207,179,.55),
    0 0 10px rgba(255,139,85,.7),
    0 0 26px rgba(255,106,42,.32);
  outline: none;
}

.menu-toggle {
  width: 46px;
  height: 42px;
  display: grid;
  place-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
}

body.menu-open { overflow: hidden; }
.site-drawer[hidden] { display: none !important; }

.site-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.site-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.site-drawer-panel {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: min(360px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 7px),
    rgba(7, 9, 12, 0.98);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  overflow: auto;
}

.site-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 18px 8px;
}

.menu-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
}

.site-drawer-nav {
  display: grid;
  gap: 6px;
  padding: 8px 12px 20px;
}

.site-drawer-nav a {
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--text);
  font-weight: 700;
}

.site-drawer-nav a:hover { background: rgba(255, 255, 255, 0.05); }

.site-drawer-nav a.is-active {
  background: var(--ok);
  color: #111;
}

.site-drawer-foot {
  margin-top: auto;
  padding: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-drawer-foot a {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent-soft);
  font-weight: 800;
}

.site-drawer-phone {
  display: block;
  margin-bottom: 8px;
  color: var(--text) !important;
  font-size: 1.05rem;
  font-weight: 800;
}

/* —— page shell —— */
.page-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  width: min(1400px, calc(100% - 48px));
  margin: 28px auto 48px;
  align-items: start;
}

.brand-menu {
  position: sticky;
  top: 96px;
  padding: 14px 10px;
  border: 1px solid rgba(102, 255, 227, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255,255,255,.065), transparent 28%, rgba(255,255,255,.018) 70%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.02) 0 2px, transparent 2px 7px),
    var(--panel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 45px rgba(0,0,0,.3);
}

.brand-menu h2 {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.brand-menu-list {
  display: grid;
  gap: 2px;
  max-height: 52vh;
  overflow: auto;
}

.brand-menu-list button {
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.brand-menu-list button:hover {
  color: var(--text);
  background: linear-gradient(
    180deg,
    rgba(102,255,227,.03),
    rgba(102,255,227,.1),
    rgba(102,255,227,.03)
  );
  box-shadow:
    inset 0 1px 0 rgba(102,255,227,.72),
    inset 0 -1px 0 rgba(102,255,227,.72),
    0 0 14px rgba(102,255,227,.24);
}

.brand-menu-list button.is-active {
  color: #111;
  background: var(--ok);
}

/* 3-column catalog tree (Japan) — dark + always-visible scrollbars */
.catalog-tree {
  margin: 0 0 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel-2);
  color: var(--text);
}

.catalog-tree-head {
  display: grid;
  grid-template-columns: 1.1fr 1.25fr 0.95fr;
  gap: 0;
  background: #0b1018;
  border-bottom: 1px solid var(--line);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.catalog-tree-head span {
  padding: 7px 8px;
  border-right: 1px solid var(--line);
}

.catalog-tree-head span:last-child { border-right: 0; }

.catalog-tree-cols {
  display: grid;
  grid-template-columns: 1.1fr 1.25fr 0.95fr;
  height: min(58vh, 420px);
  background: var(--panel);
  overflow: hidden; /* keep scroll inside columns */
}

.catalog-tree-col {
  min-width: 0;
  min-height: 0; /* allow grid child to scroll independently */
  height: 100%;
  overflow-x: hidden;
  overflow-y: scroll; /* track always reserved in each column */
  border-right: 1px solid var(--line);
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: #8b96a8 #0c1016;
}

.catalog-tree-col:last-child { border-right: 0; }

.catalog-tree-col::-webkit-scrollbar {
  width: 14px;
  background: #0c1016;
}
.catalog-tree-col::-webkit-scrollbar-track {
  background: #0c1016;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.catalog-tree-col::-webkit-scrollbar-thumb {
  background: #8b96a8;
  border: 2px solid #0c1016;
  border-radius: 8px;
  min-height: 40px;
}
.catalog-tree-col::-webkit-scrollbar-thumb:hover {
  background: var(--accent-soft);
}
.catalog-tree-col::-webkit-scrollbar-corner {
  background: #0c1016;
}

.catalog-tree-col button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 7px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog-tree-col button:hover {
  background: linear-gradient(
    180deg,
    rgba(102,255,227,.025),
    rgba(102,255,227,.1),
    rgba(102,255,227,.025)
  );
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(102,255,227,.78),
    inset 0 -1px 0 rgba(102,255,227,.78),
    0 0 15px rgba(102,255,227,.28);
  text-shadow:
    0 0 6px rgba(255,255,255,.3),
    0 0 12px rgba(102,255,227,.26);
}

.catalog-tree-col button.is-active {
  background: rgba(255, 106, 42, 0.22);
  color: #fff;
  box-shadow: inset 2px 0 0 var(--accent);
}

.catalog-tree-col button.is-muted,
.catalog-tree-col button[disabled],
.catalog-tree-col button.is-any {
  text-transform: none;
  font-weight: 700;
  color: var(--muted);
}

.catalog-tree-col button.is-any.is-active {
  background: rgba(94, 200, 255, 0.14);
  color: var(--info);
  box-shadow: inset 2px 0 0 var(--info);
}

.page-shell:has(.catalog-tree:not([hidden])) {
  grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
}

.page-shell:has(.catalog-tree:not([hidden])) .brand-menu-list {
  display: none;
}

.brand-menu-links {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.brand-menu-links a,
.brand-menu-links button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.brand-menu-links a:hover,
.brand-menu-links button:hover { color: var(--accent-soft); }

.brand-menu-links button.is-active,
.brand-menu-links a[aria-current="page"] {
  color: var(--accent);
}

/* —— main —— */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.crumbs a:hover { color: var(--text); }

.page-head h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  background: linear-gradient(100deg, #fff 15%, #bffff4 58%, #c6bcff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 32px rgba(102,255,227,.09);
}

.page-lead {
  margin: 0 0 8px;
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.5;
}

.feed-status {
  margin: 0 0 18px;
  color: var(--info);
  font-size: 0.86rem;
}

.country-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.country-tabs button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.country-tabs button[aria-selected="true"] {
  border-color: var(--accent);
  background: rgba(255, 106, 42, 0.16);
}

/* —— filter panel —— */
.filter-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  margin-bottom: 22px;
  border: 1px solid rgba(138, 108, 255, 0.2);
  border-radius: 24px;
  background:
    linear-gradient(120deg, rgba(255,255,255,.07), transparent 24%, rgba(255,255,255,.018) 70%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.018) 0 2px, transparent 2px 8px),
    var(--panel);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 34px rgba(138,108,255,.05),
    0 22px 55px rgba(0,0,0,.28);
}

.f-field {
  display: grid;
  gap: 7px;
}

.f-field > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.f-field select,
.f-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  color: var(--text);
  outline: none;
}

.f-field select:focus,
.f-field input:focus {
  border-color: rgba(255, 106, 42, 0.55);
}

.custom-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.custom-select {
  position: relative;
  width: 100%;
  min-width: 0;
}

.custom-select-trigger {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.055), transparent 40%),
    #0c0f13;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.custom-select-arrow {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}

.custom-select.is-open .custom-select-arrow {
  transform: rotate(225deg) translate(-2px, -2px);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  z-index: 90;
  display: none;
  width: max(100%, 220px);
  max-height: 360px;
  overflow-y: auto;
  padding: 7px 0;
  border: 1px solid rgba(210,225,230,.3);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.06), transparent 32%),
    rgba(7,9,11,.98);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 0 28px rgba(102,255,227,.1),
    0 24px 60px rgba(0,0,0,.72);
  backdrop-filter: blur(18px);
}

.custom-select.is-open .custom-select-menu {
  display: block;
}

.custom-select-option {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

.custom-select-option:hover,
.custom-select-option:focus-visible {
  border-color: transparent;
  background: linear-gradient(
    180deg,
    rgba(102,255,227,.025),
    rgba(102,255,227,.11),
    rgba(102,255,227,.025)
  );
  box-shadow:
    inset 0 1px 0 rgba(102,255,227,.85),
    inset 0 -1px 0 rgba(102,255,227,.85),
    0 0 15px rgba(102,255,227,.3);
  color: #fff;
  outline: none;
}

.custom-select-option[aria-selected="true"] {
  color: var(--alien);
  box-shadow: inset 3px 0 0 var(--alien);
}

.custom-select.is-disabled {
  opacity: .55;
  pointer-events: none;
}

.sort-field .custom-select {
  min-width: 220px;
}

.f-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.f-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.btn-ghost {
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.btn-ghost:hover { color: var(--text); }

.btn-find {
  min-width: 180px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: #111;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.btn-find:hover { filter: brightness(1.08); }

/* —— results —— */
.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.results-bar p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.sort-field select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(225,238,242,.3);
  border-radius: 22px;
  background:
    radial-gradient(circle at 14% -8%, rgba(255,255,255,.28), transparent 28%),
    linear-gradient(138deg, rgba(255,255,255,.2) 0%, rgba(255,255,255,.065) 18%, transparent 38%),
    linear-gradient(180deg, #15191f 0%, #07090b 55%, #010202 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.3),
    inset 1px 0 0 rgba(255,255,255,.07),
    inset 0 -1px 0 rgba(0,0,0,.9),
    inset 0 0 42px rgba(102,255,227,.025),
    0 22px 52px rgba(0,0,0,.56);
  color: inherit;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(102,255,227,.42);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.38),
    inset 1px 0 0 rgba(255,255,255,.1),
    inset 0 -1px 0 rgba(0,0,0,.9),
    0 0 30px rgba(102,255,227,.14),
    0 28px 62px rgba(0,0,0,.64);
}

.cards > li:nth-child(3n + 2) .card {
  border-color: rgba(138,108,255,.17);
}

.cards > li:nth-child(3n + 2) .card:hover {
  border-color: rgba(138,108,255,.46);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.38),
    inset 1px 0 0 rgba(255,255,255,.1),
    inset 0 -1px 0 rgba(0,0,0,.9),
    0 0 30px rgba(138,108,255,.15),
    0 28px 62px rgba(0,0,0,.64);
}

.card-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  color: inherit;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  width: 100%;
  min-width: 0;
}

.btn-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(225, 238, 242, 0.26);
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.1),
    0 6px 18px rgba(0,0,0,.24);
}

.btn-card-video,
.btn-card-expertise {
  border-color: rgba(180, 232, 229, 0.32);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.btn-card-calc {
  grid-column: 1 / -1;
  border-color: rgba(255, 207, 179, 0.7);
  background: var(--accent);
  color: #111;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.38),
    0 8px 22px rgba(255,106,42,.16);
}

.btn-card:hover {
  filter: brightness(1.08);
}

.btn-card-video:hover,
.btn-card-expertise:hover,
.btn-card-video:focus-visible,
.btn-card-expertise:focus-visible {
  border-color: rgba(102, 255, 227, 0.9);
  background: rgba(102, 255, 227, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    0 0 8px rgba(102,255,227,.58),
    0 0 22px rgba(102,255,227,.24);
  outline: none;
}

.btn-card-calc:hover,
.btn-card-calc:focus-visible {
  border-color: rgba(255, 239, 229, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.48),
    0 0 9px rgba(255,139,85,.75),
    0 0 24px rgba(255,106,42,.36);
  outline: none;
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(145deg, #222 0%, #111 55%, #1a1a1a 100%);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card-media video,
.card-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
}

.card-link:hover .card-media img { transform: scale(1.04); }

.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 1;
}

.card-badge {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(255, 106, 42, 0.95);
  color: #111;
}

.card-badge.grade {
  background: rgba(126, 231, 135, 0.95);
  color: #111;
}

.card-badge.lot {
  background: rgba(255, 106, 42, 0.95);
  color: #111;
}

.card-badge.stock {
  background: rgba(126, 231, 135, 0.95);
  color: #111;
}

.card-badge.order {
  background: rgba(94, 200, 255, 0.95);
  color: #111;
}

.card-badge.mileage {
  background: rgba(255, 255, 255, 0.92);
  color: #111;
}

.card-badge.year {
  background: rgba(245, 241, 234, 0.95);
  color: #111;
}

.card-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  min-height: 1.35em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.card-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  min-height: calc(1.35em * 2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.card-wh-copy {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  line-height: inherit;
  cursor: copy;
  text-decoration: underline dotted;
  text-underline-offset: 2px;
}

.card-wh-copy:hover,
.card-wh-copy.is-copied {
  color: var(--ok, #3dd68c);
}

.card-price {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ok);
  text-shadow:
    0 0 7px rgba(126,231,135,.55),
    0 0 18px rgba(126,231,135,.22);
  min-height: 1.2em;
}

.card-note {
  margin: 6px 0 0;
  font-size: 13px;
  color: #9a9a9a;
  line-height: 1.35;
  min-height: calc(1.35em * 2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.cards > li {
  display: flex;
  min-height: 0;
  min-width: 0;
}

.cards > li > .card {
  width: 100%;
}

.empty {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 28px 6vw 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

/* —— car detail leftovers —— */
.hero { padding: 28px 6vw 8px; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--info);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 800;
}

.lead { color: var(--muted); max-width: 60ch; line-height: 1.5; }
.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
  margin: 20px 0;
}
.gallery img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  border-radius: 18px;
  background: #161616;
}
.specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.specs div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.specs dt { color: var(--muted); font-size: 0.78rem; }
.specs dd { margin: 4px 0 0; font-weight: 800; }

@media (max-width: 1200px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .page-shell { grid-template-columns: 1fr; width: min(100% - 28px, 1400px); }
  .brand-menu { display: none; }
  .filter-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top-cta, .top-contacts { display: none; }
  .top.top-float {
    margin: 8px 12px 0;
    padding: 10px 12px 10px 16px;
  }
}

@media (max-width: 640px) {
  .filter-panel,
  .cards,
  .f-pair,
  .gallery,
  .specs { grid-template-columns: 1fr; }
  .f-actions { justify-content: stretch; }
  .btn-find { width: 100%; }
  .results-bar { flex-direction: column; align-items: stretch; }
}

/* —— language switch —— */
.lang-switch {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 2px;
  margin-left: 10px;
  padding: 3px;
  border: 1px solid rgba(255, 138, 61, 0.55);
  border-radius: 999px;
  background: rgba(255, 106, 42, 0.12);
}
.lang-btn {
  border: 0;
  background: transparent;
  color: #d7dde8;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 34px;
}
.lang-btn.is-active {
  background: var(--accent);
  color: #111;
}
.lang-btn:hover { color: #fff; }
.lang-btn.is-active:hover { color: #111; }
@media (max-width: 980px) {
  .lang-switch { margin-left: auto; margin-right: 8px; }
}
