:root{
  --bg:#f6f7fb;
  --bg2:#eef2ff;
  --surface:#ffffff;
  --surface2:#fbfbff;
  --text:#0f172a;
  --muted:#475569;
  --muted2:#64748b;
  --border:#e5e7eb;
  --accent:#4f46e5;
  --accent2:#06b6d4;
  --shadow:0 12px 30px rgba(15,23,42,.10);
  --shadow2:0 8px 18px rgba(15,23,42,.08);
  --radius:18px;
}
*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;
  font:16px/1.55 system-ui,-apple-system,Segoe UI,Roboto,Arial;
  color:var(--text);
  background:
    radial-gradient(900px 600px at 10% 0%, rgba(79,70,229,.18), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(6,182,212,.12), transparent 55%),
    linear-gradient(180deg, var(--bg2), var(--bg));
}
a{color:inherit;text-decoration:none;}
.container{max-width:1160px;margin:0 auto;padding:18px 16px;}

.header{
  position:sticky;top:0;z-index:50;
  backdrop-filter: blur(12px);
  background: rgba(246,247,251,.78);
  border-bottom:1px solid rgba(15,23,42,.08);
}
.header-inner{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:14px;
  align-items:center;
}
@media(max-width:980px){
  .header-inner{grid-template-columns:1fr; gap:10px;}
}
.brand{
  display:flex;align-items:center;gap:10px;
  font-weight:950;letter-spacing:.2px;
}
.brand-mark{
  width:14px;height:14px;border-radius:999px;
  background: linear-gradient(135deg,var(--accent),var(--accent2));
  box-shadow: 0 0 0 8px rgba(79,70,229,.12);
}
.header-search{min-width:260px;}
.searchbar{
  display:flex;align-items:center;gap:10px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.72);
  box-shadow: 0 6px 16px rgba(15,23,42,.06);
}
.searchbar input{
  border:0;outline:none;background:transparent;width:100%;
  font:inherit;color:var(--text);
}
.searchbar input::placeholder{color:var(--muted2);}
.icon{
  width:16px;height:16px;border-radius:4px;
  background: linear-gradient(135deg, rgba(79,70,229,.55), rgba(6,182,212,.45));
}
.nav{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
@media(max-width:980px){ .nav{justify-content:flex-start;} .header-search{width:100%;} }
.nav a{
  padding:8px 10px;border-radius:999px;
  color:var(--muted);
  border:1px solid transparent;
}
.nav a:hover{
  color:var(--text);
  background: rgba(255,255,255,.78);
  border-color: rgba(15,23,42,.10);
}

.h1{font-size: clamp(30px, 3.2vw, 40px); line-height:1.1; margin:0 0 10px;}
.section-title{margin:26px 0 10px;font-size:18px;}

.section-sub{
  margin: 0 0 14px;
  color: var(--muted2);
  font-size: 14px;
}

.quickbar{
  margin-top: 12px;
}
.quickbar__inner{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  padding: 12px 12px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.82);
  border:1px solid rgba(15,23,42,.10);
  box-shadow: var(--shadow2);
}
.quickbar__label{
  font-weight:900;
  color: rgba(15,23,42,.85);
}
.quickbar__sep{
  flex: 1 1 24px;
  min-width: 12px;
}

.qbtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 999px;
  border:1px solid rgba(79,70,229,.18);
  background: rgba(79,70,229,.08);
  color: rgba(15,23,42,.92);
  font-weight:900;
  font-size: 14px;
  white-space: nowrap;
}
.qbtn:hover{ background: rgba(79,70,229,.12); }
.qbtn--soft{
  border-color: rgba(6,182,212,.22);
  background: rgba(6,182,212,.10);
}

.pill-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 10px 0 30px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 999px;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.86);
  box-shadow: 0 6px 14px rgba(15,23,42,.06);
  font-weight:800;
}
.pill:hover{ background:#fff; }

.kicker{
  display:inline-flex;gap:8px;align-items:center;
  padding:6px 10px;border-radius:999px;
  background: rgba(79,70,229,.08);
  border:1px solid rgba(79,70,229,.18);
  color: rgba(30,41,59,.85);
  font-weight:900;
  margin-bottom:10px;
}
.lead{color:var(--muted); margin:0 0 16px;}
.muted{color:var(--muted);}

.hero{padding:22px 0 6px;}
.hero-shell{
  border:1px solid rgba(15,23,42,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.60));
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  padding:18px;
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:16px;
}
@media(max-width:980px){ .hero-shell{grid-template-columns:1fr;} }
.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0 10px;}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:11px 14px;border-radius:14px;
  border:1px solid rgba(79,70,229,.25);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color:white;font-weight:950;
  box-shadow: 0 10px 24px rgba(79,70,229,.20);
}
.btn:hover{filter:brightness(1.03);}
.btn-secondary{
  background: rgba(255,255,255,.82);
  color:var(--text);
  border:1px solid rgba(15,23,42,.12);
  box-shadow: 0 10px 24px rgba(15,23,42,.08);
}
.chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px;}
.chip{
  padding:6px 10px;border-radius:999px;
  background: rgba(255,255,255,.78);
  border:1px solid rgba(15,23,42,.10);
  color:var(--muted);
  font-weight:800;
  font-size:13px;
}
.hero-panel{display:grid;gap:10px;}
.hero-stat{
  background: rgba(255,255,255,.78);
  border:1px solid rgba(15,23,42,.10);
  border-radius: var(--radius);
  padding:12px;
}
.hero-stat__t{font-size:12px;color:var(--muted2);font-weight:900;text-transform:uppercase;letter-spacing:.06em;}
.hero-stat__v{margin-top:6px;font-weight:950;}
.hero-stat__v a{text-decoration:underline;text-decoration-thickness:2px;text-decoration-color: rgba(79,70,229,.22);}

.grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap:14px;
  margin: 12px 0 26px;
}
.card{
  background: rgba(255,255,255,.82);
  border:1px solid rgba(15,23,42,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  overflow:hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover{transform: translateY(-3px); box-shadow: var(--shadow);}
.p{padding:14px 14px 16px; display:flex; flex-direction:column; gap:8px;}
.title{font-weight:950; letter-spacing:.1px;}
.desc{color:var(--muted); font-size:14px;}
.thumb{position:relative; width:100%; height:190px; background: rgba(255,255,255,.92); overflow:hidden; display:flex; align-items:center; justify-content:center;}
.thumb img{width:100%;height:100%;object-fit:contain; display:block; transform:none;}
.card:hover .thumb img{transform:none;}
.corner-badges{
  position:absolute; left:10px; top:10px;
  display:flex; flex-direction:column; gap:6px; align-items:flex-start;
}
.badge{
  font-size:12px; padding:5px 10px; border-radius:999px;
  background: rgba(255,255,255,.86);
  border:1px solid rgba(15,23,42,.10);
  color:var(--muted);
  font-weight:900;
  box-shadow: 0 8px 16px rgba(15,23,42,.08);
}
.badge.ok{
  color: #0f766e;
  border-color: rgba(15,118,110,.18);
  background: rgba(20,184,166,.10);
}
.badge.discount{
  color: #9a3412;
  border-color: rgba(234,88,12,.18);
  background: rgba(234,88,12,.10);
}
.price-row{display:flex; gap:10px; align-items:baseline; flex-wrap:wrap;}
.price{font-weight:950; font-size:18px;}
.old{color:var(--muted2); text-decoration: line-through;}

.search{
  width:100%;
  padding:12px 14px;
  border-radius: 14px;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.78);
  outline:none;
  box-shadow: 0 8px 18px rgba(15,23,42,.06);
  margin: 10px 0 16px;
}
.search:focus{border-color: rgba(79,70,229,.35); box-shadow: 0 0 0 6px rgba(79,70,229,.12);}

.list-links{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap:12px;
  margin: 10px 0 26px;
}
.link-card{
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 14px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.82);
  border:1px solid rgba(15,23,42,.10);
  box-shadow: var(--shadow2);
  transition: transform .15s ease, box-shadow .15s ease;
}
.link-card:hover{box-shadow: var(--shadow); transform: translateY(-2px);}

.footer{
  margin-top:34px;
  border-top:1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.58);
}
.footer-links{display:flex;gap:10px;flex-wrap:wrap;margin: 16px 0 10px;}
.footer-links a{
  padding:8px 10px;border-radius:999px;
  border:1px solid transparent;
  color:var(--muted);
}
.footer-links a:hover{
  border-color: rgba(15,23,42,.10);
  background: rgba(255,255,255,.88);
  color:var(--text);
}

/* ===== Responsive tweaks ===== */
@media (max-width: 720px){
  body{ font-size:15px; }
  .container{ padding: 14px 12px; }
  .header-inner{ grid-template-columns: 1fr; gap:10px; }
  .header-search{ min-width: 0; width:100%; }
  .nav{
    width:100%;
    justify-content:flex-start;
    flex-wrap:nowrap;
    overflow-x:auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .nav::-webkit-scrollbar{ display:none; }
  .nav a{ white-space: nowrap; }

  .hero{ padding: 16px 0 6px; }
  .h1{ font-size: 28px; }

  .quickbar__inner{ gap:8px; }
  .quickbar__label{ width:100%; }
  .quickbar__sep{ display:none; }
}

@media (max-width: 520px){
  .h1{ font-size: 24px; }
  .lead{ font-size: 14px; }

  .grid{ grid-template-columns: 1fr; }
  .kat-grid{ grid-template-columns: 1fr; }

  .thumb{ height: 170px; }

  .qbtn{ flex: 1 1 140px; }
  .quickbar__inner{ align-items: stretch; }

  .btn{ width:100%; }
}
