:root{
  --bg:#f5f6f8;
  --surface:#fff;
  --text:#15171a;
  --muted:#6f7680;
  --line:#e7e9ed;
  --dark:#17191c;
  --radius:18px;
  --shadow:0 18px 45px rgba(20,24,32,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);
  background:var(--bg);
}
a{color:inherit;text-decoration:none}
.topbar{
  height:72px;
  padding:0 clamp(20px,5vw,72px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(18px);
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  z-index:20;
}
.brand{display:flex;align-items:center;gap:11px;font-weight:800;letter-spacing:-.02em}
.brand-mark{
  width:34px;height:34px;border-radius:10px;
  display:grid;place-items:center;
  background:var(--dark);color:#fff;
  font-size:15px;
}
.demo-count{font-size:13px;color:var(--muted);font-weight:600}
.hero{
  padding:86px 20px 62px;
  background:
    radial-gradient(circle at 10% 0%,rgba(0,0,0,.04),transparent 33%),
    linear-gradient(180deg,#fff 0%,#f5f6f8 100%);
  border-bottom:1px solid var(--line);
}
.hero-inner{max-width:980px;margin:0 auto;text-align:center}
.eyebrow{
  display:inline-block;
  font-size:12px;font-weight:800;letter-spacing:.16em;
  color:#7b828d;margin-bottom:18px;
}
h1{
  margin:0;
  font-size:clamp(42px,6vw,72px);
  line-height:1.02;
  letter-spacing:-.055em;
}
.hero p{
  max-width:680px;
  margin:22px auto 0;
  color:var(--muted);
  font-size:clamp(16px,2vw,19px);
  line-height:1.7;
}
.search-wrap{
  max-width:600px;
  margin:34px auto 0;
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 16px;
  box-shadow:0 10px 28px rgba(20,24,32,.06);
}
.search-wrap svg{width:20px;fill:none;stroke:#8a9099;stroke-width:2;stroke-linecap:round}
.search-wrap input{
  width:100%;height:54px;border:0;outline:0;background:transparent;
  font:inherit;color:var(--text);
}
.catalog{max-width:1320px;margin:0 auto;padding:42px 24px 80px}
.filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:28px}
.filter{
  border:1px solid var(--line);
  background:#fff;
  border-radius:999px;
  padding:9px 14px;
  font:inherit;font-size:13px;font-weight:700;color:#5e6570;
  cursor:pointer;
}
.filter.active{background:var(--dark);color:#fff;border-color:var(--dark)}
.grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
}
.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}
.card:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:#d9dce1}
.preview{
  position:relative;
  aspect-ratio:16/10;
  overflow:hidden;
  background:#e9ebef;
}
.preview img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .45s ease}
.card:hover .preview img{transform:scale(1.025)}
.preview-overlay{
  position:absolute;inset:0;
  display:grid;place-items:center;
  background:rgba(10,12,15,.18);
  opacity:0;transition:opacity .2s ease;
}
.card:hover .preview-overlay{opacity:1}
.preview-button{
  background:#fff;color:#17191c;
  padding:11px 15px;border-radius:10px;
  font-size:13px;font-weight:800;
  box-shadow:0 10px 28px rgba(0,0,0,.16);
}
.card-body{padding:18px 18px 20px}
.card-row{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.card h2{font-size:18px;margin:0;letter-spacing:-.025em}
.card p{margin:8px 0 0;color:var(--muted);font-size:13px;line-height:1.55}
.badge{
  white-space:nowrap;
  font-size:11px;font-weight:800;
  padding:6px 8px;border-radius:8px;
  background:#f1f2f4;color:#727984;
}
.empty{
  text-align:center;padding:64px 20px;color:var(--muted);
  background:#fff;border:1px dashed #d8dbe0;border-radius:16px;
}
footer{
  min-height:76px;
  padding:20px clamp(24px,5vw,72px);
  border-top:1px solid var(--line);
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  color:var(--muted);font-size:12px;background:#fff;
}
@media (max-width:980px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){
  .topbar{height:64px;padding:0 18px}
  .hero{padding:64px 18px 46px}
  .catalog{padding:30px 16px 60px}
  .grid{grid-template-columns:1fr}
  footer{flex-direction:column;justify-content:center}
}
