:root {
  --bg: #0b1020;
  --bg-soft: #111831;
  --card: #141c36;
  --text: #edf2ff;
  --muted: #a9b5d0;
  --primary: #6ea8fe;
  --primary-strong: #4b8ef7;
  --border: rgba(255,255,255,0.08);
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(0,0,0,0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: linear-gradient(180deg, #09101f 0%, #10162d 100%);
  color: var(--text);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(780px, calc(100% - 32px)); }
.section { padding: 72px 0; }
.alt-bg { background: rgba(255,255,255,0.02); }
.page-main { min-height: 70vh; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(9, 16, 31, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
}
.logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.logo span { color: var(--primary); }
.site-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.site-nav a {
  color: var(--muted);
  font-weight: 500;
}
.site-nav a.active,
.site-nav a:hover { color: var(--white); }
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--white);
  border-radius: 10px;
  padding: 10px 12px;
}

.hero,
.page-hero {
  padding: 88px 0 52px;
}
.hero-grid,
.two-col,
.footer-grid {
  display: grid;
  gap: 28px;
}
.hero-grid,
.two-col { grid-template-columns: 1.2fr 0.8fr; }
.hero h1,
.page-hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  margin: 10px 0 18px;
}
.hero-text,
.page-hero p,
p { color: var(--muted); line-height: 1.75; }
.eyebrow {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-card,
.info-box,
.product-card,
.post-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.badge,
.post-tag {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(110,168,254,0.12);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
}
.hero-card h2,
.section h2,
.info-box h3,
.product-card h3,
.post-card h3 {
  margin: 14px 0 14px;
  line-height: 1.2;
}
.hero-card ul,
.check-list,
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.hero-card li,
.check-list li,
.footer-grid li {
  margin-bottom: 12px;
  color: var(--muted);
}
.card-grid {
  display: grid;
  gap: 24px;
}
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.product-thumb {
  min-height: 180px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(110,168,254,0.18), rgba(255,255,255,0.04));
  color: var(--white);
  font-weight: 700;
  margin-bottom: 20px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--primary);
  color: #07101d;
}
.btn-primary:hover { background: var(--primary-strong); }
.btn-secondary {
  border: 1px solid var(--border);
  color: var(--white);
  background: rgba(255,255,255,0.02);
}
.btn-full { width: 100%; margin-top: 18px; }
.text-link {
  color: var(--primary);
  font-weight: 700;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
}
.filter-bar {
  margin-bottom: 28px;
}
.filter-bar input {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--white);
  padding: 0 16px;
  font-size: 1rem;
}
.post-layout {
  padding: 72px 0;
}
.post-meta {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 28px;
}
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 56px;
  margin-top: 20px;
}
.footer-grid { grid-template-columns: 1.3fr 0.7fr 0.8fr; }
.footer-logo { display: inline-block; margin-bottom: 10px; }

@media (max-width: 920px) {
  .hero-grid,
  .two-col,
  .card-grid.three,
  .card-grid.two,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 76px;
    right: 16px;
    left: 16px;
    background: #0f1730;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav.open { display: flex; }
  .menu-toggle { display: inline-flex; }
  .section-head { align-items: flex-start; flex-direction: column; }
}
