:root {
  --blue: #0075ff;
  --blue-h: #0061d6;
  --blue-link: #0070e0;
  --blue-soft: #eef5ff;
  --green: #00aa5b;
  --green-h: #00914d;
  --red: #e53935;
  --red-soft: #fdecec;
  --topbar: #292929;
  --topbar-t: #e5e7eb;
  --bg: #ffffff;
  --surface: #f2f3f5;
  --surface-h: #e7e9ed;
  --text: #111111;
  --muted: #6b7280;
  --border: #e3e5e8;
  --input-bd: #cfd4dc;
  --ph: #eff1f4;
  --brand-buy: #174b8a;
  --brand-sell: #08a66a;
  --brand-domain: #45515f;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --blue: #3b8eff;
    --blue-h: #5aa0ff;
    --blue-link: #5ca4ff;
    --blue-soft: rgba(59, 142, 255, 0.14);
    --green: #10b968;
    --green-h: #0ca35a;
    --red: #f87171;
    --red-soft: rgba(248, 113, 113, 0.14);
    --topbar: #14171d;
    --topbar-t: #cbd5e1;
    --bg: #111419;
    --surface: #1b2028;
    --surface-h: #242b36;
    --text: #f1f3f5;
    --muted: #9aa3b2;
    --border: #282f3a;
    --input-bd: #394250;
    --ph: #1c222c;
    --brand-buy: #80b8ff;
    --brand-sell: #45d091;
    --brand-domain: #cbd5e1;
    color-scheme: dark;
  }
}

:root[data-theme=dark] {
  --blue: #3b8eff;
  --blue-h: #5aa0ff;
  --blue-link: #5ca4ff;
  --blue-soft: rgba(59, 142, 255, 0.14);
  --green: #10b968;
  --green-h: #0ca35a;
  --red: #f87171;
  --red-soft: rgba(248, 113, 113, 0.14);
  --topbar: #14171d;
  --topbar-t: #cbd5e1;
  --bg: #111419;
  --surface: #1b2028;
  --surface-h: #242b36;
  --text: #f1f3f5;
  --muted: #9aa3b2;
  --border: #282f3a;
  --input-bd: #394250;
  --ph: #1c222c;
  --brand-buy: #80b8ff;
  --brand-sell: #45d091;
  --brand-domain: #cbd5e1;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 12px; line-height: 1.25; }
h2 { font-size: 18px; font-weight: 700; margin: 0 0 10px; }
h3 { font-size: 15px; font-weight: 700; margin: 0 0 8px; }

.w { max-width: 1240px; margin: 0 auto; padding: 0 16px; width: 100%; }
main.w { flex: 1; padding-bottom: 40px; }

/* Top Utility Bar (Avito-grade dark strip) */
.topbar {
  background: var(--topbar);
  color: var(--topbar-t);
  font-size: 13px;
}
.topbar-in {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar a, .topbar button.tb-btn {
  color: var(--topbar-t);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 400;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  opacity: 0.88;
}
.topbar a:hover, .topbar button.tb-btn:hover { opacity: 1; color: #fff; background: none; }
.tb-badge {
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 99px;
  line-height: 1.2;
}
.tb-badge.blue { background: var(--blue); }

/* Main Sticky Search Header */
header.main-hd {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.hd-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  position: relative;
}
.brand {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}
.brand-logo-icon { width: 34px; height: 34px; display: block; flex: none; }
.brand-wordmark { display: block; white-space: nowrap; font-size: 21px; font-weight: 800; letter-spacing: -1.1px; line-height: 1; }
.brand-buy { color: var(--brand-buy); }
.brand-sell { color: var(--brand-sell); }
.brand-domain { color: var(--brand-domain); }

.cat-trigger {
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  height: 40px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  white-space: nowrap;
}
.cat-trigger:hover { background: var(--blue-h); }

/* Avito-style bordered search group */
.srch-wrap {
  flex: 1;
  display: flex;
  height: 40px;
  border: 2px solid var(--blue);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg);
  min-width: 0;
}
.srch-wrap input {
  border: 0;
  border-radius: 0;
  padding: 0 12px;
  height: 100%;
  font-size: 14px;
  background: transparent;
  box-shadow: none !important;
}
.srch-wrap .srch-city {
  width: 170px;
  flex-shrink: 0;
  border-left: 1px solid var(--border);
}
.srch-wrap button {
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 0;
  padding: 0 20px;
  height: 100%;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.srch-wrap button:hover { background: var(--blue-h); }

.post-btn {
  background: var(--green);
  color: #fff;
  border-radius: 6px;
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.post-btn:hover { background: var(--green-h); }

/* Mega-Menu Dropdown */
.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
  padding: 18px 20px;
  z-index: 60;
}
.mega-menu.open { display: block; }
.mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
}
.mega-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 6px;
  font-weight: 500;
}
.mega-item:hover { background: var(--surface); color: var(--blue-link); }

/* Inputs & Buttons */
input, select, textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--input-bd);
  border-radius: 6px;
  font: inherit;
  background: var(--bg);
  color: var(--text);
  outline: 0;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--blue-soft);
}

button, .btn {
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 9px 15px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
button:hover, .btn:hover { background: var(--blue-h); }
.btn.g, button.g { background: var(--green); }
.btn.g:hover, button.g:hover { background: var(--green-h); }
.btn.l, button.l { background: var(--surface); color: var(--text); }
.btn.l:hover, button.l:hover { background: var(--surface-h); }
.btn.o, button.o { background: transparent; color: var(--blue-link); border: 1px solid var(--blue); }
.btn.o:hover, button.o:hover { background: var(--blue-soft); }
.btn.r, button.r { background: transparent; color: var(--red); border: 1px solid var(--border); }
.btn.r:hover, button.r:hover { background: var(--red-soft); border-color: var(--red); }
.btn.sm, button.sm { padding: 6px 11px; font-size: 13px; }
.btn.full, button.full { width: 100%; }

/* Category Tiles Strip */
.cat-strip {
  display: grid;
  grid-template-columns: repeat(9, minmax(105px, 1fr));
  gap: 8px;
  overflow-x: auto;
  padding: 14px 0 8px;
  scrollbar-width: none;
}
.cat-strip::-webkit-scrollbar { display: none; }
.cat-tile {
  background: var(--surface);
  border-radius: 8px;
  padding: 10px 10px 9px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 68px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: background 0.12s, border-color 0.12s;
}
.cat-tile:hover { background: var(--surface-h); }
.cat-tile.on { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-link); }
.cat-tile svg { width: 20px; height: 20px; color: var(--muted); }
.cat-tile.on svg { color: var(--blue); }

/* 2-Column Marketplace Layout */
.catalog-layout {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 24px;
  margin-top: 12px;
  align-items: start;
}
.sidebar {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: var(--bg);
}
.sb-group { margin-bottom: 13px; }
.sb-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
}
.sb-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sb-checks { display: grid; gap: 7px; margin: 12px 0 14px; }
.chk { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; cursor: pointer; }
.chk input { width: auto; margin-top: 2px; flex-shrink: 0; }
.chk a { color: var(--blue-link); text-decoration: underline; }

/* Feed Header & View Switcher */
.feed-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.feed-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.feed-title h1 { margin: 0; font-size: 22px; }
.feed-cnt { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.feed-controls { display: flex; align-items: center; gap: 8px; }
.feed-controls select { width: auto; padding: 6px 10px; font-size: 13px; }
.view-sw { display: inline-flex; border: 1px solid var(--input-bd); border-radius: 6px; overflow: hidden; }
.view-sw a {
  padding: 6px 9px;
  display: flex;
  align-items: center;
  color: var(--muted);
  background: var(--bg);
}
.view-sw a.on { background: var(--surface); color: var(--text); }
.view-sw svg { width: 16px; height: 16px; }

/* Grid View Cards (Classic Avito proportions) */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 14px;
}
.card { display: flex; flex-direction: column; min-width: 0; }
.card-img-wrap {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ph);
  aspect-ratio: 4 / 3;
  display: block;
}
.brand-watermark {
  position: absolute;
  z-index: 2;
  right: 7px;
  bottom: 7px;
  width: 74px;
  padding: 3px 5px;
  border-radius: 4px;
  background: rgba(255,255,255,.84);
  opacity: .78;
  pointer-events: none;
}
.brand-watermark-wordmark { display: block; white-space: nowrap; text-align: center; font-size: 9px; font-weight: 800; letter-spacing: -.5px; line-height: 1.2; }
.brand-watermark-large { width: 108px; right: 10px; bottom: 10px; }
.brand-watermark-large .brand-watermark-wordmark { font-size: 13px; }
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-cnt {
  position: absolute;
  left: 6px;
  bottom: 6px;
  background: rgba(17, 17, 17, 0.65);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
}
.ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
}
.card-body { padding-top: 7px; }
.card-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}
.card-title {
  color: var(--blue-link);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-title:hover { color: var(--red); }
.fav-ico {
  background: none !important;
  border: 0;
  padding: 2px;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
}
.fav-ico:hover { color: var(--red); }
.fav-ico.active { color: #e11d48; }
.fav-ico.active svg { fill: #e11d48; stroke: #e11d48; }
.fav-ico svg { width: 18px; height: 18px; display: block; }

.card-price {
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin: 3px 0 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.micro-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--muted);
}
.micro-tag.new { background: rgba(0, 170, 91, 0.12); color: var(--green); }
.m { color: var(--muted); font-size: 12.5px; line-height: 1.35; }

/* List View (Authentic Avito Horizontal Cards) */
.list-feed { display: grid; gap: 12px; }
.list-card {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 170px;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}
.list-card:hover { border-color: var(--input-bd); }
.list-desc {
  color: var(--muted);
  font-size: 13px;
  margin: 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.list-side {
  border-left: 1px solid var(--border);
  padding-left: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

/* Item Detail Page */
.crumb { color: var(--muted); font-size: 13px; margin: 14px 0 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumb a:hover { color: var(--blue-link); }
.item-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) 340px;
  gap: 28px;
  align-items: start;
}
.gallery-main {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  border: 1px solid var(--border);
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery-main .brand-watermark img { height: auto; }
.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
}
.gallery-thumbs img {
  width: 78px;
  height: 58px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
}
.gallery-thumbs img.active, .gallery-thumbs img:hover { opacity: 1; border-color: var(--blue); }

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  font-size: 14px;
}
.spec-row { display: flex; gap: 6px; }
.spec-k { color: var(--muted); }
.spec-v { font-weight: 500; }

.item-side {
  position: sticky;
  top: 78px;
  display: grid;
  gap: 14px;
}
.item-price-lg {
  font-size: 30px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
  margin: 0;
}
.seller-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}
.seller-card:hover { border-color: var(--blue); }
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.verified-tag { color: var(--green); font-size: 12.5px; font-weight: 600; }

/* Boxes, Alerts, Forms */
.box {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  margin: 14px 0;
  background: var(--bg);
}
.flash {
  background: var(--blue-soft);
  border-left: 3px solid var(--blue);
  border-radius: 6px;
  padding: 10px 14px;
  margin: 12px 0;
  font-size: 14px;
}
.flash a { color: var(--blue-link); text-decoration: underline; font-weight: 600; }
.warn-bar {
  background: rgba(245, 158, 11, 0.11);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 8px;
  padding: 11px 14px;
  margin: 12px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.f { display: grid; gap: 12px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }

/* Status chips & tabs */
.status-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface);
  color: var(--muted);
}
.status-chip.active { background: rgba(0, 170, 91, 0.12); color: var(--green); }
.status-chip.hidden { background: var(--red-soft); color: var(--red); }

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  overflow-x: auto;
}
.tabs a, .tabs button {
  background: none;
  color: var(--muted);
  border-radius: 0;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 2px solid transparent;
}
.tabs a:hover, .tabs button:hover { color: var(--text); background: none; }
.tabs a.on, .tabs button.on { color: var(--blue-link); border-bottom-color: var(--blue); }

/* Chat */
.inbox-list { display: grid; gap: 8px; }
.conv-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.conv-row:hover { border-color: var(--blue); background: var(--surface); }
.conv-thumb { width: 58px; height: 44px; border-radius: 5px; object-fit: cover; background: var(--ph); flex-shrink: 0; }
.unread-dot { min-width: 21px; height: 21px; padding: 0 6px; border-radius: 99px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

.chat-wrap {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: min(74vh, 660px);
  margin: 14px 0;
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--border); background: var(--surface); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.msg-bubble { max-width: 76%; padding: 9px 13px; border-radius: 10px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.msg-bubble.mine { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 2px; }
.msg-bubble.theirs { align-self: flex-start; background: var(--surface); color: var(--text); border-bottom-left-radius: 2px; }
.msg-time { display: block; font-size: 11px; opacity: 0.72; margin-top: 3px; text-align: right; }
.quick-chips { display: flex; gap: 6px; padding: 8px 12px 0; overflow-x: auto; scrollbar-width: none; }
.quick-chips button { background: var(--surface); color: var(--text); font-size: 12.5px; font-weight: 500; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--border); }
.chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); }

/* Admin & System Data Modal */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat-card { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; background: var(--surface); }
.stat-num { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }

.sys-kv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  padding: 12px;
  background: var(--surface);
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 13px;
}
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12.5px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.tbl th { color: var(--muted); font-weight: 600; background: var(--surface); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 28, 0.62);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 90;
  padding: 16px;
}
.modal-backdrop.open { display: flex; }
.modal-win {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.modal-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.modal-bd {
  padding: 18px;
  overflow-y: auto;
}

.photo-previews { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.photo-previews img { width: 92px; height: 68px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }

.my-item { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; }
.my-item img, .my-item .ph-sm { width: 96px; height: 72px; border-radius: 6px; object-fit: cover; background: var(--ph); flex-shrink: 0; }

.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.9); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 95vw; max-height: 90vh; border-radius: 6px; }

footer { border-top: 1px solid var(--border); padding: 20px 0 32px; color: var(--muted); font-size: 13px; margin-top: auto; }
footer .f-links { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 6px; }
footer a:hover { color: var(--text); }

.ck { position: fixed; bottom: 14px; left: 16px; right: 16px; max-width: 660px; margin: 0 auto; background: var(--topbar); color: #fff; padding: 11px 15px; border-radius: 8px; font-size: 13px; display: none; align-items: center; justify-content: space-between; gap: 12px; z-index: 60; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28); }
.ck button { padding: 6px 12px; background: #fff; color: #111; }

.mob-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg); border-top: 1px solid var(--border); z-index: 50; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); grid-template-columns: repeat(5, 1fr); }
.mob-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); position: relative; padding: 2px 0; }
.mob-nav a svg { width: 21px; height: 21px; }
.mob-nav a.on { color: var(--blue); font-weight: 600; }
.mob-nav .tb-badge { position: absolute; top: -1px; right: calc(50% - 18px); }
.mob-filter-btn { display: none; }

@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .sidebar.mob-open { display: block; margin-bottom: 14px; }
  .mob-filter-btn { display: inline-flex; }
  .item-layout { grid-template-columns: 1fr; }
  .item-side { position: static; }
  .list-card { grid-template-columns: 170px minmax(0, 1fr); }
  .list-side { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--border); padding: 10px 0 0; flex-direction: row; }
}
@media (max-width: 720px) {
  body { padding-bottom: 64px; }
  .topbar { display: none; }
  .mob-nav { display: grid; }
  .desk-only { display: none !important; }
  .hd-row { flex-wrap: wrap; gap: 8px; }
  .srch-wrap { order: 9; flex-basis: 100%; }
  .srch-wrap .srch-city { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .row, .spec-grid { grid-template-columns: 1fr; }
  .ck { bottom: 70px; }
  .my-item { flex-direction: column; align-items: flex-start; }
  .my-item img, .my-item .ph-sm { width: 100%; height: 150px; }
}

/* Russian Geo Autocomplete & Legal Document Styles (v4.3) */
.srch-wrap { overflow: visible; }
.srch-wrap button { border-radius: 0 4px 4px 0; }
.ac-wrap { position: relative; flex: 1; min-width: 0; }
.srch-wrap .ac-wrap { flex: 0 0 185px; border-left: 1px solid var(--border); height: 100%; }
.srch-wrap .ac-wrap input { width: 100%; height: 100%; border: 0; border-radius: 0; padding: 0 12px; background: transparent; box-shadow: none !important; }
.ac-list {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  min-width: 210px;
  max-height: 240px;
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  z-index: 85;
  padding: 4px;
}
.ac-list.open { display: block; }
.ac-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: none;
  color: var(--text);
  border: 0;
  border-radius: 5px;
  padding: 7px 9px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}
.ac-opt:hover { background: var(--surface); color: var(--blue-link); }
.ac-tag { font-size: 11px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.geo-hint { font-size: 12px; color: var(--muted); background: var(--surface); border-radius: 6px; padding: 7px 9px; line-height: 1.35; }
.age-pill { display: inline-flex; align-items: center; padding: 1px 6px; border: 1px solid var(--border); border-radius: 4px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.legal-page h1 { font-size: 22px; margin-bottom: 10px; }
.legal-page h2 { font-size: 16.5px; margin: 20px 0 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.legal-page ul { padding-left: 20px; margin: 0 0 12px; }
.legal-page li { margin-bottom: 6px; }
@media (max-width: 720px) { .srch-wrap .ac-wrap { display: none; } }

/* v5.0 Premium Tier, Tariff Cards & Yandex RSJ Ad Slots */
.card-premium {
  border: 1.5px solid #f59e0b;
  border-radius: 8px;
  padding: 6px;
  background: rgba(245, 158, 11, 0.045);
}
.list-card.card-premium {
  padding: 12px;
  border: 1.5px solid #f59e0b;
  background: rgba(245, 158, 11, 0.045);
}
.prem-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #f59e0b;
  color: #111111;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.prem-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
:root[data-theme=dark] .prem-pill { color: #fbbf24; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .prem-pill { color: #fbbf24; }
}
.btn.prem, button.prem { background: #f59e0b; color: #111111; }
.btn.prem:hover, button.prem:hover { background: #d97706; color: #111111; }

.tariff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tariff-card {
  display: block;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  cursor: pointer;
  background: var(--bg);
  transition: border-color 0.15s, background 0.15s;
}
.tariff-card:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.tariff-card.prem-opt:has(input:checked) { border-color: #f59e0b; background: rgba(245, 158, 11, 0.09); }
.tariff-card ul { margin: 8px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--muted); }
.tariff-card li { margin-bottom: 3px; }

.recs-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 7px;
  background: var(--surface);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.ya-ad-slot {
  margin: 14px 0;
  border-radius: 8px;
  overflow: hidden;
}
.ya-ad-placeholder {
  border: 1px dashed var(--input-bd);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}
@media (max-width: 720px) { .tariff-grid { grid-template-columns: 1fr; } }

/* Clean Non-Intrusive Native Ad Containers (Yandex RSJ + Google AdSense) */
.ad-box {
  margin: 18px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface);
  overflow: hidden;
}
.ad-box.in-feed { grid-column: 1 / -1; margin: 4px 0; }
.ad-box-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.ad-box-inner { min-height: 90px; display: flex; align-items: center; justify-content: center; }
.ad-box.sidebar-ad .ad-box-inner { min-height: 220px; }

/* v6.3 Pinned Badge, Global Site Banner, Section Dividers & Admin Analytics Bars */
.pin-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--blue);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
}
.site-banner {
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.site-banner.info { background: var(--blue-soft); color: var(--blue-link); }
.site-banner.promo { background: rgba(0, 170, 91, 0.13); color: var(--green); }
.site-banner.warn { background: var(--amber-soft); color: var(--amber); }
.site-banner.danger { background: var(--red-soft); color: var(--red); }
.site-banner a { text-decoration: underline; margin-left: 8px; }
.bar-track { height: 8px; border-radius: 99px; background: var(--surface); overflow: hidden; flex: 1; }
.bar-fill { height: 100%; border-radius: 99px; background: var(--blue); }
.sec-divider {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 26px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.sec-divider h2 { margin: 0; font-size: 19px; }

/* v6.6 Avito-Style Refresh: Palette, 2-Column Mega-Menu, Rich Filters & Cookie Banner */
:root {
  --blue: #0099f7;
  --blue-h: #0082d6;
  --blue-link: #0075ff;
  --green: #00aa5b;
  --green-h: #00914d;
  --surface: #f2f1f0;
  --surface-h: #e7e6e4;
}
.cat-strip {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)) !important;
  grid-template-rows: auto;
  grid-auto-flow: row;
  grid-auto-columns: auto;
  gap: 8px;
}
.cat-tile {
  border-radius: 12px;
  padding: 10px 10px 9px;
  min-height: 70px;
}
.mega-menu {
  padding: 0 !important;
  border-radius: 0 0 12px 12px !important;
  overflow: hidden;
}
.mega-avito {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 360px;
  max-height: 72vh;
}
.mega-left {
  background: var(--surface);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 10px 8px;
  display: grid;
  gap: 2px;
  align-content: start;
}
.mega-cat-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--text);
  border: 0;
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.mega-cat-btn:hover, .mega-cat-btn.on {
  background: var(--bg);
  color: var(--blue-link);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.mega-cat-btn svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--muted); }
.mega-cat-btn.on svg, .mega-cat-btn:hover svg { color: var(--blue); }
.mega-right {
  padding: 18px 22px;
  overflow-y: auto;
  background: var(--bg);
}
.mega-right-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.mega-right-title:hover { color: var(--blue-link); }
.mega-sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px 18px;
}
.mega-sub-link {
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text);
}
.mega-sub-link:hover {
  background: var(--surface);
  color: var(--blue-link);
}
.ck {
  border-radius: 12px !important;
  padding: 13px 18px !important;
  max-width: 760px !important;
}
.ck button {
  background: var(--blue) !important;
  color: #fff !important;
  padding: 8px 22px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
}
.ck button:hover { background: var(--blue-h) !important; }
@media (max-width: 720px) {
  .cat-trigger.desk-only { display: inline-flex !important; height: 38px; padding: 0 12px; font-size: 13px; }
  .mega-avito { grid-template-columns: 1fr; max-height: 75vh; }
  .mega-left { border-right: 0; border-bottom: 1px solid var(--border); max-height: 220px; }
}

.demo-gate-page {
  min-height: 100vh;
  padding: 28px;
  justify-content: center;
  background: radial-gradient(ellipse at 12% 8%, var(--blue-soft), transparent 38%), var(--bg);
}
.demo-gate { width: min(100%, 1000px); margin: auto; }
.demo-gate-brand { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 32px; }
.demo-gate-brand .brand-logo-icon { width: 38px; height: 38px; }
.demo-gate-brand .brand-wordmark { font-size: 25px; }
.demo-gate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  align-items: center;
  gap: clamp(24px, 6vw, 68px);
}
.demo-gate-eyebrow { color: var(--blue-link); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.demo-gate-intro h1 { max-width: 560px; margin: 10px 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -.035em; }
.demo-gate-lead { max-width: 560px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.demo-gate-features { display: grid; gap: 18px; margin-top: 30px; }
.demo-gate-feature { display: flex; align-items: flex-start; gap: 13px; }
.demo-gate-feature > span {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--blue-link);
  font-size: 22px;
  font-weight: 600;
}
.demo-gate-feature b, .demo-gate-feature div > span { display: block; }
.demo-gate-feature b { margin: 1px 0 3px; font-size: 14px; }
.demo-gate-feature div > span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.demo-gate-note { max-width: 560px; margin: 24px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.demo-gate-card {
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  box-shadow: 0 18px 50px rgba(20, 35, 55, .11);
}
.demo-gate-card-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue-link);
  font-size: 23px;
  font-weight: 700;
}
.demo-gate-card h2 { margin: 0 0 5px; font-size: 23px; }
.demo-gate-card > .m { margin: 0 0 20px; font-size: 13px; }
.demo-gate-form { gap: 16px; }
.demo-gate-form input, .demo-gate-form .btn { min-height: 44px; }
.demo-gate-alert {
  margin: 14px 0;
  padding: 10px 12px;
  border: 1px solid var(--red);
  border-radius: 7px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 13px;
  line-height: 1.5;
}
.demo-gate-alert.warning { border-color: rgba(245, 158, 11, .5); background: rgba(245, 158, 11, .12); color: var(--text); }
.demo-gate-alert a { text-decoration: underline; }
.demo-gate-secure { display: flex; align-items: center; gap: 7px; margin-top: 20px; color: var(--muted); font-size: 11px; }
.demo-gate-secure span { color: var(--green); font-size: 10px; }
.demo-gate-secure.warning span { color: #d97706; }
.demo-gate-footer { margin-top: 28px; color: var(--muted); font-size: 11px; }
@media (max-width: 760px) {
  .demo-gate-page { padding: 22px 18px; }
  .demo-gate-brand { margin-bottom: 24px; }
  .demo-gate-layout { grid-template-columns: 1fr; gap: 26px; }
  .demo-gate-features { gap: 14px; margin-top: 22px; }
  .demo-gate-note { margin-top: 18px; }
}
@media (max-width: 420px) {
  .demo-gate-page { padding: 18px 14px; }
  .demo-gate-intro h1 { font-size: 31px; }
}

/* ===== Visual refresh: own identity (navy + blue/green gradient, soft cards) ===== */
:root {
  --blue: #1674e8;
  --blue-h: #0f5fc4;
  --blue-link: #1262c9;
  --blue-soft: #e8f1fd;
  --green: #1fae68;
  --green-h: #17995a;
  --topbar: #0c1f4a;
  --topbar-t: #cfd9ee;
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-h: #eaf0fa;
  --text: #0e1b36;
  --muted: #6a7690;
  --border: #e1e8f3;
  --input-bd: #d3ddec;
  --ph: #e6edf7;
  --brand-buy: #0c2a6b;
  --brand-sell: #1fae68;
  --brand-domain: #5b6781;
  --grad: linear-gradient(135deg, #1674e8 0%, #1fae68 100%);
  --shadow-sm: 0 1px 2px rgba(12, 31, 74, .06), 0 4px 14px rgba(12, 31, 74, .05);
  --shadow-md: 0 10px 28px rgba(12, 31, 74, .14);
}
:root[data-theme=dark] {
  --grad: linear-gradient(135deg, #2f84f5 0%, #25c07a 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, .5);
}
:root[data-theme=light] { color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --grad: linear-gradient(135deg, #2f84f5 0%, #25c07a 100%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
    --shadow-md: 0 10px 28px rgba(0, 0, 0, .5);
    --bg: #0e1422; --surface: #151d30; --surface-h: #1e2940; --border: #243049; --ph: #1a2438; --topbar: #0a1020;
  }
}
:root[data-theme=dark] { --bg: #0e1422; --surface: #151d30; --surface-h: #1e2940; --border: #243049; --ph: #1a2438; --topbar: #0a1020; }

body { background: var(--bg); }
h1, h2, h3 { letter-spacing: -.01em; }

.topbar { background: var(--topbar); border-bottom: 2px solid transparent; border-image: var(--grad) 1; }
header.main-hd { background: var(--surface); border-bottom: 0; box-shadow: var(--shadow-sm); }
.hd-row { padding: 14px 0; gap: 14px; }

.cat-trigger {
  background: var(--grad);
  border-radius: 12px;
  height: 44px;
  padding: 0 18px;
  box-shadow: 0 4px 12px rgba(22, 116, 232, .28);
  transition: transform .12s, box-shadow .12s;
}
.cat-trigger:hover { background: var(--grad); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(22, 116, 232, .35); }

.srch-wrap {
  height: 44px;
  border: 1.5px solid var(--input-bd);
  border-radius: 999px;
  background: var(--bg);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.srch-wrap:focus-within { border-color: var(--blue); background: var(--surface); box-shadow: 0 0 0 4px var(--blue-soft); }
.srch-wrap input { padding: 0 18px; }
.srch-wrap button { background: var(--grad); padding: 0 26px; }
.srch-wrap button:hover { background: var(--grad); filter: brightness(1.08); }

.post-btn { background: linear-gradient(135deg, #1fae68, #17995a); border-radius: 12px; height: 44px; padding: 0 20px; box-shadow: 0 4px 12px rgba(31, 174, 104, .3); }
.post-btn:hover { background: linear-gradient(135deg, #25bd74, #1fae68); }

.mega-menu { border-radius: 0 0 18px 18px; box-shadow: var(--shadow-md); }
.mega-item { border-radius: 10px; }

input, select, textarea { border-radius: 10px; background: var(--surface); }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px var(--blue-soft); }
button, .btn { border-radius: 10px; }
.btn.l, button.l { background: var(--blue-soft); color: var(--blue-link); }
.btn.l:hover, button.l:hover { background: var(--surface-h); }

.cat-strip { gap: 10px; padding: 18px 0 10px; }
.cat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  min-height: 78px;
  transition: transform .14s, box-shadow .14s, border-color .14s;
}
.cat-tile:hover { background: var(--surface); transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue); }
.cat-tile svg { color: var(--blue); }
.cat-tile.on { background: var(--grad); border-color: transparent; color: #fff; }
.cat-tile.on svg { color: #fff; }

.sidebar { border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); padding: 18px; }

.grid { gap: 22px 18px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .16s, box-shadow .16s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-img-wrap { border-radius: 0; }
.card-img-wrap img { transition: transform .35s; }
.card:hover .card-img-wrap img { transform: scale(1.05); }
.card-body { padding: 12px 14px 14px; }
.card-title { color: var(--text); font-size: 15px; }
.card-title:hover { color: var(--blue-link); }
.card-price { font-size: 19px; color: var(--brand-buy); margin: 5px 0 3px; }
:root[data-theme=dark] .card-price { color: #e8efff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .card-price { color: #e8efff; } }
.photo-cnt { border-radius: 999px; padding: 2px 8px; background: rgba(12, 31, 74, .7); backdrop-filter: blur(4px); }
.micro-tag { border-radius: 999px; padding: 2px 9px; background: var(--blue-soft); color: var(--blue-link); }
.micro-tag.new { background: rgba(31, 174, 104, .14); color: var(--green); }

.list-card { border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); transition: box-shadow .16s, transform .16s; }
.list-card:hover { border-color: var(--border); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.view-sw { border-radius: 10px; }
.view-sw a.on { background: var(--blue-soft); color: var(--blue-link); }

.box, .item-side, .seller-card, .chat-wrap, .stat-card, .my-item, .conv-row, .modal-win { border-radius: 16px; background: var(--surface); }
.box, .item-side, .stat-card, .my-item { box-shadow: var(--shadow-sm); }
.gallery-main, .gallery-thumbs img { border-radius: 16px; }
.item-price-lg { color: var(--brand-buy); }
:root[data-theme=dark] .item-price-lg { color: #e8efff; }
.msg-bubble { border-radius: 16px; }
.msg-bubble.mine { background: var(--grad); }
.tabs a.on, .tabs button.on { border-bottom-color: var(--green); }
.mob-nav { background: var(--surface); box-shadow: 0 -6px 20px rgba(12, 31, 74, .08); }

@media (max-width: 640px) {
  .hd-row { padding: 10px 0; }
  .card { border-radius: 14px; }
  .card-body { padding: 9px 10px 11px; }
  .card-price { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .cat-tile, .list-card, .cat-trigger, .card-img-wrap img { transition: none; }
  .card:hover, .cat-tile:hover, .list-card:hover { transform: none; }
}

/* Hero + polish */
.hero {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  margin: 18px 0 4px; padding: 30px 34px; border-radius: 22px; color: #fff;
  background: radial-gradient(circle at 90% 10%, rgba(255,255,255,.18), transparent 45%), linear-gradient(120deg, #0c2a6b 0%, #1674e8 62%, #1fae68 120%);
  box-shadow: var(--shadow-md);
}
.hero h1 { color: #fff; font-size: 30px; line-height: 1.2; margin: 0 0 8px; }
.hero h1 span { background: linear-gradient(90deg, #9ff0c6, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 0 0 18px; color: rgba(255,255,255,.85); font-size: 15px; max-width: 480px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-btn { display: inline-block; padding: 11px 20px; border-radius: 12px; font-weight: 700; font-size: 14px; color: #fff; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); text-decoration: none; }
.hero-btn:hover { background: rgba(255,255,255,.26); text-decoration: none; }
.hero-btn.main { background: #fff; color: #0c2a6b; border-color: #fff; }
.hero-btn.main:hover { background: #eaf3ff; }
.hero-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 250px; }
.hero-points li { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: 14px; padding: 11px 16px; font-size: 14px; backdrop-filter: blur(4px); }
.hero-points b { color: #9ff0c6; }
.cat-tile svg { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--blue-soft); }
.cat-tile.on svg { background: rgba(255,255,255,.2); }
@media (max-width: 760px) {
  .hero { padding: 20px 18px; border-radius: 18px; margin-top: 12px; }
  .hero h1 { font-size: 22px; }
  .hero-points { display: none; }
}
