:root {
  --bg-0: #07140f;
  --bg-1: #0c1f16;
  --green-mist: rgba(61, 154, 98, 0.18);
  --red: #e11d2e;
  --red-hot: #ff2a3a;
  --text: #e8f2eb;
  --text-dim: #8aa894;
  --line: rgba(232, 242, 235, 0.1);
  --font: "Outfit", system-ui, sans-serif;
  --radius: 14px;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 242, 235, 0.28) transparent;
}

html::-webkit-scrollbar {
  width: 6px;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  background: rgba(232, 242, 235, 0.22);
  border-radius: 100px;
}

html::-webkit-scrollbar-thumb:hover {
  background: rgba(61, 154, 98, 0.65);
}

html::-webkit-scrollbar-corner {
  background: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-top: var(--header-h);
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  caret-color: transparent;
  cursor: default;
}

a,
button,
input,
label,
[role="button"],
[role="link"],
.filter-chip,
.filter-menu-option,
.eg-runner {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
[role="button"]:focus:not(:focus-visible),
[role="link"]:focus:not(:focus-visible) {
  outline: none;
}

a,
button,
img {
  -webkit-touch-callout: none;
}

input,
textarea {
  user-select: text;
  -webkit-user-select: text;
  caret-color: auto;
  cursor: text;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  -webkit-tap-highlight-color: transparent;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

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

.forest-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 clamp(16px, 4vw, 40px);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  background: rgba(7, 20, 15, 0.78);
  border-bottom: 1px solid rgba(232, 242, 235, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  min-width: 0;
}

.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(225, 29, 46, 0.35));
}

.brand-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1;
}

.brand-wiki {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: var(--red-hot);
  line-height: 1;
}

.brand-text {
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

a[role="link"],
.header-social,
.nav-link,
.btn,
.brand {
  cursor: pointer;
}

.header-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  background: transparent;
  color: #fff;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.2s, background 0.2s;
}

.header-social img,
.header-social svg {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

.header-social--vk img,
.header-social--vk svg {
  width: 18px;
  height: 18px;
}

.header-social:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  padding: 4px;
  border-radius: 150px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(232, 242, 235, 0.08);
}

.nav-indicator {
  position: absolute;
  top: 4px;
  left: 0;
  z-index: 0;
  height: calc(100% - 8px);
  width: 0;
  border-radius: 150px;
  background: rgba(61, 154, 98, 0.38);
  box-shadow: inset 0 0 0 1px rgba(125, 200, 150, 0.28);
  pointer-events: none;
  transform: translateX(0);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, width;
}

.nav-link {
  position: relative;
  z-index: 1;
  padding: 8px 16px;
  border-radius: 150px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-dim);
  background: transparent;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
  outline: none;
}

.nav-link.is-active {
  color: #eef8f1;
  background: transparent;
  box-shadow: none;
}

.nav-link--btn {
  font: inherit;
  cursor: pointer;
  border: 0;
}

/* Home hero */
.page-home {
  overflow-x: hidden;
}

.hero {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px 40px;
  gap: 16px;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-logo {
  width: min(180px, 42vw);
  height: auto;
  filter: drop-shadow(0 12px 40px rgba(225, 29, 46, 0.35));
}

.hero-title {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  background: linear-gradient(180deg, #fff 20%, #c8e0d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 0;
  color: var(--text-dim);
  font-size: 1.05rem;
  font-weight: 450;
  letter-spacing: 0.02em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 12px;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.home-strip {
  display: block;
  width: min(960px, 100%);
  margin-top: 12px;
  pointer-events: none;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

.home-strip-fade {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    transparent 8%,
    rgba(0, 0, 0, 0.2) 18%,
    rgba(0, 0, 0, 0.55) 28%,
    #000 40%,
    #000 60%,
    rgba(0, 0, 0, 0.55) 72%,
    rgba(0, 0, 0, 0.2) 82%,
    transparent 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    transparent 8%,
    rgba(0, 0, 0, 0.2) 18%,
    rgba(0, 0, 0, 0.55) 28%,
    #000 40%,
    #000 60%,
    rgba(0, 0, 0, 0.55) 72%,
    rgba(0, 0, 0, 0.2) 82%,
    transparent 92%,
    transparent 100%
  );
}

.home-strip-track {
  display: flex;
  gap: 10px;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.home-strip-track img {
  flex: 0 0 auto;
  width: 102px;
  height: 160px;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(10, 24, 18, 0.65);
  pointer-events: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: 0.04em;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(180deg, var(--red-hot), var(--red));
  color: #fff;
  box-shadow: 0 10px 30px rgba(225, 29, 46, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 14px 36px rgba(225, 29, 46, 0.45);
}

.btn-ghost {
  background: rgba(61, 154, 98, 0.12);
  border: 1px solid rgba(61, 154, 98, 0.35);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(61, 154, 98, 0.22);
}

/* Skins page */
.skins-page {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 40px) 64px;
}

.skins-head {
  margin-bottom: 22px;
  animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 750;
  letter-spacing: 0.04em;
}

.page-sub {
  margin: 6px 0 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.filters {
  position: relative;
  z-index: 30;
  margin-bottom: 28px;
  animation: rise-y 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filter-search {
  flex: 1 1 200px;
  min-width: 160px;
}

.filter-search input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(20, 53, 40, 0.5);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  outline: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.filter-search input::-webkit-search-decoration {
  -webkit-appearance: none;
}

.filter-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 28px;
  height: 28px;
  margin: 0;
  margin-right: -2px;
  cursor: pointer;
  background: center / 14px 14px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 4l8 8M12 4L4 12' stroke='%233d9a62' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  opacity: 0.95;
}

.filter-search input::-webkit-search-cancel-button:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 4l8 8M12 4L4 12' stroke='%237dff9a' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.filter-search input:focus {
  border-color: rgba(61, 154, 98, 0.55);
  background: rgba(61, 154, 98, 0.16);
  box-shadow: 0 0 0 3px rgba(61, 154, 98, 0.15);
}

.filter-search input::placeholder {
  color: var(--text-dim);
  font-weight: 500;
}

.filter-chip,
.filters-reset {
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(20, 53, 40, 0.5);
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.filter-chip.is-active {
  color: #e8f2eb;
  border-color: rgba(61, 154, 98, 0.75);
  background: rgba(61, 154, 98, 0.35);
}

.filter-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 72px;
  justify-content: center;
}

.filter-sort-arrows {
  display: inline-flex;
  flex-direction: column;
  line-height: 0.75;
  font-size: 0.72rem;
  opacity: 0.55;
}

.filter-sort[data-dir="asc"] .filter-sort-up,
.filter-sort[data-dir="desc"] .filter-sort-down {
  opacity: 1;
  color: #7dff9a;
}

.filter-sort[data-dir="asc"] .filter-sort-down,
.filter-sort[data-dir="desc"] .filter-sort-up {
  opacity: 0.28;
}

.filter-sort[data-dir="off"] .filter-sort-arrows {
  opacity: 0.35;
}

.filter-sort[data-dir="off"] .filter-sort-up,
.filter-sort[data-dir="off"] .filter-sort-down {
  opacity: 0.35;
  color: inherit;
}

.filter-sort:not(.is-active) .filter-sort-arrows {
  opacity: 0.4;
}

.filter-sort:not(.is-active) .filter-sort-up,
.filter-sort:not(.is-active) .filter-sort-down {
  color: inherit;
  opacity: inherit;
}

.filter-gender {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.filter-menu {
  position: relative;
  z-index: 1;
}

.filter-menu.is-open {
  z-index: 80;
}

.filter-menu-btn.is-active {
  color: #e8f2eb;
  border-color: rgba(61, 154, 98, 0.75);
  background: rgba(61, 154, 98, 0.35);
}

.filter-menu-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 90;
  min-width: 200px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  visibility: hidden;
  opacity: 1;
  margin-top: -6px;
  transition:
    margin-top 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.2s;
}

.filter-menu.is-open .filter-menu-panel {
  visibility: visible;
  pointer-events: auto;
  margin-top: 0;
  opacity: 1;
  transition:
    margin-top 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s;
}

/* затухание только при закрытии - при открытии opacity сразу 1 (blur сразу) */
.filter-menu.is-closing .filter-menu-panel {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  margin-top: -6px;
  transition:
    opacity 0.2s ease,
    margin-top 0.2s ease,
    visibility 0s linear 0.2s;
}

.filter-menu-panel[hidden] {
  display: none !important;
}

.filter-menu-glass {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 14px;
  border: 1px solid rgba(180, 220, 195, 0.3);
  background: rgba(12, 26, 18, 0.38);
  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.filter-menu-scroll {
  position: relative;
  z-index: 1;
  max-height: min(320px, 60vh);
  overflow: auto;
  padding: 6px;
  border-radius: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 200, 150, 0.45) transparent;
}

.filter-menu-scroll::-webkit-scrollbar {
  width: 8px;
}

.filter-menu-scroll::-webkit-scrollbar-track {
  margin: 8px 2px;
  background: transparent;
}

.filter-menu-scroll::-webkit-scrollbar-thumb {
  background: rgba(125, 200, 150, 0.28);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.filter-menu-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(125, 200, 150, 0.5);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.filter-menu-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #d7e8dc;
  font-size: 0.9rem;
  font-weight: 550;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  pointer-events: auto;
}

.filter-menu-option.is-active {
  color: #fff;
  background: rgba(61, 154, 98, 0.42);
}

.filter-price {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(20, 53, 40, 0.5);
  color: var(--text-dim);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.filter-price.is-active {
  color: #e8f2eb;
  border-color: rgba(61, 154, 98, 0.75);
  background: rgba(61, 154, 98, 0.28);
}

.filter-price-drawer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.filters.price-open .filter-price-drawer {
  grid-template-rows: 1fr;
}

.filter-price-drawer-inner {
  overflow: hidden;
  min-height: 0;
}

.filter-price-fields {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.28s ease,
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.filters.price-open .filter-price-fields {
  opacity: 1;
  transform: translateY(0);
}

.filter-price-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  user-select: none;
}

.filter-price-checkbox {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.filter-switch {
  position: relative;
  flex-shrink: 0;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(180, 220, 195, 0.28);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.filter-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #c5d8cb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}

.filter-price-checkbox:checked + .filter-switch {
  background: rgba(47, 138, 85, 0.95);
  border-color: rgba(125, 255, 154, 0.55);
}

.filter-price-checkbox:checked + .filter-switch::after {
  transform: translateX(14px);
  background: #eef8f1;
}

.filter-price-checkbox:focus-visible + .filter-switch {
  box-shadow: 0 0 0 3px rgba(61, 154, 98, 0.35);
}

.filter-price-input {
  width: 84px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(232, 242, 235, 0.18);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 500;
  outline: none;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.filter-price.is-active .filter-price-input {
  border-color: rgba(125, 255, 154, 0.5);
  background: rgba(18, 58, 36, 0.72);
  color: #e8f2eb;
}

.filter-price.is-active .filter-price-input::placeholder,
.filters.price-open .filter-price-input::placeholder {
  color: rgba(200, 230, 210, 0.55);
}

.filters.price-open .filter-price-input {
  border-color: rgba(125, 255, 154, 0.5);
  background: rgba(18, 58, 36, 0.72);
  color: #e8f2eb;
}

.filter-price-input:disabled {
  opacity: 1;
  cursor: text;
}

.filter-price.is-active .filter-price-input:focus,
.filters.price-open .filter-price-input:focus {
  border-color: rgba(125, 255, 154, 0.85);
  box-shadow: 0 0 0 2px rgba(61, 154, 98, 0.28);
}

.filter-price-input::-webkit-outer-spin-button,
.filter-price-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.filter-price-input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.filter-price-sep {
  opacity: 0.55;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: color 0.2s, opacity 0.2s;
}

.filter-price.is-active .filter-price-sep,
.filters.price-open .filter-price-sep {
  color: #c8efd4;
  opacity: 0.9;
}

.filters-reset {
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.filters-note {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.skins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

@media (min-width: 640px) {
  .skins-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 18px;
  }
}

.skin-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(10, 24, 18, 0.75);
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.2s,
    box-shadow 0.2s;
}

.skin-card.is-waiting {
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
}

.skin-card.is-ready {
  opacity: 1;
  transform: translateY(0);
  transition-delay: var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), 0ms, 0ms;
}

.skin-card.is-ready:hover {
  transform: translateY(-4px);
  border-color: rgba(61, 154, 98, 0.7);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(61, 154, 98, 0.25);
  /* hover без задержки появления */
  transition-delay: 0ms;
  transition-duration: 0.2s, 0.2s, 0.2s, 0.2s;
}

.skin-card.is-instant {
  opacity: 1;
  transform: translateY(0);
  transition:
    transform 0.2s ease,
    border-color 0.2s,
    box-shadow 0.2s;
  transition-delay: 0ms;
}

.skin-card.is-instant:hover {
  transform: translateY(-4px);
  border-color: rgba(61, 154, 98, 0.7);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(61, 154, 98, 0.25);
}

.skin-card[hidden] {
  display: none;
}

.skin-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 220 / 340;
  object-fit: contain;
  object-position: center bottom;
  background: transparent;
}

.skin-id,
.skin-tag {
  padding: 5px 10px;
  border: 1px solid rgba(232, 242, 235, 0.85);
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.27);
  color: #fff;
  font-weight: 650;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}

.skin-tag--gold {
  color: #f5e6a8;
  border-color: rgba(232, 196, 74, 0.85);
  background: rgba(90, 62, 8, 0.45);
  text-shadow: 0 0 10px rgba(255, 200, 60, 0.35);
}

.skin-id {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}

.skin-tags {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.skin-card.is-ready:hover .skin-tags,
.skin-card.is-instant:hover .skin-tags {
  opacity: 1;
  transform: translateY(0);
}

.skins-empty {
  text-align: center;
  color: var(--text-dim);
  padding: 48px 16px;
}

.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

@media (min-width: 640px) {
  .cars-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
  }
}

.car-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(10, 24, 18, 0.75);
  border: 1px solid var(--line);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.car-card.is-ready:hover,
.car-card.is-instant:hover {
  transform: translateY(-3px);
  border-color: rgba(61, 154, 98, 0.7);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(61, 154, 98, 0.25);
}

.car-card[hidden] {
  display: none;
}

.car-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 100px;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(61, 154, 98, 0.14), transparent 62%),
    linear-gradient(180deg, rgba(18, 36, 28, 0.4), rgba(6, 14, 10, 0.85));
  border-bottom: 1px solid var(--line);
  color: rgba(138, 168, 148, 0.85);
}

.car-preview-icon {
  width: 44px;
  height: 44px;
  opacity: 0.9;
}

.car-id {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 5px 10px;
  border: 1px solid rgba(232, 242, 235, 0.85);
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.27);
  color: #fff;
  font-weight: 650;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}

.car-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 14px;
}

.car-name {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.car-market {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.3;
}

.car-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin-top: 8px;
}

.car-stat {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.car-stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  flex-shrink: 0;
}

.car-stat-value {
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--text);
  text-align: right;
  min-width: 0;
}

.car-market {
  display: none;
}

@font-face {
  font-family: "Muller";
  src: url("../fonts/muller_regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Muller";
  src: url("../fonts/muller_bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* BR notification - layout br_notification, types 2/3 (xxhdpi-like scale) */
.br-notifs {
  --br-d: 1.35;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  pointer-events: none;
}

.br-notif {
  position: absolute;
  left: 50%;
  width: max-content;
  max-width: min(calc(280px * var(--br-d)), calc(100vw - 24px));
  height: calc(50px * var(--br-d));
  transform: translateX(-50%);
  transform-origin: 50% 50%;
  cursor: pointer;
  pointer-events: auto;
  opacity: 1;
  transition: bottom 0.2s ease;
  will-change: transform, bottom;
}

.br-notif--actions {
  max-width: min(calc(320px * var(--br-d)), calc(100vw - 24px));
}

.br-notif-visual {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  height: 100%;
  border-radius: calc(12px * var(--br-d));
  transform: translateY(40%) scale(0.96);
  transform-origin: 50% 50%;
  opacity: 1;
  background: linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.28) 0%,
    rgba(0, 0, 0, 0.4) 75%,
    rgba(242, 76, 18, 0.45) 100%
  );
  backdrop-filter: blur(6px) saturate(1.15);
  -webkit-backdrop-filter: blur(6px) saturate(1.15);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  will-change: transform, opacity;
  transition: transform 150ms cubic-bezier(0.55, 0.06, 0.68, 0.19);
}

.br-notif.is-shown .br-notif-visual {
  transform: translateY(0) scale(1);
}

.br-notif.is-hiding {
  pointer-events: none;
}

.br-notif.is-hiding .br-notif-visual {
  box-shadow: none;
}

.br-notif-accent {
  width: calc(18px * var(--br-d));
  flex-shrink: 0;
  border-radius: calc(12px * var(--br-d)) 0 0 calc(12px * var(--br-d));
}

.br-notif--red .br-notif-accent {
  background: linear-gradient(180deg, #ff3434 0%, #861010 100%);
}

.br-notif--green .br-notif-accent {
  background: linear-gradient(180deg, #36e40d 0%, #288014 100%);
}

.br-notif-body {
  position: relative;
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: row;
  align-items: center;
  overflow: hidden;
  border-radius: 0 calc(12px * var(--br-d)) calc(12px * var(--br-d)) 0;
}

.br-notif-text {
  margin: 0;
  padding: calc(6px * var(--br-d)) calc(12px * var(--br-d));
  min-width: calc(140px * var(--br-d));
  color: #fff;
  font-family: "Muller", sans-serif;
  font-weight: 400;
  font-size: calc(11px * var(--br-d));
  line-height: 0.85;
  letter-spacing: 0;
  white-space: pre-line;
}

.br-notif--actions .br-notif-text {
  flex: 1;
  min-width: 0;
  padding-right: calc(6px * var(--br-d));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.br-notif-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: calc(5px * var(--br-d));
  padding: 0 calc(10px * var(--br-d)) calc(5px * var(--br-d)) 0;
}

.br-notif-action {
  appearance: none;
  display: grid;
  place-items: center;
  width: calc(26px * var(--br-d));
  height: calc(26px * var(--br-d));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.br-notif-action img {
  width: calc(13px * var(--br-d));
  height: calc(13px * var(--br-d));
  object-fit: contain;
  pointer-events: none;
}

.br-notif-action:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
}

.br-notif-action:active {
  transform: translateY(0);
}

.br-notif-progress {
  position: absolute;
  left: 0;
  right: calc(1.4px * var(--br-d));
  bottom: 0;
  height: calc(5px * var(--br-d));
  background: linear-gradient(180deg, #0b131e 0%, #0d1522 100%);
  border-radius: 0 0 calc(10px * var(--br-d)) 0;
  overflow: hidden;
}

.br-notif-progress-bar {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  background: linear-gradient(90deg, #c50000 0%, #ff6317 100%);
  will-change: transform;
}

/* Easter egg runner (home) */
.eg-runner {
  position: fixed;
  z-index: 40;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(8, 22, 16, 0.45);
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(61, 154, 98, 0.25);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity 0.35s ease,
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: auto;
}

.eg-runner.is-shown {
  opacity: 1;
  transform: scale(1);
}

.eg-runner:hover {
  transform: scale(1.08);
  border-color: #fff;
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.4),
    0 0 18px rgba(61, 154, 98, 0.35);
}

.eg-runner.is-caught {
  opacity: 0;
  transform: scale(1.35);
  pointer-events: none;
}

.eg-runner img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

/* Hover только на устройствах с настоящим курсором - без залипания на таче */
@media (hover: hover) and (pointer: fine) {
  .filter-search input:hover {
    border-color: rgba(61, 154, 98, 0.4);
    background: rgba(61, 154, 98, 0.16);
  }

  .filter-chip:hover,
  .filters-reset:hover {
    color: var(--text);
    border-color: rgba(61, 154, 98, 0.4);
    background: rgba(61, 154, 98, 0.16);
  }

  .filter-chip.is-active:hover {
    color: #e8f2eb;
    border-color: rgba(61, 154, 98, 0.75);
    background: rgba(61, 154, 98, 0.35);
  }

  .filter-menu-option:hover {
    color: #fff;
    background: rgba(61, 154, 98, 0.28);
  }

  .filter-price-toggle:hover .filter-switch {
    border-color: rgba(125, 200, 150, 0.55);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise-y {
  from {
    transform: translateY(18px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 800px) {
  html:has(body.page-home) {
    height: 100%;
    overflow: hidden;
  }

  body.page-home {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: manipulation;
  }

  body.page-home .hero {
    height: calc(100dvh - var(--header-h));
    min-height: 0;
    max-height: calc(100dvh - var(--header-h));
    overflow: hidden;
    padding: 12px 16px 16px;
    gap: 10px;
    justify-content: center;
  }

  body.page-home .hero-logo {
    width: min(120px, 30vw);
  }

  body.page-home .hero-title {
    font-size: clamp(1.7rem, 7vw, 2.5rem);
  }

  body.page-home .hero-actions {
    margin-bottom: 4px;
  }

  body.page-home .hero-actions .btn {
    min-width: 120px;
    padding: 12px 22px;
  }

  body.page-home .home-strip {
    margin-top: 0;
    width: min(960px, 100%);
  }

  .home-strip-track img {
    width: 88px;
    height: 140px;
  }

  .site-header {
    gap: 8px;
    padding: 0 12px;
  }

  .header-left {
    gap: 8px;
  }

  .brand-stack {
    display: none;
  }

  .nav {
    flex-shrink: 1;
    min-width: 0;
  }

  .nav-link {
    padding: 7px 11px;
    font-size: 0.82rem;
  }
}

@media (max-width: 640px) {
  .header-social {
    width: 28px;
    height: 28px;
  }

  .header-social img,
  .header-social svg {
    width: 14px;
    height: 14px;
  }

  .header-social--vk img,
  .header-social--vk svg {
    width: 15px;
    height: 15px;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
  }

  .nav-link {
    padding: 6px 9px;
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 0 8px;
    gap: 6px;
  }

  .header-left {
    gap: 6px;
  }

  .header-socials {
    gap: 5px;
  }

  .nav {
    padding: 3px;
    gap: 0;
  }

  .nav-link {
    padding: 6px 8px;
    font-size: 0.74rem;
    letter-spacing: 0;
  }

  .skins-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .cars-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .filter-price-input {
    width: 72px;
  }

  .home-strip-track img {
    width: 76px;
    height: 120px;
  }
}

@media (max-width: 360px) {
  .header-socials {
    display: none;
  }

  .nav-link {
    padding: 6px 7px;
    font-size: 0.72rem;
  }
}
