:root {
  --bg: #0a0f1a;
  --bg-soft: #111827;
  --card: rgba(17, 24, 39, 0.92);
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.18);
  --accent: #8b5cf6;
  --accent-2: #22c55e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #08101d 0%, #0f172a 100%);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 72px 0; }
.section--muted { background: rgba(255,255,255,0.02); }
.section__head { margin-bottom: 28px; }
.eyebrow, .hero__badge, .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d8b4fe;
  background: rgba(139, 92, 246, 0.12);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero {
  padding: 92px 0 56px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.28), transparent 28%),
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.18), transparent 24%);
}
.hero--compact { padding: 72px 0 40px; }
.page-header {
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}
.hub-card, .catalog-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  padding: 28px;
  transition: transform .18s ease, border-color .18s ease;
}
.hub-card:hover, .catalog-card:hover { transform: translateY(-2px); border-color: rgba(139,92,246,.45); }
.hub-card__action { display: inline-block; margin-top: 16px; color: #d8b4fe; font-weight: 700; }
.tools-list h2 { margin-bottom: 8px; }
.hero h1, .section h2, .cta h2 { margin: 16px 0; line-height: 1.05; }
.hero h1 { font-size: clamp(40px, 7vw, 72px); max-width: 900px; }
.hero__lead { max-width: 780px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
}
.button--primary { background: var(--accent); color: white; }
.button--ghost { border-color: var(--line); background: rgba(255,255,255,0.03); color: var(--text); }
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  backdrop-filter: blur(10px);
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.card p, .card li { color: var(--muted); line-height: 1.65; }
.tools-grid { align-items: start; }
.tool__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tool__desc { margin-top: 8px; margin-bottom: 16px; }
.tool-form { display: grid; gap: 12px; }
.tool-form label { display: grid; gap: 6px; font-size: 14px; color: #cbd5e1; }
.tool-form input {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  padding: 0 14px;
}
.result {
  width: 100%;
  min-height: 120px;
  margin-top: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.7);
  color: #d8f7df;
  padding: 14px;
  resize: vertical;
}
.list { margin: 0; padding-left: 18px; display: grid; gap: 10px; }
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 32px;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .hero { padding-top: 72px; }
  .hero__lead { font-size: 16px; }
  .card { padding: 20px; border-radius: 18px; }
}
