/* Каталог «Чек-Чирик» — стиль согласован с лендингом (landing/Check/css/styles.css). А2. */
:root {
  --bg: #fff;
  --ink: #161616;
  --muted: #6d6d75;
  --faint: #8d8d95;
  --line: #ececef;
  --soft: #f6f7f8;
  --card: #f4f5f7;
  --accent: #A85CFF;
  --accent-dark: #9343f2;
  --accent-soft: #F0E5FC;
  --yes: #067647;
  --yes-bg: #e7f6ee;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(40, 24, 12, 0.07);
  --font: "Instrument Sans", "Segoe UI", sans-serif;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 8% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(700px 360px at 100% 0%, #f8e0cf55, transparent 55%),
    var(--bg);
  line-height: 1.5;
  letter-spacing: -0.01em;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

.site-header {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}
.logo {
  display: block;
  width: clamp(120px, 22vw, 160px);
  flex: none;
  line-height: 0;
  text-decoration: none;
  overflow: hidden;
}
.logo img {
  display: block;
  width: 100%;
  height: auto;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: center;
  justify-content: flex-end;
}
nav a, nav .nav-soon {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 4px 0;
}
nav a.active, nav a:hover { color: var(--accent-dark); }
.nav-soon { opacity: 0.55; cursor: default; }

h1 {
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 22px 0 12px;
}
h2 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 20px 0 10px;
}
.demo-note { color: var(--muted); font-weight: 400; font-size: 0.8rem; }

.filters {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}
.filters label {
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  gap: 4px;
}
.filters select,
.filters input {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.9rem;
  background: #fff;
  font-family: inherit;
  color: var(--ink);
  min-height: 40px;
}
.filters select:focus,
.filters input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 35%, white);
  border-color: var(--accent);
}
.range { display: flex; gap: 6px; }
.range input { width: 96px; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.9rem;
}
.btn-ghost:hover { color: var(--ink); border-color: #d8d6e0; }
.btn-sm { padding: 7px 12px; font-size: 0.82rem; }

.result-count { color: var(--muted); font-size: 0.9rem; margin: 0 0 12px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.product-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--line);
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.product-card:hover {
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  transform: translateY(-2px);
}
.product-card h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 600;
}
.pc-specs {
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 0.85rem;
}
.pc-specs li { margin: 2px 0; }
.pc-price {
  margin-top: auto;
  padding-top: 8px;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.breadcrumbs { margin-top: 18px; font-size: 0.85rem; color: var(--muted); }
.breadcrumbs a { color: var(--accent-dark); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.detail-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}
.spec-table,
.offer-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.spec-table th,
.spec-table td,
.offer-table td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.92rem;
}
.spec-table tr:last-child th,
.spec-table tr:last-child td,
.offer-table tr:last-child td { border-bottom: 0; }
.spec-table th {
  width: 40%;
  color: var(--muted);
  font-weight: 500;
  background: var(--soft);
}
.offer-table .price { font-weight: 700; white-space: nowrap; }
.out-of-stock td { opacity: 0.55; }
.stock { font-size: 0.8rem; color: var(--muted); }
.stock.ok {
  color: var(--yes);
  background: var(--yes-bg);
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 600;
}
.hint { color: var(--muted); font-size: 0.8rem; }

.empty-state {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  color: var(--muted);
}
.pagination {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin: 22px 0 40px;
  color: var(--muted);
  font-size: 0.92rem;
}
.pagination a {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 600;
}
.pagination a:hover { text-decoration: underline; }

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  margin-top: 40px;
}
.site-footer p { color: var(--muted); font-size: 0.8rem; margin: 8px 0; }
.site-footer .container { padding: 18px 16px; }

@media (max-width: 800px) {
  .detail-grid { grid-template-columns: 1fr; }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .filters-row > label { flex: 1 1 140px; }
  .range input { width: 100%; }
}
