:root {
  --bg: #090c0e;
  --bg-soft: #0f1316;
  --surface: #14191c;
  --surface-2: #1a2024;
  --surface-3: #20272b;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f1f3ef;
  --muted: #8d969b;
  --accent: #dfff35;
  --accent-rgb: 223, 255, 53;
  --accent-text: #dfff35;
  --lime: #dfff35;
  --lime-text: #dfff35;
  --display: 'Arial Narrow', 'Roboto Condensed', Impact, sans-serif;
  --sans: Inter, 'Segoe UI', system-ui, sans-serif;
  color-scheme: dark;
}

a[href="configs.html?game=cs2"] { display: none !important; }

body[data-catalog='rust'] {
  --accent: #e86d37;
  --accent-rgb: 232, 109, 55;
  --accent-text: #e86d37;
}

[data-theme='light'] {
  --bg: #eef0eb;
  --bg-soft: #e3e6df;
  --surface: #f9faf6;
  --surface-2: #e5e8e1;
  --surface-3: #d9ddd5;
  --line: rgba(17, 22, 24, 0.12);
  --line-strong: rgba(17, 22, 24, 0.24);
  --text: #111719;
  --muted: #697277;
  --accent-text: #536900;
  --lime-text: #536900;
  color-scheme: light;
}

[data-theme='light'] body[data-catalog='rust'] { --accent-text: #a33b0d; }

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  transition: background .2s, color .2s;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }
svg { display: block; }
.container { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -60px; left: 18px; z-index: 200; padding: 10px 15px; background: var(--accent); color: #101310; font-weight: 800; }
.skip-link:focus { top: 18px; }

.catalog-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  color: #fff;
  background: rgba(8, 11, 13, .9);
  border-bottom: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(18px);
}
.header-inner { min-width: 0; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; font: 700 21px/1 var(--display); letter-spacing: .035em; }
.brand > span:last-child > span { color: var(--accent); }
.brand-mark { width: 31px; height: 27px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; transform: skew(-11deg); }
.brand-mark i { background: var(--accent); }
.brand-mark i:nth-child(2) { height: 72%; align-self: end; }
.brand-mark i:nth-child(3) { height: 42%; align-self: end; }
.catalog-nav { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: clamp(10px, 1.35vw, 18px); margin-left: auto; }
.catalog-nav a { color: rgba(255,255,255,.62); font-size: 11px; font-weight: 750; transition: color .2s; }
.catalog-nav a:hover, .catalog-nav a.active { color: var(--accent); }
.nav-dropdown { position: relative; display: flex; align-items: center; align-self: stretch; }
.nav-dropdown-trigger { display: inline-flex; align-items: center; gap: 6px; }
.nav-dropdown-trigger::after { content: '⌄'; color: rgba(255,255,255,.42); font-size: 10px; transform: translateY(-1px); }
.nav-dropdown-panel {
  position: absolute;
  top: calc(100% - 7px);
  left: 50%;
  z-index: 60;
  width: 196px;
  padding: 9px;
  display: grid;
  gap: 2px;
  background: rgba(12, 15, 17, .97);
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 22px 55px rgba(0,0,0,.35);
  transform: translate(-50%, 8px);
  opacity: 0;
  pointer-events: none;
  transition: .18s;
  backdrop-filter: blur(16px);
}
.nav-dropdown:hover .nav-dropdown-panel, .nav-dropdown:focus-within .nav-dropdown-panel { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.catalog-nav .nav-dropdown-panel a { padding: 7px 9px; color: rgba(255,255,255,.7); font-size: 11px; border-radius: 4px; }
.catalog-nav .nav-dropdown-panel a:hover { background: rgba(var(--accent-rgb), .1); color: var(--accent); }
.catalog-nav .nav-dropdown-panel .nav-dropdown-all { margin-bottom: 4px; color: #fff; background: rgba(255,255,255,.06); font-weight: 850; }
.header-actions { flex: 0 0 auto; display: flex; gap: 8px; }
.telegram-header-link { color: var(--accent); font: 800 11px/1 var(--sans); letter-spacing: 0; }
.telegram-header-link:hover { color: #101310; background: var(--accent); }
.icon-button, .menu-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.icon-button:hover, .menu-button:hover { background: rgba(255,255,255,.08); }
.icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun { display: none; }
[data-theme='light'] .theme-toggle .moon { display: none; }
[data-theme='light'] .theme-toggle .sun { display: block; }
.menu-button { display: none; gap: 5px; }
.menu-button span { width: 19px; height: 1px; background: #fff; transition: transform .2s; }
.mobile-nav { display: none; }

.catalog-hero {
  position: relative;
  min-height: 510px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  border-bottom: 1px solid var(--line);
}
.catalog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 76% 38%, rgba(var(--accent-rgb), .22), transparent 32%),
    linear-gradient(135deg, #16262a 0, #0b0f11 52%, #080a0b 100%);
}
body[data-catalog='rust'] .catalog-hero::before {
  background:
    radial-gradient(circle at 77% 35%, rgba(var(--accent-rgb), .28), transparent 34%),
    linear-gradient(135deg, #342018 0, #12100e 52%, #080a0b 100%);
}
.catalog-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(90deg, #000, transparent 84%);
}
.hero-symbol {
  position: absolute;
  right: max(20px, calc((100vw - 1240px) / 2));
  top: 50%;
  z-index: -1;
  width: min(39vw, 480px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform: translateY(-48%);
  opacity: .42;
}
.hero-symbol.weapon-symbol::before, .hero-symbol.weapon-symbol::after {
  content: '';
  position: absolute;
  background: var(--accent);
  box-shadow: 0 0 40px rgba(var(--accent-rgb), .25);
}
.hero-symbol.weapon-symbol::before { width: 93%; height: 13%; clip-path: polygon(0 30%, 54% 30%, 61% 0, 83% 12%, 86% 32%, 100% 40%, 97% 63%, 70% 60%, 61% 83%, 49% 83%, 45% 60%, 0 62%); transform: rotate(-8deg); }
.hero-symbol.weapon-symbol::after { width: 12%; height: 27%; left: 47%; top: 54%; clip-path: polygon(0 0, 100% 0, 80% 100%, 15% 100%); transform: rotate(-8deg); }
.hero-symbol.rust-symbol {
  font: 300 min(31vw, 330px)/1 serif;
  color: var(--accent);
  text-shadow: 0 0 50px rgba(var(--accent-rgb), .22);
  transform: translateY(-47%) rotate(8deg);
}
.hero-content { padding: 105px 0 68px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; color: rgba(255,255,255,.46); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.breadcrumbs a:hover { color: var(--accent); }
.hero-kicker { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.64); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero-kicker::before { content: ''; width: 26px; height: 2px; background: var(--accent); }
.catalog-hero h1 { max-width: 850px; margin: 16px 0 20px; font: 650 clamp(64px, 8vw, 112px)/.87 var(--display); letter-spacing: -.045em; text-transform: uppercase; }
.catalog-hero h1, .directory-detail-content h1, .directory-card strong { overflow-wrap: anywhere; }
.catalog-hero h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 1px rgba(255,255,255,.66); }
.catalog-hero p { max-width: 650px; margin: 0; color: rgba(255,255,255,.62); font-size: 16px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 32px; }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta strong { font: 600 22px var(--display); }
.hero-meta span { color: rgba(255,255,255,.44); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }

.catalog-main { padding: 64px 0 110px; }
.catalog-toolbar {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto;
  gap: 18px;
  margin-bottom: 18px;
}
.catalog-search { height: 58px; display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); }
.catalog-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .08); }
.catalog-search svg { width: 19px; height: 19px; margin: 0 15px 0 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.catalog-search input { min-width: 0; flex: 1; height: 100%; padding: 0 18px 0 0; border: 0; outline: 0; background: transparent; color: var(--text); }
.toolbar-side { display: flex; gap: 10px; }
.sort-select {
  height: 58px;
  min-width: 210px;
  padding: 0 42px 0 16px;
  border: 1px solid var(--line);
  outline: 0;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.view-switch { display: flex; border: 1px solid var(--line); background: var(--surface); }
.view-switch button { width: 52px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.view-switch button.active { background: var(--accent); color: #101310; }
.view-switch svg { width: 18px; margin: auto; fill: currentColor; }

.seo-guide, .seo-resource-section {
  margin-top: 34px;
  margin-bottom: 52px;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(12, 15, 17, .88);
}
.seo-guide-head { max-width: 850px; margin-bottom: 24px; }
.seo-guide-head h2, .seo-resource-section .section-heading h2 {
  margin: 6px 0 10px;
  font: 800 clamp(30px, 4vw, 48px)/.95 var(--display);
  text-transform: uppercase;
}
.seo-guide-head p, .seo-resource-section .section-heading p { margin: 0; color: var(--muted); }
.seo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.seo-grid article, .seo-faq details {
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.seo-grid h3 { margin: 0 0 9px; font: 800 18px/1.15 var(--display); text-transform: uppercase; }
.seo-grid p, .seo-faq p { margin: 0; color: var(--muted); }
.seo-faq { display: grid; gap: 10px; margin-top: 18px; }
.seo-faq h2 { margin: 10px 0 2px; font: 800 26px/1 var(--display); text-transform: uppercase; }
.seo-faq summary { cursor: pointer; font-weight: 850; }
.seo-faq p { margin-top: 10px; }
.seo-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.seo-links a {
  padding: 10px 13px;
  border: 1px solid rgba(var(--accent-rgb), .42);
  color: var(--accent);
  background: rgba(var(--accent-rgb), .08);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}
.seo-resource-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.seo-resource-grid a {
  min-width: 0;
  min-height: 72px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.seo-resource-grid a:hover { border-color: var(--accent); }
.seo-resource-grid img { grid-row: 1 / 3; width: 52px; height: 48px; object-fit: contain; }
.seo-resource-grid strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.seo-resource-grid span { color: var(--muted); font-size: 11px; }

.filter-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 38px; padding-bottom: 18px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.filter-bar > span { flex: 0 0 auto; margin-right: 8px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.filter-chip { flex: 0 0 auto; padding: 9px 14px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 11px; font-weight: 750; cursor: pointer; transition: .2s; }
.filter-chip:hover { border-color: var(--line-strong); color: var(--text); }
.filter-chip.active { border-color: var(--accent); background: rgba(var(--accent-rgb), .1); color: var(--text); }

.directory-head { align-items: flex-start; }
.directory-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 42px; }
.directory-tabs a {
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  transition: .2s;
}
.directory-tabs a span { min-width: 0; overflow-wrap: anywhere; }
.directory-tabs a:hover { border-color: var(--accent); transform: translateY(-2px); }
.directory-tabs b { min-width: 24px; height: 20px; display: grid; place-items: center; border-radius: 999px; background: rgba(var(--accent-rgb), .1); color: var(--accent-text); font-size: 9px; }
.directory-section { scroll-margin-top: 95px; margin-top: 46px; }
.directory-section:first-child { margin-top: 0; }
.directory-section h2 { margin: 0 0 17px; font: 650 29px/1 var(--display); text-transform: uppercase; letter-spacing: -.02em; }
.directory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.directory-card {
  min-height: 58px;
  padding: 10px 13px;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 11px;
  background: var(--surface);
  border: 1px solid transparent;
  color: var(--text);
  transition: .18s;
}
.directory-card:hover, .directory-card:focus-visible { border-color: rgba(var(--accent-rgb), .65); background: var(--surface-2); transform: translateY(-2px); outline: 0; }
.directory-card img { width: 32px; height: 32px; object-fit: contain; filter: drop-shadow(0 7px 8px rgba(0,0,0,.24)); }
.directory-card span { width: 30px; height: 30px; display: grid; place-items: center; color: var(--accent-text); font: 750 16px/1 var(--display); }
.directory-card strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 700; }
.directory-card em { color: var(--accent-text); font-style: normal; }
.is-collapsed { display: none !important; }
.show-all-button {
  min-height: 42px;
  margin: 18px auto 0;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: .18s;
}
.show-all-button:hover, .show-all-button:focus-visible { border-color: var(--accent); color: var(--accent-text); outline: 0; }
.show-all-button span { color: var(--muted); }
.directory-section h2 a:hover { color: var(--accent-text); }
.directory-category-grid { margin-top: 20px; }
.directory-detail-hero { min-height: 560px; display: flex; align-items: center; padding: 120px 0 70px; color: #fff; background: radial-gradient(circle at 75% 35%, rgba(var(--accent-rgb), .2), transparent 35%), linear-gradient(135deg, #151f22, #080a0b); border-bottom: 1px solid rgba(255,255,255,.1); }
body[data-catalog='rust'] .directory-detail-hero { background: radial-gradient(circle at 75% 35%, rgba(var(--accent-rgb), .24), transparent 35%), linear-gradient(135deg, #2a1a13, #080a0b); }
.directory-detail-grid { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 56px; align-items: center; }
.directory-detail-visual { --rarity: rgba(255,255,255,.12); --rarity-rgb: 255,255,255; min-height: 340px; display: grid; place-items: center; background: radial-gradient(circle, rgba(var(--rarity-rgb), .14), rgba(255,255,255,.045) 70%); border: 1px solid rgba(var(--rarity-rgb), .72); box-shadow: inset 0 4px 0 var(--rarity), 0 20px 54px rgba(var(--rarity-rgb), .12); overflow: hidden; }
.directory-detail-visual img { width: 88%; height: 310px; object-fit: contain; filter: drop-shadow(0 24px 26px rgba(0,0,0,.4)); }
.directory-detail-visual span { color: var(--accent); font: 750 clamp(72px, 11vw, 136px)/1 var(--display); letter-spacing: -.06em; text-shadow: 0 22px 32px rgba(0,0,0,.35); }
.directory-detail-content h1 { margin: 16px 0 18px; font: 650 clamp(58px, 8vw, 104px)/.88 var(--display); text-transform: uppercase; letter-spacing: -.045em; }
.directory-detail-content { min-width: 0; }
.directory-detail-content p { max-width: 720px; color: rgba(255,255,255,.68); overflow-wrap: anywhere; }
.detail-actions { margin-top: 24px; width: min(100%, 460px); }
.detail-actions .card-open { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 11px 14px; line-height: 1.35; text-align: center; white-space: normal; overflow-wrap: anywhere; }
.directory-detail-sections { display: grid; gap: 18px; }
.panel-like { padding: 24px; background: var(--surface); border: 1px solid var(--line); }
.panel-like h2 { margin: 0 0 18px; font: 650 28px/1 var(--display); text-transform: uppercase; }
.market-price-panel { background: var(--surface); }
.market-offer { max-width: 620px; padding: 20px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); border-radius: 6px; }
.market-offer-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.12); }
.market-offer-head > div { display: grid; gap: 6px; }
.market-offer-head strong { font: 650 19px/1 var(--display); }
.market-offer-head b { color: var(--lime-text); font: 700 18px/1 var(--display); }
.market-offer-head a { color: var(--muted); font-size: 12px; }
.market-offer-head a:hover { color: var(--lime-text); }
.market-condition-list { display: grid; gap: 6px; padding: 14px 0; }
.market-condition-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline; color: var(--muted); font-size: 12px; }
.market-condition-list a:hover span { color: var(--text); }
.market-condition-list strong { color: var(--text); font-size: 12px; white-space: nowrap; }
.market-condition-list strong.is-missing { color: var(--muted); opacity: .55; font-weight: 500; }
.market-offer footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.market-price-loading, .market-price-error { max-width: 620px; min-height: 150px; display: grid; place-content: center; gap: 6px; padding: 24px; border: 1px solid var(--line); color: var(--muted); text-align: center; }
.market-price-error strong { color: var(--text); }
.market-price-error span { font-size: 11px; }
.skin-profile { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.skin-profile div { padding: 15px; background: var(--surface-2); border: 1px solid var(--line); }
.skin-profile span { display: block; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.skin-profile strong { display: block; margin-top: 4px; font-size: 13px; }
.skin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.skin-card { --rarity: var(--line); --rarity-rgb: var(--accent-rgb); min-height: 210px; display: block; color: inherit; text-decoration: none; background: linear-gradient(180deg, rgba(var(--rarity-rgb), .11), var(--surface-2) 46%); border: 1px solid rgba(var(--rarity-rgb), .78); overflow: hidden; box-shadow: inset 0 3px 0 var(--rarity), 0 16px 38px rgba(var(--rarity-rgb), .08); transition: transform .18s ease, border-color .18s ease; }
.skin-card:hover, .skin-card:focus-visible { transform: translateY(-3px); outline: 2px solid var(--rarity); outline-offset: 2px; }
.skin-card img, .skin-card > span { width: 100%; height: 120px; display: grid; place-items: center; object-fit: contain; background: radial-gradient(circle, rgba(var(--rarity-rgb), .2), transparent 70%); color: var(--rarity); font: 650 46px var(--display); }
.skin-card div { padding: 15px; }
.skin-card small { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.skin-rarity { display: block; min-height: 13px; margin-top: 5px; color: var(--rarity); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.skin-card h3 { margin: 4px 0 7px; font: 650 20px/1 var(--display); text-transform: uppercase; }
.skin-card p { min-height: 34px; margin: 0; color: var(--muted); font-size: 12px; }
.skin-card b { display: block; margin-top: 11px; color: var(--accent-text); font-size: 10px; font-weight: 800; }
.rarity-contraband { --rarity: #e4ae36; --rarity-rgb: 228, 174, 54; }
.rarity-covert { --rarity: #eb4b4b; --rarity-rgb: 235, 75, 75; }
.rarity-classified { --rarity: #d32ce6; --rarity-rgb: 211, 44, 230; }
.rarity-restricted { --rarity: #8847ff; --rarity-rgb: 136, 71, 255; }
.rarity-milspec { --rarity: #4b69ff; --rarity-rgb: 75, 105, 255; }
.rarity-industrial { --rarity: #5e98d9; --rarity-rgb: 94, 152, 217; }
.rarity-consumer { --rarity: #b0c3d9; --rarity-rgb: 176, 195, 217; }
.rarity-extraordinary { --rarity: #e4ae36; --rarity-rgb: 228, 174, 54; }
.muted-line { margin: 0; color: var(--muted); }

.results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.results-head h2 { margin: 0; font: 600 clamp(34px, 4vw, 52px)/1 var(--display); text-transform: uppercase; letter-spacing: -.02em; }
.results-count { color: var(--muted); font-size: 12px; }
.results-count strong { color: var(--accent-text); }
.data-note { max-width: 420px; margin: 0; color: var(--muted); font-size: 11px; text-align: right; }

.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.catalog-card {
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .22s, border-color .22s, box-shadow .22s;
}
.catalog-card:hover { z-index: 2; transform: translateY(-4px); border-color: rgba(var(--accent-rgb), .7); box-shadow: 0 18px 45px rgba(0,0,0,.2); }
.card-visual { height: 220px; position: relative; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, var(--surface-2), var(--bg-soft)); }
.card-visual::before { content: ''; position: absolute; inset: 0; opacity: .28; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 34px 34px; mask-image: radial-gradient(circle, #000, transparent 72%); }
.card-code { position: relative; color: var(--accent-text); font: 650 clamp(54px, 7vw, 84px)/1 var(--display); letter-spacing: -.06em; text-transform: uppercase; text-shadow: 0 18px 24px rgba(0,0,0,.35); transform: rotate(-4deg); }
.hero-symbol .card-code, .detail-hero .card-code { color: var(--accent); }
.card-code.small { font-size: 49px; letter-spacing: -.03em; }
.card-code.icon { font-family: 'Segoe UI Symbol', serif; font-size: 92px; font-weight: 300; }
.card-image { position: relative; z-index: 1; width: 88%; height: 82%; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(0,0,0,.38)); }
.card-type { position: absolute; top: 15px; left: 15px; z-index: 2; padding: 5px 8px; background: var(--accent); color: #111410; font-size: 8px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.favorite-button { position: absolute; top: 13px; right: 13px; z-index: 2; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: rgba(8,10,11,.55); color: #fff; cursor: pointer; }
.favorite-button svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.favorite-button.saved { border-color: var(--accent); background: var(--accent); color: #111410; }
.favorite-button.saved svg { fill: currentColor; }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 22px; }
.card-id { color: var(--muted); font: 10px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-body h3 { margin: 7px 0 8px; font: 600 27px/1.05 var(--display); letter-spacing: -.015em; text-transform: uppercase; }
.card-description { min-height: 46px; margin: 0 0 19px; color: var(--muted); font-size: 12px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: auto; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stat-grid div { min-width: 0; padding: 11px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-grid span { display: block; color: var(--muted); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.stat-grid strong { display: block; overflow: hidden; margin-top: 2px; font: 600 15px/1.25 var(--display); text-overflow: ellipsis; white-space: nowrap; }
.card-open { width: 100%; margin-top: 18px; padding: 12px 15px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); font-size: 10px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; cursor: pointer; transition: .2s; }
.card-open:hover { border-color: var(--accent); background: var(--accent); color: #111410; }

.catalog-grid.list-view { grid-template-columns: 1fr; }
.list-view .catalog-card { display: grid; grid-template-columns: 230px 1fr; }
.list-view .card-visual { height: auto; min-height: 215px; }
.list-view .card-body { display: grid; grid-template-columns: minmax(210px, 1fr) minmax(260px, 1.1fr) 150px; align-items: center; gap: 22px; }
.list-view .card-description { min-height: 0; margin: 0; }
.list-view .stat-grid { margin: 0; }
.list-view .card-open { margin: 0; }

.empty-state { display: none; padding: 80px 20px; border: 1px dashed var(--line-strong); color: var(--muted); text-align: center; }
.empty-state.show { display: block; }
.empty-state strong { display: block; margin-bottom: 8px; color: var(--text); font: 600 31px var(--display); text-transform: uppercase; }
.empty-state button { margin-top: 18px; padding: 10px 15px; border: 1px solid var(--accent); background: transparent; color: var(--text); cursor: pointer; }

.catalog-footer { padding: 55px 0 25px; background: #07090a; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.15fr; gap: 38px; }
.footer-brand p { max-width: 360px; color: #71797d; font-size: 12px; }
.footer-column { display: flex; flex-direction: column; gap: 9px; }
.footer-column h3 { margin: 0 0 7px; color: #6f777b; font-size: 9px; text-transform: uppercase; letter-spacing: .13em; }
.footer-column a { color: #b5babc; font-size: 12px; }
.footer-column a:hover { color: var(--accent); }
.footer-social-link { display: flex; align-items: center; gap: 9px; }
.telegram-badge { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 28px; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); color: var(--accent); font-size: 9px; font-weight: 900; }
.footer-support-link { display: flex; flex-direction: column; gap: 1px; overflow-wrap: anywhere; }
.footer-support-link span:first-child { color: #71797d; font-size: 9px; text-transform: uppercase; }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; margin-top: 45px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); color: #555d61; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }

.detail-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.detail-modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; border: 0; background: rgba(0,0,0,.78); backdrop-filter: blur(8px); cursor: default; }
.detail-dialog { width: min(800px, 100%); max-height: min(760px, calc(100vh - 48px)); position: relative; overflow: auto; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 30px 100px rgba(0,0,0,.55); animation: modal-in .22s ease-out; }
.detail-close { position: absolute; top: 15px; right: 15px; z-index: 3; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: rgba(8,10,11,.55); color: #fff; cursor: pointer; }
.detail-hero { min-height: 260px; position: relative; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, var(--surface-3), var(--bg)); }
.detail-hero::before { content: ''; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 42px 42px; }
.detail-hero .card-code { font-size: clamp(70px, 12vw, 130px); }
.detail-image { position: relative; z-index: 1; width: min(82%, 620px); height: 230px; object-fit: contain; filter: drop-shadow(0 20px 25px rgba(0,0,0,.42)); }
.detail-content { padding: 32px; }
.detail-kicker { color: var(--accent-text); font-size: 9px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.detail-content h2 { margin: 8px 0 12px; font: 650 clamp(38px, 6vw, 62px)/.95 var(--display); text-transform: uppercase; }
.detail-content > p { max-width: 680px; margin: 0 0 25px; color: var(--muted); }
.detail-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.detail-stats div { padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-stats span { display: block; color: var(--muted); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.detail-stats strong { display: block; margin-top: 4px; font: 600 18px var(--display); }
.detail-tip { margin-top: 22px; padding: 18px; border-left: 3px solid var(--accent); background: rgba(var(--accent-rgb), .07); font-size: 12px; }
.detail-tip strong { display: block; margin-bottom: 5px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }

.toast { position: fixed; right: 22px; bottom: 22px; z-index: 130; padding: 12px 17px; background: var(--accent); color: #111410; font-size: 11px; font-weight: 850; opacity: 0; transform: translateY(25px); pointer-events: none; transition: .22s; }
.toast.show { opacity: 1; transform: translateY(0); }

@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }

@media (max-width: 1120px) {
  .catalog-nav { display: none; }
  .menu-button { display: grid; }
  .mobile-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    padding: 20px 24px 24px;
    flex-direction: column;
    gap: 14px;
    background: #0a0d0f;
    border-bottom: 1px solid rgba(255,255,255,.1);
    transform: translateY(-135%);
    opacity: 0;
    pointer-events: none;
    transition: .22s;
  }
  .mobile-nav.open { display: flex; transform: translateY(0); opacity: 1; pointer-events: auto; }
  .mobile-nav-sub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: -6px 0 2px; padding: 9px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.035); }
  .mobile-nav-sub a { color: rgba(255,255,255,.62); font-size: 11px; }
  .menu-button.open span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-button.open span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .list-view .catalog-card { grid-template-columns: 190px 1fr; }
  .list-view .card-body { grid-template-columns: 1fr 1fr; }
  .list-view .card-open { grid-column: 1 / -1; }
  .hero-symbol { right: -70px; }
  .seo-resource-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .seo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 30px, 1240px); }
  .catalog-header { height: 66px; }
  .mobile-nav { top: 66px; }
  .catalog-hero { min-height: 560px; align-items: flex-end; }
  .hero-content { padding: 95px 0 52px; }
  .catalog-hero h1 { font-size: clamp(58px, 18vw, 82px); }
  .catalog-hero p { max-width: 92%; font-size: 14px; }
  .hero-symbol { right: -70px; top: 34%; width: 270px; opacity: .2; }
  .hero-meta { gap: 22px; }
  .catalog-main { padding: 45px 0 75px; }
  .catalog-toolbar { grid-template-columns: 1fr; }
  .toolbar-side { width: 100%; }
  .sort-select { min-width: 0; flex: 1; }
  .results-head { align-items: flex-start; flex-direction: column; }
  .data-note { text-align: left; }
  .catalog-grid { grid-template-columns: 1fr; }
  .directory-tabs {
    max-width: 100%;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(155px, 72vw);
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }
  .directory-tabs a { scroll-snap-align: start; }
  .directory-grid { grid-template-columns: 1fr; }
  .seo-guide, .seo-resource-section { padding: 18px; }
  .seo-resource-grid { grid-template-columns: 1fr; }
  .seo-resource-grid strong { white-space: normal; }
  .directory-detail-grid { grid-template-columns: 1fr; gap: 28px; }
  .directory-detail-visual { min-height: 240px; }
  .skin-profile, .skin-grid { grid-template-columns: 1fr; }
  .card-visual { height: 200px; }
  .list-view .catalog-card { display: flex; }
  .list-view .card-visual { min-height: 180px; }
  .list-view .card-body { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .detail-modal { padding: 10px; }
  .detail-dialog { max-height: calc(100vh - 20px); }
  .detail-content { padding: 24px 20px; }
  .detail-stats { grid-template-columns: repeat(2, 1fr); }
  .market-offer { padding: 17px; }
  .market-offer-head { gap: 14px; }
}

@media (max-width: 420px) {
  .brand { font-size: 18px; }
  .brand-mark { width: 27px; height: 23px; }
  .catalog-hero h1 { font-size: 55px; }
  .hero-meta { display: grid; grid-template-columns: repeat(2, 1fr); }
  .view-switch { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

@media (max-width: 360px) {
  .container { width: min(100% - 20px, 1240px); }
  .header-inner { gap: 8px; }
  .brand { gap: 7px; font-size: 16px; }
  .brand-mark { width: 24px; height: 21px; }
  .header-actions { gap: 1px; }
  .icon-button, .menu-button { width: 34px; height: 34px; }
  .language-toggle { min-width: 34px; width: 34px; height: 34px; padding: 0; }
  .directory-tabs { grid-auto-columns: minmax(145px, 78vw); }
  .mobile-nav-sub { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.language-toggle {
  min-width: 42px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: 800 10px/1 Arial, sans-serif;
  letter-spacing: .12em;
}
.language-toggle:hover { border-color: var(--lime); color: var(--lime-text); }
.legal-footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.legal-footer-links a { color: inherit; text-decoration: none; }
.legal-footer-links a:hover { color: var(--accent-text); }

a[href="configs.html?game=rust"] { display: none !important; }
