/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 60px;
  display: flex;
  align-items: center;
  min-height: 640px;
}
.hero-bg-glow {
  position: absolute; inset: -20% -10%;
  background:
    radial-gradient(circle at 20% 30%, rgba(79,124,255,.25), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(124,92,255,.22), transparent 45%);
  filter: blur(40px);
  animation: glow-move 12s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes glow-move {
  from { transform: translate(0,0) scale(1); }
  to { transform: translate(3%, -3%) scale(1.08); }
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  width: 100%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; color: var(--text-muted); margin-bottom: 22px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52,211,153,.5); }
  70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}
.hero h1 {
  font-size: 52px;
  line-height: 1.08;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -1px;
}
.hero h1 .grad { background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--text-muted); font-size: 17px; max-width: 480px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; margin-bottom: 40px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; }
.hero-stats div b { display: block; font-size: 24px; font-weight: 800; }
.hero-stats div span { color: var(--text-muted); font-size: 13px; }

/* ---- Анимированный ПК ---- */
.hero-pc-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  perspective: 1200px;
}
.pc-tower {
  position: relative;
  width: 340px;
  height: 420px;
  animation: float-pc 5s ease-in-out infinite;
  transform-style: preserve-3d;
}
@keyframes float-pc {
  0%, 100% { transform: translateY(0) rotateY(-8deg); }
  50% { transform: translateY(-18px) rotateY(-4deg); }
}
.pc-case {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #1c2233, #0f1320);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 30px 60px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.02);
}
.pc-glass {
  position: absolute; top: 18px; left: 18px; right: 60px; bottom: 18px;
  background: linear-gradient(160deg, rgba(79,124,255,.08), rgba(124,92,255,.03));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  overflow: hidden;
}
.pc-fan {
  position: absolute;
  width: 84px; height: 84px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  left: 50%; transform: translateX(-50%);
  box-shadow: 0 0 24px rgba(79,124,255,.6);
}
.pc-fan::before, .pc-fan::after {
  content: ""; position: absolute; inset: 8px;
  border-radius: 50%;
  border: 2px dashed rgba(124,92,255,.6);
  animation: spin 3s linear infinite;
}
.pc-fan.f1 { top: 40px; }
.pc-fan.f2 { top: 150px; border-color: var(--accent-2); box-shadow: 0 0 24px rgba(124,92,255,.6); }
.pc-fan.f2::before { animation-duration: 2.4s; }
.pc-fan.f3 { top: 260px; }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.pc-gpu-strip {
  position: absolute; bottom: 40px; left: 12px; right: 30px;
  height: 30px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 8px;
  opacity: .85;
  animation: rgb-shift 4s ease-in-out infinite alternate;
}
@keyframes rgb-shift {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(60deg); }
}
.pc-side-strip {
  position: absolute; top: 10px; bottom: 10px; right: 14px; width: 10px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2), var(--accent));
  background-size: 100% 300%;
  animation: strip-move 3s linear infinite;
  box-shadow: 0 0 18px rgba(79,124,255,.7);
}
@keyframes strip-move { 0% { background-position: 0 0; } 100% { background-position: 0 100%; } }

.pc-particles span {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  opacity: .8;
  animation: rise 4s linear infinite;
}
@keyframes rise {
  0% { transform: translateY(0) scale(1); opacity: .9; }
  100% { transform: translateY(-260px) scale(.2); opacity: 0; }
}

/* ---------- Популярные товары ---------- */
.popular-section { padding: 90px 0 20px; }
.popular-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 34px; }
.tabs-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tab-btn {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-muted); font-size: 13.5px; font-weight: 600;
  transition: all .2s;
}
.tab-btn.active, .tab-btn:hover { background: var(--accent-gradient); color: #fff; border-color: transparent; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-card { padding: 20px; position: relative; overflow: hidden; }
.product-card .badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--accent-gradient); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.product-card .img-wrap {
  height: 140px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.product-card .img-wrap img { max-height: 120px; transition: transform .3s; }
.product-card:hover .img-wrap img { transform: scale(1.08) rotate(-2deg); }
.product-card .cat-label { color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.product-card h3 { font-size: 15.5px; margin: 6px 0 10px; min-height: 40px; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.price-row .price { font-size: 20px; font-weight: 800; }
.price-row .old-price { color: var(--text-muted); text-decoration: line-through; font-size: 13px; }
.add-to-cart-btn { width: 100%; }

/* ---------- Карта ---------- */
.map-section { padding: 90px 0; }
.map-card {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 0;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
}
.map-info { padding: 40px; background: var(--surface); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.map-info .addr-row { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); font-size: 14.5px; }
.map-frame { min-height: 420px; border: none; width: 100%; height: 100%; filter: grayscale(.3) contrast(1.05); }

/* ---------- Секции преимуществ / категорий ---------- */
.categories-strip { padding: 60px 0; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-tile {
  padding: 26px 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.cat-tile .ic { width: 52px; height: 52px; }
.cat-tile span { font-weight: 700; font-size: 14.5px; }

@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .map-card { grid-template-columns: 1fr; }
}
