:root {
  --bg: #ffffff;
  --panel: #f7f8fa;
  --border: #e2e4ea;
  --text: #16181f;
  --text-dim: #565a68;
  --accent: #4f46e5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
  z-index: 10;
}

.brand {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.brand span { color: var(--accent); }

.topbar nav a {
  margin-left: 28px;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}
.topbar nav a:hover { color: var(--accent); }

.hero {
  max-width: 720px;
  margin: 90px auto 60px;
  padding: 0 24px;
  text-align: center;
}
.hero h1 {
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.hero p {
  font-size: 18px;
  color: var(--text-dim);
  margin: 0 0 32px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid var(--border);
}
.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn.primary:hover { filter: brightness(1.1); }

.products {
  max-width: 1080px;
  margin: 0 auto 80px;
  padding: 0 24px;
}
.products h2, .about h2, .contact h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr; }
}

.product-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 22px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
}
.product-card.featured {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 8px 30px rgba(79,70,229,0.12);
}

.product-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 12px;
}
.price span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
}

.product-card p:not(.price) {
  font-size: 14px;
  color: var(--text-dim);
  flex-grow: 1;
  margin: 0 0 20px;
}

.buy-link {
  background: #fff;
  text-align: center;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.buy-link:hover { background: var(--accent); color: #fff; }
.product-card.featured .buy-link {
  background: var(--accent);
  color: #fff;
}
.product-card.featured .buy-link:hover { filter: brightness(1.1); }

.about, .contact {
  max-width: 680px;
  margin: 0 auto 80px;
  padding: 0 24px;
  text-align: center;
}
.about p, .contact p {
  color: var(--text-dim);
  font-size: 15px;
}

footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}
