/* Services store — каталог как интернет-магазин */

.shop-hero {
  padding: calc(var(--header-h) + 1.5rem) 0 1.25rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(0, 255, 163, 0.04), transparent 70%);
}
.shop-hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
}
.shop-hero__crumb {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.shop-hero__crumb em {
  font-style: normal;
  color: var(--accent);
}
.shop-hero h1 {
  font-family: var(--display, var(--font));
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}
.shop-hero__lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 28rem;
}
.shop-hero__search {
  flex: 1;
  min-width: min(100%, 320px);
  max-width: 380px;
}
.shop-hero__search input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%237a7a88' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.857 1.106a5.5 5.5 0 1 1 0-11 5.5 5.5 0 0 1 0 11z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.85rem center;
}
.shop-hero__search input:focus {
  outline: none;
  border-color: var(--border-hover);
}
.shop-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.shop-hero__stats span::before {
  content: "●";
  color: var(--accent);
  margin-right: 0.4rem;
  font-size: 0.5rem;
  vertical-align: middle;
}

.header__cart {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}
.header__cart:hover {
  border-color: var(--border-hover);
  color: var(--text);
}
.header__cart b {
  color: var(--accent);
  font-weight: 600;
}

/* Catalog layout */
.section--shop {
  padding: 1.5rem 0 3rem;
}
.shop-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.shop-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: 1rem;
}
.shop-sidebar__title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.shop-filter {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.shop-filter button {
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s, color 0.2s;
}
.shop-filter button:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.shop-filter button.is-active {
  background: var(--accent-dim);
  color: var(--accent);
}
.shop-filter button span {
  font-size: 0.68rem;
  opacity: 0.7;
}
.shop-sidebar__note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.shop-main__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.shop-main__count {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.shop-main__count b {
  color: var(--text);
}
.shop-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.shop-sort select {
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
}

/* Product grid */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.svc-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.svc-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.svc-card.is-hidden {
  display: none;
}

.svc-card__thumb {
  display: block;
  aspect-ratio: 16 / 10;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.svc-card__thumb--web { background: linear-gradient(145deg, rgba(0,255,163,0.12), rgba(0,0,0,0.4)); }
.svc-card__thumb--crm { background: linear-gradient(145deg, rgba(0,180,255,0.12), rgba(0,0,0,0.4)); }
.svc-card__thumb--tg { background: linear-gradient(145deg, rgba(42,171,238,0.18), rgba(0,0,0,0.4)); }
.svc-card__thumb--ai { background: linear-gradient(145deg, rgba(167,139,250,0.15), rgba(0,0,0,0.4)); }
.svc-card__thumb--design { background: linear-gradient(145deg, rgba(212,175,106,0.12), rgba(0,0,0,0.4)); }

.svc-thumb {
  position: absolute;
  inset: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.5rem;
  font-size: 0.55rem;
}
.svc-thumb--land .st-bar { display: flex; gap: 3px; margin-bottom: 4px; }
.svc-thumb--land .st-bar i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.svc-thumb--land .st-hero { height: 22px; border-radius: 4px; background: rgba(0,255,163,0.15); margin-bottom: 4px; }
.svc-thumb--land .st-btn { height: 10px; width: 45%; border-radius: 4px; background: var(--accent); opacity: 0.8; }

.svc-thumb--shop .st-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 3px; }
.svc-thumb--shop .st-grid i { aspect-ratio: 1; border-radius: 3px; background: rgba(255,255,255,0.08); }

.svc-thumb--crm .st-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 3px; height: 100%; }
.svc-thumb--crm .st-cols span { border-radius: 3px; background: rgba(255,255,255,0.06); border: 1px solid var(--border); }

.svc-thumb--tg .st-tg { height: 100%; border-radius: 6px; background: #2aabee; display: flex; flex-direction: column; }
.svc-thumb--tg .st-tg b { padding: 4px; text-align: center; font-size: 0.5rem; }
.svc-thumb--tg .st-tg i { flex: 1; margin: 0 4px 4px; border-radius: 4px; background: rgba(0,0,0,0.2); }

.svc-thumb--ai .st-chat { display: flex; flex-direction: column; gap: 3px; }
.svc-thumb--ai .st-chat i { height: 10px; border-radius: 4px; background: rgba(255,255,255,0.08); }
.svc-thumb--ai .st-chat i:nth-child(2) { width: 75%; align-self: flex-end; background: rgba(0,255,163,0.15); }

.svc-thumb--design .st-sw { display: flex; gap: 4px; margin-bottom: 4px; }
.svc-thumb--design .st-sw i { width: 12px; height: 12px; border-radius: 50%; }
.svc-thumb--design .st-sw i:nth-child(1) { background: #00ffa3; }
.svc-thumb--design .st-sw i:nth-child(2) { background: #00b4ff; }
.svc-thumb--design .st-sw i:nth-child(3) { background: #a78bfa; }
.svc-thumb--design .st-ui { height: 28px; border-radius: 4px; border: 1px solid var(--border); }

.svc-card__body {
  padding: 0.85rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.svc-card__cat {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.svc-card__body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}
.svc-card__body h3 a:hover { color: var(--accent); }
.svc-card__body > p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.65rem;
  flex: 1;
}
.svc-card__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.svc-card__price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.svc-card__price small {
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-right: 0.15rem;
}
.svc-card__term {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.svc-card__btn {
  display: block;
  text-align: center;
  padding: 0.55rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.svc-card__btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #031a12;
}

.shop-empty {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}
.shop-empty.is-visible { display: block; }

.shop-trust {
  margin-top: 2rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: rgba(255, 255, 255, 0.02);
}
.shop-trust div {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.shop-trust strong {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.header__inner .header__cart {
  margin-left: auto;
}
.header__inner .nav + .header__cart {
  margin-left: 0;
}
.header__inner .header__cta {
  margin-left: 0.5rem;
}

@media (max-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem;
  }
  .shop-sidebar__title { width: 100%; margin-bottom: 0; }
  .shop-filter {
    flex-direction: row;
    flex-wrap: wrap;
    flex: 1;
  }
  .shop-filter button { width: auto; }
  .shop-sidebar__note { display: none; }
}

@media (max-width: 600px) {
  .svc-grid { grid-template-columns: 1fr; }
  .shop-trust { grid-template-columns: 1fr; }
  .header__cart span:not(b) { display: none; }
}
