/* =========================================================
   ПРО.КОМПЬЮТЕР — базовая тема
   Палитра выведена из присланного логотипа: тёмно-навиевый фон,
   ярко-голубой акцент (цвет молнии на лого).
   ========================================================= */
:root {
  --bg: #0a1626;
  --bg-soft: #0e1e33;
  --surface: #13233c;
  --surface-2: #1a2f4d;
  --border: #24405f;
  --text: #f2f6fb;
  --text-muted: #8ea3bd;
  --accent: #29abe2;
  --accent-2: #1668a8;
  --accent-gradient: linear-gradient(135deg, var(--accent), var(--accent-2));
  --success: #34d399;
  --danger: #f56565;
  --warning: #f6ad55;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select {
  font-family: inherit;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 15px;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 8px 20px rgba(79,124,255,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(79,124,255,.45); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: var(--surface-2); color: var(--text); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

.section-title {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}
.section-sub { color: var(--text-muted); margin: 0 0 36px; font-size: 15px; }

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(11,14,20,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.logo img { height: 34px; }
.logo span.accent { color: var(--accent); }

.nav-main { display: flex; gap: 6px; }
.nav-main a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14.5px;
  transition: background .2s, color .2s;
}
.nav-main a:hover, .nav-main a.active { background: var(--surface-2); color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  position: relative;
}
.icon-btn:hover { border-color: var(--accent); }
.cart-count {
  position: absolute; top: -4px; right: -4px;
  background: var(--accent-2); color: #fff;
  font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

.burger { display: none; }

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 60px 0 28px;
  margin-top: 100px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 { margin: 0 0 16px; font-size: 15px; color: var(--text); }
.footer-col a, .footer-col p { color: var(--text-muted); font-size: 14px; display: block; margin-bottom: 10px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface-2); display: flex; align-items: center; justify-content: center;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }

/* ---------- Toast ---------- */
#toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  display: flex; flex-direction: column; gap: 10px;
}
.toast-item {
  background: var(--surface-2);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  animation: toast-in .25s ease;
  font-size: 14px;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(5,7,12,.7);
  display: none; align-items: center; justify-content: center; z-index: 500;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; width: 100%; max-width: 420px;
  animation: modal-in .25s ease;
}
@keyframes modal-in { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }
.modal-box h3 { margin-top: 0; }
.modal-box .field { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.modal-box .field label { font-size: 13px; color: var(--text-muted); }
.modal-box input { width: 100%; }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--text-muted); font-size: 20px; }
.modal-box { position: relative; }
.switch-link { color: var(--accent); cursor: pointer; }
.error-text { color: var(--danger); font-size: 13px; min-height: 16px; }

@media (max-width: 900px) {
  .nav-main { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
