
/* === ЕДИНАЯ ШАПКА === */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 12px 20px;
    background: rgba(10,10,15,0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
}
.header-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.header-logo-img { height: 32px; width: auto; display: block; }
.header-nav { display: flex; gap: 20px; align-items: center; }
.header-nav a { color: #94a3b8; text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; transition: color 0.2s; }
.header-nav a:hover { color: #f1f5f9; }
.header-btn { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: white; padding: 8px 18px; border-radius: 10px; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-btn-accent { background: linear-gradient(135deg,#6366f1,#8b5cf6 50%,#ec4899); border-color: transparent; }
@media (max-width: 768px) {
    .header-nav { display: none; }
    .header-logo-img { height: 26px; }
}

* { margin:0; padding:0; box-sizing:border-box; }
:root {
    --bg: #0A0A0F;
    --surface: rgba(255,255,255,0.04);
    --border: rgba(255,255,255,0.08);
    --text: #F1F5F9;
    --text2: #94A3B8;
    --gradient: linear-gradient(135deg, #6366F1, #8B5CF6 50%, #EC4899);
    --accent: #6366F1;
    --accent2: #EC4899;
}
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}
.bg-glow {
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(99,102,241,0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 30%, rgba(236,72,153,0.05) 0%, transparent 60%);
}

/* === БЫСТРОЕ ПОПОЛНЕНИЕ === */
.quick-buy { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 100px 20px 40px; position: relative; z-index: 1; }
.quick-inner { max-width: 600px; width: 100%; text-align: center; }
.quick-title { font-size: 32px; font-weight: 900; margin-bottom: 8px; }
.quick-sub { color: var(--text2); font-size: 14px; margin-bottom: 24px; }
.quick-form { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px; backdrop-filter: blur(20px); }
.quick-platforms { display: flex; gap: 8px; justify-content: center; margin-bottom: 20px; flex-wrap: wrap; }
.q-platform {
    padding: 10px 16px; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
    color: var(--text2); cursor: pointer; font-size: 13px; font-weight: 600;
    display: flex; align-items: center; gap: 8px; transition: all 0.2s;
}
.q-platform:hover { background: rgba(255,255,255,0.1); }
.q-platform.active { background: rgba(99,102,241,0.2); border-color: var(--accent); color: white; }
.q-platform img { width: 20px; height: 20px; border-radius: 4px; }
.quick-fields { display: flex; flex-direction: column; gap: 10px; }
.quick-amounts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.q-amount {
    padding: 10px 16px; background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
    color: white; cursor: pointer; font-size: 14px; font-weight: 600;
}
.q-amount.active { background: var(--gradient); border-color: transparent; }
.quick-input { width: 100%; padding: 14px; background: #1a1a2e; border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; color: white; font-size: 14px; text-align: center; }
.quick-pay-btn { width: 100%; padding: 14px; background: var(--gradient); border: none; border-radius: 12px; color: white; font-size: 16px; font-weight: 700; cursor: pointer; }
.quick-info { display: flex; gap: 16px; justify-content: center; margin-top: 12px; }
.quick-info span { font-size: 11px; color: #64748B; }

/* === КАТАЛОГ === */
.catalog { padding: 40px 20px 60px; position: relative; z-index: 1; }
.catalog-title { text-align: center; font-size: 28px; font-weight: 800; margin-bottom: 32px; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; max-width: 1100px; margin: 0 auto; }
.catalog-card {
    position: relative; border-radius: 16px; overflow: hidden; cursor: pointer;
    height: 260px; background: #0A0A14; transition: all 0.3s;
}
.catalog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(99,102,241,0.2); }
.catalog-card .card-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.catalog-card .card-bg.placeholder { background: linear-gradient(135deg, rgba(99,102,241,0.4), rgba(236,72,153,0.3)); }
.catalog-card .card-overlay { position: absolute; bottom: 0; left: 0; right: 0; height: 60%; background: linear-gradient(transparent, rgba(0,0,0,0.9)); z-index: 2; }
.catalog-card .card-content { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; }
.catalog-card h3 { font-size: 22px; font-weight: 800; text-shadow: 0 2px 6px rgba(0,0,0,0.7); margin-bottom: 4px; }
.catalog-card .card-prices { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.catalog-card .price { font-size: 16px; font-weight: 700; }
.catalog-card .stock { color: #10B981; font-size: 11px; background: rgba(0,0,0,0.5); padding: 3px 10px; border-radius: 20px; }
.catalog-card .btn-card { width: 100%; padding: 10px; background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); color: white; border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; text-align: center; }
.catalog-card:hover .btn-card { background: var(--gradient); border-color: transparent; }

/* === ОТЗЫВЫ === */
.reviews-section { padding: 40px 20px; }
.reviews-track { display: flex; gap: 16px; max-width: 900px; margin: 0 auto; overflow: hidden; }
.review-card { min-width: 280px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; flex-shrink: 0; animation: slideReviews 25s linear infinite; }
@keyframes slideReviews { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-280px * 4 - 16px * 3)); } }

/* === ФУТЕР === */
.site-footer { border-top: 1px solid var(--border); padding: 40px 20px 20px; position: relative; z-index: 1; }
.footer-inner { max-width: 900px; margin: 0 auto; display: flex; gap: 40px; justify-content: space-between; }
.footer-logo { height: 28px; margin-bottom: 8px; }
.footer-col p { color: var(--text2); font-size: 13px; }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.footer-col a { display: block; color: var(--text2); text-decoration: none; font-size: 13px; margin-bottom: 6px; }
.footer-col a:hover { color: white; }
.footer-bottom { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text2); font-size: 12px; }

.gradient-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

@media (max-width: 768px) {
    
    .quick-title { font-size: 24px; }
    .catalog-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; gap: 20px; }
}

/* ========== СЛАЙДЕР ========== */
.hero-slider { position: relative; overflow: hidden; min-height: 420px; background: #0d0d1a; }
.slider-track { display: flex; transition: transform 0.5s cubic-bezier(.4,0,.2,1); height: 420px; }
.slider-slide { min-width: 100%; height: 420px; display: flex; align-items: center; justify-content: center; padding: 40px; box-sizing: border-box; }
.slider-slide-inner { max-width: 600px; text-align: center; }
.slider-slide-inner h2 { font-size: clamp(24px,4vw,48px); font-weight: 900; margin: 0 0 12px; }
.slider-slide-inner p { font-size: 16px; opacity: .8; margin: 0 0 24px; }
.slider-slide-inner a { display: inline-block; padding: 12px 32px; border-radius: 12px; font-weight: 700; text-decoration: none; background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.3); transition: all .2s; }
.slider-slide-inner a:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }
.slider-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; transition: all .2s; border: none; }
.slider-dot.active { background: #fff; width: 24px; border-radius: 4px; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 18px; z-index: 10; transition: all .2s; }
.slider-btn:hover { background: rgba(255,255,255,0.2); }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }

/* ========== КАРУСЕЛЬ КАТЕГОРИЙ ========== */
.cat-carousel { padding: 24px 0 8px; overflow: hidden; }
.cat-scroll { display: flex; gap: 16px; padding: 8px 24px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-item { flex: 0 0 auto; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; text-decoration: none; transition: transform .2s; }
.cat-item:hover { transform: translateY(-4px); }
.cat-icon { width: 72px; height: 72px; border-radius: 20px; object-fit: contain; border: 2px solid rgba(99,102,241,0.4); background: linear-gradient(135deg,#1a1a2e,#2a2a4e); padding: 0; transition: all .3s; }
.cat-icon-placeholder { width: 72px; height: 72px; border-radius: 20px; background: linear-gradient(135deg,#6366f1,#8b5cf6); display: flex; align-items: center; justify-content: center; font-size: 32px; }
.cat-label { font-size: 12px; color: #a5b4fc; text-align: center; max-width: 80px; }

/* ========== МОБИЛЬНАЯ АДАПТАЦИЯ ========== */
@media(max-width:600px) {
    .hero-slider, .slider-track, .slider-slide { min-height: 280px; height: 280px; }
    .slider-btn { width: 32px; height: 32px; font-size: 14px; }
}

.cat-item:hover .cat-icon { border-color: rgba(139,92,246,0.8); box-shadow: 0 8px 24px rgba(99,102,241,0.4); }


/* Улучшение читаемости слайдера */
.banner-card { position: relative; overflow: hidden; }
.banner-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}
.banner-card > * { position: relative; z-index: 2; }
.banner-title, .banner-sub, .banner-btn {
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

/* Убираем дубли "Steam" на страницах пополнения (h1 внутри form-card если есть banner) */
.page-banner ~ * .platform-title,
.page-banner ~ * .platform-desc,
.page-banner ~ * .platform-icon { display: none !important; }


/* Каталог: улучшение читаемости на фото */
.catalog-card { position: relative; }
.catalog-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  pointer-events: none; z-index: 1; border-radius: inherit;
}
.catalog-card > *:not(.card-bg) { position: relative; z-index: 2; }
.catalog-card h3, .catalog-card .price, .catalog-card .stock {
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

/* Убираем title в топе слайдов на топовых страницах — только текст поверх фото не показывать двойным */


/* Каталог: контент внизу карточки, чтобы не перекрывал картинку */
.catalog-card {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: 16px;
}
.catalog-card .card-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 0;
}
.catalog-card .card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
  z-index: 1;
}
.catalog-card .card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px;
  z-index: 2;
  color: #fff;
}
.catalog-card .card-content h3 {
  font-size: 18px; font-weight: 800; margin: 0 0 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.catalog-card .card-content .price {
  font-weight: 700; font-size: 14px; color: #fbbf24;
}
.catalog-card .card-content .stock {
  color: #94a3b8; font-size: 11px;
}
.catalog-card .btn-card {
  margin-top: 8px; padding: 8px 12px; background: linear-gradient(135deg,#6366f1,#ec4899);
  border: none; border-radius: 10px; color: #fff; font-weight: 700; font-size: 12px; cursor: pointer;
  width: 100%;
}


/* Каталог без текста — только картинка + кнопка снизу */
.card-overlay-btm { position:absolute; bottom:0; left:0; right:0; height:40%; background:linear-gradient(transparent, rgba(0,0,0,0.85)); z-index:1; pointer-events:none; }
.card-content-btm { position:absolute; bottom:0; left:0; right:0; padding:12px; z-index:2; }
.card-content-btm .btn-card { width:100%; padding:10px; background:rgba(255,255,255,0.15); backdrop-filter:blur(10px); border:1px solid rgba(255,255,255,0.25); color:white; border-radius:10px; font-weight:700; font-size:13px; text-align:center; cursor:pointer; }
.card-content-btm .btn-card:hover { background:rgba(255,255,255,0.25); }
