* {
  box-sizing: border-box;
}

:root {
  --bg: #0b0f1a;
  --bg-soft: #121828;
  --card: #151c30;
  --line: #26304a;
  --text: #e9edf7;
  --muted: #97a1ba;
  --accent: #5b8cff;
  --accent-2: #7c5bff;
  --hot: #ff5b7f;
  --ok: #2fd48a;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: radial-gradient(1000px 500px at 80% -10%, rgba(124, 91, 255, 0.25), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(91, 140, 255, 0.2), transparent 60%),
    var(--bg);
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.15;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11, 15, 26, 0.75);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.logo span { color: var(--accent); }

.nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav a:hover { color: var(--text); }

.cart-btn {
  position: relative;
  font-size: 1.3rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 46px;
  height: 46px;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s;
}

.cart-btn:hover { border-color: var(--accent); transform: translateY(-2px); }

.cart-btn__count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--hot);
  border-radius: 999px;
}

/* Hero */
.hero {
  padding: 70px 0 40px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  margin: 0 0 16px;
  padding: 7px 14px;
  font-size: 0.85rem;
  color: var(--ok);
  background: rgba(47, 212, 138, 0.12);
  border: 1px solid rgba(47, 212, 138, 0.4);
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 18px 0 0;
  max-width: 540px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 24px rgba(91, 140, 255, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(91, 140, 255, 0.5);
}

.btn--ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--line);
}

.btn--ghost:hover { border-color: var(--accent); transform: translateY(-2px); }

.hero__stats {
  display: flex;
  gap: 34px;
  margin-top: 34px;
}

.hero__stats div { display: grid; gap: 2px; }

.hero__stats b { font-size: 1.4rem; }

.hero__stats span { color: var(--muted); font-size: 0.85rem; }

/* Hero art: PC case */
.hero__art {
  display: grid;
  place-items: center;
}

.pc-case {
  width: 240px;
  height: 340px;
  border-radius: 18px;
  background: linear-gradient(160deg, #1d2440, #0e1324);
  border: 2px solid #35406a;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(91, 140, 255, 0.08);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: floaty 5s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-16px) rotate(2deg); }
}

.pc-case__window {
  flex: 1;
  border-radius: 12px;
  background: rgba(6, 9, 18, 0.8);
  border: 1px solid #2c3657;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  padding: 14px;
}

.pc-fan {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid rgba(124, 91, 255, 0.75);
  background: conic-gradient(from 0deg, rgba(91, 140, 255, 0.9), transparent 55%);
  box-shadow: 0 0 18px rgba(124, 91, 255, 0.6);
  animation: spin 2.4s linear infinite;
}

.pc-fan--2 { animation-duration: 1.8s; animation-direction: reverse; border-color: rgba(91, 140, 255, 0.8); }
.pc-fan--3 { animation-duration: 2.9s; border-color: rgba(47, 212, 138, 0.7); box-shadow: 0 0 18px rgba(47, 212, 138, 0.5); }

@keyframes spin { to { transform: rotate(360deg); } }

.pc-case__front {
  height: 42px;
  border-radius: 10px;
  background: #10162a;
  border: 1px solid #2c3657;
  display: flex;
  align-items: center;
  padding: 0 14px;
}

.pc-led {
  width: 60px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink { 50% { opacity: 0.35; } }

/* Catalog */
section { padding: 56px 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  padding: 9px 18px;
  font-size: 0.92rem;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.chip:hover { color: var(--text); border-color: var(--accent); }

.chip--active {
  color: #fff;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-color: transparent;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.card__media {
  position: relative;
  height: 130px;
  display: grid;
  place-items: center;
  font-size: 3.4rem;
  background: linear-gradient(150deg, rgba(91, 140, 255, 0.18), rgba(124, 91, 255, 0.08));
}

.card__tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(11, 15, 26, 0.75);
}

.card__tag--hit { color: var(--hot); border: 1px solid rgba(255, 91, 127, 0.5); }
.card__tag--new { color: var(--ok); border: 1px solid rgba(47, 212, 138, 0.5); }

.card__body { padding: 18px; display: grid; gap: 12px; }

.card__title { font-size: 1.05rem; }

.card__specs {
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

.card__price-row { display: flex; align-items: baseline; gap: 10px; }

.card__price { font-size: 1.3rem; font-weight: 800; color: var(--ok); }

.card__old { color: var(--muted); text-decoration: line-through; font-size: 0.9rem; }

.card__buy { width: 100%; padding: 11px 16px; font-size: 0.95rem; }

/* Why */
.why { background: rgba(18, 24, 40, 0.55); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.why__card {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 0.2s, border-color 0.2s;
}

.why__card:hover { transform: translateY(-4px); border-color: var(--accent-2); }

.why__icon { font-size: 2rem; margin-bottom: 12px; }

.why__card h3 { font-size: 1.05rem; margin-bottom: 8px; }

.why__card p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

/* Order */
.order__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: start;
}

.order h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 16px; }

.order p { color: var(--muted); line-height: 1.6; }

.order__list { padding: 0; list-style: none; line-height: 2; color: var(--text); }

.order__form {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.order__form label { display: grid; gap: 7px; font-size: 0.9rem; color: var(--muted); }

.order__form input,
.order__form select {
  padding: 13px 14px;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s;
}

.order__form input:focus,
.order__form select:focus { border-color: var(--accent); }

.order__note { margin: 0; color: var(--ok); font-size: 0.9rem; min-height: 1.2em; }

/* Sub-pages */
.nav-cta { margin-left: 18px; padding: 9px 18px; font-size: 0.9rem; }

.page-head {
  padding: 56px 0 10px;
}

.page-head h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.page-head h1 span {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-head p {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.6;
}

.steps { background: rgba(18, 24, 40, 0.55); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.steps__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}

.steps__item {
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.steps__item b {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  color: #fff;
  font-size: 1.05rem;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 50%;
}

.steps__item h3 { font-size: 1rem; margin-bottom: 6px; }

.steps__item p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.55; }

.cta { padding: 48px 0; }

.cta__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.cta__inner h2 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }

.order__contacts {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.order__contacts b { color: var(--text); }

.order__form textarea {
  padding: 13px 14px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
}

.order__form textarea:focus { border-color: var(--accent); }

.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--accent); }

/* Footer */
.footer {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

/* Cart */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.65);
  z-index: 90;
}

.cart {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  width: min(400px, 100%);
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-soft);
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.25s ease;
}

@keyframes slideIn { from { transform: translateX(100%); } }

.cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.cart__close {
  font-size: 1.1rem;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  cursor: pointer;
}

.cart__close:hover { color: var(--text); border-color: var(--hot); }

.cart__items { flex: 1; overflow-y: auto; padding: 16px 20px; display: grid; gap: 12px; align-content: start; }

.cart__empty { color: var(--muted); text-align: center; margin-top: 30px; line-height: 1.7; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.cart-item__emoji { font-size: 1.6rem; }

.cart-item__info { flex: 1; }

.cart-item__name { font-size: 0.9rem; }

.cart-item__price { color: var(--ok); font-weight: 700; font-size: 0.9rem; margin-top: 3px; }

.cart-item__del {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
}

.cart-item__del:hover { opacity: 1; transform: scale(1.15); }

.cart__foot {
  padding: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
}

.cart__total { font-size: 1.05rem; }

.cart__total b { color: var(--ok); font-size: 1.3rem; margin-left: 6px; }

.cart__foot .btn { width: 100%; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: -80px;
  transform: translateX(-50%);
  z-index: 200;
  padding: 13px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  transition: bottom 0.3s ease;
}

.toast--show { bottom: 28px; }

/* Responsive */
@media (max-width: 900px) {
  .hero__inner,
  .order__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .pc-case { width: 190px; height: 270px; }
  .nav { display: none; }
  .nav-cta { margin-left: auto; }
}
