:root{
  --bg:#f7f9fc;
  --bg-soft:#f2f6fb;
  --card:#ffffff;
  --card-soft:#fbfdff;
  --line:#dbe5f3;
  --line-soft:rgba(23,58,114,.08);
  --text:#173a72;
  --muted:#617697;
  --primary:#2f6fec;
  --primary-dark:#1f56c4;
  --tag-bg:#f3f7ff;
  --tag-text:#4d6485;
  --shadow:0 12px 30px rgba(27,65,133,.08);
  --shadow-lg:0 20px 45px rgba(27,65,133,.12);
  --radius:24px;
  --max:1240px;
}

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:'Inter', Arial, Helvetica, sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(101,146,255,.08), transparent 26%),
    linear-gradient(180deg,#fbfdff 0%, #f4f8fd 100%);
  line-height:1.6;
}

a{
  text-decoration:none;
  color:#0057ff;
}

.container{
  width:min(calc(100% - 40px), var(--max));
  margin:auto;
}

.hero{
  padding:20px 0 20px;
}

.breadcrumb{
  font-size:14px;
  color:var(--muted);
  margin-bottom:16px;
}

.breadcrumb span{
  color:var(--text);
  font-weight:700;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 16px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#f8fbff;
  color:var(--primary);
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:18px;
}

.eyebrow::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--primary);
}

h1,h2,h3,h4{
  letter-spacing:-.03em;
}

.hero{
}

.hero p{
  max-width:860px;
  color:var(--muted);
  font-size:18px;
}

.layout{
  display:grid;
  grid-template-columns:300px 1fr;
  gap:24px;
  padding:18px 0 82px;
}

/* Sidebar */
.sidebar{
  align-self:start;
  position:sticky;
  top:96px;
  display:grid;
  gap:16px;
}

.side-panel{
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,252,255,.94));
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:var(--shadow);
  padding:18px;
}

.side-title{
  font-size:13px;
  font-weight:800;
  color:var(--primary-dark);
  letter-spacing:.06em;
  text-transform:uppercase;
  margin-bottom:14px;
  padding:4px 2px 10px;
}

.side-group{
  border-top:1px solid rgba(23,58,114,.08);
}

.side-group:first-of-type{
  border-top:none;
}

.side-group-head{
  width:100%;
  min-height:52px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:0 14px;
  border:none;
  background:transparent;
  color:#244064;
  font-size:15px;
  font-weight:700;
  text-align:left;
  border-radius:16px;
  cursor:pointer;
  transition:.22s ease;
}

.side-group-head:hover{
  background:#f7faff;
}

.side-group-head.active{
  background:linear-gradient(180deg, #edf4ff 0%, #e8f1ff 100%);
  color:var(--primary-dark);
  box-shadow:inset 0 0 0 1px rgba(47,111,236,.08);
}

.side-toggle{
  flex-shrink:0;
  width:24px;
  text-align:center;
  color:#6a82a3;
  font-weight:800;
  font-size:18px;
  line-height:1;
}

.side-sublist{
  padding:4px 0 10px 14px;
  margin-left:10px;
  border-left:2px solid #dfe9f8;
  display:grid;
  gap:8px;
}

.side-sublist.is-hidden{
  display:none;
}

.side-subitem{
  min-height:40px;
  display:flex;
  align-items:center;
  padding:0 14px;
  border-radius:12px;
  color:#4a6386;
  font-size:14px;
  font-weight:600;
  transition:.2s ease;
  cursor:pointer;
}

.side-subitem:hover{
  background:#f7faff;
  color:var(--primary-dark);
}

.side-subitem.active{
  background:#edf4ff;
  color:var(--primary-dark);
  box-shadow:inset 0 0 0 1px rgba(47,111,236,.08);
}

.contact-card{
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px 18px;
  background:linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color:#fff;
  border-radius:20px;
  box-shadow:0 16px 34px rgba(47,111,236,.22);
}

.contact-icon{
  width:44px;
  height:44px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.16);
  font-size:22px;
  flex-shrink:0;
}

.contact-label{
  font-size:12px;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
  opacity:.9;
}

.contact-phone{
  display:inline-block;
  margin-top:2px;
  font-size:22px;
  font-weight:800;
  line-height:1.1;
  color:#fff;
}

/* Main */
.results-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
  margin-bottom:20px;
  flex-wrap:wrap;
}

.results-meta p{
  color:var(--muted);
  font-size:15px;
  margin-top:6px;
}

.selected-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}

.tag{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  background:var(--tag-bg);
  border:1px solid var(--line);
  color:var(--tag-text);
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
}

.action-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 15px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  font-size:13px;
  font-weight:700;
  transition:.25s ease;
}

.btn:hover{
  transform:translateY(-1px);
}

.btn-primary{
  border:none;
  color:#fff;
  background:linear-gradient(135deg,var(--primary) 0%,var(--primary-dark) 100%);
  box-shadow:0 10px 24px rgba(47,111,236,.22);
}

.btn-secondary{
  background:#fff;
  color:#27466d;
}

.product-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:14px;
}

.product-card{
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,252,255,.94));
  border:1px solid var(--line);
  border-radius:20px;
  overflow:hidden;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  transition:.25s ease;
}

.product-card:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow-lg);
}

.product-image{
  aspect-ratio: 1 / 1;
  background:#ffffff;
  border-bottom:1px solid var(--line-soft);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#ffffff;
  font-size:14px;
  font-weight:700;
  text-align:center;
}

.product-image a{
  display:block;
  width:100%;
  height:100%;
}

.product-image img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.product-body{
  padding:15px;
  display:flex;
  flex-direction:column;
  height:100%;
}

.product-types{
  display:flex;
  gap:8px;
}

.product-type{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 8px;
  border-radius:999px;
  background:#edf4ff;
  color:var(--primary-dark);
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.05em;
  width:max-content;
  margin-right:8px;
  margin-bottom:9px;
}

.product-body h3{
  margin-bottom:7px;
}

.product-body h3 a{
  font-size:16px;
  color:var(--text);
}

.product-body p{
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
  margin-bottom:10px;
}

.card-tags{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-bottom:12px;
}

.card-actions{
  margin-top:auto;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.pagination{
  display:flex;
  justify-content:center;
  gap:12px;
  margin-top:28px;
}

footer{
  padding:24px 0 40px;
  color:var(--muted);
  font-size:14px;
  text-align:center;
}

@media (max-width:1180px){
  .product-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:1080px){
  .layout{
    grid-template-columns:1fr;
  }

  .sidebar{
    position:static;
  }
}

@media (max-width:768px){
  .container{
    width:min(calc(100% - 28px), var(--max));
  }

  .nav-links{
    display:none;
  }

  .product-grid{
    grid-template-columns:1fr;
  }

  h1{
    font-size:40px;
  }
}
