:root {
  --drom-brand: #db001a;
  --drom-brand-2: #e01a31;
  --header-bg: #000;
  --link: #1a75cb;
  --link-hover: #1766b0;
  --blue-btn: #1a76cb;
  --blue-btn-hover: #1766b0;
  --green: #84b63e;
  --bg: #f5f5f5;
  --bg-hover: #ededed;
  --panel: #ffffff;
  --ink: #000000;
  --muted: rgba(0, 0, 0, .4);
  --muted-solid: #8a8c93;
  --line: #e2e7ee;
  --line-strong: #c8ccd0;
  --control-border: rgba(17, 40, 75, .1);
  --gray-icon: #bdc2c7;
  --success-bg: #eafddd;
  --msg-bg: #f0f9ff;
  --warning-bg: #fff9d6;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { width: min(1200px, calc(100% - 24px)); margin: 0 auto; }

/* —— Header —— */
.topbar {
  background: var(--header-bg);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar a { color: rgba(255,255,255,.9); text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: none; }
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 17px;
  color: #fff !important;
  flex-shrink: 0;
}
.brand .mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--drom-brand);
  display: inline-block;
}
.brand .pill {
  display: inline-block;
  background: #fff;
  color: #000;
  border-radius: 10px;
  padding: 2px 8px 3px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}
/* Uploaded site logo (Admin → 设置 → Logo): a white circular badge so the
   transparent PNG reads clearly on the dark header. The image keeps ~24% inner
   padding so the artwork's corners never touch (and never get clipped by) the
   circle. */
.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.brand-logo img {
  display: block;
  width: 88%;
  height: 88%;
  object-fit: contain;
}
/* Plain white site name next to the logo (no capsule) so the header keeps a
   single white circle instead of two competing white blocks. */
.brand .brand-name {
  color: #fff;
  font-weight: 700;
  font-size: 21px;
  white-space: nowrap;
}
.channels {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.channels::-webkit-scrollbar { display: none; }
.channels a {
  padding: 7px 11px;
  font-size: 14px;
  white-space: nowrap;
}
.channels a:hover { background: rgba(255,255,255,.08); }
.channels a.active { color: #fff; font-weight: 700; background: rgba(255,255,255,.12); }
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.btn-sell {
  background: var(--drom-brand);
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 3px;
  text-decoration: none !important;
}
.btn-sell:hover { background: var(--drom-brand-2); }
.langs { display: flex; gap: 4px; }
.langs a {
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 2px;
  padding: 2px 7px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.8) !important;
}
.langs a.active, .langs a:hover {
  border-color: #fff;
  color: #fff !important;
}

/* —— Page —— */
.page { padding: 16px 0 36px; }
.page-head { margin: 0 0 14px; }
.page-head h1 { margin: 0 0 4px; font-size: 22px; font-weight: 700; }
.page-head p { margin: 0; color: var(--muted-solid); font-size: 13px; }
.section { margin: 0 0 22px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.section-head h2 { margin: 0; font-size: 18px; font-weight: 700; }
.section-head a { font-size: 13px; }

/* —— Full-bleed horizontal rail (Drom top cards) —— */
.rail-section {
  background: var(--bg);
  padding: 14px 0 8px;
  border-bottom: 1px solid var(--line);
}
.rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.rail-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.rail-head a { font-size: 13px; }
.rail {
  position: relative;
}
.rail-track {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px max(12px, calc((100vw - 1200px) / 2 + 12px)) 16px;
  scrollbar-width: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}
.rail-card {
  flex: 0 0 220px;
  width: 220px;
  scroll-snap-align: start;
  user-select: none;
  -webkit-user-drag: none;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
.rail-card:focus-visible {
  outline: 2px solid var(--drom-brand);
  outline-offset: 2px;
}
.rail-card .bull-photo { height: 165px; }
.rail-card .bull-body { min-height: 72px; }
.rail-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-70%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.72);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.rail-btn:hover { background: rgba(0,0,0,.88); }
.rail-btn:disabled { opacity: .25; cursor: default; }
.rail-btn.prev { left: max(8px, calc((100vw - 1200px) / 2 - 8px)); }
.rail-btn.next { right: max(8px, calc((100vw - 1200px) / 2 - 8px)); }
@media (max-width: 1240px) {
  .rail-btn.prev { left: 8px; }
  .rail-btn.next { right: 8px; }
}

/* —— Filters —— */
.filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px;
  margin-bottom: 18px;
}
.filters label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--muted-solid);
}
.filters input,
.filters select,
.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  border: 1px solid var(--control-border);
  background: #fff;
  color: var(--ink);
  border-radius: 3px;
  padding: 8px 10px;
  font: inherit;
  font-size: 14px;
}
.filters input:focus,
.filters select:focus,
.inquiry-form input:focus,
.inquiry-form textarea:focus {
  outline: none;
  border-color: var(--blue-btn);
  box-shadow: 0 0 0 2px rgba(26, 118, 203, .15);
}
.filters .actions {
  display: flex;
  align-items: end;
  gap: 8px;
  grid-column: span 2;
}
.btn {
  border: 0;
  border-radius: 3px;
  padding: 9px 16px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  background: var(--blue-btn);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}
.btn:hover { background: var(--blue-btn-hover); color: #fff; }
.btn.accent { background: var(--drom-brand); }
.btn.accent:hover { background: var(--drom-brand-2); color: #fff; }
.btn.ghost {
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-weight: 400;
}
.btn.ghost:hover { background: var(--bg-hover); color: var(--ink); }

/* —— Firms list (Drom-style: logo + name columns) —— */
.firms-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.firms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 0;
  padding: 8px 14px 4px;
  --firm-row: 92px;
}
.firms.is-collapsed {
  max-height: calc(var(--firm-row) * 4);
  overflow: hidden;
}
.firm {
  display: flex;
  align-items: center;
  gap: 14px;
  height: var(--firm-row);
  padding: 0 8px;
  border-radius: 4px;
  color: inherit;
  text-decoration: none !important;
  position: relative;
}
.firm:hover { background: var(--bg-hover); }
.firm-logo {
  width: 108px;
  height: 72px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  background: #fff;
}
.firm-logo-fallback {
  width: 108px;
  height: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: var(--muted-solid);
  background: var(--bg);
  border-radius: 4px;
}
.firm-meta { min-width: 0; display: grid; gap: 2px; }
.firm-name {
  font-size: 16px;
  line-height: 1.2;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.firm:hover .firm-name { color: var(--drom-brand); }
.firm-count {
  font-size: 12px;
  color: var(--muted-solid);
}
.firms-expand {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--link);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.firms-expand:hover { background: var(--bg-hover); color: var(--drom-brand); }
.firms-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform .15s ease;
}
.firms-expand.is-open .firms-chevron {
  transform: rotate(-135deg);
  margin-top: 4px;
}

/* —— Channel cards —— */
.channel-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.channel-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
  color: inherit;
  text-decoration: none !important;
}
.channel-card:hover { background: #fafafa; border-color: var(--line-strong); }
.channel-card .tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--drom-brand);
  text-transform: uppercase;
}
.channel-card h3 { margin: 0; font-size: 15px; color: var(--ink); }
.channel-card p { margin: 0; color: var(--muted-solid); font-size: 12px; }

/* —— Promo / carousel —— */
.hero-banner {
  position: relative;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #2b2b2b;
}
.hero-track {
  position: relative;
  min-height: 330px;
}
.hero-slide {
  display: block;
  min-height: 330px;
  background: #2b2b2b center/cover no-repeat;
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}
.hero-slide.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}
.hero-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  color: #fff;
  display: flex; justify-content: space-between; gap: 12px; align-items: end;
}
.hero-banner:has(.hero-dots) .hero-caption {
  padding-bottom: 30px;
}
.hero-caption strong { font-size: 16px; }
.hero-caption span {
  background: var(--drom-brand);
  color: #fff;
  font-weight: 700;
  padding: 0 10px;
  line-height: 24px;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 13px;
}
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.hero-nav:hover { background: rgba(0,0,0,.65); }
.hero-nav.prev { left: 10px; }
.hero-nav.next { right: 10px; }
.hero-dots {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}
.hero-dot {
  pointer-events: auto;
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(255,255,255,.45);
  cursor: pointer;
}
.hero-dot.is-active { background: #fff; }
@media (max-width: 640px) {
  .hero-track, .hero-slide { min-height: 240px; }
  .hero-nav { display: none; }
}

/* —— Bullitin cards (Drom-like) —— */
.bulls {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
}
.bull {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
  text-decoration: none !important;
  color: inherit;
  border: 1px solid transparent;
}
.bull:hover { box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.bull-photo {
  position: relative;
  height: 165px;
  background: #ececec center/cover no-repeat;
}
.bull-price {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: var(--drom-brand);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  line-height: 24px;
  padding: 0 10px;
  border-radius: 6px;
}
.bull-body {
  background: var(--warning-bg);
  padding: 14px 16px;
  min-height: 72px;
  box-sizing: border-box;
}
.bull-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.125;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bull:hover .bull-title { color: var(--drom-brand); }
.bull-meta {
  color: var(--muted-solid);
  font-size: 14px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bull-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.bull-badge.china {
  left: auto;
  right: 10px;
  background: var(--drom-brand);
  border-color: var(--drom-brand);
  color: #fff;
}

.empty {
  color: var(--muted-solid);
  padding: 28px 12px;
  text-align: center;
  background: var(--panel);
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
}

/* —— Detail —— */
.crumb { margin: 0 0 12px; font-size: 13px; color: var(--muted-solid); }
.crumb a { color: var(--link); }
.alert-ok {
  background: var(--success-bg);
  color: #425c1f;
  padding: 10px 12px;
  border-radius: 3px;
  border: 1px solid #cfe8a8;
  margin-bottom: 12px;
}
.alert-err {
  background: #fdf1f0;
  color: #a13b32;
  padding: 10px 12px;
  border-radius: 3px;
  border: 1px solid #f0c4be;
  margin-bottom: 12px;
}
.detail {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 14px;
  padding-bottom: 28px;
}
.gallery {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.gallery-stage {
  position: relative;
  background: #1a1a1a;
}
.gallery-main {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  min-height: 0;
  background: #1a1a1a center / cover no-repeat;
  transition: background-image .15s ease;
  cursor: zoom-in;
}
.gallery-zoom-hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .01em;
  pointer-events: none;
  user-select: none;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: #222;
  font-size: 26px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  transition: background .15s, transform .15s;
  padding: 0;
}
.gallery-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.04);
}
.gallery-nav.is-prev { left: 12px; }
.gallery-nav.is-next { right: 12px; }
.gallery-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}
.thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px;
  border-top: 1px solid var(--line);
  background: #fafafa;
}
.thumb {
  display: block;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  line-height: 0;
  transition: border-color .15s, opacity .15s;
}
.thumb img {
  width: 88px;
  height: 60px;
  object-fit: cover;
  display: block;
  border-radius: 3px;
  background: #ececec;
}
.thumb:hover { opacity: .92; }
.thumb.is-active {
  border-color: var(--green, #5a8f1f);
}
.gallery-desc {
  padding: 1rem 1.1rem 1.25rem;
  border-top: 1px solid var(--line);
}
.gallery-desc strong {
  display: block;
  margin-bottom: .5rem;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  height: fit-content;
}
.panel h1 { margin: 0 0 8px; font-size: 26px; font-weight: 700; line-height: 1.2; }
.price { color: var(--green); font-weight: 700; font-size: 22px; }
.price small { font-weight: 400; color: var(--muted-solid); font-size: 13px; }
.meta { color: var(--muted-solid); font-size: 13px; }
.badge {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 4px;
}
.badge.china {
  background: var(--drom-brand);
  border-color: var(--drom-brand);
  color: #fff;
}
.specs { display: grid; gap: 0; margin: 12px 0; }
.specs div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  color: var(--muted-solid);
  font-size: 13px;
}
.specs strong { color: var(--ink); font-weight: 700; }
.desc { color: var(--muted-solid); line-height: 1.6; white-space: pre-wrap; font-size: 13px; }
.inquiry-form {
  margin-top: 14px;
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.contact-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 0; }
.contact-line-hint { color: var(--muted-solid); font-size: 12px; }
.contact-line .btn-cta { padding: 8px 14px; font-size: 13px; }
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: var(--muted-solid);
  font-size: 12px;
  margin: 0 0 4px;
}
.detail-meta span { white-space: nowrap; }
.detail-meta span + span::before { content: '·'; margin-right: 10px; color: var(--line); }
.detail-delivery { margin: 6px 0 0; font-size: 12px; color: var(--muted-solid); }
.detail-delivery a { font-weight: 600; }
.detail-trust {
  list-style: none;
  margin: 14px 0 0;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.detail-trust li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12px;
  color: var(--ink);
  line-height: 1.4;
}
.detail-trust li::before { content: '✓'; color: var(--green, #5a8f1f); font-weight: 700; flex-shrink: 0; }
.detail-desc { margin-top: 6px; }
.detail-desc-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
}
.detail-desc-card .desc { font-size: 14px; }

.series-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.series-chips a {
  padding: 5px 10px;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none !important;
}
.series-chips a:hover,
.series-chips a.active {
  border-color: var(--blue-btn);
  color: var(--blue-btn);
  background: var(--msg-bg);
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.pager-info {
  color: var(--muted-solid);
  font-size: 13px;
}
.pagination {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 16px 0 8px;
  list-style: none;
  margin: 0;
}
.pagination .page-item { list-style: none; }
.pagination .page-link,
.pagination a,
.pagination span {
  display: inline-flex;
  min-width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none !important;
}
.pagination .page-item.active .page-link,
.pagination .active span,
.pagination .page-link:hover,
.pagination a:hover {
  background: var(--blue-btn);
  border-color: var(--blue-btn);
  color: #fff;
}
.pagination .page-item.disabled .page-link,
.pagination .disabled span { opacity: .4; pointer-events: none; }

.site-footer {
  background: #1a1a1a;
  color: rgba(255,255,255,.55);
  margin-top: 24px;
  padding: 24px 0 28px;
  font-size: 13px;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer .brand { color: #fff !important; margin-bottom: 6px; }
.site-footer .brand .brand-name { color: #fff; }
.site-footer .brand-logo { width: 36px; height: 36px; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: #fff; }

@media (max-width: 1100px) {
  .firms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .actions { grid-column: span 2; }
  .firms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel-strip { grid-template-columns: 1fr; }
  .detail { grid-template-columns: 1fr; }
  .gallery-nav { width: 34px; height: 34px; font-size: 22px; }
  .topbar-inner { height: auto; min-height: 50px; flex-wrap: wrap; padding: 8px 0; }
  .channels { order: 3; width: 100%; }
  .rail-card { flex-basis: 200px; width: 200px; }
}
@media (max-width: 560px) {
  .filters { grid-template-columns: 1fr; }
  .filters .actions { grid-column: span 1; }
  .firms {
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    column-gap: 4px;
    row-gap: 2px;
    padding: 8px 6px 4px;
    --firm-row: 96px;
  }
  .firm {
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    height: var(--firm-row);
    padding: 6px 2px;
    text-align: center;
  }
  .firm-logo,
  .firm-logo-fallback {
    width: 64px;
    height: 42px;
  }
  .firm-logo-fallback { font-size: 14px; }
  .firm-meta { justify-items: center; width: 100%; }
  .firm-name {
    font-size: 12px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.15;
  }
  .firm-count { display: none; }
  .btn-sell { display: none; }
  .rail-btn { display: none; }
  .rail-card { flex-basis: 180px; width: 180px; }
}

/* —— Purchase process page (/how-to-buy) —— */
.process-trust {
  background: var(--header-bg);
  color: #fff;
  border-radius: 8px;
  padding: 18px 20px;
  margin: 0 0 22px;
}
.process-trust-main { font-size: 18px; font-weight: 700; }
.process-trust-meta { margin-top: 4px; font-size: 13px; color: rgba(255,255,255,.8); }

.process-steps { list-style: none; margin: 0; padding: 0; }
.process-step { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.process-step:last-child { border-bottom: 0; }
.process-step-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--drom-brand);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.process-step-body { flex: 1; min-width: 0; }
.process-step-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.process-step-head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.process-step-time { font-size: 12px; color: var(--muted-solid); font-weight: 700; }
.process-step-body p { margin: 4px 0 0; font-size: 13px; color: var(--muted-solid); }

.process-total {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 6px;
  background: #fff7e6;
  color: #8a5a00;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid #ffe0a3;
}

.process-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.process-why-item { border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: #fff; }
.process-why-item h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.process-why-item p { margin: 0; font-size: 13px; color: var(--muted-solid); }

.process-cta { background: var(--header-bg); color: #fff; border-radius: 8px; padding: 22px 20px; text-align: center; }
.process-cta h2 { margin: 0 0 6px; font-size: 18px; }
.process-cta p { margin: 0 0 14px; color: rgba(255,255,255,.85); font-size: 13px; }
.process-cta-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn-cta {
  background: #25D366;
  color: #fff;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
}
.btn-cta:hover { opacity: .92; color: #fff; text-decoration: none; }
.btn-cta + .btn-cta { background: #229ED9; }
.btn-cta.tg { background: #229ED9; }
.btn-cta.ghost { background: transparent; border: 1px solid rgba(255,255,255,.45); color: #fff; }
.btn-cta.ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* —— Homepage hero / value props —— */
.home-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  border-radius: 12px;
  padding: 30px 28px 22px;
  margin: 0 0 22px;
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(219,0,26,.32) 0%, rgba(219,0,26,0) 55%),
    radial-gradient(80% 120% at 0% 100%, rgba(37,211,102,.12) 0%, rgba(37,211,102,0) 60%),
    linear-gradient(135deg, #16161f 0%, #0b0b11 55%, #000 100%);
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, transparent 58%, rgba(255,255,255,.035) 58%, rgba(255,255,255,.035) 59%, transparent 59%);
  pointer-events: none;
}
.home-hero-main h1 { margin: 0 0 10px; font-size: 28px; font-weight: 800; line-height: 1.2; letter-spacing: .2px; }
.home-hero-main p { margin: 0 0 16px; color: rgba(255,255,255,.82); font-size: 15px; max-width: 720px; }
.home-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.home-hero-cta .btn-cta { background: var(--drom-brand); box-shadow: 0 4px 16px rgba(219,0,26,.35); }
.home-hero-cta .btn-cta.ghost { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.35); box-shadow: none; }
.home-hero-hooks {
  list-style: none;
  margin: 20px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255,255,255,.12);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 18px;
}
.home-hero-hooks li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255,255,255,.92);
  background: none;
  border: none;
  padding: 0;
}
.home-hero-hooks li::before {
  content: '✓';
  color: #25D366;
  font-weight: 700;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(37,211,102,.16);
}

@media (max-width: 900px) {
  .process-why { grid-template-columns: 1fr; }
  .home-hero-hooks { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .home-hero-hooks { grid-template-columns: 1fr; }
  .home-hero { padding: 18px 16px 14px; }
  .home-hero-main h1 { font-size: 20px; }
}
