@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap");

/* Core variables - RED THEME */
:root {
  color-scheme: dark;
  --font-sans: "Manrope", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Manrope", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --color-bg: #0d0909;
  --color-surface: #1a1515;
  --color-surface-muted: #231c1c;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-text: #f5f7ff;
  --color-text-muted: rgba(245, 247, 255, 0.72);
  
  /* Red Palette */
  --color-accent: #ff3e3e; 
  --color-accent-strong: #e62e2e;
  --color-accent-soft: rgba(255, 62, 62, 0.1);
  
  --color-danger: #ff6b6b;
  --shadow-lg: 0 24px 64px rgba(20, 5, 5, 0.7);
  --shadow-md: 0 12px 32px rgba(20, 5, 5, 0.5);
  --shadow-sm: 0 4px 16px rgba(20, 5, 5, 0.3);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container-width: min(1180px, 92vw);
  --transition-base: 0.24s ease;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top right, rgba(255, 62, 62, 0.12), transparent 48%) var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 { font-family: var(--font-display); letter-spacing: 0.01em; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: var(--container-width); margin: 0 auto; }
main { flex: 1; }

/* --- HEADER --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 9, 9, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
.logo { font-size: 1.5rem; font-weight: 700; color: var(--color-accent); }
.site-nav { display: flex; gap: 16px; font-size: 0.95rem; }
.site-nav a { padding: 10px 18px; border-radius: 999px; transition: all var(--transition-base); }
.site-nav a:hover { background: var(--color-accent-soft); color: var(--color-accent); }
.site-nav a.is-active { background: var(--color-accent); color: #fff; box-shadow: 0 4px 15px rgba(255, 62, 62, 0.3); }

/* --- HERO --- */
.hero { padding: 96px 0 64px; }
.hero__content { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero__text h1 {
  font-size: clamp(2.2rem, 3.2vw + 1rem, 3.4rem);
  margin-bottom: 16px;
  line-height: 1.15;
  background: linear-gradient(to right, #fff, #ff9a9a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__text p { margin-bottom: 32px; color: var(--color-text-muted); max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* Artifact Card Styling */
.hero__preview {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 62, 62, 0.15), rgba(255, 62, 62, 0.03));
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 62, 62, 0.2);
  text-align: center;
}
.artifact-img {
  width: 220px !important; height: 220px !important; object-fit: contain;
  margin: 0 auto 20px; filter: drop-shadow(0 0 25px rgba(255, 62, 62, 0.4));
}
.artifact-price { font-size: 1.8rem; font-weight: 800; color: var(--color-accent); }

/* --- BUTTONS --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border-radius: 999px; padding: 12px 28px; font-weight: 600;
  transition: all var(--transition-base); border: 1px solid transparent; cursor: pointer;
}
.btn--primary { background: var(--color-accent); color: #fff; box-shadow: 0 4px 15px rgba(255, 62, 62, 0.3); }
.btn--primary:hover { transform: translateY(-2px); background: var(--color-accent-strong); }
.btn--ghost { background: transparent; border-color: var(--color-border); color: var(--color-text); }
.btn--ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* --- CATALOG FILTERS --- */
.filters {
  display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: end; margin-bottom: 32px; background: var(--color-surface);
  padding: 24px; border-radius: var(--radius-md); border: 1px solid var(--color-border);
}
.field { display: grid; gap: 6px; }
.field__label { font-size: 0.85rem; color: var(--color-text-muted); }
.field__input {
  background: var(--color-surface-muted); border-radius: var(--radius-sm);
  border: 1px solid transparent; padding: 12px 14px; color: var(--color-text);
  font-size: 0.95rem; transition: all var(--transition-base);
}
.field__input:focus { border-color: var(--color-accent); outline: none; box-shadow: 0 0 0 3px var(--color-accent-soft); }

/* --- CATALOG GRID --- */
.catalog__grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* --- ОБНОВЛЕННАЯ КАРТОЧКА ТОВАРА --- */
.skin-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 20px;
  background: #1a1515;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-base);
  height: 100%;
}

.skin-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Тег сверху (Item / Immortal и т.д.) */
.skin-card__tags {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 2;
}

.skin-card__tag {
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 8px;
  background: var(--color-accent);
  color: #fff;
}

/* Контейнер для картинки */
.skin-card__preview {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  margin-bottom: 20px;
  background: radial-gradient(circle, rgba(255, 62, 62, 0.1) 0%, transparent 70%);
  border-radius: 12px;
  overflow: hidden;
}

.skin-card__preview img {
  max-width: 140px;
  max-height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
  transition: transform 0.3s ease;
}

.skin-card:hover .skin-card__preview img {
  transform: scale(1.1);
}

/* Заголовок и мета */
.skin-card__body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skin-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin: 0;
}

.skin-card__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.skin-card__meta span {
  display: block;
}

/* Футер: Цена и Кнопки */
.skin-card__footer {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.skin-card__pricing {
  display: flex;
  flex-direction: column;
}

.skin-card__pricing strong {
  font-size: 1.4rem;
  color: #fff;
  font-weight: 700;
}

.skin-card__pricing .rarity-text {
  font-size: 0.75rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Кнопки в ряд или столбик */
.skin-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Две кнопки в ряд */
  gap: 8px;
}

/* Тюнинг кнопок специально для карточки */
.skin-card__actions .btn {
  padding: 10px 5px;
  font-size: 0.85rem;
  border-radius: 10px;
}

.btn--favorite {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn--favorite:hover {
  background: rgba(255, 255, 255, 0.1);
}
/* --- CATEGORY GRID --- */
.category-grid { display: grid; gap: 24px; grid-template-columns: repeat(4, 1fr); }
.category-card {
  background: var(--color-surface); border-radius: var(--radius-lg);
  padding: 24px; text-align: center; border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}
.category-card:hover { transform: translateY(-5px); border-color: var(--color-accent); }
.category-card__media {
  background: radial-gradient(circle, rgba(255, 62, 62, 0.1), transparent 70%);
  padding: 18px; margin-bottom: 12px; display: flex; justify-content: center;
}
.category-card__media img { width: 80px; height: 80px; object-fit: contain; }

/* --- FOOTER --- */
.site-footer { background: #0a0707; border-top: 1px solid var(--color-border); padding: 48px 0 32px; }
.site-footer__links a:hover { color: var(--color-accent); }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .hero__content { grid-template-columns: 1fr; text-align: center; }
  .hero__actions { justify-content: center; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .category-grid { grid-template-columns: 1fr; }
  .catalog__grid { grid-template-columns: 1fr; }
}