*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:   #0a0a0a;
  --white:   #fff;
  --bg:      #f7f7f8;
  --border:  #e8e8e8;
  --border2: #d4d4d4;
  --card-bg: #fff;
  --soft:    #6b6b6b;
  --dim:     #b0b0b0;
  --accent:  #e8111a;
  --accent2: #8b0000;
  --green:   #16a34a;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--black); min-height: 100vh; }

/* ── KEYFRAMES ─────────────────────────────────────────────────────── */
@keyframes pulse-dot   { 0%,100%{opacity:1} 50%{opacity:.3} }
@keyframes btcPulse    { 0%,100%{opacity:1} 50%{opacity:.4} }
@keyframes slide-left  { from{opacity:0;transform:translateX(28px)} to{opacity:1;transform:none} }
@keyframes slide-right { from{opacity:0;transform:translateX(-28px)} to{opacity:1;transform:none} }
@keyframes fadeUp      { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:none} }
@keyframes ripple      { to{transform:scale(4);opacity:0} }
@keyframes shimmer     { 0%{background-position:-500px 0} 100%{background-position:500px 0} }
@keyframes spin        { to{transform:rotate(360deg)} }
@keyframes skeletonPulse { 0%,100%{opacity:1} 50%{opacity:.45} }

/* ── PAGE LOADER ───────────────────────────────────────────────────── */
#pageLoader {
  position: fixed; inset: 0; z-index: 9999; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  transition: opacity .4s ease, visibility .4s ease;
}
#pageLoader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo { display: flex; align-items: center; justify-content: center; gap: 10px; }
.loader-logo img { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }
.loader-logo-text { font-size: 15px; font-weight: 800; color: var(--black); letter-spacing: -.4px; white-space: nowrap; }
.loader-logo-text span { color: var(--dim); font-weight: 400; }
.loader-spinner {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%; border: 3px solid #f0f0f0; border-top-color: var(--accent);
  animation: spin .7s linear infinite;
}
.loader-label { font-size: 12px; color: var(--dim); font-weight: 500; }

/* ── SKELETON ──────────────────────────────────────────────────────── */
.skeleton-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px 16px; animation: skeletonPulse 1.4s ease-in-out infinite; }
.skel-cover { width: 52px; height: 52px; border-radius: 10px; background: #ebebeb; flex-shrink: 0; }
.skel-line  { height: 12px; border-radius: 6px; background: #ebebeb; margin-bottom: 8px; }
.skel-line.short { width: 40%; }
.skel-line.med   { width: 65%; }
.skel-line.long  { width: 90%; }
.skel-badge { height: 18px; width: 56px; border-radius: 6px; background: #ebebeb; }

/* ── NAVBAR ────────────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 56px; display: flex; align-items: center; gap: 12px;
}
.nav-logo  { display: flex; align-items: center; gap: 9px; text-decoration: none; flex-shrink: 0; }
.logo-img  { width: 28px; height: 28px; object-fit: contain; }
.logo-img.invert { filter: invert(1); }
.logo-text { font-size: 14px; font-weight: 700; color: var(--black); letter-spacing: -.4px; }
.logo-dim  { color: var(--dim); font-weight: 400; }

.search-wrap  { flex: 1; position: relative; }
.search-icon  { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--dim); pointer-events: none; width: 14px; height: 14px; }
.search-input {
  width: 100%; background: #f3f3f4; border: 1px solid transparent;
  border-radius: 10px; padding: 8px 12px 8px 32px;
  font-size: 13.5px; font-family: var(--sans); outline: none; color: var(--black);
  transition: border-color .15s, background .15s;
}
.search-input:focus { background: #fff; border-color: var(--accent); }
.search-input::placeholder { color: var(--dim); }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
/* Кнопка 1 — тёмная */
.nav-add-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: #fff;
  background: #0a0a0a; border: none; border-radius: 9px;
  padding: 7px 15px; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .12s;
}
.nav-add-btn:hover { background: #333; transform: translateY(-1px); }
.nav-add-label {}
/* Кнопка 2 — тёмная с обводкой */
.nav-cta {
  font-size: 13px; font-weight: 600; color: #0a0a0a; text-decoration: none;
  padding: 7px 15px; border-radius: 9px;
  background: transparent; border: 1.5px solid #0a0a0a;
  transition: all .15s;
}
.nav-cta:hover { background: #0a0a0a; color: #fff; transform: translateY(-1px); }

/* ── BANNERS ───────────────────────────────────────────────────────── */
.banner-zone { background: #f0f0f1; border-bottom: 1px solid var(--border); padding: 12px 0; }
.banner-zone-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; overflow: hidden; }
.banner-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}
.bslot { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--border2); text-decoration: none; transition: border-color .18s, box-shadow .18s, transform .15s; }
.bslot:hover { border-color: var(--accent); box-shadow: 0 3px 14px rgba(232,17,26,.1); transform: translateY(-1px); }
.bslot-img { background: #e8e8e8; line-height: 0; }
.bslot-img-el { width: 100%; height: auto; max-height: 120px; object-fit: contain; display: block; border-radius: 8px; }
.bslot-empty { background: #fff; display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--dim); height: 70px; border-style: dashed; }
.bslot-empty:hover { color: var(--accent); border-color: var(--accent); box-shadow: none; transform: none; }
.bslot-label { font-size: 12px; font-weight: 600; }

/* ── TABS ──────────────────────────────────────────────────────────── */
.tabs-bar { background: #fff; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs-bar::-webkit-scrollbar { display: none; }
.tabs-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; gap: 3px; height: 46px; align-items: center; }
.tab-pill {
  font-size: 13px; font-weight: 500; padding: 5px 13px; border-radius: 20px;
  white-space: nowrap; cursor: pointer; border: none; background: transparent;
  color: var(--dim); transition: background .15s, color .15s;
}
.tab-pill:hover  { background: #f0f0f0; color: var(--black); }
.tab-pill.active { background: var(--accent); color: #fff; font-weight: 700; }

/* ── LAYOUT ────────────────────────────────────────────────────────── */
.layout { max-width: 1200px; margin: 0 auto; padding: 28px 24px; display: flex; gap: 24px; align-items: flex-start; }

/* ── SIDEBAR ───────────────────────────────────────────────────────── */
.sidebar {
  width: 204px; flex-shrink: 0;
  position: sticky; top: 74px;
  max-height: calc(100vh - 96px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.sidebar-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.sidebar-title { font-size: 10px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.filter-group  { margin-bottom: 12px; }
.filter-label  { font-size: 11.5px; color: #999; display: block; margin-bottom: 5px; font-weight: 500; }
.filter-select {
  width: 100%; font-size: 12.5px; border: 1px solid var(--border);
  border-radius: 9px; padding: 7px 10px; background: #fafafa;
  outline: none; font-family: var(--sans); color: var(--black);
  transition: border-color .15s; cursor: pointer;
}
.filter-select:focus { border-color: var(--accent); }
.reset-btn {
  width: 100%; font-size: 12.5px; font-weight: 600;
  background: var(--accent); color: #fff;
  border: none; border-radius: 9px; padding: 9px 0;
  cursor: pointer; font-family: var(--sans); margin-top: 4px;
  transition: background .15s;
}
.reset-btn:hover { background: var(--accent2); }

/* BTC ticker — white */
.btc-ticker { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.btc-header  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.btc-label   { font-size: 10px; color: #999; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.btc-live-dot{ width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: btcPulse 2s ease-in-out infinite; }
.btc-val     { font-size: 18px; font-weight: 700; color: var(--black); display: block; transition: color .4s; }
.btc-meta    { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.btc-change  { font-size: 11px; font-weight: 600; }
.btc-change.up   { color: var(--green); }
.btc-change.down { color: var(--accent); }
.btc-change.flat { color: #aaa; }
.btc-updated { font-size: 10px; color: #bbb; }

/* ── MAIN ──────────────────────────────────────────────────────────── */
.main-content { flex: 1; min-width: 0; }
.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #aaa; margin-bottom: 16px; }
.bc-sep    { color: #ddd; }
.bc-active { color: var(--accent); font-weight: 600; }
.bc-dot    { color: #ddd; }

.list-viewport { overflow: hidden; }
.listing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.listing-grid.anim-left  { animation: slide-left  .26s cubic-bezier(.4,0,.2,1) both; }
.listing-grid.anim-right { animation: slide-right .26s cubic-bezier(.4,0,.2,1) both; }

/* ── CARD ──────────────────────────────────────────────────────────── */
.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
  cursor: pointer;
}
.card:hover { box-shadow: 0 4px 24px rgba(0,0,0,.08); border-color: var(--border2); }
.card.card-vip {
  border: 2px solid var(--vip-color, #e8111a);
}
.card.card-vip:hover {
  border-color: var(--vip-color, #e8111a);
}
.card:hover .card-title { color: var(--accent); }

.card-top { display: flex; gap: 14px; padding: 16px 16px 10px; align-items: flex-start; }
.card-cover {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .5px;
}
.card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.card-head { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.card-title { font-size: 14px; font-weight: 700; color: var(--black); transition: color .15s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; font-size: 10px; font-weight: 700; line-height: 1; border-radius: 5px; white-space: nowrap; flex-shrink: 0; }
.badge-verified { background: var(--accent); color: #fff; }
.badge-featured { background: #fff0f0; color: var(--accent); border: 1px solid rgba(232,17,26,.2); }
.card-desc { font-size: 12.5px; color: var(--soft); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.card-bottom { display: flex; align-items: center; padding: 8px 16px 14px; gap: 6px; flex-wrap: wrap; border-top: 1px solid #f5f5f5; }
.card-access { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.access-group { display: flex; align-items: center; gap: 3px; }
.access-pill {
  display: inline-flex; align-items: center; gap: 5px; height: 28px;
  font-size: 11px; font-weight: 600; color: #555;
  background: #f5f5f5; border: 1px solid #e5e5e5;
  border-radius: 7px; padding: 0 10px; cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.access-pill:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.access-pill:hover svg { stroke: #fff !important; }
.mirror-count {
  font-size: 10px; font-weight: 700; color: #fff;
  background: var(--accent); border-radius: 5px; padding: 2px 5px; line-height: 1.4;
}

/* ── EMPTY ─────────────────────────────────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  padding: 60px 0; color: #bbb;
  grid-column: 1 / -1;
  animation: fadeUp .25s ease;
}
.empty-title { margin-top: 14px; font-size: 15px; font-weight: 700; color: #bbb; }
.empty-sub   { margin-top: 6px; font-size: 13px; color: #ccc; line-height: 1.6; max-width: 300px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px; height: 36px;
  font-size: 13px; font-weight: 600; color: #fff;
  background: var(--accent); border: none; border-radius: 10px;
  padding: 0 16px; cursor: pointer; font-family: var(--sans);
  position: relative; overflow: hidden; transition: background .15s;
}
.btn-primary:hover  { background: var(--accent2); }
.btn-primary:active { transform: scale(.97); }
.ripple-el {
  position: absolute; border-radius: 50%; background: rgba(255,255,255,.22);
  width: 32px; height: 32px; margin: -16px 0 0 -16px;
  animation: ripple .5s linear forwards; pointer-events: none;
}

/* ── DETAIL VIEW ───────────────────────────────────────────────────── */
#viewDetail { max-width: 1200px; margin: 0 auto; padding: 32px 24px 60px; display: none; }
.detail-outer { display: flex; gap: 24px; align-items: flex-start; }

.detail-back-col { width: 160px; flex-shrink: 0; position: sticky; top: 74px; }
.back-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  width: 100%; background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 16px; cursor: pointer;
  font-family: var(--sans); transition: border-color .17s;
}
.back-btn:hover { border-color: var(--accent); }
.back-btn-icon {
  width: 32px; height: 32px; border-radius: 9px; background: #f5f5f5;
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.back-btn:hover .back-btn-icon { background: var(--accent); }
.back-btn:hover .back-btn-icon svg { stroke: #fff; }
.back-btn-label { font-size: 12px; font-weight: 600; color: #555; }
.back-btn:hover .back-btn-label { color: var(--black); }
.back-btn-sub { font-size: 10.5px; color: var(--dim); }

.detail-main-col { flex: 1; min-width: 0; }

.detail-hero { background: #fff; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; margin-bottom: 14px; }

.detail-atmosphere { position: relative; height: 160px; overflow: hidden; background: #111; }
.detail-atmosphere-img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.detail-atmosphere-fallback { width: 100%; height: 100%; background: repeating-linear-gradient(-45deg, #111 0px, #111 1px, #0a0a0a 1px, #0a0a0a 18px); }
.detail-atmosphere::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.55)); pointer-events: none;
}

.detail-hero-top { display: flex; gap: 20px; padding: 20px 28px 22px; align-items: flex-start; }
.detail-cover {
  width: 72px; height: 72px; flex-shrink: 0; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 20px;
  margin-top: -40px; border: 3px solid #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.18); position: relative; z-index: 2;
}
.detail-hero-info { flex: 1; }
.detail-title  { font-size: 20px; font-weight: 700; color: var(--black); margin-bottom: 8px; line-height: 1.2; }
.detail-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.detail-status {
  display: inline-flex; align-items: center; gap: 6px;
  background: #f5f5f5; border-radius: 20px; padding: 4px 11px; border: 1px solid #ebebeb;
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.status-dot.online   { background: var(--green); animation: pulse-dot 2s ease-in-out infinite; }
.status-dot.unstable { background: #f59e0b; }
.status-dot.offline  { background: var(--dim); }
.detail-desc { font-size: 13.5px; color: var(--soft); line-height: 1.65; margin-bottom: 12px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 11px; background: #f3f3f3; color: #888; padding: 3px 9px; border-radius: 20px; }

.detail-section { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 22px 28px; margin-bottom: 14px; }
.link-cards  { display: flex; flex-direction: column; gap: 10px; }
.detail-section-title { font-size: 10.5px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }

/* ── SECTION BANNER — текст + градиентная полоска снизу ── */
.section-banner-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 12px;
}
.section-banner {
  display: inline-block;
  position: relative;
  width: fit-content;
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: -.01em;
  color: #0a0a0a;
  padding: 0 0 9px 0;
  margin-bottom: 0;
  background: none;
  flex-shrink: 0;
}
.section-banner span {
  position: relative;
  z-index: 2;
  font-size: inherit; font-weight: inherit; color: inherit;
}
.section-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--sb-color, #8ab5a8) 0%, color-mix(in srgb, var(--sb-color, #8ab5a8) 35%, #000) 100%);
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(var(--info-cols, 1), 1fr);
  gap: 10px;
}
.info-cell       { background: #fafafa; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.info-cell-label { font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 5px; font-weight: 600; }
.info-cell-val   { font-size: 15px; font-weight: 700; color: var(--black); }
.info-cell-sub   { font-size: 11px; color: #aaa; margin-top: 2px; }

/* ── LINK CARDS ────────────────────────────────────────────────────── */
.link-cards     { display: flex; flex-direction: column; gap: 12px; }
.link-card-wrap { display: flex; flex-direction: column; }
.link-card {
  display: flex; align-items: center; gap: 14px;
  border: 1.5px solid var(--border); border-radius: 14px;
  padding: 14px 18px; text-decoration: none; color: var(--black);
  background: #fff; transition: border-color .18s, box-shadow .18s, transform .15s; position: relative; z-index: 1;
}
.link-card:hover { border-color: rgba(232,17,26,.3); box-shadow: 0 3px 16px rgba(0,0,0,.06); transform: translateY(-1px); }
.link-card-icon  { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: #f5f5f5; }
.link-card-body  { flex: 1; min-width: 0; }
.link-card-type  { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #bbb; margin-bottom: 2px; }
.link-card-title { font-size: 13.5px; font-weight: 600; color: var(--black); margin-bottom: 2px; }
.link-card-url   { font-size: 11.5px; color: #aaa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 340px; }
.link-card-arrow { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: #f5f5f5; flex-shrink: 0; transition: background .15s; }
.link-card:hover .link-card-arrow { background: var(--accent); }
.link-card:hover .link-card-arrow svg { stroke: #fff; }

/* when mirrors follow */
.link-card-wrap:has(.mirror-list) .link-card { border-radius: 14px 14px 0 0; border-bottom-color: transparent; }

/* ── MIRROR LIST ───────────────────────────────────────────────────── */
.mirror-list { border: 1.5px solid var(--border); border-top: none; border-radius: 0 0 14px 14px; overflow: hidden; background: #fff; }
.mirror-row  { display: flex; align-items: center; gap: 12px; padding: 9px 18px; text-decoration: none; color: var(--soft); background: #fafafa; border-top: 1px solid var(--border); transition: background .15s; }
.mirror-row:hover { background: #f0f0f0; }
.mirror-num  { width: 22px; height: 22px; border-radius: 50%; background: #f0f0f0; border: 1px solid #e8e8e8; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #888; flex-shrink: 0; }
.mirror-info { flex: 1; min-width: 0; }
.mirror-url  { font-size: 12px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; transition: color .15s; }
.mirror-row:hover .mirror-url { color: var(--black); }
.mirror-label{ font-size: 10px; color: #ccc; margin-top: 1px; text-transform: uppercase; letter-spacing: .06em; }
.mirror-arrow{ display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: #f5f5f5; flex-shrink: 0; transition: background .15s; }
.mirror-row:hover .mirror-arrow { background: #e8e8e8; }

/* ── BOTTOM BANNER ─────────────────────────────────────────────────── */
.bottom-banner-zone { padding: 14px 0; background: var(--bg); border-top: 1px solid var(--border); }
.bottom-banner-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.bottom-banner-slot { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); line-height: 0; background: #e8e8e8; transition: border-color .18s, box-shadow .18s, transform .15s; }
.bottom-banner-slot:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(232,17,26,.08); transform: translateY(-1px); }
.bottom-banner-img { width: 100%; height: 70px; object-fit: cover; object-position: center; display: block; }

/* ── FOOTER ────────────────────────────────────────────────────────── */
.footer-wrap  { margin: 0; padding: 0 24px 28px; max-width: 1200px; margin-left: auto; margin-right: auto; }
.footer-inner {
  background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 36px 40px;
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 34px;
}
.footer-logo      { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-shrink: 0; }
.footer-logo-img  { /* оригинальный логотип на белом фоне */ }
.footer-desc      { font-size: 12.5px; color: #888; line-height: 1.7; margin-bottom: 18px; }
.tg-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--black); color: #fff; font-size: 12.5px; font-weight: 700;
  padding: 9px 16px; border-radius: 11px; text-decoration: none; transition: background .15s;
}
.tg-btn svg { fill: #fff !important; }
.tg-btn:hover { background: #333; }
.footer-col-title { font-size: 10px; font-weight: 700; color: #bbb; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 13px; }
.footer-link      { display: block; font-size: 13px; color: #aaa; text-decoration: none; padding: 4px 0; transition: color .15s; }
.footer-link:hover{ color: var(--black); }

/* ── RESPONSIVE ────────────────────────────────────────────────────── */

/* Tablet landscape 1024px */
@media (max-width: 1024px) {
  .layout { gap: 16px; }
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet 900px */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .main-content { width: 100%; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .banner-grid  { grid-template-columns: 1fr 1fr; }
  .detail-back-col { display: none; }
  .detail-main-col { width: 100%; max-width: 100%; }
}

/* Mobile 640px */
@media (max-width: 640px) {
  /* Nav */
  .nav-inner  { padding: 0 14px; height: 52px; gap: 8px; }
  .logo-text  { display: none; }
  .logo-img   { width: 26px; height: 26px; }
  .nav-add-label { display: none; }
  .nav-add-btn { padding: 7px 11px; min-width: 36px; justify-content: center; }
  .nav-cta { display: none; }
  .search-input { font-size: 13px; padding: 7px 10px 7px 30px; }

  /* Layout */
  .layout { padding: 12px 14px; gap: 12px; flex-direction: column; }
  .tabs-inner { padding: 0 14px; height: 44px; }
  .banner-zone-inner, .bottom-banner-inner { padding: 0 14px; }

  /* Cards grid */
  .listing-grid { grid-template-columns: 1fr; gap: 10px; }
  .card-top { padding: 14px 14px 8px; gap: 12px; }
  .card-cover { width: 48px; height: 48px; border-radius: 10px; font-size: 13px; }
  .card-title { font-size: 13.5px; }
  .card-desc  { font-size: 12px; -webkit-line-clamp: 2; }
  .card-bottom { padding: 0 14px 12px; }

  /* Banners */
  .banner-grid  {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    gap: 6px;
  }
  .bslot-img-el { height: auto !important; max-height: 80px; }
  .bslot-empty { height: 52px !important; }
  .bottom-banner-img { height: 52px; }

  /* Detail page */
  .detail-hero-top { flex-direction: column; gap: 12px; padding: 16px; }
  .detail-cover { width: 64px !important; height: 64px !important; border-radius: 12px !important; font-size: 16px !important; }
  .detail-title { font-size: 20px; }
  .detail-desc  { font-size: 13px; }
  .detail-section { padding: 16px; }
  .detail-section-title { font-size: 12px; }
  .link-card { padding: 14px; }
  .link-card-url { font-size: 11px; }
  .info-grid { grid-template-columns: 1fr 1fr; gap: 8px; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; padding: 24px 20px; gap: 20px; }
  .footer-desc  { font-size: 12px; }

  /* Breadcrumb */
  .breadcrumb { font-size: 12px; gap: 5px; margin-bottom: 12px; }

  /* 404 */
  .not-found-code { font-size: 100px; }
  .not-found-title { font-size: 18px; }
  .not-found-actions { flex-direction: column; align-items: center; }
  .nf-btn { width: 100%; max-width: 260px; justify-content: center; }
}

/* Small phones 420px */
@media (max-width: 420px) {
  .nav-inner { padding: 0 12px; }
  .banner-zone-inner { padding: 0 10px; }
  .layout { padding: 10px 12px; }
  .tabs-inner { padding: 0 12px; gap: 2px; }
  .tab-pill { padding: 4px 10px; font-size: 12px; }
  .listing-grid { gap: 8px; }
  .card-top { padding: 12px 12px 6px; }
  .card-cover { width: 44px; height: 44px; }
  .card-title { font-size: 13px; }
  .access-pill { font-size: 10px; padding: 4px 8px; gap: 4px; }
  .bslot-img-el, .bslot-empty { height: 46px !important; }
  .detail-hero-top { padding: 12px; }
  .footer-wrap { padding: 0 12px 24px; }
  .not-found-code { font-size: 80px; }
  .not-found-honeycomb { display: none; }
}

/* ── CHIPS / ПЛАШКИ ─────────────────────────────────────────────────── */
.card-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.card-chips-inline {
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 4px;
}
.svc-chip {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 20px;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .02em; white-space: nowrap;
}
.detail-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0; }
.detail-chips .svc-chip { font-size: 12px; padding: 4px 10px; }

/* ── BANNER ZONE MOBILE FIX ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .banner-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
  }
  .bslot-img-el { width: 100%; height: auto; max-height: 120px; object-fit: contain; display: block; border-radius: 8px; }
  .bslot-empty { height: 56px !important; }
}
@media (max-width: 420px) {
  .banner-zone-inner { padding: 0 12px; }
  .bslot-img-el { width: 100%; height: auto; max-height: 120px; object-fit: contain; display: block; border-radius: 8px; }
  .bslot-empty { height: 48px !important; }
}

/* ── BOTTOM BANNER ──────────────────────────────────────────────────── */
.bottom-banner-zone { padding: 16px 0; }
.bottom-banner-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.bottom-banner-slot { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--border2); }
.bottom-banner-img { width: 100%; height: 70px; object-fit: cover; display: block; }
@media (max-width: 640px) {
  .bottom-banner-img { height: 56px; }
}

/* ── 404 PAGE ───────────────────────────────────────────────────────── */
.nf-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px; border-radius: 10px;
  font-size: 13px; font-weight: 600; text-decoration: none;
  border: none; cursor: pointer; font-family: var(--sans);
  transition: all .15s;
}
.nf-btn-primary { background: var(--accent); color: #fff; }
.nf-btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }
.nf-btn-ghost { background: #fff; color: var(--black); border: 1px solid var(--border2); }
.nf-btn-ghost:hover { background: #f5f5f5; }

/* ── NAV BUTTON STYLES ──────────────────────────────────────────────── */
.nav-btn-ghost {
  background: transparent !important;
  color: var(--soft) !important;
  border: 1.5px solid var(--border) !important;
}
.nav-btn-ghost:hover { background: #f5f5f5 !important; color: var(--black) !important; }
.nav-btn-outline {
  background: transparent !important;
  color: var(--accent) !important;
  border: 1.5px solid var(--accent) !important;
}
.nav-btn-outline:hover { background: #fff0f0 !important; }
.nav-cta-ghost {
  color: var(--soft); border-color: var(--border);
}
.nav-cta-ghost:hover { background: #f5f5f5; }


/* ── LOAD MORE ──────────────────────────────────────────────────────── */
.load-more-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 28px; border-radius: 12px;
  font-size: 13px; font-weight: 700; font-family: var(--sans);
  background: #fff; color: var(--black);
  border: 1.5px solid var(--border2);
  cursor: pointer; transition: all .15s;
}
.load-more-btn:hover { background: #f5f5f5; border-color: #ccc; transform: translateY(-1px); }
.load-more-btn.loading { opacity: .6; pointer-events: none; }

/* ── SUBMIT PAGE ─────────────────────────────────────────────────────── */
.submit-wrap {
  min-height: calc(100vh - 200px);
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}
.submit-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 20px; padding: 36px 40px;
  width: 100%;
}
.submit-header h1 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.submit-header p  { font-size: 13px; color: #888; margin-bottom: 28px; line-height: 1.6; }
.submit-section-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: #aaa; margin: 20px 0 14px;
  border-bottom: 1px solid #f0f0f0; padding-bottom: 8px;
}
.submit-section-title:first-of-type { margin-top: 0; }
.submit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.submit-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.submit-field label { font-size: 12px; font-weight: 600; color: #555; }
.submit-hint { font-weight: 400; color: #bbb; }
.submit-field input,
.submit-field select,
.submit-field textarea {
  padding: 10px 13px; border: 1px solid var(--border);
  border-radius: 10px; font-size: 13px; font-family: var(--sans);
  outline: none; background: #fafafa; color: var(--black);
  transition: border-color .15s, background .15s;
}
.submit-field input:focus,
.submit-field select:focus,
.submit-field textarea:focus { border-color: var(--accent); background: #fff; }
.submit-field textarea { resize: vertical; min-height: 90px; }
.link-row {
  display: flex; gap: 8px; align-items: center;
  margin-bottom: 8px; flex-wrap: wrap;
}
.link-type-select { width: 110px; flex-shrink: 0; padding: 9px 10px; border: 1px solid var(--border); border-radius: 10px; font-size: 12px; font-family: var(--sans); outline: none; background: #fafafa; }
.link-row input[type=url] { flex: 1; min-width: 160px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 12px; font-family: var(--sans); outline: none; background: #fafafa; }
.link-row input[type=text] { width: 120px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 12px; font-family: var(--sans); outline: none; background: #fafafa; }
.link-row input:focus, .link-type-select:focus { border-color: var(--accent); background: #fff; }
.btn-add-link {
  font-size: 12px; font-weight: 600; color: var(--accent);
  background: #fff0f0; border: 1px solid rgba(232,17,26,.15);
  border-radius: 8px; padding: 6px 14px; cursor: pointer;
  font-family: var(--sans); transition: background .15s;
}
.btn-add-link:hover { background: #ffe0e0; }
.btn-rm-link {
  width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid #eee; background: #f5f5f5;
  font-size: 16px; cursor: pointer; color: #999;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-family: var(--sans); transition: all .15s;
}
.btn-rm-link:hover { background: #ffe0e0; color: var(--accent); border-color: rgba(232,17,26,.2); }
.submit-actions { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.btn-submit-primary {
  padding: 12px 28px; background: var(--accent); color: #fff;
  border: none; border-radius: 11px; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: var(--sans); transition: background .15s;
}
.btn-submit-primary:hover { background: var(--accent2); }
.btn-submit-back {
  font-size: 13px; font-weight: 600; color: #888; text-decoration: none;
  padding: 10px 16px; border-radius: 10px; border: 1px solid #e5e5e5;
  transition: all .15s;
}
.btn-submit-back:hover { background: #f5f5f5; color: var(--black); }

/* Done state */
.submit-done { text-align: center; padding: 20px 0 10px; }
.submit-done-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: #f0fdf4; border: 1px solid #86efac;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; color: #16a34a;
}
.submit-done h2 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.submit-done p  { font-size: 13px; color: #888; line-height: 1.7; margin-bottom: 24px; max-width: 360px; margin-left: auto; margin-right: auto; }

@media (max-width: 640px) {
  .submit-card { padding: 24px 20px; }
  .submit-grid { grid-template-columns: 1fr; }
  .link-row { flex-direction: column; align-items: stretch; }
  .link-type-select, .link-row input[type=text] { width: 100%; }
  .submit-actions { flex-direction: column; }
  .btn-submit-primary, .btn-submit-back { width: 100%; text-align: center; }
}

/* submit image upload */
.submit-img-preview {
  width: 100%; max-width: 200px; height: 100px;
  object-fit: cover; border-radius: 10px;
  border: 1px solid var(--border); margin-top: 8px; display: block;
}
.submit-file-input {
  padding: 6px; font-size: 12px;
  border: 1px dashed var(--border); border-radius: 10px;
  background: #fafafa; width: 100%; cursor: pointer;
}

/* ── SIDEBAR BANNERS (под BTC) ──────────────────────────────────────── */
.sidebar-banners { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.sidebar-banner-slot { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.sidebar-banner-img { width: 100%; height: auto; display: block; }
.submit-page-banner { display: block; border-radius: 10px; overflow: hidden; }

/* ── VIP CARD OUTLINE ─────────────────────────────────────────────────────── */
.card-vip {
  outline: 2px solid var(--vip-color, #e8111a);
  outline-offset: -2px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--vip-color, #e8111a) 18%, transparent);
}
.card-vip:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.10), 0 0 0 3px color-mix(in srgb, var(--vip-color, #e8111a) 28%, transparent);
}

/* ── TABLE LIMIT SELECTOR ─────────────────────────────────────────────────── */
.tbl-limit-bar { display:flex; align-items:center; gap:5px; margin-bottom:10px; font-size:12px; color:#888; }
.tbl-limit-btn { padding:3px 9px; border-radius:6px; border:1px solid #e5e5e7; background:#fff; font-size:11px; font-weight:600; cursor:pointer; color:#555; transition:all .12s; }
.tbl-limit-btn.active { background:#0a0a0a; color:#fff; border-color:#0a0a0a; }

/* ── RULES PAGE ─────────────────────────────────────────────────────────────── */
.rules-content h2,.rules-content h3 { margin:20px 0 8px; font-size:15px; font-weight:700; }
.rules-content p { margin-bottom:12px; }
.rules-content ul,.rules-content ol { padding-left:20px; margin-bottom:12px; }
.rules-content li { margin-bottom:4px; }

/* ── REPORT TRIGGER BTN ─────────────────────────────────────────────────────── */
.report-trigger-btn { display:inline-flex; align-items:center; gap:7px; padding:8px 16px; background:#0a0a0a; color:#fff; border:none; border-radius:9px; font-size:12px; font-weight:600; cursor:pointer; transition:background .15s; font-family:inherit; }
.report-trigger-btn:hover { background:#333; }
